From: Brian Inglis Date: Wed, 8 Feb 2023 20:27:25 +0000 (-0700) Subject: man2/: use consistent closed interval notation for value ranges X-Git-Tag: man-pages-6.03~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=147a60d792a5db8f3cb93ea16eefb73e16c1fb91;p=thirdparty%2Fman-pages.git man2/: use consistent closed interval notation for value ranges Signed-off-by: Alejandro Colomar --- diff --git a/man2/clock_getres.2 b/man2/clock_getres.2 index c10f980faa..8d90baaaab 100644 --- a/man2/clock_getres.2 +++ b/man2/clock_getres.2 @@ -272,7 +272,7 @@ does not refer to a valid instance of a clock object. .I tp.tv_sec is negative or .I tp.tv_nsec -is outside the range [0..999,999,999]. +is outside the range [0, 999,999,999]. .TP .B EINVAL The diff --git a/man2/clock_nanosleep.2 b/man2/clock_nanosleep.2 index 5afc2025c8..5da8d15699 100644 --- a/man2/clock_nanosleep.2 +++ b/man2/clock_nanosleep.2 @@ -158,7 +158,7 @@ The sleep was interrupted by a signal handler; see .B EINVAL The value in the .I tv_nsec -field was not in the range 0 to 999999999 or +field was not in the range [0, 999999999] or .I tv_sec was negative. .TP diff --git a/man2/getitimer.2 b/man2/getitimer.2 index f3fe06fb97..f092a2fc4d 100644 --- a/man2/getitimer.2 +++ b/man2/getitimer.2 @@ -158,7 +158,7 @@ or (since Linux 2.6.22) one of the .I tv_usec fields in the structure pointed to by .I new_value -contains a value outside the range 0 to 999999. +contains a value outside the range [0, 999999]. .SH STANDARDS POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD). POSIX.1-2008 marks @@ -253,7 +253,7 @@ POSIX.1-2001 says that .BR setitimer () should fail if a .I tv_usec -value is specified that is outside of the range 0 to 999999. +value is specified that is outside of the range [0, 999999]. However, up to and including Linux 2.6.21, Linux does not give an error, but instead silently adjusts the corresponding seconds value for the timer. diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2 index 9fe7a415da..d7f1dbe2b9 100644 --- a/man2/gettimeofday.2 +++ b/man2/gettimeofday.2 @@ -152,7 +152,7 @@ is invalid. .I tv.tv_sec is negative or .I tv.tv_usec -is outside the range [0..999,999]. +is outside the range [0, 999,999]. .TP .BR EINVAL " (since Linux 4.3)" .\" commit e1d7ba8735551ed79c7a0463a042353574b96da3 diff --git a/man2/nanosleep.2 b/man2/nanosleep.2 index a6f9e627f4..12e0cee84b 100644 --- a/man2/nanosleep.2 +++ b/man2/nanosleep.2 @@ -66,7 +66,7 @@ The structure is used to specify intervals of time with nanosecond precision. .PP -The value of the nanoseconds field must be in the range 0 to 999999999. +The value of the nanoseconds field must be in the range [0, 999999999]. .PP Compared to .BR sleep (3) @@ -106,7 +106,7 @@ again and continue with the pause. .B EINVAL The value in the .I tv_nsec -field was not in the range 0 to 999999999 or +field was not in the range [0, 999999999] or .I tv_sec was negative. .SH STANDARDS diff --git a/man2/utimensat.2 b/man2/utimensat.2 index 0ea9ebe9e2..c2e6a91649 100644 --- a/man2/utimensat.2 +++ b/man2/utimensat.2 @@ -272,7 +272,7 @@ Invalid value in .B EINVAL Invalid value in one of the .I tv_nsec -fields (value outside range 0 to 999,999,999, and not +fields (value outside range [0, 999,999,999], and not .B UTIME_NOW or .BR UTIME_OMIT );