12#define pipe(fds) _pipe(fds, 4096, O_BINARY | O_NOINHERIT)
18 int which =
wr ? 0 : 1;
19 const char *dir =
wr ?
"w" :
"r";
43 if (
state->pid == -1) {
int G_spawn_ex(const char *command,...)
Spawn new process based on command.
Header file for msvc/fcntl.c.
void G_popen_close(struct Popen *state)
void G_popen_clear(struct Popen *state)
FILE * G_popen_read(struct Popen *state, const char *program, const char **args)
FILE * G_popen_write(struct Popen *state, const char *program, const char **args)
#define SF_CLOSE_DESCRIPTOR
#define SF_REDIRECT_DESCRIPTOR