ptg10805159Appendix A Function Prototypes 857
char *getenv(const char *name);
<stdlib.h> p. 210
Returns: pointer to value associated withname,
NULLif not founduid_t geteuid(void);
<unistd.h> p. 228
Returns: effective user ID of calling processgid_t getgid(void);
<unistd.h> p. 228
Returns: real group ID of calling processstruct
group *getgrent(void);
<grp.h> p. 183
Returns: pointer if OK,NULLon error or end of filestruct
group *getgrgid(gid_tgid);
<grp.h> p. 182
Returns: pointer if OK,NULLon errorstruct
group *getgrnam(const char *name);
<grp.h> p. 182
Returns: pointer if OK,NULLon errorint getgroups(intgidsetsize,gid_tgrouplist[]);
<unistd.h> p. 184
Returns: number of supplementary group IDs if OK,
−1 on errorstruct
hostent *gethostent(void);
<netdb.h> p. 597
Returns: pointer if OK,NULLon errorint gethostname(char *name,intnamelen);
<unistd.h> p. 188
Returns: 0 if OK,−1 on errorchar *getlogin(void);
<unistd.h> p. 275
Returns: pointer to string giving login name if OK,
NULLon error