zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions
zos-spawn.cc File Reference
#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[])
 

Macro Definition Documentation

◆ _POSIX_SOURCE

#define _POSIX_SOURCE

Enumeration Type Documentation

◆ ActionKinds

Enumerator
op_open 
op_close 
op_dup2 

Function Documentation

◆ posix_spawn()

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[] 
)

◆ posix_spawn_file_actions_addclose()

int posix_spawn_file_actions_addclose ( posix_spawn_file_actions_t act,
int  pipe_fd 
)

◆ posix_spawn_file_actions_adddup2()

int posix_spawn_file_actions_adddup2 ( posix_spawn_file_actions_t act,
int  pipe_fd,
int  nfd 
)

◆ posix_spawn_file_actions_addopen()

int posix_spawn_file_actions_addopen ( posix_spawn_file_actions_t act,
int  pipe_fd,
const char *  path,
int  flags,
mode_t  mode 
)

◆ posix_spawn_file_actions_destroy()

int posix_spawn_file_actions_destroy ( posix_spawn_file_actions_t act)

◆ posix_spawn_file_actions_init()

int posix_spawn_file_actions_init ( posix_spawn_file_actions_t act)

◆ posix_spawnattr_destroy()

int posix_spawnattr_destroy ( posix_spawnattr_t attr)

◆ posix_spawnattr_init()

int posix_spawnattr_init ( posix_spawnattr_t attr)

◆ posix_spawnattr_setflags()

int posix_spawnattr_setflags ( posix_spawnattr_t attr,
short  flags 
)

◆ posix_spawnattr_setsigmask()

int posix_spawnattr_setsigmask ( posix_spawnattr_t attr,
sigset_t *  mask 
)

◆ printActions()

void printActions ( const posix_spawn_file_actions_t act)