mbox series

[00/22] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3)

Message ID 20210305235105.177359-1-alx.manpages@gmail.com
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3) | expand

Message

Alejandro Colomar March 5, 2021, 11:50 p.m. UTC
Hi Michael,

This fixes up to pthread_attr_setguardsize.3 to use 'restrict'.
Please have a special look at printf.3, because of the ffix.

Also, I included in this patchset one patch about 'volatile': malloc_hook.3.
I introduced it by accident into this patch set,
and I'm too lazy to remove it :P
I have no other patches related to 'volatile' pending.
If you think it's likely that there are more cases, please tell me,
and I'll try to have a look (I'd have to create a list of
man[23] variables for that, similar to man_lsfunc()).

Cheers,

Alex

Alejandro Colomar (22):
  getservent_r.3: SYNOPSIS: Use 'restrict' in prototypes
  getsubopt.3: SYNOPSIS: Use 'restrict' in prototypes
  glob.3: SYNOPSIS: Use 'restrict' in prototypes
  iconv.3: SYNOPSIS: Use 'restrict' in prototypes
  inet_ntop.3: SYNOPSIS: Use 'restrict' in prototypes
  inet_pton.3: SYNOPSIS: Use 'restrict' in prototypes
  lio_listio.3: SYNOPSIS: Use 'restrict' in prototypes
  makecontext.3: SYNOPSIS: Use 'restrict' in prototypes
  malloc_hook.3: SYNOPSIS: Use 'volatile' in prototypes
  mbrlen.3: SYNOPSIS: Use 'restrict' in prototypes
  mbrtowc.3: SYNOPSIS: Use 'restrict' in prototypes
  mbsnrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes
  mbsrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes
  mbstowcs.3: SYNOPSIS: Use 'restrict' in prototypes
  mbtowc.3: SYNOPSIS: Use 'restrict' in prototypes
  mempcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  mq_getattr.3: SYNOPSIS: Use 'restrict' in prototypes
  mq_receive.3: SYNOPSIS: Use 'restrict' in prototypes
  posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes
  posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes
  printf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too
  pthread_attr_setguardsize.3: SYNOPSIS: Use 'restrict' in prototypes

 man3/getservent_r.3              | 21 +++++++++++++--------
 man3/getsubopt.3                 |  4 ++--
 man3/glob.3                      |  4 ++--
 man3/iconv.3                     |  4 ++--
 man3/inet_ntop.3                 |  4 ++--
 man3/inet_pton.3                 |  3 ++-
 man3/lio_listio.3                |  4 ++--
 man3/makecontext.3               |  6 ++++--
 man3/malloc_hook.3               | 10 +++++-----
 man3/mbrlen.3                    |  3 ++-
 man3/mbrtowc.3                   |  5 +++--
 man3/mbsnrtowcs.3                |  5 +++--
 man3/mbsrtowcs.3                 |  4 ++--
 man3/mbstowcs.3                  |  3 ++-
 man3/mbtowc.3                    |  3 ++-
 man3/mempcpy.3                   |  7 +++++--
 man3/mq_getattr.3                |  4 ++--
 man3/mq_receive.3                |  6 +++---
 man3/posix_spawn.3               | 18 ++++++++++--------
 man3/printf.3                    | 29 ++++++++++++++++++-----------
 man3/pthread_attr_setguardsize.3 |  4 ++--
 21 files changed, 88 insertions(+), 63 deletions(-)

Comments

Michael Kerrisk \(man-pages\) March 7, 2021, 10:20 a.m. UTC | #1
Hi Alex,

On 3/6/21 12:50 AM, Alejandro Colomar wrote:
> Hi Michael,
> 
> This fixes up to pthread_attr_setguardsize.3 to use 'restrict'.

Thanks!

> Please have a special look at printf.3, because of the ffix.

It looks okay to me.

> Also, I included in this patchset one patch about 'volatile': malloc_hook.3.
> I introduced it by accident into this patch set,
> and I'm too lazy to remove it :P

Okay.

> I have no other patches related to 'volatile' pending.
> If you think it's likely that there are more cases, please tell me,
> and I'll try to have a look (I'd have to create a list of
> man[23] variables for that, similar to man_lsfunc()).

I'm not aware of other 'volatile' cases.

> 
> Cheers,
> 
> Alex
> 
> Alejandro Colomar (22):
>   getservent_r.3: SYNOPSIS: Use 'restrict' in prototypes
>   getsubopt.3: SYNOPSIS: Use 'restrict' in prototypes
>   glob.3: SYNOPSIS: Use 'restrict' in prototypes
>   iconv.3: SYNOPSIS: Use 'restrict' in prototypes
>   inet_ntop.3: SYNOPSIS: Use 'restrict' in prototypes
>   inet_pton.3: SYNOPSIS: Use 'restrict' in prototypes
>   lio_listio.3: SYNOPSIS: Use 'restrict' in prototypes
>   makecontext.3: SYNOPSIS: Use 'restrict' in prototypes
>   malloc_hook.3: SYNOPSIS: Use 'volatile' in prototypes
>   mbrlen.3: SYNOPSIS: Use 'restrict' in prototypes
>   mbrtowc.3: SYNOPSIS: Use 'restrict' in prototypes
>   mbsnrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes
>   mbsrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes
>   mbstowcs.3: SYNOPSIS: Use 'restrict' in prototypes
>   mbtowc.3: SYNOPSIS: Use 'restrict' in prototypes
>   mempcpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   mq_getattr.3: SYNOPSIS: Use 'restrict' in prototypes
>   mq_receive.3: SYNOPSIS: Use 'restrict' in prototypes
>   posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes
>   posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes
>   printf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too
>   pthread_attr_setguardsize.3: SYNOPSIS: Use 'restrict' in prototypes

I've applied all of these.

Thanks!

Michael

>  man3/getservent_r.3              | 21 +++++++++++++--------
>  man3/getsubopt.3                 |  4 ++--
>  man3/glob.3                      |  4 ++--
>  man3/iconv.3                     |  4 ++--
>  man3/inet_ntop.3                 |  4 ++--
>  man3/inet_pton.3                 |  3 ++-
>  man3/lio_listio.3                |  4 ++--
>  man3/makecontext.3               |  6 ++++--
>  man3/malloc_hook.3               | 10 +++++-----
>  man3/mbrlen.3                    |  3 ++-
>  man3/mbrtowc.3                   |  5 +++--
>  man3/mbsnrtowcs.3                |  5 +++--
>  man3/mbsrtowcs.3                 |  4 ++--
>  man3/mbstowcs.3                  |  3 ++-
>  man3/mbtowc.3                    |  3 ++-
>  man3/mempcpy.3                   |  7 +++++--
>  man3/mq_getattr.3                |  4 ++--
>  man3/mq_receive.3                |  6 +++---
>  man3/posix_spawn.3               | 18 ++++++++++--------
>  man3/printf.3                    | 29 ++++++++++++++++++-----------
>  man3/pthread_attr_setguardsize.3 |  4 ++--
>  21 files changed, 88 insertions(+), 63 deletions(-)
>