diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 12:05:58 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-17 12:19:29 +0100 |
commit | 846a697e20478798288afb43cdb7a9f389a15c69 (patch) | |
tree | 10eb5b3177a47a05e1c44b3021267704eab3b92f /source3 | |
parent | 59d1faa1a30abd2a4e3cdaf0db1aa736283f822c (diff) | |
download | samba-846a697e20478798288afb43cdb7a9f389a15c69.tar.gz samba-846a697e20478798288afb43cdb7a9f389a15c69.tar.bz2 samba-846a697e20478798288afb43cdb7a9f389a15c69.zip |
s3-lib Remove unused sys_fcntl_long()
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/lib/system.c | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 2afe726af2..6108a408f1 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -330,7 +330,6 @@ ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct 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); -int sys_fcntl_long(int fd, int cmd, long arg); void update_stat_ex_mtime(struct stat_ex *dst, struct timespec write_ts); void update_stat_ex_create_time(struct stat_ex *dst, struct timespec create_time); int sys_stat(const char *fname, SMB_STRUCT_STAT *sbuf, diff --git a/source3/lib/system.c b/source3/lib/system.c index 2342eda732..c24422f3a2 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -276,20 +276,6 @@ int sys_fcntl_ptr(int fd, int cmd, void *arg) return ret; } -/******************************************************************* -A fcntl wrapper that will deal with EINTR. -********************************************************************/ - -int sys_fcntl_long(int fd, int cmd, long arg) -{ - int ret; - - do { - ret = fcntl(fd, cmd, arg); - } while (ret == -1 && errno == EINTR); - return ret; -} - /**************************************************************************** Get/Set all the possible time fields from a stat struct as a timespec. ****************************************************************************/ |