mailing list of musl libc
 help / color / mirror / code / Atom feed
d83a99b02b038c130de652a628385ec144e54a3e blob 346 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_adddup2(posix_spawn_file_actions_t *fa, int srcfd, int fd)
{
	if (srcfd < 0 || 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++] = srcfd;
	return 0;
}
debug log:

solving d83a99b0 ...
found d83a99b0 in https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@zhasha.com/
found addca4d4 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 addca4d4f0a545159f71569806906c3fda46380a	src/process/posix_spawn_file_actions_adddup2.c

applying [1/1] https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_adddup2.c b/src/process/posix_spawn_file_actions_adddup2.c
index addca4d4..d83a99b0 100644

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

index at:
100644 d83a99b02b038c130de652a628385ec144e54a3e	src/process/posix_spawn_file_actions_adddup2.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).