mirror of
https://github.com/samba-team/samba.git
synced 2025-12-24 04: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:
@@ -147,6 +147,21 @@ ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *f
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
A fcntl wrapper that will deal with EINTR.
|
||||
********************************************************************/
|
||||
|
||||
int sys_fcntl(int fd, int cmd, void *arg)
|
||||
{
|
||||
int ret;
|
||||
|
||||
do {
|
||||
errno = 0;
|
||||
ret = fcntl(fd, cmd, arg);
|
||||
} while (ret == -1 && errno == EINTR);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
A stat() wrapper that will deal with 64 bit filesizes.
|
||||
********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user