summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/realcalls.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 07:52:00 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 07:52:00 +0000
commitce843e9735742626bb03cbea61041fff5d215930 (patch)
treee6cc311712d13236be86cb2239c6df1cd08724e5 /source3/smbwrapper/realcalls.h
parent52e5dbeb9c4a59bf47d75e5b693146951e16ba44 (diff)
downloadsamba-ce843e9735742626bb03cbea61041fff5d215930.tar.gz
samba-ce843e9735742626bb03cbea61041fff5d215930.tar.bz2
samba-ce843e9735742626bb03cbea61041fff5d215930.zip
add support for dup() and dup2()
(This used to be commit c5210cb0fffd406ef1809db8644b299bb661df4d)
Diffstat (limited to 'source3/smbwrapper/realcalls.h')
-rw-r--r--source3/smbwrapper/realcalls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbwrapper/realcalls.h b/source3/smbwrapper/realcalls.h
index 786e896641..4678426869 100644
--- a/source3/smbwrapper/realcalls.h
+++ b/source3/smbwrapper/realcalls.h
@@ -58,6 +58,8 @@
#define real_lseek(fd, offset, whence) (syscall(SYS_lseek, (fd), (offset), (whence)))
#define real_write(fd, buf, count ) (syscall(SYS_write, (fd), (buf), (count)))
#define real_close(fd) (syscall(SYS_close, (fd)))
+#define real_dup(fd) (syscall(SYS_dup, (fd)))
+#define real_dup2(fd1, fd2) (syscall(SYS_dup2, (fd1), (fd2)))
#define real_fchdir(fd) (syscall(SYS_fchdir, (fd)))
#define real_fcntl(fd,cmd,arg) (syscall(SYS_fcntl, (fd), (cmd), (arg)))
#define real_symlink(fn1, fn2) (syscall(SYS_symlink, (fn1), (fn2)))
@@ -66,5 +68,3 @@
#define real_mkdir(fn, mode) (syscall(SYS_mkdir, (fn), (mode)))
#define real_utime(fn, buf) (syscall(SYS_utime, (fn), (buf)))
#define real_utimes(fn, buf) (syscall(SYS_utimes, (fn), (buf)))
-
-