ptg10805159
886 Function Prototypes Appendix A
int sigsuspend(const sigset_t *sigmask);
<signal.h> p. 359
Returns:−1witherrnoset toEINTR
int sigwait(const sigset_t *restrictset,int *restrictsignop);
<signal.h> p. 454
Returns: 0 if OK, error number on failure
unsigned
int sleep(unsigned intseconds);
<unistd.h> p. 373
Returns: 0 or number of unslept seconds
int snprintf(char *restrictbuf,size_tn,
const char *restrictformat,...);
<stdio.h> p. 159
Returns: number of characters that would have been stored
in array if buffer was large enough, negative value
if encoding error
int sockatmark(intsockfd);
<sys/socket.h> p. 626
Returns: 1 if at mark, 0 if not at mark,−1 on error
int socket(intdomain,inttype,intprotocol);
<sys/socket.h> p. 590
type:SOCK_STREAM, SOCK_DGRAM, SOCK_SEQPACKET
Returns: file (socket) descriptor if OK,−1 on error
int socketpair(intdomain,inttype,intprotocol,intsockfd[2]);
<sys/socket.h> p. 630
type:SOCK_STREAM, SOCK_DGRAM, SOCK_SEQPACKET
Returns: 0 if OK,−1 on error
int sprintf(char *restrictbuf,const char *restrictformat,...);
<stdio.h> p. 159
Returns: number of characters stored in array if OK, negative
value if encoding error
int sscanf(const char *restrictbuf,
const char *restrictformat,...);
<stdio.h> p. 162
Returns: number of input items assigned,EOFif input error or
end of file beforeany conversion