summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 12:58:27 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-17 13:48:05 +0100
commit476d503d246a563c552a3ba8d7fe3230bec5914e (patch)
tree9556f287a3a5d1432f3f094d37ceac9530059dee
parent245d47f233fcc53aa93503cd876aaf487d89d6e7 (diff)
downloadsamba-476d503d246a563c552a3ba8d7fe3230bec5914e.tar.gz
samba-476d503d246a563c552a3ba8d7fe3230bec5914e.tar.bz2
samba-476d503d246a563c552a3ba8d7fe3230bec5914e.zip
lib/util: Remove unused sys_sendto()
Found by callcatcher. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 17 13:48:05 CET 2012 on sn-devel-104
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/system.c18
2 files changed, 0 insertions, 19 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9fbdbbb1ea..7adb2c4b58 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -325,7 +325,6 @@ ssize_t sys_writev(int fd, const struct iovec *iov, int iovcnt);
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_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);
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 9118d4ea74..f6558530f3 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -209,24 +209,6 @@ ssize_t sys_send(int s, const void *msg, size_t len, int flags)
}
/*******************************************************************
-A sendto wrapper that will deal with EINTR or EAGAIN or EWOULDBLOCK.
-********************************************************************/
-
-ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
-{
- ssize_t ret;
-
- do {
- ret = sendto(s, msg, len, flags, to, tolen);
-#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.
********************************************************************/