zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
spawn.h File Reference
#include "zos-macros.h"

Go to the source code of this file.

Classes

struct  posix_spawn_file_actions_t
 
struct  posix_spawnattr_t
 

Macros

#define POSIX_SPAWN_SETPGROUP   0x02
 
#define POSIX_SPAWN_SETSIGMASK   0x08
 
#define POSIX_SPAWN_USEVFORK   0x40
 
#define POSIX_SPAWN_SETSIGDEF   0x01
 
#define POSIX_SPAWN_SETSCHEDPARAM   0x04
 
#define POSIX_SPAWN_SETSCHEDULER   0x10
 
#define POSIX_SPAWN_RESETIDS   0x20
 

Typedefs

typedef struct posix_spawn_file_actions_t posix_spawn_file_actions_t
 
typedef struct posix_spawnattr_t posix_spawnattr_t
 

Functions

__Z_EXPORT int posix_spawn_file_actions_init (posix_spawn_file_actions_t *)
 
__Z_EXPORT int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *, int pipe_fd)
 
__Z_EXPORT int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *, int, const char *, int flags, mode_t)
 
__Z_EXPORT int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *, int pipe_fd, int fd)
 
__Z_EXPORT int posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *)
 
__Z_EXPORT int posix_spawnattr_init (posix_spawnattr_t *)
 
__Z_EXPORT int posix_spawnattr_setsigmask (posix_spawnattr_t *, sigset_t *mask)
 
__Z_EXPORT int posix_spawnattr_setflags (posix_spawnattr_t *, short flags)
 
__Z_EXPORT int posix_spawnattr_destroy (posix_spawnattr_t *)
 
__Z_EXPORT int posix_spawn (pid_t *pid, const char *cmd, const posix_spawn_file_actions_t *act, const posix_spawnattr_t *, char *const args[], char *const env[])
 

Macro Definition Documentation

◆ POSIX_SPAWN_RESETIDS

#define POSIX_SPAWN_RESETIDS   0x20

◆ POSIX_SPAWN_SETPGROUP

#define POSIX_SPAWN_SETPGROUP   0x02

◆ POSIX_SPAWN_SETSCHEDPARAM

#define POSIX_SPAWN_SETSCHEDPARAM   0x04

◆ POSIX_SPAWN_SETSCHEDULER

#define POSIX_SPAWN_SETSCHEDULER   0x10

◆ POSIX_SPAWN_SETSIGDEF

#define POSIX_SPAWN_SETSIGDEF   0x01

◆ POSIX_SPAWN_SETSIGMASK

#define POSIX_SPAWN_SETSIGMASK   0x08

◆ POSIX_SPAWN_USEVFORK

#define POSIX_SPAWN_USEVFORK   0x40

Typedef Documentation

◆ posix_spawn_file_actions_t

◆ posix_spawnattr_t

Function Documentation

◆ posix_spawn()

__Z_EXPORT 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()

__Z_EXPORT int posix_spawn_file_actions_addclose ( posix_spawn_file_actions_t act,
int  pipe_fd 
)

◆ posix_spawn_file_actions_adddup2()

__Z_EXPORT int posix_spawn_file_actions_adddup2 ( posix_spawn_file_actions_t act,
int  pipe_fd,
int  fd 
)

◆ posix_spawn_file_actions_addopen()

__Z_EXPORT 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()

__Z_EXPORT int posix_spawn_file_actions_destroy ( posix_spawn_file_actions_t act)

◆ posix_spawn_file_actions_init()

__Z_EXPORT int posix_spawn_file_actions_init ( posix_spawn_file_actions_t act)

◆ posix_spawnattr_destroy()

__Z_EXPORT int posix_spawnattr_destroy ( posix_spawnattr_t attr)

◆ posix_spawnattr_init()

__Z_EXPORT int posix_spawnattr_init ( posix_spawnattr_t attr)

◆ posix_spawnattr_setflags()

__Z_EXPORT int posix_spawnattr_setflags ( posix_spawnattr_t attr,
short  flags 
)

◆ posix_spawnattr_setsigmask()

__Z_EXPORT int posix_spawnattr_setsigmask ( posix_spawnattr_t attr,
sigset_t *  mask 
)