diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-19 03:05:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-19 03:05:38 +0000 |
commit | b63be4e1abf419f68755c6b4def8d960c32e70cb (patch) | |
tree | 826d26feb65ef00455b8ba269a8d562f75fc1459 /source3/smbd/vfs-wrap.c | |
parent | fc78c773f8216df1bbaa88d9007cf3f5df386e3d (diff) | |
download | samba-b63be4e1abf419f68755c6b4def8d960c32e70cb.tar.gz samba-b63be4e1abf419f68755c6b4def8d960c32e70cb.tar.bz2 samba-b63be4e1abf419f68755c6b4def8d960c32e70cb.zip |
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
for transfer_file.
Jeremy.
(This used to be commit c7ff521bab838c070931f2b0ece4be3371fbcdbf)
Diffstat (limited to 'source3/smbd/vfs-wrap.c')
-rw-r--r-- | source3/smbd/vfs-wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c index fadc435a2f..394086dc07 100644 --- a/source3/smbd/vfs-wrap.c +++ b/source3/smbd/vfs-wrap.c @@ -147,7 +147,7 @@ ssize_t vfswrap_read(files_struct *fsp, int fd, void *data, size_t n) ssize_t result; START_PROFILE_BYTES(syscall_read, n); - result = read(fd, data, n); + result = sys_read(fd, data, n); END_PROFILE(syscall_read); return result; } @@ -157,7 +157,7 @@ ssize_t vfswrap_write(files_struct *fsp, int fd, const void *data, size_t n) ssize_t result; START_PROFILE_BYTES(syscall_write, n); - result = write(fd, data, n); + result = sys_write(fd, data, n); END_PROFILE(syscall_write); return result; } |