zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
spawn.h
Go to the documentation of this file.
1
8
9#ifndef ZOS_SPAWN_H
10#define ZOS_SPAWN_H
11
12#include "zos-macros.h"
13
14#include_next <spawn.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#define POSIX_SPAWN_SETPGROUP 0x02
21#define POSIX_SPAWN_SETSIGMASK 0x08
22#define POSIX_SPAWN_USEVFORK 0x40
23#define POSIX_SPAWN_SETSIGDEF 0x01
24#define POSIX_SPAWN_SETSCHEDPARAM 0x04
25#define POSIX_SPAWN_SETSCHEDULER 0x10
26#define POSIX_SPAWN_RESETIDS 0x20
27
31
32typedef struct posix_spawnattr_t {
33 sigset_t *mask;
34 short flags;
36
39 int pipe_fd);
41 const char *, int flags, mode_t);
43 int fd);
45
50
51__Z_EXPORT int posix_spawn(pid_t *pid, const char *cmd,
53 const posix_spawnattr_t *, char *const args[],
54 char *const env[]);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
__Z_EXPORT int posix_spawn_file_actions_init(posix_spawn_file_actions_t *)
Definition zos-spawn.cc:34
__Z_EXPORT int posix_spawnattr_setsigmask(posix_spawnattr_t *, sigset_t *mask)
Definition zos-spawn.cc:154
__Z_EXPORT int posix_spawnattr_destroy(posix_spawnattr_t *)
Definition zos-spawn.cc:170
__Z_EXPORT int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *, int, const char *, int flags, mode_t)
Definition zos-spawn.cc:99
__Z_EXPORT int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *)
Definition zos-spawn.cc:132
__Z_EXPORT int posix_spawnattr_init(posix_spawnattr_t *)
Definition zos-spawn.cc:146
__Z_EXPORT int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int pipe_fd, int fd)
Definition zos-spawn.cc:116
__Z_EXPORT int posix_spawnattr_setflags(posix_spawnattr_t *, short flags)
Definition zos-spawn.cc:162
__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[])
Definition zos-spawn.cc:176
__Z_EXPORT int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int pipe_fd)
Definition zos-spawn.cc:83
int mode_t
Definition stat.h:14
Definition zos-spawn.cc:19
Definition spawn.h:28
struct _spawn_actions * actions
Definition spawn.h:29
Definition spawn.h:32
sigset_t * mask
Definition spawn.h:33
short flags
Definition spawn.h:34
#define __Z_EXPORT
Definition zos-macros.h:13