@@ -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
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> --- man3/rexec.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)