function calls, but instead a "class" of functions like "sigsetops".
Rename to sigaddset", and while at it improve documentation in sigprocmask(2)
to point to it.
ok tedu
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigblock.3,v 1.17 2014/04/07 17:57:56 schwarze Exp $
+.\" $OpenBSD: sigblock.3,v 1.18 2017/05/29 09:40:02 deraadt Exp $
.\"
-.Dd $Mdocdate: April 7 2014 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGBLOCK 3
.Os
.Sh NAME
.Xr sigaction 2 ,
.Xr sigprocmask 2 ,
.Xr sigsetmask 3 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh HISTORY
A
.Fn sigblock
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigsetmask.3,v 1.15 2013/07/17 05:42:10 schwarze Exp $
+.\" $OpenBSD: sigsetmask.3,v 1.16 2017/05/29 09:40:02 deraadt Exp $
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGSETMASK 3
.Os
.Sh NAME
.Xr sigprocmask 2 ,
.Xr sigsuspend 2 ,
.Xr sigblock 3 ,
-.Xr sigsetops 3 ,
+.Xr sigaddset 3 ,
.Xr sigvec 3
.Sh HISTORY
A
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigvec.3,v 1.33 2015/01/15 19:26:27 schwarze Exp $
+.\" $OpenBSD: sigvec.3,v 1.34 2017/05/29 09:40:02 deraadt Exp $
.\"
-.Dd $Mdocdate: January 15 2015 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGVEC 3
.Os
.Sh NAME
.Xr siginterrupt 3 ,
.Xr sigpause 3 ,
.Xr sigsetmask 3 ,
-.Xr sigsetops 3 ,
+.Xr sigaddset 3 ,
.Xr tty 4
.Sh HISTORY
A
-# $OpenBSD: Makefile.inc,v 1.74 2016/05/23 00:18:56 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.75 2017/05/29 09:40:02 deraadt Exp $
# gen sources
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/gen ${LIBCSRCDIR}/gen
psignal.3 pw_dup.3 pwcache.3 raise.3 readpassphrase.3 \
scandir.3 setjmp.3 setmode.3 setproctitle.3 shm_open.3 \
siginterrupt.3 signal.3 \
- sigsetops.3 sleep.3 statvfs.3 sysconf.3 sysctl.3 strtofflags.3 \
+ sigaddset.3 sleep.3 statvfs.3 sysconf.3 sysctl.3 strtofflags.3 \
syslog.3 time.3 times.3 toascii.3 tolower.3 toupper.3 \
ttyname.3 ualarm.3 uname.3 unvis.3 usleep.3 utime.3 valloc.3 vis.3
-.\" $OpenBSD: posix_spawnattr_getpgroup.3,v 1.8 2014/11/30 02:41:43 schwarze Exp $
+.\" $OpenBSD: posix_spawnattr_getpgroup.3,v 1.9 2017/05/29 09:40:02 deraadt Exp $
.\"
.\" Copyright (c) 2012 Marc Espie <espie@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 30 2014 $
+.Dd $Mdocdate: May 29 2017 $
.Dt POSIX_SPAWNATTR_GETPGROUP 3
.Os
.Sh NAME
.Sh SEE ALSO
.Xr posix_spawn 3 ,
.Xr posix_spawnattr_init 3 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh STANDARDS
These functions conform to
.St -p1003.1-2001 .
--- /dev/null
+.\" $OpenBSD: sigaddset.3,v 1.1 2017/05/29 09:40:02 deraadt Exp $
+.\"
+.\" Copyright (c) 1983, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. Neither the name of the University nor the names of its contributors
+.\" may be used to endorse or promote products derived from this software
+.\" without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd $Mdocdate: May 29 2017 $
+.Dt SIGADDSET 3
+.Os
+.Sh NAME
+.Nm sigemptyset ,
+.Nm sigfillset ,
+.Nm sigaddset ,
+.Nm sigdelset ,
+.Nm sigismember
+.Nd manipulate signal sets
+.Sh SYNOPSIS
+.In signal.h
+.Ft int
+.Fn sigemptyset "sigset_t *set"
+.Ft int
+.Fn sigfillset "sigset_t *set"
+.Ft int
+.Fn sigaddset "sigset_t *set" "int signo"
+.Ft int
+.Fn sigdelset "sigset_t *set" "int signo"
+.Ft int
+.Fn sigismember "const sigset_t *set" "int signo"
+.Sh DESCRIPTION
+These functions manipulate signal sets stored in a
+.Fa sigset_t .
+Either
+.Fn sigemptyset
+or
+.Fn sigfillset
+must be called for every object of type
+.Fa sigset_t
+before any other use of the object.
+.Fn sigemptyset
+and
+.Fn sigfillset
+are provided as macros, but actual functions are available
+if their names are undefined (with #undef
+.Ar name ) .
+.Pp
+The
+.Fn sigemptyset
+function initializes a signal set to be empty.
+.Pp
+.Fn sigfillset
+initializes a signal set to contain all signals.
+.Pp
+.Fn sigaddset
+adds the specified signal
+.Fa signo
+to the signal set.
+.Pp
+.Fn sigdelset
+deletes the specified signal
+.Fa signo
+from the signal set.
+.Pp
+.Fn sigismember
+returns whether a specified signal
+.Fa signo
+is contained in the signal set.
+.Sh RETURN VALUES
+The
+.Fn sigismember
+function returns 1
+if the signal is a member of the set and 0 otherwise.
+The other functions return 0 upon success.
+A \-1 return value
+indicates an error occurred and the global variable
+.Va errno
+is set to indicate the reason.
+.Sh ERRORS
+These functions may fail if one of the following occurs:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+The specified signal
+.Fa signo
+is not a valid signal number.
+.El
+.Sh SEE ALSO
+.Xr kill 2 ,
+.Xr sigaction 2 ,
+.Xr sigpending 2 ,
+.Xr sigprocmask 2 ,
+.Xr sigsuspend 2
+.Sh STANDARDS
+These functions are defined by
+.St -p1003.1-90 .
+++ /dev/null
-.\" $OpenBSD: sigsetops.3,v 1.12 2015/11/10 23:48:18 jmc Exp $
-.\"
-.\" Copyright (c) 1983, 1991, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.Dd $Mdocdate: November 10 2015 $
-.Dt SIGEMPTYSET 3
-.Os
-.Sh NAME
-.Nm sigemptyset ,
-.Nm sigfillset ,
-.Nm sigaddset ,
-.Nm sigdelset ,
-.Nm sigismember
-.Nd manipulate signal sets
-.Sh SYNOPSIS
-.In signal.h
-.Ft int
-.Fn sigemptyset "sigset_t *set"
-.Ft int
-.Fn sigfillset "sigset_t *set"
-.Ft int
-.Fn sigaddset "sigset_t *set" "int signo"
-.Ft int
-.Fn sigdelset "sigset_t *set" "int signo"
-.Ft int
-.Fn sigismember "const sigset_t *set" "int signo"
-.Sh DESCRIPTION
-These functions manipulate signal sets stored in a
-.Fa sigset_t .
-Either
-.Fn sigemptyset
-or
-.Fn sigfillset
-must be called for every object of type
-.Fa sigset_t
-before any other use of the object.
-.Fn sigemptyset
-and
-.Fn sigfillset
-are provided as macros, but actual functions are available
-if their names are undefined (with #undef
-.Ar name ) .
-.Pp
-The
-.Fn sigemptyset
-function initializes a signal set to be empty.
-.Pp
-.Fn sigfillset
-initializes a signal set to contain all signals.
-.Pp
-.Fn sigaddset
-adds the specified signal
-.Fa signo
-to the signal set.
-.Pp
-.Fn sigdelset
-deletes the specified signal
-.Fa signo
-from the signal set.
-.Pp
-.Fn sigismember
-returns whether a specified signal
-.Fa signo
-is contained in the signal set.
-.Sh RETURN VALUES
-The
-.Fn sigismember
-function returns 1
-if the signal is a member of the set and 0 otherwise.
-The other functions return 0 upon success.
-A \-1 return value
-indicates an error occurred and the global variable
-.Va errno
-is set to indicate the reason.
-.Sh ERRORS
-These functions may fail if one of the following occurs:
-.Bl -tag -width Er
-.It Bq Er EINVAL
-The specified signal
-.Fa signo
-is not a valid signal number.
-.El
-.Sh SEE ALSO
-.Xr kill 2 ,
-.Xr sigaction 2 ,
-.Xr sigpending 2 ,
-.Xr sigprocmask 2 ,
-.Xr sigsuspend 2
-.Sh STANDARDS
-These functions are defined by
-.St -p1003.1-90 .
-.\" $OpenBSD: sigaction.2,v 1.72 2015/10/11 09:51:26 guenther Exp $
+.\" $OpenBSD: sigaction.2,v 1.73 2017/05/29 09:40:02 deraadt Exp $
.\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\"
.\" @(#)sigaction.2 8.2 (Berkeley) 4/3/94
.\"
-.Dd $Mdocdate: October 11 2015 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGACTION 2
.Os
.Sh NAME
.Dv SA_NOCLDWAIT
flag (described below) is implied.
.Pp
+The signal mask
+.Fa sa_mask
+is typically manipulated using the
+.Xr sigaddset 3
+family of functions.
+.Pp
Options may be specified by setting
.Fa sa_flags .
The meaning of the various bits is as follows:
.Xr setjmp 3 ,
.Xr sigblock 3 ,
.Xr sigpause 3 ,
-.Xr sigsetops 3 ,
+.Xr sigaddset 3 ,
.Xr sigvec 3 ,
.Xr tty 4
.Sh STANDARDS
-.\" $OpenBSD: sigpending.2,v 1.7 2015/05/31 23:54:25 schwarze Exp $
+.\" $OpenBSD: sigpending.2,v 1.8 2017/05/29 09:40:02 deraadt Exp $
.\" $NetBSD: sigpending.2,v 1.2 1995/02/27 12:37:26 cgd Exp $
.\"
.\" Copyright (c) 1993
.\"
.\" @(#)sigpending.2 8.3 (Berkeley) 1/12/94
.\"
-.Dd $Mdocdate: May 31 2015 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGPENDING 2
.Os
.Sh NAME
.Sh SEE ALSO
.Xr sigaction 2 ,
.Xr sigprocmask 2 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh STANDARDS
The
.Fn sigpending
-.\" $OpenBSD: sigprocmask.2,v 1.12 2017/05/05 02:12:39 millert Exp $
+.\" $OpenBSD: sigprocmask.2,v 1.13 2017/05/29 09:40:02 deraadt Exp $
.\" $NetBSD: sigprocmask.2,v 1.6 1995/02/27 12:37:33 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)sigprocmask.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 5 2017 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGPROCMASK 2
.Os
.Sh NAME
.Xr sigaction 2 ,
.Xr sigpending 2 ,
.Xr sigsuspend 2 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh STANDARDS
The
.Fn sigprocmask
-.\" $OpenBSD: sigsuspend.2,v 1.13 2015/05/31 23:54:25 schwarze Exp $
+.\" $OpenBSD: sigsuspend.2,v 1.14 2017/05/29 09:40:02 deraadt Exp $
.\" $NetBSD: sigsuspend.2,v 1.4 1995/02/27 12:37:46 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)sigsuspend.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2015 $
+.Dd $Mdocdate: May 29 2017 $
.Dt SIGSUSPEND 2
.Os
.Sh NAME
.Sh SEE ALSO
.Xr sigaction 2 ,
.Xr sigprocmask 2 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh STANDARDS
The
.Fn sigsuspend
-.\" $OpenBSD: pthread_sigmask.3,v 1.10 2013/06/05 03:44:50 tedu Exp $
+.\" $OpenBSD: pthread_sigmask.3,v 1.11 2017/05/29 09:40:02 deraadt Exp $
.\"
.\"
.\" David Leonard, 1999. Public Domain.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: May 29 2017 $
.Dt PTHREAD_SIGMASK 3
.Os
.Sh NAME
.Xr sigprocmask 2 ,
.Xr sigsuspend 2 ,
.Xr pthreads 3 ,
-.Xr sigsetops 3
+.Xr sigaddset 3
.Sh STANDARDS
.Fn pthread_sigmask
conforms to