mailing list of musl libc
 help / color / mirror / code / Atom feed
5046abaa5f0e1ac3b7049eb5546c9596a1026d70 blob 199 bytes (raw)

1
2
3
4
5
6
7
8
 
void __procfdname(char *buf, unsigned fd)
{
	unsigned i, j;
	for (i=0; (buf[i] = "/proc/self/fd/"[i]); i++);
	for (j=fd; i++, j /= 10; );
	buf[i] = '\0';
	while (buf[--i] = '0' + fd%10, fd /= 10);
}
debug log:

solving 5046abaa ...
found 5046abaa in https://inbox.vuxu.org/musl/5b8b9a8b.1c69fb81.ed159.bb37@mx.google.com/
found 697e0bdc in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 697e0bdc2e1f6a2ae212f70a5915b99cc35d1dfd	src/internal/procfdname.c

applying [1/1] https://inbox.vuxu.org/musl/5b8b9a8b.1c69fb81.ed159.bb37@mx.google.com/
diff --git a/src/internal/procfdname.c b/src/internal/procfdname.c
index 697e0bdc..5046abaa 100644

Checking patch src/internal/procfdname.c...
Applied patch src/internal/procfdname.c cleanly.

index at:
100644 5046abaa5f0e1ac3b7049eb5546c9596a1026d70	src/internal/procfdname.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).