NetBSD Problem Report #10072

Received: (qmail 25264 invoked from network); 8 May 2000 13:19:23 -0000
Message-Id: <200005081319.OAA13320@aire.ncl.ac.uk>
Date: Mon, 8 May 2000 14:19:09 +0100 (BST)
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
Reply-To: J.D.Coleman@newcastle.ac.uk
To: gnats-bugs@gnats.netbsd.org, j.d.coleman@ncl.ac.uk
Subject: No description for nanosleep(2)
X-Send-Pr-Version: 3.95

>Number:         10072
>Category:       lib
>Synopsis:       No description for nanosleep(2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    fair
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 08 13:20:00 +0000 2000
>Closed-Date:    Fri Jul 07 05:20:08 +0000 2000
>Last-Modified:  Fri Jul 07 05:20:08 +0000 2000
>Originator:     Julian Coleman
>Release:        -current 2000/May/07
>Organization:
Computing Service, University of Newcastle upon Tyne, UK
>Environment:
System: NetBSD aire.ncl.ac.uk 1.4 NetBSD 1.4 (AIRE) #1: Tue Jun 22 16:34:55 BST 1999 root@aire.ncl.ac.uk:/usr/src-1.4/sys/arch/sparc/compile/AIRE sparc


>Description:
	The description for nanosleep is, um, lacking.
>How-To-Repeat:
	`man nanosleep`
>Fix:
	Suggested patch to the manual page (cribbed from usleep(3)) :

--- nanosleep.2-	Fri Dec  3 12:08:11 1999
+++ nanosleep.2	Mon May  8 14:11:53 2000
@@ -44,7 +44,16 @@
 .Fd #include <time.h>
 .Ft int
 .Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp"
-.\" .Sh DESCRIPTION
+.Sh DESCRIPTION
+The
+.Fn nanosleep
+suspends execution of the calling process until either the number of
+seconds and nanoseconds specified by
+.Fa rqtp
+have elapsed or a signal is delivered to the calling process and its
+action is to invoke a signal catching function or to terminate the
+process.  The suspension time may be longer than requested due to the
+scheduling of other activity by the system.
 .Sh RETURN VALUE
 If the 
 .Fn nanosleep
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: lib-bug-people->fair 
Responsible-Changed-By: fair 
Responsible-Changed-When: Thu Jul 6 12:23:27 PDT 2000 
Responsible-Changed-Why:  
This should be easy to deal with. 
State-Changed-From-To: open->closed 
State-Changed-By: fair 
State-Changed-When: Thu Jul 6 22:19:47 PDT 2000 
State-Changed-Why:  
Patch applied; pull up request submitted. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.