clock_getres.2: ERRORS: add EINVAL error for noncanonical clock_settime() value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-05-13 16:20:42 +02:00
parent 390795d76a
commit 9f23d9477c
1 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,13 @@ specified is not supported on this system.
.\" and CLOCK_THREAD_CPUTIME_ID, when probably the proper error should be
.\" EPERM.
.TP
.B EINVAL
.RB ( clock_settime ()):
.I tp.tv_sec
is negative or
.I tv.tv_nsec
is outside the range [0..999,999,999].
.TP
.B EPERM
.BR clock_settime ()
does not have permission to set the clock indicated.