summaryrefslogtreecommitdiff
path: root/source3/lib/util_file.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-19 03:05:38 +0000
committerJeremy Allison <jra@samba.org>2002-04-19 03:05:38 +0000
commitb63be4e1abf419f68755c6b4def8d960c32e70cb (patch)
tree826d26feb65ef00455b8ba269a8d562f75fc1459 /source3/lib/util_file.c
parentfc78c773f8216df1bbaa88d9007cf3f5df386e3d (diff)
downloadsamba-b63be4e1abf419f68755c6b4def8d960c32e70cb.tar.gz
samba-b63be4e1abf419f68755c6b4def8d960c32e70cb.tar.bz2
samba-b63be4e1abf419f68755c6b4def8d960c32e70cb.zip
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
for transfer_file. Jeremy. (This used to be commit c7ff521bab838c070931f2b0ece4be3371fbcdbf)
Diffstat (limited to 'source3/lib/util_file.c')
-rw-r--r--source3/lib/util_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index e80267f84b..fd3aeb99d9 100644
--- a/source3/lib/util_file.c
+++ b/source3/lib/util_file.c
@@ -51,6 +51,7 @@ BOOL do_file_lock(int fd, int waitsecs, int type)
lock.l_pid = 0;
alarm(waitsecs);
+ /* Note we must *NOT* use sys_fcntl here ! JRA */
ret = fcntl(fd, SMB_F_SETLKW, &lock);
alarm(0);
CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);