|
| #define | _SYSCALL0(retType, num) |
| |
| #define | _SYSCALL1(retType, num, type1, arg1) |
| |
| #define | _SYSCALL2(retType, num, type1, arg1, type2, arg2) |
| |
| #define | _SYSCALL3(retType, num, type1, arg1, type2, arg2, type3, arg3) |
| |
| #define | _SYSCALL4(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4) |
| |
| #define | _SYSCALL5(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) |
| |
| #define | _SYSCALL6(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, type6, arg6) |
| |
|
| static _NORETURN void | _syscall_exits (const char *status) |
| |
| static _NORETURN void | _syscall_thread_exit (void) |
| |
| static pid_t | _syscall_spawn (const char **argv, spawn_flags_t flags) |
| |
| static uint64_t | _syscall_nanosleep (clock_t nanoseconds) |
| |
| static errno_t | _syscall_errno (void) |
| |
| static pid_t | _syscall_getpid (void) |
| |
| static tid_t | _syscall_gettid (void) |
| |
| static clock_t | _syscall_uptime (void) |
| |
| static time_t | _syscall_unix_epoch (void) |
| |
| static fd_t | _syscall_open (const char *path) |
| |
| static uint64_t | _syscall_open2 (const char *path, fd_t fds[2]) |
| |
| static uint64_t | _syscall_close (fd_t fd) |
| |
| static uint64_t | _syscall_read (fd_t fd, void *buffer, size_t count) |
| |
| static uint64_t | _syscall_write (fd_t fd, const void *buffer, size_t count) |
| |
| static uint64_t | _syscall_seek (fd_t fd, ssize_t offset, seek_origin_t origin) |
| |
| static uint64_t | _syscall_ioctl (fd_t fd, uint64_t request, void *argp, size_t size) |
| |
| static uint64_t | _syscall_poll (pollfd_t *fds, uint64_t amount, clock_t timeout) |
| |
| static uint64_t | _syscall_stat (const char *path, stat_t *info) |
| |
| static void * | _syscall_mmap (fd_t fd, void *address, size_t length, prot_t prot) |
| |
| static void * | _syscall_munmap (void *address, size_t length) |
| |
| static void * | _syscall_mprotect (void *address, size_t length, prot_t prot) |
| |
| static uint64_t | _syscall_getdents (fd_t fd, dirent_t *buffer, uint64_t count) |
| |
| static tid_t | _syscall_thread_create (void *entry, void *arg) |
| |
| static void | _syscall_yield (void) |
| |
| static fd_t | _syscall_dup (fd_t oldFd) |
| |
| static fd_t | _syscall_dup2 (fd_t oldFd, fd_t newFd) |
| |
| static uint64_t | _syscall_futex (atomic_uint64_t *addr, uint64_t val, futex_op_t op, clock_t timeout) |
| |
| static uint64_t | _syscall_remove (const char *path) |
| |
| static uint64_t | _syscall_link (const char *oldPath, const char *newPath) |
| |
| static uint64_t | _syscall_share (char *key, uint64_t size, fd_t fd, clock_t timeout) |
| |
| static fd_t | _syscall_claim (const char *key) |
| |
| static uint64_t | _syscall_bind (const char *mountpoint, fd_t source) |
| |
| static fd_t | _syscall_openat (fd_t from, const char *path) |
| |
| static uint64_t | _syscall_notify (note_func_t func) |
| |
| static _NORETURN uint64_t | _syscall_noted (void) |
| |
| static uint64_t | _syscall_readlink (const char *path, char *buffer, uint64_t size) |
| |
| static uint64_t | _syscall_symlink (const char *target, const char *linkpath) |
| |
| static uint64_t | _syscall_mount (const char *mountpoint, const char *fs, const char *options) |
| |
| static uint64_t | _syscall_umount (const char *mountpoint) |
| |
| static uint64_t | _syscall_arch_prctl (arch_prctl_t code, uintptr_t addr) |
| |
| static uint64_t | _syscall_setup (ioring_t *ring, void *address, size_t sentries, size_t centries) |
| |
| static uint64_t | _syscall_teardown (ioring_id_t id) |
| |
| static uint64_t | _syscall_enter (ioring_id_t id, size_t amount, size_t wait) |
| |