OpenBSD manual page server

Manual Page Search Parameters

POSIX_SPAWNATTR_GETPGROUP(3) Library Functions Manual POSIX_SPAWNATTR_GETPGROUP(3)

posix_spawnattr_getpgroup, posix_spawnattr_getschedparam, posix_spawnattr_getschedpolicy, posix_spawnattr_getsigdefault, posix_spawnattr_getsigmask, posix_spawnattr_setpgroup, posix_spawnattr_setschedparam, posix_spawnattr_setschedpolicy, posix_spawnattr_setsigdefault, posix_spawnattr_setsigmaskget and set misc attributes of a posix_spawn attributes object

#include <spawn.h>

int
posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr, pid_t *restrict pgroup);

int
posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict attr, struct sched_param *restrict schedparam);

int
posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict attr, int *restrict schedpolicy);

int
posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigdefault);

int
posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigmask);

int
posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);

int
posix_spawnattr_setschedparam(posix_spawnattr_t *attr, const struct sched_param *restrict schedparam);

int
posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr, int schedpolicy);

int
posix_spawnattr_setsigdefault(posix_spawnattr_t *attr, const sigset_t *restrict sigdefault);

int
posix_spawnattr_setsigmask(posix_spawnattr_t *attr, const sigset_t *restrict sigmask);

The () functions obtain the value of the corresponding attribute from the attributes object referenced by attr.

The () functions set the value of the corresponding attribute in the attributes object referenced by attr.

See posix_spawnattr_getflags(3) for attribute details.

Those functions return 0.

posix_spawn(3), posix_spawnattr_init(3), sigaddset(3)

These functions conform to IEEE Std 1003.1-2001 (“POSIX.1”).

Ed Schouten <‍ed@FreeBSD.org>

May 29, 2017 OpenBSD-current