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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include "syscall.h"

void __procfdname(char buf[static 15+3*sizeof(int)], unsigned fd)
{
	unsigned i, j;
	for (i=0; (buf[i] = "/proc/self/fd/"[i]); i++);
	if (!fd) {
		buf[i] = '0';
		buf[i+1] = 0;
		return;
	}
	for (j=fd; j; j/=10, i++);
	buf[i] = 0;
	for (; fd; fd/=10) buf[--i] = '0' + fd%10;
}
debug log:

solving bfa3e7e5 ...
found bfa3e7e5 in https://inbox.vuxu.org/musl/PR0P264MB3191EA10EDBC732AE1D6D5E6F74A9@PR0P264MB3191.FRAP264.PROD.OUTLOOK.COM/ ||
	https://inbox.vuxu.org/musl/1688401586.hkqjuyrd3s.none@localhost/
found fd7306ab in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 fd7306ab69a821746cfa58a376c7344bea6a8c39	src/internal/procfdname.c

applying [1/2] https://inbox.vuxu.org/musl/PR0P264MB3191EA10EDBC732AE1D6D5E6F74A9@PR0P264MB3191.FRAP264.PROD.OUTLOOK.COM/
diff --git a/src/internal/procfdname.c b/src/internal/procfdname.c
index fd7306ab..bfa3e7e5 100644

error: corrupt patch at line 6

git apply error: exit status=128
trying https://inbox.vuxu.org/musl/1688401586.hkqjuyrd3s.none@localhost/

applying [2/2] https://inbox.vuxu.org/musl/1688401586.hkqjuyrd3s.none@localhost/
diff --git a/src/internal/procfdname.c b/src/internal/procfdname.c
index fd7306ab..bfa3e7e5 100644

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

index at:
100644 bfa3e7e5b1c2759ce567ede503619dcb70b4773f	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).