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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include <spawn.h>
#include <stdlib.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 (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]++] = srcfd;
	return 0;
}
debug log:

solving b2945f56 ...
found b2945f56 in https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/ ||
	https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.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/2] https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_adddup2.c b/src/process/posix_spawn_file_actions_adddup2.c
index addca4d4..b2945f56 100644

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

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