ptg10805159
Appendix A Function Prototypes 883
int setregid(gid_trgid,gid_tegid);
<unistd.h> p. 257
Returns: 0 if OK,−1 on error
int setreuid(uid_truid,uid_teuid);
<unistd.h> p. 257
Returns: 0 if OK,−1 on error
int setrlimit(intresource,const struct rlimit *rlptr);
<sys/resource.h> p. 220
resource:RLIMIT_CORE, RLIMIT_CPU,
RLIMIT_DATA, RLIMIT_FSIZE,
RLIMIT_NOFILE, RLIMIT_STACK,
RLIMIT_AS(FreeBSD 8.0, Linux 3.2.0,
Solaris 10),
RLIMIT_MEMLOCK(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8),
RLIMIT_MSGQUEUE(Linux 3.2.0),
RLIMIT_NICE(Linux 3.2.0),
RLIMIT_NPROC(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8),
RLIMIT_NPTS(FreeBSD 8.0),
RLIMIT_RSS(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8),
RLIMIT_SBSIZE(FreeBSD 8.0),
RLIMIT_SIGPENDING(Linux 3.2.0),
RLIMIT_SWAP(FreeBSD 8.0),
RLIMIT_VMEM(Solaris 10)
Returns: 0 if OK,−1 on error
void setservent(intstayopen);
<netdb.h> p. 599
pid_t setsid(void);
<unistd.h> p. 295
Returns: process group ID if OK,−1 on error
int setsockopt(intsockfd,intlevel,intoption,const void *val,
socklen_tlen);
<sys/socket.h> p. 624
Returns: 0 if OK,−1 on error
void setspent(void);
<shadow.h> p. 182
Platforms: Linux 3.2.0, Solaris 10
int setuid(uid_tuid);
<unistd.h> p. 256
Returns: 0 if OK,−1 on error