diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-04 00:23:28 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-04 00:23:28 +0000 |
commit | 623a18db4b0f46c80c29e93a0ad0a2fcbfec71dc (patch) | |
tree | 3911452a790d0ad2f1e836e06b31cc6ca3a22951 /source3/locking/locking_slow.c | |
parent | 7bb86c1b132bce31a006ea9768a54db7a45fe1a5 (diff) | |
download | samba-623a18db4b0f46c80c29e93a0ad0a2fcbfec71dc.tar.gz samba-623a18db4b0f46c80c29e93a0ad0a2fcbfec71dc.tar.bz2 samba-623a18db4b0f46c80c29e93a0ad0a2fcbfec71dc.zip |
More 64 bit stuff - now the fcntl locks are 64 bit clean.
Nearly at the stage where I can expose the 64-bit-ness to
the NT clients....
Jeremy.
(This used to be commit 422f1dd45074c0e28203aca5952e57bbe56676b6)
Diffstat (limited to 'source3/locking/locking_slow.c')
-rw-r--r-- | source3/locking/locking_slow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/locking/locking_slow.c b/source3/locking/locking_slow.c index c242baec4a..c9b8d2a687 100644 --- a/source3/locking/locking_slow.c +++ b/source3/locking/locking_slow.c @@ -174,7 +174,7 @@ static BOOL slow_lock_share_entry(connection_struct *conn, /* At this point we have an open fd to the share mode file. Lock the first byte exclusively to signify a lock. */ - if(fcntl_lock(fd, F_SETLKW, 0, 1, F_WRLCK) == False) + if(fcntl_lock(fd, SMB_F_SETLKW, 0, 1, F_WRLCK) == False) { DEBUG(0,("ERROR lock_share_entry: fcntl_lock on file %s failed with %s\n", fname, strerror(errno))); @@ -251,7 +251,7 @@ static BOOL slow_unlock_share_entry(connection_struct *conn, /* token is the fd of the open share mode file. */ /* Unlock the first byte. */ - if(fcntl_lock(fd, F_SETLKW, 0, 1, F_UNLCK) == False) + if(fcntl_lock(fd, SMB_F_SETLKW, 0, 1, F_UNLCK) == False) { DEBUG(0,("ERROR unlock_share_entry: fcntl_lock failed with %s\n", strerror(errno))); @@ -980,7 +980,7 @@ static int slow_share_forall(void (*fn)(share_mode_entry *, char *)) /* Lock the share mode file while we read it. */ if(!read_only && - fcntl_lock(fd, F_SETLKW, 0, 1, F_WRLCK) == False) { + fcntl_lock(fd, SMB_F_SETLKW, 0, 1, F_WRLCK) == False) { close(fd); continue; } |