zoslib
z/OS C/C++ Library
|
#include <spawn.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
Classes | |
struct | _spawn_actions |
struct | _spawn_actions::Open_info |
Macros | |
#define | _POSIX_SOURCE |
Enumerations | |
enum | ActionKinds { op_open , op_close , op_dup2 } |
Functions | |
int | posix_spawn_file_actions_init (posix_spawn_file_actions_t *act) |
void | printActions (const posix_spawn_file_actions_t *act) |
int | posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *act, int pipe_fd) |
int | posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *act, int pipe_fd, const char *path, int flags, mode_t mode) |
int | posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *act, int pipe_fd, int nfd) |
int | posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *act) |
int | posix_spawnattr_init (posix_spawnattr_t *attr) |
int | posix_spawnattr_setsigmask (posix_spawnattr_t *attr, sigset_t *mask) |
int | posix_spawnattr_setflags (posix_spawnattr_t *attr, short flags) |
int | posix_spawnattr_destroy (posix_spawnattr_t *attr) |
int | posix_spawn (pid_t *pid, const char *cmd, const posix_spawn_file_actions_t *act, const posix_spawnattr_t *attr, char *const args[], char *const env[]) |
#define _POSIX_SOURCE |
enum ActionKinds |
int posix_spawn | ( | pid_t * | pid, |
const char * | cmd, | ||
const posix_spawn_file_actions_t * | act, | ||
const posix_spawnattr_t * | attr, | ||
char *const | args[], | ||
char *const | env[] | ||
) |
int posix_spawn_file_actions_addclose | ( | posix_spawn_file_actions_t * | act, |
int | pipe_fd | ||
) |
int posix_spawn_file_actions_adddup2 | ( | posix_spawn_file_actions_t * | act, |
int | pipe_fd, | ||
int | nfd | ||
) |
int posix_spawn_file_actions_addopen | ( | posix_spawn_file_actions_t * | act, |
int | pipe_fd, | ||
const char * | path, | ||
int | flags, | ||
mode_t | mode | ||
) |
int posix_spawn_file_actions_destroy | ( | posix_spawn_file_actions_t * | act | ) |
int posix_spawn_file_actions_init | ( | posix_spawn_file_actions_t * | act | ) |
int posix_spawnattr_destroy | ( | posix_spawnattr_t * | attr | ) |
int posix_spawnattr_init | ( | posix_spawnattr_t * | attr | ) |
int posix_spawnattr_setflags | ( | posix_spawnattr_t * | attr, |
short | flags | ||
) |
int posix_spawnattr_setsigmask | ( | posix_spawnattr_t * | attr, |
sigset_t * | mask | ||
) |
void printActions | ( | const posix_spawn_file_actions_t * | act | ) |