From ce843e9735742626bb03cbea61041fff5d215930 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Oct 1998 07:52:00 +0000 Subject: add support for dup() and dup2() (This used to be commit c5210cb0fffd406ef1809db8644b299bb661df4d) --- source3/smbwrapper/realcalls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbwrapper/realcalls.h') 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))) - - -- cgit