ptg10805159Appendix A Function Prototypes 859
pid_t getpid(void);
<unistd.h> p. 228
Returns: process ID of calling processpid_t getppid(void);
<unistd.h> p. 228
Returns: parent process ID of calling processint getpriority(intwhich,id_twho);
<sys/resource.h> p. 277
which:PRIO_PROCESS, PRIO_PGRP, PRIO_USER
Returns: nice value between−NZEROandNZERO− 1 if OK,
−1 on errorstruct
protoent *getprotobyname(const char *name);
<netdb.h> p. 598
Returns: pointer if OK,NULLon errorstruct
protoent *getprotobynumber(intproto);
<netdb.h> p. 598
Returns: pointer if OK,NULLon errorstruct
protoent *getprotoent(void);
<netdb.h> p. 598
Returns: pointer if OK,NULLon errorstruct
passwd *getpwent(void);
<pwd.h> p. 180
Returns: pointer if OK,NULLon error or end of filestruct
passwd *getpwnam(const char *name);
<pwd.h> p. 179
Returns: pointer if OK,NULLon errorstruct
passwd *getpwuid(uid_tuid);
<pwd.h> p. 179
Returns: pointer if OK,NULLon error