From: Michael Kerrisk Date: Sun, 30 Apr 2006 22:10:38 +0000 (+0000) Subject: Clarify RETURN VALUE discussion. X-Git-Tag: man-pages-2.31~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13218d42aed3b2014e57a1d63bd92fdcb7d6821a;p=thirdparty%2Fman-pages.git Clarify RETURN VALUE discussion. --- diff --git a/man2/nanosleep.2 b/man2/nanosleep.2 index eec263b586..1fd6c660b3 100644 --- a/man2/nanosleep.2 +++ b/man2/nanosleep.2 @@ -79,13 +79,15 @@ and has the advantage of not affecting any signals, it is standardized by POSIX, it provides higher timing resolution, and it allows to continue a sleep that has been interrupted by a signal more easily. -.SH ERRORS -In case of an error or exception, the +.SH "RETURN VALUE" +On successfully sleeping for the requested interval, .BR nanosleep () -system call returns \-1 instead of 0 and sets +returns 0. +If the call is interrupted by a signal handler or encounters an error, +then it returns \-1, with .I errno -to one of the following values: -.TP +set to indicate the error. +.SH ERRORS .B EFAULT Problem with copying information from user space. .TP