1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)sigsetops.3 8.1 (Berkeley) 06/04/93 7.\" 8.Dd 9.Dt SIGSETOPS 3 10.Os 11.Sh NAME 12.Nm sigemptyset , 13.Nm sigfillset , 14.Nm sigaddset , 15.Nm sigdelset , 16.Nm sigismember 17.Nd manipulate signal sets 18.Sh SYNOPSIS 19.Fd #include <signal.h> 20.Fn sigemptyset "sigset_t *set" 21.Fn sigfillset "sigset_t *set" 22.Fn sigaddset "sigset_t *set" "int signo" 23.Fn sigdelset "sigset_t *set" "int signo" 24.Fn sigismember "sigset_t *set" "int signo" 25.Sh DESCRIPTION 26These functions manipulate signal sets stored in a 27.Fa sigset_t . 28Either 29.Fn sigemptyset 30or 31.Fn sigfillset 32must be called for every object of type 33.Fa sigset_t 34before any other use of the object. 35.Pp 36The 37.Fn sigemptyset 38function initializes a signal set to be empty. 39.Pp 40The 41.Fn sigfillset 42function initializes a signal set to contain all signals. 43.Pp 44The 45.Fn sigaddset 46function adds the specified signal 47.Fa signo 48to the signal set. 49.Pp 50The 51.Fn sigdelset 52function deletes the specified signal 53.Fa signo 54from the signal set. 55.Pp 56The 57.Fn sigismember 58function returns whether a specified signal 59.Fa signo 60is contained in the signal set. 61.Pp 62These functions 63are provided as macros in the include file <signal.h>. 64Actual functions are available 65if their names are undefined (with #undef 66.Em name ) . 67.Sh RETURN VALUES 68The 69.Fn sigismember 70function returns 1 71if the signal is a member of the set, 720 otherwise. 73The other functions return 0. 74.Sh ERRORS 75Currently no errors are detected. 76.Sh SEE ALSO 77.Xr kill 2 , 78.Xr sigaction 2 , 79.Xr sigsuspend 2 80.Sh STANDARDS 81These functions are defined by 82.St -p1003.1-88 . 83