ptg10805159
Appendix A Function Prototypes 859
pid_t getpid(void);
<unistd.h> p. 228
Returns: process ID of calling process
pid_t getppid(void);
<unistd.h> p. 228
Returns: parent process ID of calling process
int 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 error
struct
protoent *getprotobyname(const char *name);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
struct
protoent *getprotobynumber(intproto);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
struct
protoent *getprotoent(void);
<netdb.h> p. 598
Returns: pointer if OK,NULLon error
struct
passwd *getpwent(void);
<pwd.h> p. 180
Returns: pointer if OK,NULLon error or end of file
struct
passwd *getpwnam(const char *name);
<pwd.h> p. 179
Returns: pointer if OK,NULLon error
struct
passwd *getpwuid(uid_tuid);
<pwd.h> p. 179
Returns: pointer if OK,NULLon error