libc-spawn 0.0.1

Raw bindings to POSIX spawn APIs for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <unistd.h>
#include <spawn.h>

extern char **environ;

char** libc_spawn_helper_environ() {
    return environ;
}

int libc_spawn_helper_try_get_posix_spawn_usevfork(short* val) {
#ifdef POSIX_SPAWN_USEVFORK
    *val = POSIX_SPAWN_USEVFORK;
    return 1;
#else
    return 0;
#endif
}