POSIX_SPAWNATTR_SETSIGMASK(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– 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:

πŸ’œ 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