| @@ -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 |
46 | This interface is obsoleted by | | 46 | This interface is obsoleted by |
47 | .Xr nanosleep 3 . | | 47 | .Xr nanosleep 2 . |
48 | .Ef | | 48 | .Ef |
49 | .Pp | | 49 | .Pp |
50 | The | | 50 | The |
51 | .Fn usleep | | 51 | .Fn usleep |
52 | function | | 52 | function |
53 | suspends execution of the calling process | | 53 | suspends execution of the calling process |
54 | until either the number of microseconds specified by | | 54 | until either the number of microseconds specified by |
55 | .Fa microseconds | | 55 | .Fa microseconds |
56 | have elapsed or a signal is delivered to the calling process and its | | 56 | have elapsed or a signal is delivered to the calling process and its |
57 | action is to invoke a signal catching function or to terminate the | | 57 | action is to invoke a signal catching function or to terminate the |
58 | process. | | 58 | process. |
59 | The suspension time may be longer than requested due to the | | 59 | The suspension time may be longer than requested due to the |
60 | scheduling of other activity by the system. | | 60 | scheduling of other activity by the system. |