ptg10805159
884 Function Prototypes Appendix A
int setvbuf(FILE *restrictfp,char *restrictbuf,intmode,
size_tsize);
<stdio.h> p. 146
mode:_IOFBF, _IOLBF, _IONBF
Returns: 0 if OK, nonzero on error
void *shmat(intshmid,const void *addr,intflag);
<sys/shm.h> p. 574
flag:SHM_RND, SHM_RDONLY
Returns: pointer to shared memory segment if OK,−1 on error
int shmctl(intshmid,intcmd,struct shmid_ds *buf);
<sys/shm.h> p. 573
cmd:IPC_STAT, IPC_SET, IPC_RMID,
SHM_LOCK(Linux 3.2.0, Solaris 10),
SHM_UNLOCK(Linux 3.2.0, Solaris 10)
Returns: 0 if OK,−1 on error
int shmdt(const void *addr);
<sys/shm.h> p. 574
Returns: 0 if OK,−1 on error
int shmget(key_tkey,size_tsize,intflag);
<sys/shm.h> p. 572
flag:IPC_CREAT, IPC_EXCL
Returns: non-negative shared memory ID if OK,−1 on error
int shutdown(intsockfd,inthow);
<sys/socket.h> p. 592
how:SHUT_RD, SHUT_WR, SHUT_RDWR
Returns: 0 if OK,−1 on error
int sig2str(intsigno,char *str);
<signal.h> p. 380
Returns: 0 if OK,−1 on error
Platforms: Solaris 10
int sigaction(intsigno,const struct sigaction *restrictact,
struct sigaction *restrictoact);
<signal.h> p. 350
Returns: 0 if OK,−1 on error
int sigaddset(sigset_t *set,intsigno);
<signal.h> p. 344
Returns: 0 if OK,−1 on error