From: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
To: наб <nabijaczleweli@nabijaczleweli.xyz>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH 1/4] clock_getres.2, clock_nanosleep.2, io_getevents.2, nanosleep.2, poll.2, sched_rr_get_interval.2, select.2, sigwaitinfo.2, timer_settime.2, timerfd_create.2, utimensat.2, mq_receive.3, mq_send.3, pthread_tryjoin_np.3, sem_wait.3, system_data_types.7: standardise on struct timespec fields comments to ucase w/tv_nsec range
Date: Mon, 29 Nov 2021 13:26:00 +0100 [thread overview]
Message-ID: <e8fc5b91-d417-d388-5e6f-4ee02106ac0f@gmail.com> (raw)
In-Reply-To: <ec1dcc655184f6cdaae40ff8b7970b750434e4ef.1638123425.git.nabijaczleweli@nabijaczleweli.xyz>
Hi наб,
On 11/28/21 19:17, наб wrote:
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Regarding the addition of the range in the comments, I like it.
However, instead of repeating the information in all pages that repeat
the definition of 'struct timespec', I'd go one step further: remove all
of those redefinitions, and instead add a reference to timespec(3). If
any of those redefinitions contains any information that is not in
timespec(3) (a.k.a. system_data_types(7)), then add it to timespec(3).
That way we can control the accurateness of that info by having it
centralized, and save electronic ink :)
Cheers,
Alex
> ---
> man2/clock_getres.2 | 4 ++--
> man2/clock_nanosleep.2 | 4 ++--
> man2/io_getevents.2 | 4 ++--
> man2/nanosleep.2 | 4 ++--
> man2/poll.2 | 4 ++--
> man2/sched_rr_get_interval.2 | 4 ++--
> man2/select.2 | 6 +++---
> man2/sigwaitinfo.2 | 4 ++--
> man2/timer_settime.2 | 2 +-
> man2/timerfd_create.2 | 2 +-
> man2/utimensat.2 | 4 ++--
> man3/mq_receive.3 | 4 ++--
> man3/mq_send.3 | 4 ++--
> man3/pthread_tryjoin_np.3 | 4 ++--
> man7/system_data_types.7 | 2 +-
> 15 files changed, 28 insertions(+), 28 deletions(-)
>
> diff --git a/man2/clock_getres.2 b/man2/clock_getres.2
> index c2bb492b9..f94b69d3c 100644
> --- a/man2/clock_getres.2
> +++ b/man2/clock_getres.2
> @@ -93,8 +93,8 @@ structures, as specified in
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/clock_nanosleep.2 b/man2/clock_nanosleep.2
> index b8c4afc2c..e6386e6a5 100644
> --- a/man2/clock_nanosleep.2
> +++ b/man2/clock_nanosleep.2
> @@ -64,8 +64,8 @@ structures, defined as follows:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds [0 .. 999999999] */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/io_getevents.2 b/man2/io_getevents.2
> index 7c7e625bf..08738e413 100644
> --- a/man2/io_getevents.2
> +++ b/man2/io_getevents.2
> @@ -46,8 +46,8 @@ and is specified as a relative timeout in a structure of the following form:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds [0 .. 999999999] */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/nanosleep.2 b/man2/nanosleep.2
> index 89d8577db..993007e92 100644
> --- a/man2/nanosleep.2
> +++ b/man2/nanosleep.2
> @@ -84,8 +84,8 @@ It is defined as follows:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/poll.2 b/man2/poll.2
> index 205468f3e..620528ec7 100644
> --- a/man2/poll.2
> +++ b/man2/poll.2
> @@ -329,8 +329,8 @@ This argument is a pointer to a structure of the following form:
> .in +4n
> .EX
> struct timespec {
> - long tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + long tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/sched_rr_get_interval.2 b/man2/sched_rr_get_interval.2
> index 93db938df..1f249572b 100644
> --- a/man2/sched_rr_get_interval.2
> +++ b/man2/sched_rr_get_interval.2
> @@ -54,8 +54,8 @@ structure has the following form:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/select.2 b/man2/select.2
> index aee25c52c..fd9a994eb 100644
> --- a/man2/select.2
> +++ b/man2/select.2
> @@ -345,7 +345,7 @@ is a structure of the following type:
> .in +4n
> .EX
> struct timeval {
> - time_t tv_sec; /* seconds */
> + time_t tv_sec; /* Seconds */
> suseconds_t tv_usec; /* microseconds */
> };
> .EE
> @@ -358,8 +358,8 @@ has the following type:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man2/sigwaitinfo.2 b/man2/sigwaitinfo.2
> index 00bc50485..716661479 100644
> --- a/man2/sigwaitinfo.2
> +++ b/man2/sigwaitinfo.2
> @@ -93,8 +93,8 @@ This argument is of the following type:
> .in +4n
> .EX
> struct timespec {
> - long tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + long tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> }
> .EE
> .in
> diff --git a/man2/timer_settime.2 b/man2/timer_settime.2
> index 10687b211..1c8d7fa17 100644
> --- a/man2/timer_settime.2
> +++ b/man2/timer_settime.2
> @@ -67,7 +67,7 @@ structure is defined as follows:
> .EX
> struct timespec {
> time_t tv_sec; /* Seconds */
> - long tv_nsec; /* Nanoseconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
>
> struct itimerspec {
> diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
> index 65fdfcc45..832ec4b68 100644
> --- a/man2/timerfd_create.2
> +++ b/man2/timerfd_create.2
> @@ -159,7 +159,7 @@ each of which is in turn a structure of type
> .EX
> struct timespec {
> time_t tv_sec; /* Seconds */
> - long tv_nsec; /* Nanoseconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
>
> struct itimerspec {
> diff --git a/man2/utimensat.2 b/man2/utimensat.2
> index cb5f6b693..19fa8c677 100644
> --- a/man2/utimensat.2
> +++ b/man2/utimensat.2
> @@ -93,8 +93,8 @@ This information is conveyed in a structure of the following form:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man3/mq_receive.3 b/man3/mq_receive.3
> index df463297d..4dac43643 100644
> --- a/man3/mq_receive.3
> +++ b/man3/mq_receive.3
> @@ -97,8 +97,8 @@ specified in the following structure:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man3/mq_send.3 b/man3/mq_send.3
> index 54999f440..6b3fbe98a 100644
> --- a/man3/mq_send.3
> +++ b/man3/mq_send.3
> @@ -106,8 +106,8 @@ specified in the following structure:
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man3/pthread_tryjoin_np.3 b/man3/pthread_tryjoin_np.3
> index e912f8e3b..10b498c80 100644
> --- a/man3/pthread_tryjoin_np.3
> +++ b/man3/pthread_tryjoin_np.3
> @@ -79,8 +79,8 @@ specifying an absolute time measured since the Epoch (see
> .in +4n
> .EX
> struct timespec {
> - time_t tv_sec; /* seconds */
> - long tv_nsec; /* nanoseconds */
> + time_t tv_sec; /* Seconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .in
> diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
> index d117b1d2b..1e6a3f74c 100644
> --- a/man7/system_data_types.7
> +++ b/man7/system_data_types.7
> @@ -1544,7 +1544,7 @@ or
> .EX
> struct timespec {
> time_t tv_sec; /* Seconds */
> - long tv_nsec; /* Nanoseconds */
> + long tv_nsec; /* Nanoseconds [0 .. 999999999] */
> };
> .EE
> .PP
>
--
Alejandro Colomar
Linux man-pages comaintainer; http://www.kernel.org/doc/man-pages/
prev parent reply other threads:[~2021-11-29 13:43 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-28 18:17 [PATCH 1/4] clock_getres.2, clock_nanosleep.2, io_getevents.2, nanosleep.2, poll.2, sched_rr_get_interval.2, select.2, sigwaitinfo.2, timer_settime.2, timerfd_create.2, utimensat.2, mq_receive.3, mq_send.3, pthread_tryjoin_np.3, sem_wait.3, system_data_types.7: standardise on struct timespec fields comments to ucase w/tv_nsec range наб
2021-11-28 18:17 ` [PATCH 2/4] poll.2, sigwaitinfo.2: fix struct timespec::tv_sec to be time_t, not long наб
2021-11-29 12:27 ` Alejandro Colomar (man-pages)
2021-11-28 18:17 ` [PATCH 3/4] clock_getres.2, clock_nanosleep.2, io_getevents.2, nanosleep.2, poll.2, sched_rr_get_interval.2, select.2, sigwaitinfo.2, timer_settime.2, timerfd_create.2, utimensat.2, mq_receive.3, mq_send.3, pthread_tryjoin_np.3, system_data_types.7: correct struct timespec::tv_nsec type for x32 наб
2021-11-29 9:45 ` Jakub Wilk
2021-11-29 12:31 ` Alejandro Colomar (man-pages)
2021-12-03 23:46 ` наб
2021-12-06 19:18 ` [PATCH 3/4] Many pages: " Alejandro Colomar (man-pages)
2021-12-06 20:11 ` [PATCH v2 0/4] timespec(3) migration наб
2021-12-06 20:12 ` [PATCH v2 1/4] clock_getres.2, clock_nanosleep.2, io_getevents.2, nanosleep.2, poll.2, sched_rr_get_interval.2, select.2, sigwaitinfo.2, timerfd_create.2, timer_settime.2, utimensat.2, mq_receive.3, mq_send.3, pthread_tryjoin_np.3, sem_wait.3: replace in-line struct timespec declarations with "timespec(3) structure" references наб
2021-12-06 21:14 ` Alejandro Colomar (man-pages)
2021-12-06 20:12 ` [PATCH v2 2/4] system_data_types.7: standardise on struct timespec fields comments to ucase w/tv_nsec range наб
2021-12-06 21:18 ` Alejandro Colomar (man-pages)
2021-12-06 20:12 ` [PATCH v2 3/4] system_data_types.7: correct struct timespec::tv_nsec type for x32 наб
2021-12-06 21:30 ` Alejandro Colomar (man-pages)
2021-12-06 22:03 ` [PATCH v3 3/3] system_data_types.7: note struct timespec::tv_nsec type for x32 and portability наб
2021-12-06 22:56 ` Alejandro Colomar (man-pages)
2021-12-06 23:31 ` наб
2021-12-07 0:38 ` Alejandro Colomar (man-pages)
2021-12-07 1:08 ` наб
2021-12-07 1:34 ` Alejandro Colomar (man-pages)
[not found] ` <a55c07d0-960f-4dfe-90bf-4fee33976198@www.fastmail.com>
[not found] ` <7c29781b-1030-44f9-b078-f5b09a14e321@gmail.com>
2021-12-07 1:41 ` наб
2021-12-07 18:43 ` Joseph Myers
2021-12-07 18:52 ` Florian Weimer
2022-01-03 15:44 ` наб
2022-01-03 16:54 ` Alejandro Colomar (man-pages)
2021-12-07 11:02 ` [PATCH v2 3/4] system_data_types.7: correct struct timespec::tv_nsec type for x32 Stefan Puiu
2021-12-07 11:05 ` Alejandro Colomar (man-pages)
2021-12-06 20:12 ` [PATCH v2 4/4] system_data_types.7: note that struct timespec::tv_nsec being long long on x32 is an extension наб
2021-11-28 18:17 ` [PATCH " наб
2021-11-29 12:26 ` Alejandro Colomar (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e8fc5b91-d417-d388-5e6f-4ee02106ac0f@gmail.com \
--to=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=nabijaczleweli@nabijaczleweli.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox