ptg10805159
862 Function Prototypes Appendix A
const
char *inet_ntop(intdomain,const void *restrictaddr,
char *restrictstr,socklen_tsize);
<arpa/inet.h> p. 596
Returns: pointer to address string on success,NULLon error
int inet_pton(intdomain,const char *restrictstr,
void *restrictaddr);
<arpa/inet.h> p. 596
Returns: 1 on success, 0 if the format is invalid, or−1 on error
int initgroups(const char *username,gid_tbasegid);
<grp.h> /* Linux & Solaris */ p. 184
<unistd.h> /* FreeBSD & Mac OS X */
Returns: 0 if OK,−1 on error
int ioctl(intfd,intrequest,...);
<unistd.h> /* System V */ p. 87
<sys/ioctl.h> /* BSD and Linux */
Returns:−1 on error,something else if OK
int isatty(intfd);
<unistd.h> p. 695
Returns: 1 (true) if terminal device, 0 (false) otherwise
int kill(pid_tpid,intsigno);
<signal.h> p. 337
Returns: 0 if OK,−1 on error
int lchown(const char *path,uid_towner,gid_tgroup);
<unistd.h> p. 109
Returns: 0 if OK,−1 on error
int link(const char *existingpath,const char *newpath);
<unistd.h> p. 116
Returns: 0 if OK,−1 on error
int linkat(intefd,const char *existingpath,intnfd,
const char *newpath,intflag);
<unistd.h> p. 116
flag:AT_SYMLINK_NOFOLLOW
Returns: 0 if OK,−1 on error