1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

lib/util: Remove unused sys_recv()

Found by callcatcher.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2012-02-09 12:57:21 +11:00
parent 057b87d0bd
commit 245d47f233
2 changed files with 0 additions and 19 deletions

View File

@ -326,7 +326,6 @@ ssize_t sys_pread(int fd, void *buf, size_t count, SMB_OFF_T off);
ssize_t sys_pwrite(int fd, const void *buf, size_t count, SMB_OFF_T off);
ssize_t sys_send(int s, const void *msg, size_t len, int flags);
ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
ssize_t sys_recv(int fd, void *buf, size_t count, int flags);
ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
int sys_fcntl_ptr(int fd, int cmd, void *arg);
void update_stat_ex_mtime(struct stat_ex *dst, struct timespec write_ts);

View File

@ -226,24 +226,6 @@ ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct
return ret;
}
/*******************************************************************
A recv wrapper that will deal with EINTR or EAGAIN or EWOULDBLOCK.
********************************************************************/
ssize_t sys_recv(int fd, void *buf, size_t count, int flags)
{
ssize_t ret;
do {
ret = recv(fd, buf, count, flags);
#if defined(EWOULDBLOCK)
} while (ret == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK));
#else
} while (ret == -1 && (errno == EINTR || errno == EAGAIN));
#endif
return ret;
}
/*******************************************************************
A recvfrom wrapper that will deal with EINTR.
********************************************************************/