mailing list of musl libc
 help / color / mirror / code / Atom feed
01dc52bd32ee262feabea330a9db9d66744c1a92 blob 472 bytes (raw)

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

int posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *restrict fa, const char *restrict path)
{
	size_t len = strlen(path);
	if (faexpand(fa, len + 1) != 0) return ENOMEM;
	fa->__pad[fa->__pad0[0]++] = INT_MAX;
	fa->__pad[fa->__pad0[0]++] = -FDOP_CHDIR;
	memcpy((posix_spawn_file_actions_t *)fa->__actions + 1, path, len + 1);
	return 0;
}
debug log:

solving 01dc52bd ...
found 01dc52bd in https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.zhasha.com/
found 7f2590ae in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 7f2590ae4e160c2cb4b8672156aff2d3efdd29b9	src/process/posix_spawn_file_actions_addchdir.c

applying [1/1] https://inbox.vuxu.org/musl/Yf152c5ZpA+TY4X+@wirbelwind.zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_addchdir.c b/src/process/posix_spawn_file_actions_addchdir.c
index 7f2590ae..01dc52bd 100644

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

index at:
100644 01dc52bd32ee262feabea330a9db9d66744c1a92	src/process/posix_spawn_file_actions_addchdir.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).