POSIX_SPAWNATTR_GETSIGMASK(3)
π POSIX_SPAWNATTR_GETSIGMASK(3) π
okay bestie, this is a Library Functions Manual page for POSIX_SPAWNATTR_GETSIGMASK(3), and the header line says POSIX_SPAWNATTR_GETSIGMA(3) (yes, itβs missing the sk, not me). Weβre covering posix_spawnattr_getsigmask and posix_spawnattr_setsigmask, aka the get-and-set duo for the spawn-sigmask attribute. π
πΈ NAME πΈ
posix_spawnattr_getsigmask, posix_spawnattr_setsigmask β get and set the spawn-sigmask attribute of a spawn attributes object. Thatβs the assignment, bestie. π
π§ LIBRARY π§
Standard C Library (libc, -lc). The classic. π
β¨ SYNOPSIS β¨
#include <spawn.h>
int
posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr,
sigset_t *restrict sigmask);
int
posix_spawnattr_setsigmask(posix_spawnattr_t *attr,
const sigset_t *restrict sigmask);
π¦ DESCRIPTION π¦
Okay so posix_spawnattr_getsigmask() is the getter: it obtains the value of the spawn-sigmask attribute from the attributes object referenced by attr. π«Ά
posix_spawnattr_setsigmask() is the setter bestie: it sets the spawn-sigmask attribute in an initialized attributes object referenced by attr. π
And what even is the spawn-sigmask attribute? It represents the signal mask in effect in the new process image of a spawn operation β but only if POSIX_SPAWN_SETSIGMASK is set in the spawn-flags attribute. The default value of this attribute is unspecified. Thatβs the lore. π
π₯ RETURN VALUES π₯
posix_spawnattr_getsigmask() and posix_spawnattr_setsigmask() return zero. Thatβs it. Zero. No cap. π
π SEE ALSO π
go read these too, theyβre the friend group:
posix_spawn(3)posix_spawnattr_destroy(3)posix_spawnattr_getsigmask(3)posix_spawnattr_init(3)posix_spawnattr_setsigmask(3)posix_spawnp(3)
π STANDARDS π
posix_spawnattr_getsigmask() and posix_spawnattr_setsigmask() conform to IEEE Std 1003.1-2001 (βPOSIX.1β). Periodt. β¨
π HISTORY π
The posix_spawnattr_getsigmask() and posix_spawnattr_setsigmask() functions first appeared in FreeBSD 8.0. Iconic behavior. π¦
π AUTHORS π
Ed Schouten <ed@FreeBSD.org>. Thank you for your service. π«Ά
sign-off: Debian Β· March 24, 2008 Β· POSIX_SPAWNATTR_GETSIGMASK(3) π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
- Copyright (C) 2001-2004 by the Institute of
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms