3 #include "aix-syscall.h"
7 #define real_access(fn, mode) (syscall(SYS_access, (fn), (mode)))
8 #define real_chdir(fn) (syscall(SYS_chdir, (fn)))
9 #define real_chmod(fn, mode) (syscall(SYS_chmod,(fn), (mode)))
10 #define real_chown(fn, owner, group) (syscall(SYS_chown,(fn),(owner),(group)))
12 #define real_getdents(fd, dirp, count) (syscall(SYS_getdents, (fd), (dirp), (count)))
13 /* if needed define SYS_getdents so that getdents gets compiled */
15 #define real_link(fn1, fn2) (syscall(SYS_link, (fn1), (fn2)))
17 #define real_lstat(fn, buf ) (syscall(SYS_lstat, (fn), (buf)))
18 #define real_open(fn,flags,mode) (syscall(SYS_open, (fn), (flags), (mode)))
19 #define real_prev_lstat(fn, buf ) (syscall(SYS_prev_lstat, (fn), (buf)))
20 #define real_prev_stat(fn, buf ) (syscall(SYS_prev_stat, (fn), (buf)))
23 struct dirent *__libc_readdir(DIR * dir);
24 #define real_readdir(dir) (__libc_readdir(dirp))
26 #define real_readdir(dirp) ((struct dirent *)syscall(SYS_readdir,(dirp)))
27 /* if needed define SYS_readdir so that readdir gets compiled */
30 #define real_readlink(fn,buf,len) (syscall(SYS_readlink, (fn), (buf), (len)))
31 #define real_rename(fn1, fn2) (syscall(SYS_rename, (fn1), (fn2)))
32 #define real_stat(fn, buf ) (syscall(SYS_stat, (fn), (buf)))
33 #define real_fstat(fd, buf ) (syscall(SYS_fstat, (fd), (buf)))
34 #define real_read(fd, buf, count ) (syscall(SYS_read, (fd), (buf), (count)))
35 #define real_lseek(fd, offset, whence) (syscall(SYS_lseek, (fd), (offset), (whence)))
36 #define real_write(fd, buf, count ) (syscall(SYS_write, (fd), (buf), (count)))
37 #define real_close(fd) (syscall(SYS_close, (fd)))
38 #define real_fchdir(fd) (syscall(SYS_fchdir, (fd)))
39 #define real_fcntl(fd,cmd,arg) (syscall(SYS_fcntl, (fd), (cmd), (arg)))
40 #define real_symlink(fn1, fn2) (syscall(SYS_symlink, (fn1), (fn2)))
41 #define real_unlink(fn) (syscall(SYS_unlink, (fn)))
42 #define real_rmdir(fn) (syscall(SYS_rmdir, (fn)))
43 #define real_mkdir(fn, mode) (syscall(SYS_mkdir, (fn), (mode)))
44 #define real_utime(fn, buf) (syscall(SYS_utime, (fn), (buf)))
45 #define real_utimes(fn, buf) (syscall(SYS_utimes, (fn), (buf)))