1
0
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:
Jeremy Allison
-
parent 8096032663
commit c7ff521bab
6 changed files with 31 additions and 18 deletions

View File

@@ -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.
********************************************************************/