From 4427c496d6d16348240387c8ff99d6585dcd9ef2 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 14 May 1998 11:36:16 +0000 Subject: Nuke signanosleep() --- lib/libc/sys/Makefile.inc | 3 +-- lib/libc/sys/nanosleep.2 | 21 ++------------------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index d392705..69b31d6 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -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 diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2 index c169604..ae1b384 100644 --- a/lib/libc/sys/nanosleep.2 +++ b/lib/libc/sys/nanosleep.2 @@ -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 .Ft int .Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp" -.Pp -.Fd #include -.Fd #include -.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 -- cgit v1.1