All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/20] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 1)
@ 2021-02-24 14:42 Alejandro Colomar
  2021-02-24 14:42 ` [PATCH 01/20] argz_add.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: Alejandro Colomar @ 2021-02-24 14:42 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, Heinrich Schuchardt

Hi Michael,

This are the first pages of man3 with 'restrict'.
I'm sending you these already, becuase otherwise I'd accumulate
too many patches in the end.

I have fixed from the first page until ftw.3.

Spin off:
	I found different terms for parameters that refer to a same thing
	in different functions (usually a '[const] char *'):
	 - filename
	 - file
	 - path
	 - pathname
	 - Maybe others; I don't know

	For 'FILE *' we have more or less the same,
	although this one is much more standard (>90% use 'stream'):
	 - stream
	 - streamp
	 - s
	 - fp
	 - file
	 - filehandle
	 - A few others in specific cases

	What would you do about it?

Thanks,

Alex

---

I'll copy here the commands again to find them easily next time.

For reading the man_pages SYNOPSIS:

.../linux/man-pages$ man_section man2 SYNOPSIS |less;

For reading the glibc prototypes:

.../gnu/glibc$ man_lsfunc ../../linux/man-pages/man2 \
  |while read -r syscall; do
          echo "=============================  ${syscall}";
          grep_glibc_prototype ${syscall};
  done \
  |sed -e 's/\bextern //' -e 's/\b_*//g' \
  |less;

---
Alejandro Colomar (20):
  argz_add.3: SYNOPSIS: Use 'restrict' in prototypes
  asprintf.3: SYNOPSIS: Use 'restrict' in prototypes
  memccpy.3: SYNOPSIS: Use 'restrict' in prototypes
  memcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  crypt.3: SYNOPSIS: Use 'restrict' in prototypes
  ctime.3: SYNOPSIS: Use 'restrict' in prototypes
  ctime.3: SYNOPSIS: Use 'restrict' in prototypes
  dlinfo.3: SYNOPSIS: Use 'restrict' in prototypes
  dlsym.3: SYNOPSIS: Use 'restrict' in prototypes; add missing 'const'
    too
  drand48_r.3: SYNOPSIS: Use 'restrict' in prototypes
  ecvt_r.3: SYNOPSIS: Use 'restrict' in prototypes
  ecvt.3: SYNOPSIS: Use 'restrict' in prototypes
  envz_add.3: SYNOPSIS: Use 'restrict' in prototypes
  fgetc.3: SYNOPSIS: Use 'restrict' in prototypes
  fgetws.3: SYNOPSIS: Use 'restrict' in prototypes
  fopencookie.3: SYNOPSIS: Use 'restrict' in prototypes
  fopen.3: SYNOPSIS: Use 'restrict' in prototypes
  fputws.3: SYNOPSIS: Use 'restrict' in prototypes
  fread.3: SYNOPSIS: Use 'restrict' in prototypes
  fseek.3: SYNOPSIS: Use 'restrict' in prototypes

 man3/argz_add.3    | 41 +++++++++++++++++++++++------------------
 man3/asprintf.3    |  5 +++--
 man3/crypt.3       |  2 +-
 man3/ctime.3       | 16 ++++++++++++----
 man3/dlinfo.3      |  3 ++-
 man3/dlsym.3       |  5 +++--
 man3/drand48_r.3   | 22 ++++++++++++++--------
 man3/ecvt.3        |  6 ++++--
 man3/ecvt_r.3      | 18 ++++++++++--------
 man3/envz_add.3    | 25 +++++++++++++------------
 man3/fgetc.3       |  2 +-
 man3/fgetws.3      |  3 ++-
 man3/fopen.3       |  7 +++++--
 man3/fopencookie.3 |  2 +-
 man3/fputws.3      |  2 +-
 man3/fread.3       |  9 +++++----
 man3/fseek.3       |  2 +-
 man3/memccpy.3     |  3 ++-
 man3/memcpy.3      |  3 ++-
 19 files changed, 105 insertions(+), 71 deletions(-)

-- 
2.30.1.721.g45526154a5


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-03-04  0:31 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 14:42 [PATCH 00/20] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 1) Alejandro Colomar
2021-02-24 14:42 ` [PATCH 01/20] argz_add.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
2021-02-24 14:42 ` [PATCH 02/20] asprintf.3: " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 03/20] memccpy.3: " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 04/20] memcpy.3: " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 05/20] crypt.3: " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 06/20] ctime.3: " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 07/20] " Alejandro Colomar
2021-02-24 14:42 ` [PATCH 08/20] dlinfo.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 09/20] dlsym.3: SYNOPSIS: Use 'restrict' in prototypes; add missing 'const' too Alejandro Colomar
2021-02-24 14:43 ` [PATCH 10/20] drand48_r.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
2021-02-24 14:43 ` [PATCH 11/20] ecvt_r.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 12/20] ecvt.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 13/20] envz_add.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 14/20] fgetc.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 15/20] fgetws.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 16/20] fopencookie.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 17/20] fopen.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 18/20] fputws.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 19/20] fread.3: " Alejandro Colomar
2021-02-24 14:43 ` [PATCH 20/20] fseek.3: " Alejandro Colomar
2021-03-03 22:14 ` [PATCH 00/20] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 1) Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.