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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include <spawn.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "fdop.h"

int posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t *fa, int fd)
{
	if (fd < 0) return EBADF;
	if (sizeof(fa->__pad)/sizeof(*fa->__pad) - fa->__pad0[0] < 2)
		if (faexpand(fa, 0) != 0) return ENOMEM;
	fa->__pad[fa->__pad0[0]++] = fd;
	fa->__pad[fa->__pad0[0]++] = -FDOP_FCHDIR;
	return 0;
}
debug log:

solving a62a35fa ...
found a62a35fa in https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/ ||
	https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.zhasha.com/
found e89ede8c in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 e89ede8c3c47acae29c9f1e177d608037668f4b1	src/process/posix_spawn_file_actions_addfchdir.c

applying [1/2] https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_addfchdir.c b/src/process/posix_spawn_file_actions_addfchdir.c
index e89ede8c..a62a35fa 100644

Checking patch src/process/posix_spawn_file_actions_addfchdir.c...
Applied patch src/process/posix_spawn_file_actions_addfchdir.c cleanly.

skipping https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.zhasha.com/ for a62a35fa
index at:
100644 a62a35fa4a1779d99b2fc448aa330150136671b6	src/process/posix_spawn_file_actions_addfchdir.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).