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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
#include <spawn.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 (FA_CNT_MAX - fa->fa_cnt < 2)
		if (__faexpand(fa, 0) != 0) return ENOMEM;
	fa->fa_ops[fa->fa_cnt++] = fd;
	fa->fa_ops[fa->fa_cnt++] = -FDOP_FCHDIR;
	return 0;
}
debug log:

solving fe248a5d ...
found fe248a5d in https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@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/1] https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_addfchdir.c b/src/process/posix_spawn_file_actions_addfchdir.c
index e89ede8c..fe248a5d 100644

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

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