mirror of https://github.com/mkerrisk/man-pages
rexec.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in rexec(), rexec_af(). Let's use it here too. .../glibc$ grep_glibc_prototype rexec resolv/netdb.h:477: extern int rexec (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p); .../glibc$ grep_glibc_prototype rexec_af resolv/netdb.h:489: extern int rexec_af (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
716df87cf9
commit
e137171d80
10
man3/rexec.3
10
man3/rexec.3
|
@ -45,10 +45,12 @@ rexec, rexec_af \- return stream to a remote command
|
|||
.nf
|
||||
.B #include <netdb.h>
|
||||
.PP
|
||||
.BI "int rexec(char **" ahost ", int " inport ", const char *" user ,
|
||||
.BI " const char *" passwd ", const char *" cmd ", int *" fd2p );
|
||||
.BI "int rexec_af(char **" ahost ", int " inport ", const char *" user ,
|
||||
.BI " const char *" passwd ", const char *" cmd ", int *" fd2p ,
|
||||
.BI "int rexec(char **restrict " ahost ", int " inport ,
|
||||
.BI " const char *restrict " user ", const char *restrict " passwd ,
|
||||
.BI " const char *restrict " cmd ", int *restrict " fd2p );
|
||||
.BI "int rexec_af(char **restrict " ahost ", int " inport ,
|
||||
.BI " const char *restrict " user ", const char *restrict " passwd ,
|
||||
.BI " const char *restrict " cmd ", int *restrict " fd2p ,
|
||||
.BI " sa_family_t " af );
|
||||
.fi
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue