Module Name: src
Committed By: jruoho
Date: Thu Apr 29 17:29:56 UTC 2010
Modified Files:
src/lib/libc/gen: usleep.3
Log Message:
No more usleep(3) in POSIX; "use nanosleep(2) instead".
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 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.18 src/lib/libc/gen/usleep.3:1.19
--- src/lib/libc/gen/usleep.3:1.18 Thu Aug 7 16:42:59 2003
+++ src/lib/libc/gen/usleep.3 Thu Apr 29 17:29:56 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: usleep.3,v 1.18 2003/08/07 16:42:59 agc Exp $
+.\" $NetBSD: usleep.3,v 1.19 2010/04/29 17:29:56 jruoho Exp $
.\"
.\" Copyright (c) 1986, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)usleep.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd April 29, 2010
.Dt USLEEP 3
.Os
.Sh NAME
@@ -85,6 +85,18 @@
.Fn usleep
function conforms to
.St -xpg4.2 .
+It later appeared in the
+.Tn POSIX
+standard, but in
+.St -p1003.1-2004
+it was marked as legacy and the use of
+.Xr nanosleep 2
+was recommended instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn usleep
+from the specification.
.Sh HISTORY
The
.Fn usleep