Mon Apr 22 21:25:29 2024 UTC (17d)
it's nanosleep(2), not nanosleep(3)


(jdolecek)
diff -r1.20 -r1.21 src/lib/libc/gen/usleep.3

cvs diff -r1.20 -r1.21 src/lib/libc/gen/usleep.3 (expand / switch to unified diff)

--- src/lib/libc/gen/usleep.3 2024/04/22 21:02:18 1.20
+++ src/lib/libc/gen/usleep.3 2024/04/22 21:25:29 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: usleep.3,v 1.20 2024/04/22 21:02:18 jdolecek Exp $ 1.\" $NetBSD: usleep.3,v 1.21 2024/04/22 21:25:29 jdolecek Exp $
2.\" 2.\"
3.\" Copyright (c) 1986, 1991, 1993 3.\" Copyright (c) 1986, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 3. Neither the name of the University nor the names of its contributors 14.\" 3. Neither the name of the University nor the names of its contributors
@@ -34,27 +34,27 @@ @@ -34,27 +34,27 @@
34.Os 34.Os
35.Sh NAME 35.Sh NAME
36.Nm usleep 36.Nm usleep
37.Nd suspend execution for interval of microseconds 37.Nd suspend execution for interval of microseconds
38.Sh LIBRARY 38.Sh LIBRARY
39.Lb libc 39.Lb libc
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.In unistd.h 41.In unistd.h
42.Ft int 42.Ft int
43.Fn usleep "useconds_t microseconds" 43.Fn usleep "useconds_t microseconds"
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45.Bf -symbolic 45.Bf -symbolic
46This interface is obsoleted by 46This interface is obsoleted by
47.Xr nanosleep 3 . 47.Xr nanosleep 2 .
48.Ef 48.Ef
49.Pp 49.Pp
50The 50The
51.Fn usleep 51.Fn usleep
52function 52function
53suspends execution of the calling process 53suspends execution of the calling process
54until either the number of microseconds specified by 54until either the number of microseconds specified by
55.Fa microseconds 55.Fa microseconds
56have elapsed or a signal is delivered to the calling process and its 56have elapsed or a signal is delivered to the calling process and its
57action is to invoke a signal catching function or to terminate the 57action is to invoke a signal catching function or to terminate the
58process. 58process.
59The suspension time may be longer than requested due to the 59The suspension time may be longer than requested due to the
60scheduling of other activity by the system. 60scheduling of other activity by the system.