NAME
ppoossiixxssppaawwnnaattttrrsseettssiiggmmaasskk ppoossiixxssppaawwnnaattttrrggeettssiiggmmaasskk - set or get the
spawn-sigmask attribute on a posixspawnattrt
SYNOPSIS
##iinncclluuddee <
int ppoossiixxssppaawwnnaattttrrsseettssiiggmmaasskk(posixspawnattrt *restrict attr, const sigsett *restrict sigmask); int ppoossiixxssppaawwnnaattttrrggeettssiiggmmaasskk(const posixspawnattrt *restrict attr, sigsett *restrict sigmask);> DESCRIPTION
The ppoossiixxssppaawwnnaattttrrsseettssiiggmmaasskk() function sets the sigmask on the attributes object referenced by attr. The ppoossiixxssppaawwnnaattttrrggeettssiiggmmaasskk() function retrieves the sigmask on the attributes object referenced by attr. The argument sigmask is the initial signal mask to be set for the new process on creation if the POSIXSPAWNSETSIGMASK flag is set in the posixspawnattrt. It's default value must be set via a call to posixspawnattrsetflags(3) or the behaviour is undefined.RETURN VALUES
On success, these functions return 0; on failure they return an error number from. Additionally, if successful, ppoossiixxssppaawwnnaattttrrggeettssiiggmmaasskk() will modify the contents of the sigmask parameter with the current attribute value. EERRRROORRSS These functions may fail if: [EINVAL] The value specified by attr is invalid. [EINVAL] The value of attr is invalid. SEE ALSO
posixspawn(2), posixspawnp(2), posixspawnattrinit(3), posixspawnattrdestroy(3), posixspawnattrsetflags(3) STANDARDS Version 3 of the Single UNIX Specification (``SUSv3'') [SPN] HISTORYThe ppoossiixxssppaawwnnaattttrrsseettssiiggmmaasskk() and ppoossiixxssppaawwnnaattttrrggeettssiiggmmaasskk() func-
tion calls appeared in Version 3 of the Single UNIX Specification (``SUSv3'') [SPN]. Mac OS X August 22, 2007 Mac OS X