mailing list of musl libc
 help / color / mirror / code / Atom feed
ac54f0cf0b0b51cdd59be911b27f5705dc894316 blob 156 bytes (raw)

1
2
3
4
5
6
7
8
 
#include <string.h>

void *memset_explicit(void *d, int c, size_t n)
{
	d = memset(d, c, n);
	__asm__ __volatile__ ("" : : "r"(d) : "memory");
	return d;
}
debug log:

solving ac54f0cf ...
found ac54f0cf in https://inbox.vuxu.org/musl/20230526115236.b15f8bf97a529da07fba514f@zhasha.com/ ||
	https://inbox.vuxu.org/musl/1ad1a194-f2f5-4ae1-9686-67961086e605@inode.at/

applying [1/2] https://inbox.vuxu.org/musl/20230526115236.b15f8bf97a529da07fba514f@zhasha.com/
diff --git a/src/string/memset_explicit.c b/src/string/memset_explicit.c
new file mode 100644
index 00000000..ac54f0cf

Checking patch src/string/memset_explicit.c...
Applied patch src/string/memset_explicit.c cleanly.

skipping https://inbox.vuxu.org/musl/1ad1a194-f2f5-4ae1-9686-67961086e605@inode.at/ for ac54f0cf
index at:
100644 ac54f0cf0b0b51cdd59be911b27f5705dc894316	src/string/memset_explicit.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).