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

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

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

solving c6942fc0 ...
found c6942fc0 in https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/ ||
	https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.zhasha.com/
found 0c2ef8fa in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 0c2ef8fa37985aefbb8f0fe9756c895401950374	src/process/posix_spawn_file_actions_addclose.c

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

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

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