]>
git.saurik.com Git - apple/xnu.git/blob - tests/subsystem_root_path.h
1d58db7b7ebde157ed60b5be40497b7087baf37c
5 #define SUBSYSTEM_ROOT_PATH_KEY "subsystem_root_path"
7 #define HELPER_BEHAVIOR_NOT_SET "not_set"
8 #define HELPER_BEHAVIOR_SET "set"
9 #define HELPER_BEHAVIOR_FORK_EXEC "fork_exec"
10 #define HELPER_BEHAVIOR_SPAWN "spawn"
13 _spawn_and_wait(char ** args
, posix_spawnattr_t
*attr
)
18 if (posix_spawn(&pid
, args
[0], NULL
, attr
, args
, NULL
)) {
21 if (waitpid(pid
, &status
, 0) < 0) {
25 if (WIFEXITED(status
) && (WEXITSTATUS(status
) == 0)) {