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:
Alejandro Colomar 2021-03-08 19:53:30 +01:00 committed by Michael Kerrisk
parent 716df87cf9
commit e137171d80
1 changed files with 6 additions and 4 deletions

View File

@ -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