aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-02-24 15:43:04 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-03 23:12:22 +0100
commitebf67ad6ad49876d9ccf601286a81ccd19b9acb0 (patch)
treee15253ecc004c7ee1110e5f546e2197d33edd202 /man3
parent017103fa19240c9e78fdf37286bfb21638b91e82 (diff)
downloadman-pages-ebf67ad6ad49876d9ccf601286a81ccd19b9acb0.tar.gz
envz_add.3: SYNOPSIS: Use 'restrict' in prototypes
Glibc uses 'restrict' for these functions Let's use it here too. ============================= envz_add string/envz.h:49: error_t envz_add (char **restrict envz, size_t *restrict envz_len, const char *restrict name, const char *restrict value) THROW; ============================= envz_entry string/envz.h:33: char *envz_entry (const char *restrict envz, size_t envz_len, const char *restrict name) THROW attribute_pure__; ============================= envz_get string/envz.h:39: char *envz_get (const char *restrict envz, size_t envz_len, const char *restrict name) THROW attribute_pure__; ============================= envz_merge string/envz.h:57: error_t envz_merge (char **restrict envz, size_t *restrict envz_len, const char *restrict envz2, size_t envz2_len, int override) THROW; ============================= envz_remove string/envz.h:63: void envz_remove (char **restrict envz, size_t *restrict envz_len, const char *restrict name) THROW; ============================= envz_strip string/envz.h:68: void envz_strip (char **restrict envz, size_t *restrict envz_len) THROW; Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/envz_add.325
1 files changed, 13 insertions, 12 deletions
diff --git a/man3/envz_add.3 b/man3/envz_add.3
index 23a7a1fe11..cfb56b4787 100644
--- a/man3/envz_add.3
+++ b/man3/envz_add.3
@@ -15,23 +15,24 @@ envz_remove, envz_strip \- environment string support
.nf
.B "#include <envz.h>"
.PP
-.BI "error_t envz_add(char **" envz ", size_t *" envz_len ,
-.BI " const char *" name ", const char *" value );
+.BI "error_t envz_add(char **restrict " envz ", size_t *restrict " envz_len ,
+.BI " const char *restrict " name \
+", const char *restrict " value );
.PP
-.BI "char *envz_entry(const char *" envz ", size_t " envz_len \
-", const char *" name );
+.BI "char *envz_entry(const char *restrict " envz ", size_t " envz_len ,
+.BI " const char *restrict " name );
.PP
-.BI "char *envz_get(const char *" envz ", size_t " envz_len \
-", const char *" name );
+.BI "char *envz_get(const char *restrict " envz ", size_t " envz_len ,
+.BI " const char *restrict " name );
.PP
-.BI "error_t envz_merge(char **" envz ", size_t *" envz_len ,
-.BI " const char *" envz2 ", size_t " envz2_len \
-", int " override );
+.BI "error_t envz_merge(char **restrict " envz ", size_t *restrict " envz_len ,
+.BI " const char *restrict " envz2 ", size_t " envz2_len ,
+.BI " int " override );
.PP
-.BI "void envz_remove(char **" envz ", size_t *" envz_len \
-", const char *" name );
+.BI "void envz_remove(char **restrict " envz ", size_t *restrict " envz_len ,
+.BI " const char *restrict " name );
.PP
-.BI "void envz_strip(char **" envz ", size_t *" envz_len );
+.BI "void envz_strip(char **restrict " envz ", size_t *restrict " envz_len );
.fi
.SH DESCRIPTION
These functions are glibc-specific.