#
# 3d system call intercept
#
# name # class # return type # arg prototype[s] # att # [bsd] # op ...
#
# NOTE: tab is the field separator, space is the subfield separator
#
# if test 1 = "$REPLICATE" -o 1 = "$SYSCALL3D"
# fi
#
_exit exit void int 1
access nop int const char*, int 33
acl control int const char*, int, int, aclent_t* 185 sys/acl.h
#brk break int void* 17 0
chdir nop int const char* 12
chmod chmod int const char*, mode_t 15
chown chown int const char*, uid_t, gid_t 16
close close int int 6
closedir nop int DIR*
creat open int const char*, mode_t 8
dup dup int int 41
dup2 dup int int, int 90
execve exec int const char*, char* const*, char* const* 59 59
facl control int int, int, int, aclent_t* 200 sys/acl.h
fchdir nop int int 147
fchmod chmod int int, mode_t 124
fchown chown int int, uid_t, gid_t 123
fcntl dup int int, int, ... 92
fork fork pid_t void 2
fpathconf pathconf long int, int 187 114
fstat stat int int, struct stat* 62 version sys/stat.h
fstatfs statfs int int, struct statfs*, int, int 158 38 variant int, struct statfs* sys/statfs.h
fstatvfs statfs int int, struct statvfs* 201 104
fsync sync int int 95
ftruncate truncate int int, off_t 130
getdents getdents ssize_t int, void*, size_t 174
kill kill int pid_t, int 37
link link int const char*, const char* 9
lseek seek off_t int, off_t, int 19
lstat stat int const char*, struct stat* 48 88 alternate stat version sys/stat.h
mkdir mkdir int const char*, mode_t 136 80
mknod mknod int const char*, mode_t, dev_t 14 version sys/stat.h
mount mount int const char*, char*, int, void*, void*, void* 167 21
open open int const char*, int, ... 5
opendir nop DIR* const char*
pathconf pathconf long const char*, int 186 113
pipe pipe bool int* 42
read read ssize_t int, void*, size_t 3
readdir nop struct dirent* DIR*
readlink link ssize_t const char*, char*, size_t 58 90
rename rename int const char*, const char* 128 134
rewinddir nop void DIR*
rmdir rmdir int const char* 137 79
#sbrk break void* ssize_t 0 69
seekdir nop void DIR*, long coupled rewinddir telldir
stat stat int const char*, struct stat* 38 18 version sys/stat.h
statfs statfs int const char*, struct statfs*, int, int 157 35 variant const char*, struct statfs* sys/statfs.h
statvfs statfs int const char*, struct statvfs* 202 103
symlink link int const char*, const char* 57 89
telldir nop long DIR*
truncate truncate int const char*, off_t 129 0
unlink remove int const char* 10
utime utime int const char*, const struct utimbuf* 30
utimensat utime int int, const char*, const struct timespec*, int 236 0
utimes utime int const char*, const struct timeval* 138 0
utimets utime int const char*, const struct timespec* 235 0
vfork fork pid_t void 66
write write ssize_t int, const void*, size_t 4
#
# now, these guys put padding in struct stat in preparation for 64 bit
# dev_t,ino_t,off_t, and then ignored it, but even worse, the padding
# was kept in struct stat64
#
fstat64 stat int int, struct stat64* 255 version sys/stat.h
ftruncate64 truncate int int, off64_t 255
lseek64 seek off64_t int, off64_t, int 255
lstat64 stat int const char*, struct stat64* 255 version sys/stat.h
open64 open int const char*, int, ... 255
stat64 stat int const char*, struct stat64* 255 version sys/stat.h
truncate64 truncate int const char*, off64_t 255
#
# dir got into the act too
#
getdents64 getdents ssize_t int, void*, size_t 255
readdir64 nop struct dirent64* DIR*
rewinddir64 nop void DIR*
seekdir64 nop void DIR*, off64_t coupled rewinddir64 telldir64
telldir64 nop off64_t DIR*