#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <fcntl.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>#include "octave-popen2.h"Go to the source code of this file.
Macros | |
| #define | OCTAVE_CHILD_FAILURE 129 |
Functions | |
| pid_t | octave_popen2 (const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg) |
| #define OCTAVE_CHILD_FAILURE 129 |
Definition at line 184 of file octave-popen2.c.
| pid_t octave_popen2 | ( | const char * | cmd, |
| char *const * | args, | ||
| bool | sync_mode, | ||
| int * | fildes, | ||
| const char ** | errmsg | ||
| ) |
Definition at line 187 of file octave-popen2.c.
References dup2(), execvp(), fcntl(), fork(), OCTAVE_CHILD_FAILURE, pipe(), STDIN_FILENO, waitpid(), and WNOHANG.
Referenced by popen2().