Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

882 Function Prototypes Appendix A


int seteuid(uid_tuid);
<unistd.h> p. 258
Returns: 0 if OK,−1 on error

int setgid(gid_tgid);
<unistd.h> p. 256
Returns: 0 if OK,−1 on error

void setgrent(void);
<grp.h> p. 183

int setgroups(intngroups,const gid_tgrouplist[]);
<grp.h> /* Linux */ p. 184
<unistd.h> /* FreeBSD, Mac OS X, and Solaris */
Returns: 0 if OK,−1 on error

void sethostent(intstayopen);
<netdb.h> p. 597

int setjmp(jmp_buf env);
<setjmp.h> p. 215
Returns: 0 if called directly,nonzero if returning from
acall tolongjmp

int setlogmask(intmaskpri);
<syslog.h> p. 470
Returns: previous log priority mask value

void setnetent(intstayopen);
<netdb.h> p. 598

int setpgid(pid_tpid,pid_tpgid);
<unistd.h> p. 294
Returns: 0 if OK,−1 on error

int setpriority(intwhich,id_twho,intvalue);
<sys/resource.h> p. 277
which:PRIO_PROCESS, PRIO_PGRP, PRIO_USER
Returns: 0 if OK,−1 on error

void setprotoent(intstayopen);
<netdb.h> p. 598

void setpwent(void);
<pwd.h> p. 180
Free download pdf