1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00

Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write

for transfer_file.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 8096032663
commit c7ff521bab
6 changed files with 31 additions and 18 deletions

View File

@@ -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);