'\" te .\" Copyright 1989 AT&T. Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. .TH sigsetops 3C "19 Dec 2003" "SunOS 5.11" "Standard C Library Functions" .SH NAME sigsetops, sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- manipulate sets of signals .SH SYNOPSIS .LP .nf #include \fBint\fR \fBsigemptyset\fR(\fBsigset_t *\fR\fIset\fR); .fi .LP .nf \fBint\fR \fBsigfillset\fR(\fBsigset_t *\fR\fIset\fR); .fi .LP .nf \fBint\fR \fBsigaddset\fR(\fBsigset_t *\fR\fIset\fR, \fBint\fR \fIsigno\fR); .fi .LP .nf \fBint\fR \fBsigdelset\fR(\fBsigset_t *\fR\fIset\fR, \fBint\fR \fIsigno\fR); .fi .LP .nf \fBint\fR \fBsigismember\fR(\fBsigset_t *\fR\fIset\fR, \fBint\fR \fIsigno\fR); .fi .SH DESCRIPTION .sp .LP These functions manipulate \fBsigset_t\fR data types, representing the set of signals supported by the implementation. .sp .LP The \fBsigemptyset()\fR function initializes the set pointed to by \fIset\fR to exclude all signals defined by the system. .sp .LP The \fBsigfillset()\fR function initializes the set pointed to by \fIset\fR to include all signals defined by the system. .sp .LP The \fBsigaddset()\fR function adds the individual signal specified by the value of \fIsigno\fR to the set pointed to by \fIset\fR. .sp .LP The \fBsigdelset()\fR function deletes the individual signal specified by the value of \fIsigno\fR from the set pointed to by \fIset\fR. .sp .LP The \fBsigismember()\fR function checks whether the signal specified by the value of \fIsigno\fR is a member of the set pointed to by \fIset\fR. .sp .LP Any object of type \fIsigset_t\fR must be initialized by applying either \fBsigemptyset()\fR or \fBsigfillset()\fR before applying any other operation. .SH RETURN VALUES .sp .LP Upon successful completion, the \fBsigismember()\fR function returns \fB1\fR if the specified signal is a member of the specified set, or \fB0\fR if it is not. .sp .LP Upon successful completion, the other functions return \fB0\fR. Otherwise \fB\(mi1\fR is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS .sp .LP The \fBsigaddset()\fR, \fBsigdelset()\fR, and \fBsigismember()\fR functions will fail if: .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt The value of the \fIsigno\fR argument is not a valid signal number. .RE .sp .LP The \fBsigfillset()\fR function will fail if: .sp .ne 2 .mk .na \fB\fBEFAULT\fR\fR .ad .RS 10n .rt The \fIset\fR argument specifies an invalid address. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelAsync-Signal-Safe _ StandardSee \fBstandards\fR(5). .TE .SH SEE ALSO .sp .LP \fBsigaction\fR(2), \fBsigpending\fR(2), \fBsigprocmask\fR(2), \fBsigsuspend\fR(2), \fBsignal.h\fR(3HEAD), \fBattributes\fR(5), \fBstandards\fR(5)