diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-02-28 01:48:06 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-03 23:24:23 +0100 |
| commit | 79201b695eec6eea0e34d76e84a90872be92a9dc (patch) | |
| tree | b5008b269005a723169009fa41147da116afeec2 /man3 | |
| parent | 854214715b2b9c20ceabc68b01dd7ae4bd20e65a (diff) | |
| download | man-pages-79201b695eec6eea0e34d76e84a90872be92a9dc.tar.gz | |
getaddrinfo_a.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in getaddrinfo_a().
Let's use it here too.
.../glibc$ grep_glibc_prototype getaddrinfo_a
resolv/netdb.h:690:
extern int getaddrinfo_a (int __mode, struct gaicb *__list[__restrict_arr],
int __ent, struct sigevent *__restrict __sig);
.../glibc$
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/getaddrinfo_a.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man3/getaddrinfo_a.3 b/man3/getaddrinfo_a.3 index 416904437d..0ddb8a76dd 100644 --- a/man3/getaddrinfo_a.3 +++ b/man3/getaddrinfo_a.3 @@ -36,13 +36,13 @@ network address and service translation .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <netdb.h> .PP -.BI "int getaddrinfo_a(int " "mode" ", struct gaicb *" "list[]" , -.BI " int " "nitems" ", struct sigevent *" "sevp" ); -.BI "int gai_suspend(const struct gaicb * const " "list[]" ", int " "nitems" , -.BI " const struct timespec *" "timeout" ); +.BI "int getaddrinfo_a(int " mode ", struct gaicb *" list [restrict], +.BI " int " nitems ", struct sigevent *restrict " sevp ); +.BI "int gai_suspend(const struct gaicb *const " list "[], int " nitems , +.BI " const struct timespec *" timeout ); .PP -.BI "int gai_error(struct gaicb *" "req" ); -.BI "int gai_cancel(struct gaicb *" "req" ); +.BI "int gai_error(struct gaicb *" req ); +.BI "int gai_cancel(struct gaicb *" req ); .PP Link with \fI\-lanl\fP. .fi |
