mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
Revert "s3-lib Remove unused sys_fcntl_long()"
This reverts commit 846a697e20
.
This is still used in source3/smbd/oplock_irix.c
metze
This commit is contained in:
@ -198,6 +198,20 @@ 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.
|
||||
****************************************************************************/
|
||||
|
Reference in New Issue
Block a user