rexec(3) Library Functions Manual rexec(3) rexec, rexec_af - (libc -lc) #include [[deprecated]] int rexec(char **restrict ahost, int inport, const char *restrict user, const char *restrict passwd, const char *restrict cmd, int *restrict fd2p); [[deprecated]] int rexec_af(char **restrict ahost, int inport, const char *restrict user, const char *restrict passwd, const char *restrict cmd, int *restrict fd2p, sa_family_t af); rexec(), rexec_af(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 ( 2.19): _BSD_SOURCE rcmd(3). rexec() *ahost gethostbyname(3) -1 . *ahost . .netrc . . inport DARPA getservbyname("exec", "tcp") ( getservent(3)) . rexecd(8). SOCK_STREAM stdin stdout. fd2p *fd2p. ( 2) UNIX . . fd2p 0 stderr ( 2 ) stdout . rexec_af() rexec() IPv4 (AF_INET). rexec_af() af . AF_INET AF_INET6 AF_UNSPEC ( ). attributes(7). +----------------------+------------------------------------+--------------------------------------------------------------------+ | | | | +----------------------+------------------------------------+--------------------------------------------------------------------+ |rexec(), rexec_af() | | (MT-Unsafe) | +----------------------+------------------------------------+--------------------------------------------------------------------+ . rexec() 4.2BSD, BSD, Solaris. rexec_af() glibc 2.2. rexec() . rexecd(8) . rcmd(3), rexecd(8) 3 . . : . 6.18 21 2025 rexec(3)