public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: Brian Inglis <Brian.Inglis@Shaw.ca>,
	Linux Man Pages <linux-man@vger.kernel.org>
Subject: Re: [PATCH v3 6/6] man2/: add C digit separators to clarify long numeric digit strings
Date: Wed, 15 Feb 2023 22:14:06 +0100	[thread overview]
Message-ID: <aefe263e-1208-cd3f-cbfd-ea83c15ab199@gmail.com> (raw)
In-Reply-To: <3a42e44f476f084dc0fb2fa83ad5708e37818d0f.1676489381.git.Brian.Inglis@Shaw.ca>


[-- Attachment #1.1: Type: text/plain, Size: 8844 bytes --]

Hi Brian,

On 2/15/23 21:17, Brian Inglis wrote:
> ---
>  man2/capget.2           |  6 +++---
>  man2/ioctl.2            |  4 ++--
>  man2/msgctl.2           | 14 +++++++-------
>  man2/openat2.2          |  4 ++--
>  man2/process_vm_readv.2 |  2 +-
>  man2/reboot.2           |  2 +-
>  man2/semctl.2           | 16 ++++++++--------
>  man2/shmctl.2           | 14 +++++++-------
>  man2/umask.2            |  8 ++++----
>  man2/utimensat.2        |  2 +-
>  10 files changed, 36 insertions(+), 36 deletions(-)
> 
> diff --git a/man2/capget.2 b/man2/capget.2
> index 909f8bfe0de0..7c0e5b414d5d 100644
> --- a/man2/capget.2
> +++ b/man2/capget.2
> @@ -56,17 +56,17 @@ The structures are defined as follows.
>  .PP
>  .in +4n
>  .EX
> -#define _LINUX_CAPABILITY_VERSION_1  0x19980330
> +#define _LINUX_CAPABILITY_VERSION_1  0x1998\[aq]03\[aq]30
>  #define _LINUX_CAPABILITY_U32S_1     1
>  
>          /* V2 added in Linux 2.6.25; deprecated */
> -#define _LINUX_CAPABILITY_VERSION_2  0x20071026
> +#define _LINUX_CAPABILITY_VERSION_2  0x2007\[aq]10\[aq]26
>  .\" commit e338d263a76af78fe8f38a72131188b58fceb591
>  .\" Added 64 bit capability support
>  #define _LINUX_CAPABILITY_U32S_2     2
>  
>          /* V3 added in Linux 2.6.26 */
> -#define _LINUX_CAPABILITY_VERSION_3  0x20080522
> +#define _LINUX_CAPABILITY_VERSION_3  0x2008\[aq]05\[aq]22
>  .\" commit ca05a99a54db1db5bca72eccb5866d2a86f8517f
>  #define _LINUX_CAPABILITY_U32S_3     2
>  
> diff --git a/man2/ioctl.2 b/man2/ioctl.2
> index f33f2c57c103..36e1ff4e041f 100644
> --- a/man2/ioctl.2
> +++ b/man2/ioctl.2
> @@ -134,9 +134,9 @@ one or more ASCII letters were used.
>  For example,
>  .B TCGETS
>  has value
> -0x00005401, with 0x54 = \[aq]T\[aq] indicating the terminal driver, and
> +0x00\[aq]00\[aq]54\[aq]01, with 0x54 = \[aq]T\[aq] indicating the terminal driver, and
>  .B CYGETTIMEOUT
> -has value 0x00435906, with 0x43 0x59 = \[aq]C\[aq] \[aq]Y\[aq]
> +has value 0x00\[aq]43\[aq]59\[aq]06, with 0x43 0x59 = \[aq]C\[aq] \[aq]Y\[aq]
>  indicating the cyclades driver.
>  .PP
>  Later (0.98p5) some more information was built into the number.
> diff --git a/man2/msgctl.2 b/man2/msgctl.2
> index ce534dc2abd5..f49b8a951d29 100644
> --- a/man2/msgctl.2
> +++ b/man2/msgctl.2
> @@ -131,15 +131,15 @@ structure define the access permissions for the message queue.
>  The permission bits are as follows:
>  .TS
>  l l.
> -0400	Read by user
> -0200	Write by user
> -0040	Read by group
> -0020	Write by group
> -0004	Read by others
> -0002	Write by others
> +0\[aq]400	Read by user
> +0\[aq]200	Write by user
> +0\[aq]040	Read by group
> +0\[aq]020	Write by group
> +0\[aq]004	Read by others
> +0\[aq]002	Write by others

Please break this into several patches.  At least one for dates (which are special),
other for normal hex numbers, and another for octals.

I expect this patch set to be around 15 patches, and that's fine.  It will be easier
to review.


Cheers,

Alex

>  .TE
>  .PP
> -Bits 0100, 0010, and 0001 (the execute bits) are unused by the system.
> +Bits 0\[aq]100, 0\[aq]010, and 0\[aq]001 (the execute bits) are unused by the system.
>  .PP
>  Valid values for
>  .I cmd
> diff --git a/man2/openat2.2 b/man2/openat2.2
> index 3ffd06ae7298..8b6cd5781b11 100644
> --- a/man2/openat2.2
> +++ b/man2/openat2.2
> @@ -140,7 +140,7 @@ argument of
>  Whereas
>  .BR openat (2)
>  ignores bits other than those in the range
> -.I 07777
> +.I 07\[aq]777
>  in its
>  .I mode
>  argument,
> @@ -148,7 +148,7 @@ argument,
>  returns an error if
>  .I how.mode
>  contains bits other than
> -.IR 07777 .
> +.IR 07\[aq]777 .
>  Similarly, an error is returned if
>  .BR openat2 ()
>  is called with a nonzero
> diff --git a/man2/process_vm_readv.2 b/man2/process_vm_readv.2
> index 712a19dd2212..d6b865878162 100644
> --- a/man2/process_vm_readv.2
> +++ b/man2/process_vm_readv.2
> @@ -271,7 +271,7 @@ when using, for example, shared memory or pipes).
>  .SH EXAMPLES
>  The following code sample demonstrates the use of
>  .BR process_vm_readv ().
> -It reads 20 bytes at the address 0x10000 from the process with PID 10
> +It reads 20 bytes at the address 0x1\[aq]0000 from the process with PID 10
>  and writes the first 10 bytes into
>  .I buf1
>  and the second 10 bytes into
> diff --git a/man2/reboot.2 b/man2/reboot.2
> index 6fed0a076c77..d032ef70aafa 100644
> --- a/man2/reboot.2
> +++ b/man2/reboot.2
> @@ -123,7 +123,7 @@ If not preceded by a
>  data will be lost.
>  .TP
>  .B LINUX_REBOOT_CMD_RESTART2
> -(0xa1b2c3d4; since Linux 2.1.30).
> +(0xa1b2\[aq]c3d4; since Linux 2.1.30).
>  The message "Restarting system with command \[aq]%s\[aq]" is printed,
>  and a restart (using the command string given in
>  .IR arg )
> diff --git a/man2/semctl.2 b/man2/semctl.2
> index 619062858212..7d6115aa006f 100644
> --- a/man2/semctl.2
> +++ b/man2/semctl.2
> @@ -137,16 +137,16 @@ structure define the access permissions for the shared memory segment.
>  The permission bits are as follows:
>  .TS
>  l l.
> -0400	Read by user
> -0200	Write by user
> -0040	Read by group
> -0020	Write by group
> -0004	Read by others
> -0002	Write by others
> +0\[aq]400	Read by user
> +0\[aq]200	Write by user
> +0\[aq]040	Read by group
> +0\[aq]020	Write by group
> +0\[aq]004	Read by others
> +0\[aq]002	Write by others
>  .TE
>  .PP
>  In effect, "write" means "alter" for a semaphore set.
> -Bits 0100, 0010, and 0001 (the execute bits) are unused by the system.
> +Bits 0\[aq]100, 0\[aq]010, and 0\[aq]001 (the execute bits) are unused by the system.
>  .PP
>  Valid values for
>  .I cmd
> @@ -561,7 +561,7 @@ call:
>  .B SEMVMX
>  Maximum value for
>  .BR semval :
> -implementation dependent (32767).
> +implementation dependent (32Ki-1).
>  .PP
>  For greater portability, it is best to always call
>  .BR semctl ()
> diff --git a/man2/shmctl.2 b/man2/shmctl.2
> index bc456849d3bd..88d91767dc59 100644
> --- a/man2/shmctl.2
> +++ b/man2/shmctl.2
> @@ -136,15 +136,15 @@ structure define the access permissions for the shared memory segment.
>  The permission bits are as follows:
>  .TS
>  l l.
> -0400	Read by user
> -0200	Write by user
> -0040	Read by group
> -0020	Write by group
> -0004	Read by others
> -0002	Write by others
> +0\[aq]400	Read by user
> +0\[aq]200	Write by user
> +0\[aq]040	Read by group
> +0\[aq]020	Write by group
> +0\[aq]004	Read by others
> +0\[aq]002	Write by others
>  .TE
>  .PP
> -Bits 0100, 0010, and 0001 (the execute bits) are unused by the system.
> +Bits 0\[aq]100, 0\[aq]010, and 0\[aq]001 (the execute bits) are unused by the system.
>  (It is not necessary to have execute permission on a segment
>  in order to perform a
>  .BR shmat (2)
> diff --git a/man2/umask.2 b/man2/umask.2
> index 541d81c665ff..7100f6cb8535 100644
> --- a/man2/umask.2
> +++ b/man2/umask.2
> @@ -27,7 +27,7 @@ Standard C library
>  .BR umask ()
>  sets the calling process's file mode creation mask (umask) to
>  .I mask
> -& 0777 (i.e., only the file permission bits of
> +& 0777 (i.e., only the file permission bits of 0\[aq]777 (i.e., only the file permission bits of
>  .I mask
>  are used), and returns the previous value of the mask.
>  .PP
> @@ -63,7 +63,7 @@ u::rwx,g::r-x,o::r-x
>  .PP
>  Combining the effect of this default ACL with a
>  .I mode
> -argument of 0666 (rw-rw-rw-), the resulting file permissions would be 0644
> +argument of 0\[aq]666 (rw-rw-rw-), the resulting file permissions would be 0\[aq]644
>  (rw-r--r--).
>  .PP
>  The constants that should be used to specify
> @@ -86,7 +86,7 @@ is specified as:
>  .EE
>  .in
>  .PP
> -(octal 0666) when creating a new file, the permissions on the
> +(octal 0\[aq]666) when creating a new file, the permissions on the
>  resulting file will be:
>  .PP
>  .in +4n
> @@ -95,7 +95,7 @@ resulting file will be:
>  .EE
>  .in
>  .PP
> -(because 0666 & \[ti]022 = 0644; i.e. rw\-r\-\-r\-\-).
> +(because 0\[aq]666 (because 0666 & \[ti]022 = 0644; i.e. rw\-r\-\-r\-\-). \[ti]022 = 0\[aq]644; i.e. rw\-r\-\-r\-\-).
>  .SH RETURN VALUE
>  This system call always succeeds and the previous value of the mask
>  is returned.
> diff --git a/man2/utimensat.2 b/man2/utimensat.2
> index c2e6a9164917..90ef97f3c070 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, 999,999,999], and not
> +fields (value outside range [0, 999\[aq]999\[aq]999], and not
>  .B UTIME_NOW
>  or
>  .BR UTIME_OMIT );

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2023-02-15 21:14 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 20:15 [PATCH v3 0/6] man2/: use C digit separators, IEC, or ISO multiples to clarify long numeric digit strings Brian Inglis
2023-02-15 20:17 ` Brian Inglis
2023-02-15 20:17 ` [PATCH v3 1/6] man2/: use IEC " Brian Inglis
2023-02-15 21:05   ` Alejandro Colomar
2023-02-16 21:06   ` Stefan Puiu
2023-02-16 23:01     ` Alejandro Colomar
2023-02-16 23:40       ` Brian Inglis
2023-02-16 23:51         ` Alejandro Colomar
2023-02-17 14:05       ` Stefan Puiu
2023-02-19 21:10         ` Alejandro Colomar
2023-02-19 21:12           ` Alejandro Colomar
2023-02-20 14:29           ` Stefan Puiu
2023-02-20 15:35             ` Alex Colomar
2023-02-21 17:00               ` Rob Landley
2023-02-22  1:34                 ` Alex Colomar
2023-02-22 22:18                   ` Rob Landley
2023-02-24  1:05                     ` Alex Colomar
2023-02-16 21:40   ` Jakub Wilk
2023-02-15 20:17 ` [PATCH v3 2/6] man2/keyctl.2: use IEC or ISO multiples or add C digit separators " Brian Inglis
2023-02-15 21:06   ` Alejandro Colomar
2023-02-15 20:17 ` [PATCH v3 3/6] man2/: add C digit separators to clarify POSIX feature release dates Brian Inglis
2023-02-15 21:08   ` Alejandro Colomar
2023-02-16 21:11   ` Stefan Puiu
2023-02-16 23:04     ` Alejandro Colomar
2023-02-17 14:16       ` Stefan Puiu
2023-02-15 20:17 ` [PATCH v3 4/6] man2/select.2: add C digit separators to clarify POSIX feature release dates or use IEC or ISO multiples to clarify long numeric digit strings Brian Inglis
2023-02-15 21:09   ` Alejandro Colomar
2023-02-15 20:17 ` [PATCH v3 5/6] man2/chmod.2: add C digit separators to clarify POSIX feature release dates and " Brian Inglis
2023-02-15 21:10   ` Alejandro Colomar
2023-02-18 17:42     ` Tom Schwindl
2023-02-18 18:08       ` G. Branden Robinson
2023-02-18 18:31         ` Tom Schwindl
2023-02-18 19:03           ` G. Branden Robinson
2023-02-18 23:32             ` Brian Inglis
2023-02-19 11:50             ` ADA and base prefix for numbers Alejandro Colomar
2023-02-18 18:41       ` [PATCH v3 5/6] man2/chmod.2: add C digit separators to clarify POSIX feature release dates and long numeric digit strings Brian Inglis
2023-02-15 20:17 ` [PATCH v3 6/6] man2/: add C digit separators to clarify " Brian Inglis
2023-02-15 21:14   ` Alejandro Colomar [this message]
2023-02-15 22:51 ` [PATCH v3 0/6] man2/: use C digit separators, IEC, or ISO multiples " Brian Inglis

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=aefe263e-1208-cd3f-cbfd-ea83c15ab199@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=Brian.Inglis@Shaw.ca \
    --cc=linux-man@vger.kernel.org \
    /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