ptg10805159
878 Function Prototypes Appendix A
void *realloc(void *ptr,size_tnewsize);
<stdlib.h> p. 207
Returns: non-null pointer if OK,NULLon error
ssize_t recv(intsockfd,void *buf,size_tnbytes,intflags);
<sys/socket.h> p. 612
flags:MSG_PEEK, MSG_OOB, MSG_WAITALL,
MSG_CMSG_CLOEXEC(Linux 3.2.0),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Solaris 10),
MSG_ERRQUEUE(Linux 3.2.0),
MSG_TRUNC(Linux 3.2.0)
Returns: length of message in bytes, 0 if no messages are
available and peer has done an orderly shutdown,
or−1 on error
ssize_t recvfrom(intsockfd,void *restrictbuf,size_tlen,intflags,
struct sockaddr *restrictaddr,
socklen_t *restrictaddrlen);
<sys/socket.h> p. 613
flags:MSG_PEEK, MSG_OOB, MSG_WAITALL
MSG_CMSG_CLOEXEC(Linux 3.2.0),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Solaris 10),
MSG_ERRQUEUE(Linux 3.2.0),
MSG_TRUNC(Linux 3.2.0)
Returns: length of message in bytes, 0 if no messages are
available and peer has done an orderly shutdown,
or−1 on error
ssize_t recvmsg(intsockfd,struct msghdr *msg,intflags);
<sys/socket.h> p. 613
flags:MSG_PEEK, MSG_OOB, MSG_WAITALL
MSG_CMSG_CLOEXEC(Linux 3.2.0),
MSG_DONTWAIT(FreeBSD 8.0, Linux 3.2.0,
Solaris 10),
MSG_ERRQUEUE(Linux 3.2.0),
MSG_TRUNC(Linux 3.2.0)
Returns: length of message in bytes, 0 if no messages are
available and peer has done an orderly shutdown,
or−1 on error
int remove(const char *path);
<stdio.h> p. 119
Returns: 0 if OK,−1 on error
int rename(const char *oldname,const char *newname);
<stdio.h> p. 119
Returns: 0 if OK,−1 on error