ptg10805159
Appendix A Function Prototypes 881
ssize_t send(intsockfd,const void *buf,size_tnbytes,intflags);
<sys/socket.h> p. 610
flags:MSG_EOR, MSG_OOB, MSG_NOSIGNAL
MSG_CONFIRM(Linux 3.2.0),
MSG_DONTROUTE(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_EOF(FreeBSD 8.0, Mac OS X 10.6.8),
MSG_MORE(Linux 3.2.0)
Returns: number of bytes sent if OK,−1 on error
ssize_t sendmsg(intsockfd,const struct msghdr *msg,intflags);
<sys/socket.h> p. 611
flags:MSG_EOR, MSG_OOB, MSG_NOSIGNAL
MSG_CONFIRM(Linux 3.2.0),
MSG_DONTROUTE(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_EOF(FreeBSD 8.0, Mac OS X 10.6.8),
MSG_MORE(Linux 3.2.0)
Returns: number of bytes sent if OK,−1 on error
ssize_t sendto(intsockfd,const void *buf,size_tnbytes,intflags,
const struct sockaddr *destaddr,socklen_tdestlen);
<sys/socket.h> p. 610
flags:MSG_EOR, MSG_OOB, MSG_NOSIGNAL
MSG_CONFIRM(Linux 3.2.0),
MSG_DONTROUTE(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Mac OS X 10.6.8, Solaris 10),
MSG_EOF(FreeBSD 8.0, Mac OS X 10.6.8),
MSG_MORE(Linux 3.2.0)
Returns: number of bytes sent if OK,−1 on error
void setbuf(FILE *restrictfp,char *restrictbuf);
<stdio.h> p. 146
int setegid(gid_tgid);
<unistd.h> p. 258
Returns: 0 if OK,−1 on error
int setenv(const char *name,const char *value,intrewrite);
<stdlib.h> p. 212
Returns: 0 if OK,−1 on error