mailing list of musl libc
 help / color / mirror / code / Atom feed
4b25363c27adb9cdc663c484a61e109b03fff92f blob 575 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
#define FDOP_CLOSE 1
#define FDOP_DUP2 2
#define FDOP_OPEN 3
#define FDOP_CHDIR 4
#define FDOP_FCHDIR 5

#define malloc __libc_malloc
#define calloc __libc_calloc
#define realloc undef
#define free __libc_free

static inline int faexpand(posix_spawn_file_actions_t *fa, size_t str)
{
	posix_spawn_file_actions_t *n, *blk;
	blk = malloc(sizeof(*blk)+str);
	if (!blk) return -1;
	*blk = *fa;
	if (fa->__actions) {
		n = fa->__actions;
		blk->__actions = n->__actions;
		n->__actions = blk;
	} else
		blk->__actions = blk;
	fa->__actions = blk;
	fa->__pad0[0] = 0;
	return 0;
}
debug log:

solving 4b25363c ...
found 4b25363c in https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/
found 7cf733b2 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 7cf733b21dc14ce2708fac19fa46dea87fcdfa9b	src/process/fdop.h

applying [1/1] https://inbox.vuxu.org/musl/YfVEgMUnilYQBbVE@wirbelwind.zhasha.com/
diff --git a/src/process/fdop.h b/src/process/fdop.h
index 7cf733b2..4b25363c 100644

Checking patch src/process/fdop.h...
Applied patch src/process/fdop.h cleanly.

index at:
100644 4b25363c27adb9cdc663c484a61e109b03fff92f	src/process/fdop.h

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).