diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-10-30 15:54:29 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-02-24 23:01:25 +0100 |
| commit | 85c474931c5d75a9cf3f01a4f862c0e99f945e95 (patch) | |
| tree | d7a71a04077d748d2ce9aba11bc658fa1f493f43 | |
| parent | ba7b279c9d6709dfe07402174aab66f73ef0ac29 (diff) | |
| download | man-pages-85c474931c5d75a9cf3f01a4f862c0e99f945e95.tar.gz | |
usleep.3: Remove incorrect portability note
That note against using useconds_t if portability is important was
probably true before POSIX, but since POSIX specifies the type in
<sys/types.h>, as recently documented in useconds_t(3), the type
should be fine to use portably. Moreover, using it helps document
the code, so we better completely remove that warning.
Add a SEE ALSO entry for useconds_t(3).
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
| -rw-r--r-- | man3/usleep.3 | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/man3/usleep.3 b/man3/usleep.3 index 358d6d36eb..d6dc4ecc0f 100644 --- a/man3/usleep.3 +++ b/man3/usleep.3 @@ -115,24 +115,6 @@ Only the .B EINVAL error return is documented by SUSv2 and POSIX.1-2001. .SH NOTES -The type -.I useconds_t -is an unsigned integer type capable of holding integers -in the range [0,1000000]. -Programs will be more portable -if they never mention this type explicitly. -Use -.PP -.in +4n -.EX -#include <unistd.h> -\&... - unsigned int usecs; -\&... - usleep(usecs); -.EE -.in -.PP The interaction of this function with the .B SIGALRM signal, and with other timer functions such as @@ -155,4 +137,5 @@ is unspecified. .BR setitimer (2), .BR sleep (3), .BR ualarm (3), +.BR useconds_t (3), .BR time (7) |
