Nuke signanosleep()

This commit is contained in:
peter 1998-05-14 11:36:16 +00:00
parent 11444bc03c
commit 4427c496d6
2 changed files with 3 additions and 21 deletions

View File

@ -1,5 +1,5 @@
# @(#)Makefile.inc 8.3 (Berkeley) 10/24/94
# $Id: Makefile.inc,v 1.51 1998/04/30 09:13:48 jb Exp $
# $Id: Makefile.inc,v 1.52 1998/05/01 15:46:06 bde Exp $
# sys sources
.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys ${.CURDIR}/../libc/sys
@ -130,7 +130,6 @@ MLINKS+=intro.2 errno.2
MLINKS+=lseek.2 seek.2
MLINKS+=mlock.2 munlock.2
MLINKS+=mount.2 unmount.2
MLINKS+=nanosleep.2 signanosleep.2
MLINKS+=pathconf.2 fpathconf.2
MLINKS+=read.2 readv.2
MLINKS+=recv.2 recvfrom.2 recv.2 recvmsg.2

View File

@ -1,4 +1,4 @@
.\" $Id: nanosleep.2,v 1.4 1997/09/29 19:11:21 wosch Exp $
.\" $Id: nanosleep.2,v 1.5 1998/05/03 22:50:14 jraynard Exp $
.\" $OpenBSD: nanosleep.2,v 1.1 1997/04/20 20:56:20 tholo Exp $
.\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $
.\"
@ -39,29 +39,17 @@
.Dt NANOSLEEP 2
.Os
.Sh NAME
.Nm nanosleep ,
.Nm signanosleep
.Nm nanosleep
.Sh SYNOPSIS
.Fd #include <time.h>
.Ft int
.Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp"
.Pp
.Fd #include <signal.h>
.Fd #include <time.h>
.Ft int
.Fn signanosleep "const struct timespec *rqtp" "struct timespec *rmtp" "sigset_t *mask"
.Sh DESCRIPTION
.Fn Nanosleep
causes the process to sleep for the specified time. An unmasked signal will
cause it to terminate the sleep early, regardless of the
.Dv SA_RESTART
value on the interrupting signal.
.Pp
The
.Fn signanosleep
function temporarily (and atomically) sets the signal mask of the process
for the duration of the system call so that specific signals can be
nominated to cause an early termination of the sleep.
.Sh RETURN VALUE
If the
.Fn nanosleep
@ -113,8 +101,3 @@ The
.Fn nanosleep
function conforms to
.St -p1003.1b-93 .
.Pp
The
.Fn signanosleep
function is an extension that first appeared in
.Fx 3.0