5 ssize_t
read(int fd
, void *buf
, size_t nbyte
)
7 return syscall(3, fd
, buf
, nbyte
);
10 ssize_t
write(int fd
, const void *buf
, size_t count
)
12 return syscall(4, fd
, buf
, count
);
15 int open(const char *path
, int flags
, int mode
)
17 return syscall(5, path
, flags
, mode
);
22 return syscall(6, fd
);
25 int unlink(const char *pathname
)
27 return syscall(10, pathname
);
30 int rename(const char *oldpath
, const char *newpath
)
32 return syscall(128, oldpath
, newpath
);
35 int mkdir(const char *pathname
, mode_t mode
)
37 return syscall(136, pathname
, mode
);
40 int rmdir(const char *path
)
42 return syscall(137, path
);
45 int stat(const char *path
, struct stat
*sb
)
47 return syscall(188, path
, sb
);
50 int fstat(int fd
, struct stat
*sb
)
52 return syscall(189, fd
, sb
);
55 int getdents(int fd
, char *buf
, size_t count
)
57 return syscall(272, fd
, buf
, count
);
60 int getSandboxDirectory(char *destination
, int *length
)
62 return syscall(602, 0, destination
, length
);