Module Name:    src
Committed By:   martin
Date:           Sat Jul 20 15:19:39 UTC 2024

Modified Files:
        src/lib/libc/gen [netbsd-10]: usleep.3

Log Message:
Pull up following revision(s) (requested by rin in ticket #751):

        lib/libc/gen/usleep.3: revision 1.22

usleep(3): Note the historical rake that was stepped upon.
PR 58184


To generate a diff of this commit:
cvs rdiff -u -r1.19.56.1 -r1.19.56.2 src/lib/libc/gen/usleep.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/usleep.3
diff -u src/lib/libc/gen/usleep.3:1.19.56.1 src/lib/libc/gen/usleep.3:1.19.56.2
--- src/lib/libc/gen/usleep.3:1.19.56.1	Sun Apr 28 13:23:20 2024
+++ src/lib/libc/gen/usleep.3	Sat Jul 20 15:19:39 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: usleep.3,v 1.19.56.1 2024/04/28 13:23:20 martin Exp $
+.\"	$NetBSD: usleep.3,v 1.19.56.2 2024/07/20 15:19:39 martin Exp $
 .\"
 .\" Copyright (c) 1986, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -99,3 +99,17 @@ The
 .Fn usleep
 function appeared in
 .Bx 4.3 .
+.Sh CAVEATS
+In
+.St -p1003.1-2004 ,
+.Nm
+was limited to values of
+.Fa microseconds
+less than one million.
+Some implementations, including
+.Nx
+before 10.1, fail immediately with
+.Er EINVAL
+\(em and don't sleep at all \(em if
+.Fa microseconds
+is one million or greater.

Reply via email to