ptg10805159
858 Function Prototypes Appendix A
int getnameinfo(const struct sockaddr *restrictaddr,
socklen_talen,char *restricthost,
socklen_thostlen,char *restrictservice,
socklen_tservlen,unsigned intflags);
<sys/socket.h> p. 600
<netdb.h>
flags:NI_DGRAM, NI_NAMEREQD, NI_NOFQDN,
NI_NUMERICHOST, NI_NUMERICSCOPE,
NI_NUMERICSERV
Returns: 0 if OK, nonzero on error
struct
netent *getnetbyaddr(uint32_tnet,inttype);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
struct
netent *getnetbyname(const char *name);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
struct
netent *getnetent(void);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
int getopt(intargc,char * constargv[], const char *options);
<fcntl.h> p. 662
extern int opterr, optind, optopt;
extern char *optarg;
Returns: the next option character,or−1when all options
have been processed
int getpeername(intsockfd,struct sockaddr *restrictaddr,
socklen_t *restrictalenp);
<sys/socket.h> p. 605
Returns: 0 if OK,−1 on error
pid_t getpgid(pid_tpid);
<unistd.h> p. 294
Returns: process group ID if OK,−1 on error
pid_t getpgrp(void);
<unistd.h> p. 293
Returns: process group ID of calling process