/usr/include
NameSizeModeActions
arpa/-0755rm
asm/-0755rm
asm-generic/-0755rm
bits/-0755rm
bsock/-0755rm
c++/-0755rm
curl/-0755rm
drm/-0755rm
et/-0755rm
finclude/-0755rm
fwctl/-0755rm
gdb/-0755rm
gnu/-0755rm
gssapi/-0755rm
gssrpc/-0755rm
kadm5/-0755rm
krb5/-0755rm
libxml2/-0755rm
linux/-0755rm
lzma/-0755rm
misc/-0755rm
mtd/-0755rm
net/-0755rm
netash/-0755rm
netatalk/-0755rm
netax25/-0755rm
neteconet/-0755rm
netinet/-0755rm
netipx/-0755rm
netiucv/-0755rm
netpacket/-0755rm
netrom/-0755rm
netrose/-0755rm
nfs/-0755rm
nghttp2/-0755rm
offload/-0755rm
openssl/-0755rm
pcp/-0755rm
protocols/-0755rm
python3.9/-0755rm
rdma/-0755rm
rpc/-0755rm
sasl/-0755rm
scsi/-0755rm
selinux/-0755rm
sepol/-0755rm
sound/-0755rm
sys/-0755rm
video/-0755rm
xen/-0755rm
a.out.h43510644editdlrm
aio.h77380644editdlrm
aliases.h20280644editdlrm
alloca.h12030644editdlrm
ar.h17310644editdlrm
argp.h255480644editdlrm
argz.h60510644editdlrm
assert.h45620644editdlrm
byteswap.h14490644editdlrm
complex.h81400644editdlrm
com_err.h21180644editdlrm
cpio.h22680644editdlrm
cpuidle.h9310644editdlrm
crypt.h111600644editdlrm
ctype.h109690644editdlrm
dirent.h126170644editdlrm
dlfcn.h88020644editdlrm
elf.h1825420644editdlrm
endian.h22990644editdlrm
envz.h28670644editdlrm
err.h23410644editdlrm
errno.h16790644editdlrm
error.h24160644editdlrm
execinfo.h15230644editdlrm
fcntl.h114420644editdlrm
features-time64.h14040644editdlrm
features.h181160644editdlrm
fenv.h57880644editdlrm
FlexLexer.h68930644editdlrm
fmtmsg.h32400644editdlrm
fnmatch.h22960644editdlrm
fpu_control.h35840644editdlrm
fstab.h31110644editdlrm
fts.h95790644editdlrm
ftw.h63430644editdlrm
gconv.h42110644editdlrm
gelf.h114060644editdlrm
GeoIP.h178350644editdlrm
GeoIPCity.h22980644editdlrm
getopt.h14690644editdlrm
glob.h72990644editdlrm
gnu-versions.h23430644editdlrm
gnumake.h29120644editdlrm
grp.h66870644editdlrm
gshadow.h45290644editdlrm
gssapi.h1810644editdlrm
iconv.h18580644editdlrm
idn2.h138910644editdlrm
ieee754.h49160644editdlrm
ifaddrs.h28410644editdlrm
inttypes.h83370644editdlrm
kdb.h643330644editdlrm
keyutils.h117960644editdlrm
krad.h89330644editdlrm
krb5.h4020644editdlrm
langinfo.h178490644editdlrm
lastlog.h1260644editdlrm
lauxlib.h93140644editdlrm
lber.h154800644editdlrm
lber_types.h14680644editdlrm
ldap.h741000644editdlrm
ldap_cdefs.h94660644editdlrm
ldap_features.h15850644editdlrm
ldap_schema.h94500644editdlrm
ldap_utf8.h34680644editdlrm
ldif.h47930644editdlrm
libelf.h207950644editdlrm
libgen.h13860644editdlrm
libintl.h45800644editdlrm
liblsapi-sha1.h5690644editdlrm
libpsl.h57920644editdlrm
libssh2.h606650644editdlrm
libssh2_publickey.h49420644editdlrm
libssh2_sftp.h173690644editdlrm
limits.h57060644editdlrm
link.h78010644editdlrm
locale.h76750644editdlrm
lsapidef.h48890644editdlrm
lscapi.h252290644editdlrm
lscapi_config.h5990644editdlrm
lua.h158180644editdlrm
lua.hpp1910644editdlrm
luaconf-x86_64.h215180644editdlrm
luaconf.h16550644editdlrm
lualib.h11160644editdlrm
lzma.h98660644editdlrm
malloc.h59120644editdlrm
math.h487730644editdlrm
mcheck.h24350644editdlrm
memory.h9560644editdlrm
mntent.h33590644editdlrm
monetary.h19660644editdlrm
mqueue.h46030644editdlrm
mysql-0editdlrm
netdb.h284610644editdlrm
nlist.h16010644editdlrm
nl_types.h17530644editdlrm
nss.h144080644editdlrm
obstack.h213070644editdlrm
openldap.h9640644editdlrm
paths.h29770644editdlrm
pcre2.h472570644editdlrm
pcre2posix.h66770644editdlrm
poll.h220644editdlrm
powercap.h16600644editdlrm
printf.h68750644editdlrm
proc_service.h34770644editdlrm
profile.h121540644editdlrm
pthread.h485240644editdlrm
pty.h15700644editdlrm
pwd.h63170644editdlrm
regex.h259040644editdlrm
regexp.h14480644editdlrm
resolv.h123870644editdlrm
re_comp.h9630644editdlrm
sched.h50380644editdlrm
search.h54500644editdlrm
semaphore.h34640644editdlrm
setjmp.h31900644editdlrm
sgtty.h13440644editdlrm
shadow.h54720644editdlrm
signal.h130400644editdlrm
slapi-plugin.h383520644editdlrm
spawn.h82970644editdlrm
stab.h2640644editdlrm
stdc-predef.h22900644editdlrm
stdint.h84740644editdlrm
stdio.h314110644editdlrm
stdio_ext.h28000644editdlrm
stdlib.h363160644editdlrm
string.h194590644editdlrm
strings.h47530644editdlrm
syscall.h250644editdlrm
sysexits.h52320644editdlrm
syslog.h240644editdlrm
tar.h37860644editdlrm
termio.h2140644editdlrm
termios.h35990644editdlrm
tgmath.h401800644editdlrm
threads.h76860644editdlrm
thread_db.h160240644editdlrm
time.h148480644editdlrm
ttyent.h24940644editdlrm
uchar.h20020644editdlrm
ucontext.h20370644editdlrm
ulimit.h15840644editdlrm
unistd.h444890644editdlrm
utime.h19050644editdlrm
utmp.h32230644editdlrm
utmpx.h41000644editdlrm
values.h19560644editdlrm
verto-module.h66400644editdlrm
verto.h194370644editdlrm
wait.h220644editdlrm
wchar.h321420644editdlrm
wctype.h55490644editdlrm
wordexp.h25020644editdlrm
zconf.h162620644editdlrm
zdict.h264330644editdlrm
zlib.h962610644editdlrm
zstd.h1713780644editdlrm
zstd_errors.h45320644editdlrm
Edit: /usr/include/spawn.h (8297B)
/* Definitions for POSIX spawn interface. Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _SPAWN_H #define _SPAWN_H 1 #include #include #include #include /* Data structure to contain attributes for thread creation. */ typedef struct { short int __flags; pid_t __pgrp; sigset_t __sd; sigset_t __ss; struct sched_param __sp; int __policy; int __pad[16]; } posix_spawnattr_t; /* Data structure to contain information about the actions to be performed in the new process with respect to file descriptors. */ typedef struct { int __allocated; int __used; struct __spawn_action *__actions; int __pad[16]; } posix_spawn_file_actions_t; /* Flags to be set in the `posix_spawnattr_t'. */ #define POSIX_SPAWN_RESETIDS 0x01 #define POSIX_SPAWN_SETPGROUP 0x02 #define POSIX_SPAWN_SETSIGDEF 0x04 #define POSIX_SPAWN_SETSIGMASK 0x08 #define POSIX_SPAWN_SETSCHEDPARAM 0x10 #define POSIX_SPAWN_SETSCHEDULER 0x20 #ifdef __USE_GNU # define POSIX_SPAWN_USEVFORK 0x40 # define POSIX_SPAWN_SETSID 0x80 #endif __BEGIN_DECLS /* Spawn a new process executing PATH with the attributes describes in *ATTRP. Before running the process perform the actions described in FILE-ACTIONS. This function is a possible cancellation point and therefore not marked with __THROW. */ extern int posix_spawn (pid_t *__restrict __pid, const char *__restrict __path, const posix_spawn_file_actions_t *__restrict __file_actions, const posix_spawnattr_t *__restrict __attrp, char *const __argv[__restrict_arr], char *const __envp[__restrict_arr]) __nonnull ((2, 5)); /* Similar to `posix_spawn' but search for FILE in the PATH. This function is a possible cancellation point and therefore not marked with __THROW. */ extern int posix_spawnp (pid_t *__pid, const char *__file, const posix_spawn_file_actions_t *__file_actions, const posix_spawnattr_t *__attrp, char *const __argv[], char *const __envp[]) __nonnull ((2, 5)); /* Initialize data structure with attributes for `spawn' to default values. */ extern int posix_spawnattr_init (posix_spawnattr_t *__attr) __THROW __nonnull ((1)); /* Free resources associated with ATTR. */ extern int posix_spawnattr_destroy (posix_spawnattr_t *__attr) __THROW __nonnull ((1)); /* Store signal mask for signals with default handling from ATTR in SIGDEFAULT. */ extern int posix_spawnattr_getsigdefault (const posix_spawnattr_t * __restrict __attr, sigset_t *__restrict __sigdefault) __THROW __nonnull ((1, 2)); /* Set signal mask for signals with default handling in ATTR to SIGDEFAULT. */ extern int posix_spawnattr_setsigdefault (posix_spawnattr_t *__restrict __attr, const sigset_t *__restrict __sigdefault) __THROW __nonnull ((1, 2)); /* Store signal mask for the new process from ATTR in SIGMASK. */ extern int posix_spawnattr_getsigmask (const posix_spawnattr_t *__restrict __attr, sigset_t *__restrict __sigmask) __THROW __nonnull ((1, 2)); /* Set signal mask for the new process in ATTR to SIGMASK. */ extern int posix_spawnattr_setsigmask (posix_spawnattr_t *__restrict __attr, const sigset_t *__restrict __sigmask) __THROW __nonnull ((1, 2)); /* Get flag word from the attribute structure. */ extern int posix_spawnattr_getflags (const posix_spawnattr_t *__restrict __attr, short int *__restrict __flags) __THROW __nonnull ((1, 2)); /* Store flags in the attribute structure. */ extern int posix_spawnattr_setflags (posix_spawnattr_t *_attr, short int __flags) __THROW __nonnull ((1)); /* Get process group ID from the attribute structure. */ extern int posix_spawnattr_getpgroup (const posix_spawnattr_t *__restrict __attr, pid_t *__restrict __pgroup) __THROW __nonnull ((1, 2)); /* Store process group ID in the attribute structure. */ extern int posix_spawnattr_setpgroup (posix_spawnattr_t *__attr, pid_t __pgroup) __THROW __nonnull ((1)); /* Get scheduling policy from the attribute structure. */ extern int posix_spawnattr_getschedpolicy (const posix_spawnattr_t * __restrict __attr, int *__restrict __schedpolicy) __THROW __nonnull ((1, 2)); /* Store scheduling policy in the attribute structure. */ extern int posix_spawnattr_setschedpolicy (posix_spawnattr_t *__attr, int __schedpolicy) __THROW __nonnull ((1)); /* Get scheduling parameters from the attribute structure. */ extern int posix_spawnattr_getschedparam (const posix_spawnattr_t * __restrict __attr, struct sched_param *__restrict __schedparam) __THROW __nonnull ((1, 2)); /* Store scheduling parameters in the attribute structure. */ extern int posix_spawnattr_setschedparam (posix_spawnattr_t *__restrict __attr, const struct sched_param * __restrict __schedparam) __THROW __nonnull ((1, 2)); /* Initialize data structure for file attribute for `spawn' call. */ extern int posix_spawn_file_actions_init (posix_spawn_file_actions_t * __file_actions) __THROW __nonnull ((1)); /* Free resources associated with FILE-ACTIONS. */ extern int posix_spawn_file_actions_destroy (posix_spawn_file_actions_t * __file_actions) __THROW __nonnull ((1)); /* Add an action to FILE-ACTIONS which tells the implementation to call `open' for the given file during the `spawn' call. */ extern int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t * __restrict __file_actions, int __fd, const char *__restrict __path, int __oflag, mode_t __mode) __THROW __nonnull ((1, 3)); /* Add an action to FILE-ACTIONS which tells the implementation to call `close' for the given file descriptor during the `spawn' call. */ extern int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t * __file_actions, int __fd) __THROW __nonnull ((1)); /* Add an action to FILE-ACTIONS which tells the implementation to call `dup2' for the given file descriptors during the `spawn' call. */ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t * __file_actions, int __fd, int __newfd) __THROW __nonnull ((1)); #ifdef __USE_MISC /* Add an action changing the directory to PATH during spawn. This affects the subsequent file actions. */ extern int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t * __restrict __actions, const char *__restrict __path) __THROW __nonnull ((1, 2)); /* Add an action changing the directory to FD during spawn. This affects the subsequent file actions. FD is not duplicated and must be open when the file action is executed. */ extern int posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *, int __fd) __THROW __nonnull ((1)); /* Add an action to close all file descriptor greater than or equal to FROM during spawn. This affects the subsequent file actions. */ extern int posix_spawn_file_actions_addclosefrom_np (posix_spawn_file_actions_t *, int __from) __THROW __nonnull ((1)); /* Add an action to set the process group of the forground process group associated with the terminal TCFD. */ extern int posix_spawn_file_actions_addtcsetpgrp_np (posix_spawn_file_actions_t *, int __tcfd) __THROW __nonnull ((1)); #endif /* __USE_MISC */ __END_DECLS #endif /* spawn.h */