All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes
@ 2021-03-11 22:33 Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 01/17] scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too Alejandro Colomar
                   ` (18 more replies)
  0 siblings, 19 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages
  Cc: Alejandro Colomar, linux-man, libc-alpha, Heinrich Schuchardt

Hello Michael,
This fixes the remaining pages. With this, all pages have been fixed to use
'restrict'.

Kind regards,

Alex

Alejandro Colomar (17):
  scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too.
  tsearch.3: SYNOPSIS: Use 'restrict' in prototypes
  unlocked_stdio.3: SYNOPSIS: Use 'restrict' in prototypes
  wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  wcpncpy.3: SYNOPSIS: Use 'restrict' in prototypes
  wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes
  wcscat.3: SYNOPSIS: Use 'restrict' in prototypes
  wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes
  wcsncat.3: SYNOPSIS: Use 'restrict' in prototypes
  wcsncpy.3: SYNOPSIS: Use 'restrict' in prototypes
  wcsnrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
  wcsrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
  wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes
  wcstok.3: SYNOPSIS: Use 'restrict' in prototypes
  wcstombs.3: SYNOPSIS: Use 'restrict' in prototypes
  wmemcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  wordexp.3: SYNOPSIS: Use 'restrict' in prototypes

 man3/scanf.3          | 16 ++++++++++------
 man3/tsearch.3        |  4 ++--
 man3/unlocked_stdio.3 | 20 ++++++++++++--------
 man3/wcpcpy.3         |  3 ++-
 man3/wcpncpy.3        |  4 +++-
 man3/wcrtomb.3        |  3 ++-
 man3/wcscat.3         |  3 ++-
 man3/wcscpy.3         |  3 ++-
 man3/wcsncat.3        |  4 +++-
 man3/wcsncpy.3        |  4 +++-
 man3/wcsnrtombs.3     |  5 +++--
 man3/wcsrtombs.3      |  4 ++--
 man3/wcstoimax.3      |  8 ++++----
 man3/wcstok.3         |  5 +++--
 man3/wcstombs.3       |  3 ++-
 man3/wmemcpy.3        |  4 +++-
 man3/wordexp.3        |  3 ++-
 17 files changed, 60 insertions(+), 36 deletions(-)

-- 
2.30.1


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

* [PATCH 01/17] scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too.
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 02/17] tsearch.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in scanf(), fscanf(), sscanf(), vscanf(), vfscanf(), vsscanf().
Let's use it here too.

.../glibc$ grep_glibc_prototype scanf
libio/stdio.h:397:
extern int scanf (const char *__restrict __format, ...) __wur;
.../glibc$ grep_glibc_prototype fscanf
libio/stdio.h:391:
extern int fscanf (FILE *__restrict __stream,
		   const char *__restrict __format, ...) __wur;
.../glibc$ grep_glibc_prototype sscanf
libio/stdio.h:399:
extern int sscanf (const char *__restrict __s,
		   const char *__restrict __format, ...) __THROW;
.../glibc$ grep_glibc_prototype vscanf
libio/stdio.h:443:
extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
.../glibc$ grep_glibc_prototype vfscanf
libio/stdio.h:435:
extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,
		    __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
.../glibc$ grep_glibc_prototype vsscanf
libio/stdio.h:447:
extern int vsscanf (const char *__restrict __s,
		    const char *__restrict __format, __gnuc_va_list __arg)
     __THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
.../glibc$

Also reorder v* functions to match the order of non-v functions.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/scanf.3 | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/man3/scanf.3 b/man3/scanf.3
index f353f1d4d..aefc262ab 100644
--- a/man3/scanf.3
+++ b/man3/scanf.3
@@ -56,15 +56,19 @@ scanf, fscanf, sscanf, vscanf, vsscanf, vfscanf \- input format conversion
 .nf
 .B #include <stdio.h>
 .PP
-.BI "int scanf(const char *" format ", ...);"
-.BI "int fscanf(FILE *" stream ", const char *" format ", ...);"
-.BI "int sscanf(const char *" str ", const char *" format ", ...);"
+.BI "int scanf(const char *restrict " format ", ...);"
+.BI "int fscanf(FILE *restrict " stream ,
+.BI "           const char *restrict " format ", ...);"
+.BI "int sscanf(const char *restrict " str ,
+.BI "           const char *restrict " format ", ...);"
 .PP
 .B #include <stdarg.h>
 .PP
-.BI "int vscanf(const char *" format ", va_list " ap );
-.BI "int vsscanf(const char *" str ", const char *" format ", va_list " ap );
-.BI "int vfscanf(FILE *" stream ", const char *" format ", va_list " ap );
+.BI "int vscanf(const char *restrict " format ", va_list " ap );
+.BI "int vfscanf(FILE *restrict " stream ,
+.BI "           const char *restrict " format ", va_list " ap );
+.BI "int vsscanf(const char *restrict " str ,
+.BI "           const char *restrict " format ", va_list " ap );
 .fi
 .PP
 .RS -4
-- 
2.30.1


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

* [PATCH 02/17] tsearch.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 01/17] scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 03/17] unlocked_stdio.3: " Alejandro Colomar
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in tdelete().
Let's use it here too.

.../glibc$ grep_glibc_prototype tdelete
misc/search.h:138:
extern void *tdelete (const void *__restrict __key,
		      void **__restrict __rootp,
		      __compar_fn_t __compar);
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/tsearch.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/tsearch.3 b/man3/tsearch.3
index 1c771ef4a..ab4a2b767 100644
--- a/man3/tsearch.3
+++ b/man3/tsearch.3
@@ -35,11 +35,11 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary search tree
 .BI "                int (*" compar ")(const void *, const void *));"
 .BI "void *tfind(const void *" key ", void *const *" rootp ,
 .BI "                int (*" compar ")(const void *, const void *));"
-.BI "void *tdelete(const void *" key ", void **" rootp ,
+.BI "void *tdelete(const void *restrict " key ", void **restrict " rootp ,
 .BI "                int (*" compar ")(const void *, const void *));"
 .BI "void twalk(const void *" root ,
 .BI "                void (*" action ")(const void *" nodep ", VISIT " which ,
-.BI "                               int " depth "));"
+.BI "                               int " depth ));
 .PP
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .B #include <search.h>
-- 
2.30.1


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

* [PATCH 03/17] unlocked_stdio.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 01/17] scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 02/17] tsearch.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 04/17] wcpcpy.3: " Alejandro Colomar
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

glibc uses 'restrict' in fread_unlocked(), fwrite_unlocked(), fgets_unlocked(), fputs_unlocked(), fgetws_unlocked(), fputws_unlocked().
Let's use it here too.

.../glibc$ grep_glibc_prototype fread_unlocked
libio/stdio.h:678:
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
			      size_t __n, FILE *__restrict __stream) __wur;
.../glibc$ grep_glibc_prototype fwrite_unlocked
libio/stdio.h:680:
extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
			       size_t __n, FILE *__restrict __stream);
.../glibc$ grep_glibc_prototype fgets_unlocked
libio/stdio.h:591:
extern char *fgets_unlocked (char *__restrict __s, int __n,
			     FILE *__restrict __stream) __wur
    __attr_access ((__write_only__, 1, 2));
.../glibc$ grep_glibc_prototype fputs_unlocked
libio/stdio.h:667:
extern int fputs_unlocked (const char *__restrict __s,
			   FILE *__restrict __stream);
.../glibc$ grep_glibc_prototype fgetws_unlocked
wcsmbs/wchar.h:820:
extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
				 __FILE *__restrict __stream);
.../glibc$ grep_glibc_prototype fputws_unlocked
wcsmbs/wchar.h:829:
extern int fputws_unlocked (const wchar_t *__restrict __ws,
			    __FILE *__restrict __stream);
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/unlocked_stdio.3 | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/man3/unlocked_stdio.3 b/man3/unlocked_stdio.3
index 324c4fdc8..e16c5a521 100644
--- a/man3/unlocked_stdio.3
+++ b/man3/unlocked_stdio.3
@@ -44,13 +44,15 @@ putchar_unlocked \- nonlocking stdio functions
 .BI "int fgetc_unlocked(FILE *" stream );
 .BI "int fputc_unlocked(int " c ", FILE *" stream );
 .PP
-.BI "size_t fread_unlocked(void *" ptr ", size_t " size ", size_t " n ,
-.BI "                      FILE *" stream );
-.BI "size_t fwrite_unlocked(const void *" ptr ", size_t " size ", size_t " n ,
-.BI "                      FILE *" stream );
+.BI "size_t fread_unlocked(void *restrict " ptr ", size_t " size ", size_t " n ,
+.BI "                      FILE *restrict " stream );
+.BI "size_t fwrite_unlocked(const void *restrict " ptr ", size_t " size \
+", size_t " n ,
+.BI "                      FILE *restrict " stream );
 .PP
-.BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream );
-.BI "int fputs_unlocked(const char *" s ", FILE *" stream );
+.BI "char *fgets_unlocked(char *restrict " s ", int " n \
+", FILE *restrict " stream );
+.BI "int fputs_unlocked(const char *restrict " s ", FILE *restrict " stream );
 .PP
 .B #include <wchar.h>
 .PP
@@ -62,8 +64,10 @@ putchar_unlocked \- nonlocking stdio functions
 .BI "wint_t putwc_unlocked(wchar_t " wc ", FILE *" stream );
 .BI "wint_t putwchar_unlocked(wchar_t " wc );
 .PP
-.BI "wchar_t *fgetws_unlocked(wchar_t *" ws ", int " n ", FILE *" stream );
-.BI "int fputws_unlocked(const wchar_t *" ws ", FILE *" stream );
+.BI "wchar_t *fgetws_unlocked(wchar_t *restrict " ws ", int " n ,
+.BI "                      FILE *restrict " stream );
+.BI "int fputws_unlocked(const wchar_t *restrict " ws ,
+.BI "                      FILE *restrict " stream );
 .fi
 .PP
 .RS -4
-- 
2.30.1


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

* [PATCH 04/17] wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (2 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 03/17] unlocked_stdio.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 05/17] wcpncpy.3: " Alejandro Colomar
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcpcpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcpcpy
wcsmbs/wchar.h:551:
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
			const wchar_t *__restrict __src) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcpcpy.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wcpcpy.3 b/man3/wcpcpy.3
index 9c30da2d9..5ef063e05 100644
--- a/man3/wcpcpy.3
+++ b/man3/wcpcpy.3
@@ -19,7 +19,8 @@ wcpcpy \- copy a wide-character string, returning a pointer to its end
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src );
+.BI "wchar_t *wcpcpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src );
 .fi
 .PP
 .RS -4
-- 
2.30.1


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

* [PATCH 05/17] wcpncpy.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (3 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 04/17] wcpcpy.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 06/17] wcrtomb.3: " Alejandro Colomar
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcpncpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcpncpy
wcsmbs/wchar.h:556:
extern wchar_t *wcpncpy (wchar_t *__restrict __dest,
			 const wchar_t *__restrict __src, size_t __n)
     __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcpncpy.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man3/wcpncpy.3 b/man3/wcpncpy.3
index cbe7c418d..842088e0c 100644
--- a/man3/wcpncpy.3
+++ b/man3/wcpncpy.3
@@ -20,7 +20,9 @@ returning a pointer to its end
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcpncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wcpncpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI "                 size_t " n );
 .fi
 .PP
 .RS -4
-- 
2.30.1


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

* [PATCH 06/17] wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (4 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 05/17] wcpncpy.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 07/17] wcscat.3: " Alejandro Colomar
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcrtomb().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcrtomb
wcsmbs/wchar.h:301:
extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
		       mbstate_t *__restrict __ps) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcrtomb.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wcrtomb.3 b/man3/wcrtomb.3
index c63daab8e..475486db1 100644
--- a/man3/wcrtomb.3
+++ b/man3/wcrtomb.3
@@ -20,7 +20,8 @@ wcrtomb \- convert a wide character to a multibyte sequence
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t wcrtomb(char *" s ", wchar_t " wc ", mbstate_t *" ps );
+.BI "size_t wcrtomb(char *restrict " s ", wchar_t " wc \
+", mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 The main case for this function is when
-- 
2.30.1


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

* [PATCH 07/17] wcscat.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (5 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 06/17] wcrtomb.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 08/17] wcscpy.3: " Alejandro Colomar
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcscat().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcscat
wcsmbs/wchar.h:97:
extern wchar_t *wcscat (wchar_t *__restrict __dest,
			const wchar_t *__restrict __src)
     __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcscat.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wcscat.3 b/man3/wcscat.3
index c756337f1..acfb8d43e 100644
--- a/man3/wcscat.3
+++ b/man3/wcscat.3
@@ -20,7 +20,8 @@ wcscat \- concatenate two wide-character strings
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcscat(wchar_t *" dest ", const wchar_t *" src );
+.BI "wchar_t *wcscat(wchar_t *restrict " dest \
+", const wchar_t *restrict " src );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 08/17] wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (6 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 07/17] wcscat.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 09/17] wcsncat.3: " Alejandro Colomar
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcscpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcscpy
wcsmbs/wchar.h:87:
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
			const wchar_t *__restrict __src)
     __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcscpy.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wcscpy.3 b/man3/wcscpy.3
index 8fa4a4e8b..c96711fdf 100644
--- a/man3/wcscpy.3
+++ b/man3/wcscpy.3
@@ -20,7 +20,8 @@ wcscpy \- copy a wide-character string
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcscpy(wchar_t *" dest ", const wchar_t *" src );
+.BI "wchar_t *wcscpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 09/17] wcsncat.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (7 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 08/17] wcscpy.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 10/17] wcsncpy.3: " Alejandro Colomar
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcsncat().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcsncat
wcsmbs/wchar.h:101:
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
			 const wchar_t *__restrict __src, size_t __n)
     __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcsncat.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man3/wcsncat.3 b/man3/wcsncat.3
index 0d88bb999..2a786f122 100644
--- a/man3/wcsncat.3
+++ b/man3/wcsncat.3
@@ -20,7 +20,9 @@ wcsncat \- concatenate two wide-character strings
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcsncat(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wcsncat(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI "                 size_t " n );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 10/17] wcsncpy.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (8 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 09/17] wcsncat.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 11/17] wcsnrtombs.3: " Alejandro Colomar
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcsncpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcsncpy
wcsmbs/wchar.h:92:
extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
			 const wchar_t *__restrict __src, size_t __n)
     __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcsncpy.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man3/wcsncpy.3 b/man3/wcsncpy.3
index d5a02b8a6..b90908fe7 100644
--- a/man3/wcsncpy.3
+++ b/man3/wcsncpy.3
@@ -20,7 +20,9 @@ wcsncpy \- copy a fixed-size string of wide characters
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcsncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wcsncpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI "                 size_t " n );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 11/17] wcsnrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (9 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 10/17] wcsncpy.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 12/17] wcsrtombs.3: " Alejandro Colomar
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcsnrtombs().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcsnrtombs
wcsmbs/wchar.h:357:
extern size_t wcsnrtombs (char *__restrict __dst,
			  const wchar_t **__restrict __src,
			  size_t __nwc, size_t __len,
			  mbstate_t *__restrict __ps) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcsnrtombs.3 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/man3/wcsnrtombs.3 b/man3/wcsnrtombs.3
index 7c9c210ad..1fb5ae626 100644
--- a/man3/wcsnrtombs.3
+++ b/man3/wcsnrtombs.3
@@ -19,8 +19,9 @@ wcsnrtombs \- convert a wide-character string to a multibyte string
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t wcsnrtombs(char *" dest ", const wchar_t **" src ", size_t " nwc ,
-.BI "                  size_t " len ", mbstate_t *" ps );
+.BI "size_t wcsnrtombs(char *restrict " dest ", const wchar_t **restrict " src ,
+.BI "                  size_t " nwc ", size_t " len \
+", mbstate_t *restrict " ps );
 .fi
 .PP
 .RS -4
-- 
2.30.1


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

* [PATCH 12/17] wcsrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (10 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 11/17] wcsnrtombs.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 13/17] wcstoimax.3: " Alejandro Colomar
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcsrtombs().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcsrtombs
wcsmbs/wchar.h:343:
extern size_t wcsrtombs (char *__restrict __dst,
			 const wchar_t **__restrict __src, size_t __len,
			 mbstate_t *__restrict __ps) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcsrtombs.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/wcsrtombs.3 b/man3/wcsrtombs.3
index df5518080..b5e9a68ad 100644
--- a/man3/wcsrtombs.3
+++ b/man3/wcsrtombs.3
@@ -20,8 +20,8 @@ wcsrtombs \- convert a wide-character string to a multibyte string
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t wcsrtombs(char *" dest ", const wchar_t **" src ,
-.BI "                 size_t " len ", mbstate_t *" ps );
+.BI "size_t wcsrtombs(char *restrict " dest ", const wchar_t **restrict " src ,
+.BI "                 size_t " len ", mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 If
-- 
2.30.1


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

* [PATCH 13/17] wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (11 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 12/17] wcsrtombs.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 14/17] wcstok.3: " Alejandro Colomar
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcstoimax(), wcstoumax().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcstoimax
stdlib/inttypes.h:305:
extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr,
			   __gwchar_t **__restrict __endptr, int __base)
     __THROW;
.../glibc$ grep_glibc_prototype wcstoumax
stdlib/inttypes.h:310:
extern uintmax_t wcstoumax (const __gwchar_t *__restrict __nptr,
			    __gwchar_t ** __restrict __endptr, int __base)
     __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcstoimax.3 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/man3/wcstoimax.3 b/man3/wcstoimax.3
index fad1f5e36..001897b2b 100644
--- a/man3/wcstoimax.3
+++ b/man3/wcstoimax.3
@@ -29,10 +29,10 @@ wcstoimax, wcstoumax \- convert wide-character string to integer
 .B #include <stddef.h>
 .B #include <inttypes.h>
 .PP
-.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \
-", int " base );
-.BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \
-", int " base );
+.BI "intmax_t wcstoimax(const wchar_t *restrict " nptr ,
+.BI "                   wchar_t **restrict " endptr ", int " base );
+.BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr ,
+.BI "                   wchar_t **restrict " endptr ", int " base );
 .fi
 .SH DESCRIPTION
 These functions are just like
-- 
2.30.1


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

* [PATCH 14/17] wcstok.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (12 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 13/17] wcstoimax.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 15/17] wcstombs.3: " Alejandro Colomar
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcstok().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcstok
wcsmbs/wchar.h:217:
extern wchar_t *wcstok (wchar_t *__restrict __s,
			const wchar_t *__restrict __delim,
			wchar_t **__restrict __ptr) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcstok.3 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/man3/wcstok.3 b/man3/wcstok.3
index b8976da46..f433b250b 100644
--- a/man3/wcstok.3
+++ b/man3/wcstok.3
@@ -20,8 +20,9 @@ wcstok \- split wide-character string into tokens
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wcstok(wchar_t *" wcs ", const wchar_t *" delim \
-", wchar_t **" ptr );
+.BI "wchar_t *wcstok(wchar_t *restrict " wcs \
+", const wchar_t *restrict " delim ,
+.BI "                wchar_t **restrict " ptr );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 15/17] wcstombs.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (13 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 14/17] wcstok.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 16/17] wmemcpy.3: " Alejandro Colomar
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wcstombs().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcstombs
stdlib/stdlib.h:937:
extern size_t wcstombs (char *__restrict __s,
			const wchar_t *__restrict __pwcs, size_t __n)
     __THROW
  __attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcstombs.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wcstombs.3 b/man3/wcstombs.3
index 21f2c8274..a42c25ebc 100644
--- a/man3/wcstombs.3
+++ b/man3/wcstombs.3
@@ -20,7 +20,8 @@ wcstombs \- convert a wide-character string to a multibyte string
 .nf
 .B #include <stdlib.h>
 .PP
-.BI "size_t wcstombs(char *" dest ", const wchar_t *" src ", size_t " n );
+.BI "size_t wcstombs(char *restrict " dest ", const wchar_t *restrict " src ,
+.BI "                size_t " n );
 .fi
 .SH DESCRIPTION
 If
-- 
2.30.1


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

* [PATCH 16/17] wmemcpy.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (14 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 15/17] wcstombs.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-11 22:33 ` [PATCH 17/17] wordexp.3: " Alejandro Colomar
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wmemcpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wmemcpy
wcsmbs/wchar.h:262:
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
			 const wchar_t *__restrict __s2, size_t __n) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wmemcpy.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man3/wmemcpy.3 b/man3/wmemcpy.3
index 692754d71..343af42a9 100644
--- a/man3/wmemcpy.3
+++ b/man3/wmemcpy.3
@@ -20,7 +20,9 @@ wmemcpy \- copy an array of wide-characters
 .nf
 .B #include <wchar.h>
 .PP
-.BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wmemcpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI "                 size_t " n );
 .fi
 .SH DESCRIPTION
 The
-- 
2.30.1


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

* [PATCH 17/17] wordexp.3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (15 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 16/17] wmemcpy.3: " Alejandro Colomar
@ 2021-03-11 22:33 ` Alejandro Colomar
  2021-03-13  4:11 ` [PATCH 00/17] man3: " Jonathan Nieder
  2021-03-14 20:56 ` Michael Kerrisk (man-pages)
  18 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar @ 2021-03-11 22:33 UTC (permalink / raw)
  To: mtk.manpages; +Cc: Alejandro Colomar, linux-man, libc-alpha

Both POSIX and glibc use 'restrict' in wordexp().
Let's use it here too.

.../glibc$ grep_glibc_prototype wordexp
posix/wordexp.h:62:
extern int wordexp (const char *__restrict __words,
		    wordexp_t *__restrict __pwordexp, int __flags);
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wordexp.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/wordexp.3 b/man3/wordexp.3
index b1d78cf2f..a531e1eaf 100644
--- a/man3/wordexp.3
+++ b/man3/wordexp.3
@@ -28,7 +28,8 @@ wordexp, wordfree \- perform word expansion like a posix-shell
 .nf
 .B "#include <wordexp.h>"
 .PP
-.BI "int wordexp(const char *" s ", wordexp_t *" p ", int " flags );
+.BI "int wordexp(const char *restrict " s ", wordexp_t *restrict " p \
+", int " flags );
 .BI "void wordfree(wordexp_t *" p );
 .fi
 .PP
-- 
2.30.1


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

* Re: [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (16 preceding siblings ...)
  2021-03-11 22:33 ` [PATCH 17/17] wordexp.3: " Alejandro Colomar
@ 2021-03-13  4:11 ` Jonathan Nieder
  2021-03-13 10:41   ` Alejandro Colomar (man-pages)
  2021-03-14 20:56 ` Michael Kerrisk (man-pages)
  18 siblings, 1 reply; 21+ messages in thread
From: Jonathan Nieder @ 2021-03-13  4:11 UTC (permalink / raw)
  To: Alejandro Colomar
  Cc: mtk.manpages, linux-man, libc-alpha, Heinrich Schuchardt

Hi,

Alejandro Colomar wrote:

> This fixes the remaining pages. With this, all pages have been fixed to use
> 'restrict'.

Probably the context for this came earlier, but I didn't see it in the
commit message, I figure I should ask:

What is the benefit of getting this right for a human reader?  Does
knowing which pointer arguments can't alias help them in tracking down
some bugs, for example?  Or is it going to help them in some other
way?

Thanks,
Jonathan

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

* Re: [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-13  4:11 ` [PATCH 00/17] man3: " Jonathan Nieder
@ 2021-03-13 10:41   ` Alejandro Colomar (man-pages)
  0 siblings, 0 replies; 21+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-03-13 10:41 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: mtk.manpages, linux-man, libc-alpha, Heinrich Schuchardt

Hi Jonathan,

On 3/13/21 5:11 AM, Jonathan Nieder wrote:
> Hi,
> 
> Alejandro Colomar wrote:
> 
>> This fixes the remaining pages. With this, all pages have been fixed to use
>> 'restrict'.
> 
> Probably the context for this came earlier, but I didn't see it in the
> commit message, I figure I should ask:

The origin is here:
<https://lore.kernel.org/linux-man/5a8997be-479b-d813-ce7a-558a8e6633e9@gmx.de/T/>

And a later (short) discussion about it is here:
<https://lore.kernel.org/linux-man/20210203194354.158439-1-alx.manpages@gmail.com/T/>

> 
> What is the benefit of getting this right for a human reader?  Does
> knowing which pointer arguments can't alias help them in tracking down
> some bugs, for example?  Or is it going to help them in some other
> way?

Yes, I think it will help fixing bugs, or more likely preventing them.
Think for example the case of memcpy(3) (by that time 'restrict' didn't 
exist), where people would incorrectly use it as if it were memmove(3) 
ignoring that it could be dangerous (see the NOTES section in memcpy(3)).


Cheers,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

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

* Re: [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes
  2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
                   ` (17 preceding siblings ...)
  2021-03-13  4:11 ` [PATCH 00/17] man3: " Jonathan Nieder
@ 2021-03-14 20:56 ` Michael Kerrisk (man-pages)
  18 siblings, 0 replies; 21+ messages in thread
From: Michael Kerrisk (man-pages) @ 2021-03-14 20:56 UTC (permalink / raw)
  To: Alejandro Colomar
  Cc: mtk.manpages, linux-man, libc-alpha, Heinrich Schuchardt

Hello Alex,


On 3/11/21 11:33 PM, Alejandro Colomar wrote:
> Hello Michael,
> This fixes the remaining pages. With this, all pages have been fixed to use
> 'restrict'.

Thank you!! Patches applied.

Cheers,

Michael

> Alejandro Colomar (17):
>   scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too.
>   tsearch.3: SYNOPSIS: Use 'restrict' in prototypes
>   unlocked_stdio.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcpncpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcscat.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcsncat.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcsncpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcsnrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcsrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcstok.3: SYNOPSIS: Use 'restrict' in prototypes
>   wcstombs.3: SYNOPSIS: Use 'restrict' in prototypes
>   wmemcpy.3: SYNOPSIS: Use 'restrict' in prototypes
>   wordexp.3: SYNOPSIS: Use 'restrict' in prototypes
> 
>  man3/scanf.3          | 16 ++++++++++------
>  man3/tsearch.3        |  4 ++--
>  man3/unlocked_stdio.3 | 20 ++++++++++++--------
>  man3/wcpcpy.3         |  3 ++-
>  man3/wcpncpy.3        |  4 +++-
>  man3/wcrtomb.3        |  3 ++-
>  man3/wcscat.3         |  3 ++-
>  man3/wcscpy.3         |  3 ++-
>  man3/wcsncat.3        |  4 +++-
>  man3/wcsncpy.3        |  4 +++-
>  man3/wcsnrtombs.3     |  5 +++--
>  man3/wcsrtombs.3      |  4 ++--
>  man3/wcstoimax.3      |  8 ++++----
>  man3/wcstok.3         |  5 +++--
>  man3/wcstombs.3       |  3 ++-
>  man3/wmemcpy.3        |  4 +++-
>  man3/wordexp.3        |  3 ++-
>  17 files changed, 60 insertions(+), 36 deletions(-)
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, other threads:[~2021-03-14 20:57 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 22:33 [PATCH 00/17] man3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
2021-03-11 22:33 ` [PATCH 01/17] scanf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too Alejandro Colomar
2021-03-11 22:33 ` [PATCH 02/17] tsearch.3: SYNOPSIS: Use 'restrict' in prototypes Alejandro Colomar
2021-03-11 22:33 ` [PATCH 03/17] unlocked_stdio.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 04/17] wcpcpy.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 05/17] wcpncpy.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 06/17] wcrtomb.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 07/17] wcscat.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 08/17] wcscpy.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 09/17] wcsncat.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 10/17] wcsncpy.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 11/17] wcsnrtombs.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 12/17] wcsrtombs.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 13/17] wcstoimax.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 14/17] wcstok.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 15/17] wcstombs.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 16/17] wmemcpy.3: " Alejandro Colomar
2021-03-11 22:33 ` [PATCH 17/17] wordexp.3: " Alejandro Colomar
2021-03-13  4:11 ` [PATCH 00/17] man3: " Jonathan Nieder
2021-03-13 10:41   ` Alejandro Colomar (man-pages)
2021-03-14 20:56 ` 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.