| POSIX_SPAWNATTR_GETFLAGS(3) | Library Functions Manual | POSIX_SPAWNATTR_GETFLAGS(3) |
posix_spawnattr_getflags,
posix_spawnattr_setflags —
get or set flags of a posix_spawn attributes
object
#include
<spawn.h>
int
posix_spawnattr_getflags(const
posix_spawnattr_t *restrict attr,
short *restrict
flags);
int
posix_spawnattr_setflags(posix_spawnattr_t
*attr, short
flags);
The
posix_spawnattr_getflags()
and
posix_spawnattr_setflags()
functions are used to get or set the flags part of a
posix_spawn(3) attribute object referenced by
attr.
Flag values are OR-ed from the following flags:
POSIX_SPAWN_RESETIDSIf the new process is created from a set-user-ID or set-group-ID file, usual execve(2) semantics take precedence.
POSIX_SPAWN_SETPGROUPPOSIX_SPAWN_SETSIGDEFPOSIX_SPAWN_SETSIGMASKPOSIX_SPAWN_SETSCHEDPARAMPOSIX_SPAWN_SETSCHEDULERposix_spawnattr_init(3) initializes this value to no flags set.
Both functions return 0.
Both functions conform to IEEE Std 1003.1-2001 (“POSIX.1”).
Ed Schouten <ed@FreeBSD.org>
| February 22, 2023 | Debian |