|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(poweroff)) |
|
void define_syscall | poweroff (bool reboot, u32 magic) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_openat)) |
|
fd_t define_syscall | vfs_openat (fd_t dirfd, const char *path, open_flags flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_fstatat)) |
|
long define_syscall | vfs_fstatat (fd_t fd, const char *path, file_stat_t *stat_buf, fstatat_flags flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_read)) |
|
size_t define_syscall | io_read (fd_t fd, void *buf, size_t count) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_write)) |
|
size_t define_syscall | io_write (fd_t fd, const void *buf, size_t count) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_close)) |
|
bool define_syscall | io_close (fd_t fd) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(exit)) |
|
void define_syscall | exit (u32 exit_code) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(yield_cpu)) |
|
void define_syscall | yield_cpu (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(fork)) |
|
pid_t define_syscall | fork (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(get_pid)) |
|
pid_t define_syscall | get_pid (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(get_parent_pid)) |
|
pid_t define_syscall | get_parent_pid (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(spawn)) |
|
pid_t define_syscall | spawn (const char *path, const char *const argv[], const char *const envp[]) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(create_thread)) |
|
tid_t define_syscall | create_thread (const char *name, thread_entry_t entry, void *arg, size_t stack_size, void *stack) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(get_tid)) |
|
tid_t define_syscall | get_tid (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(thread_exit)) |
|
void define_syscall | thread_exit (void) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(wait_for_thread)) |
|
bool define_syscall | wait_for_thread (tid_t tid) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(futex_wait)) |
|
bool define_syscall | futex_wait (futex_word_t *futex, u32 val) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(futex_wake)) |
|
bool define_syscall | futex_wake (futex_word_t *futex, size_t count) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(ipc_create)) |
|
fd_t define_syscall | ipc_create (const char *name, size_t max_pending_connections) |
| Create a new IPC server.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(ipc_accept)) |
|
fd_t define_syscall | ipc_accept (fd_t listen_fd) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(ipc_connect)) |
|
fd_t define_syscall | ipc_connect (const char *server, size_t buffer_size) |
| Connect to an IPC servers.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(arch_syscall)) |
|
u64 define_syscall | arch_syscall (u64 syscall, u64 arg1, u64 arg2, u64 arg3, u64 arg4) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_mount)) |
|
long define_syscall | vfs_mount (const char *device, const char *mountpoint, const char *fs_type, const char *options) |
| Mount a filesystem at a given existing path.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_readlinkat)) |
|
ssize_t define_syscall | vfs_readlinkat (fd_t dirfd, const char *path, char *buf, size_t buflen) |
| Read a symbolic link.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_unlinkat)) |
|
long define_syscall | vfs_unlinkat (fd_t dirfd, const char *path) |
| Remove the name of a file, and possibly the file itself.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_symlink)) |
|
long define_syscall | vfs_symlink (const char *target, const char *linkpath) |
| Create a symbolic link.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_mkdir)) |
|
long define_syscall | vfs_mkdir (const char *path) |
| Create a directory.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_list_dir)) |
|
size_t define_syscall | vfs_list_dir (fd_t fd, char *buffer, size_t buffer_size) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(fd_manipulate)) |
|
long define_syscall | fd_manipulate (fd_t fd, u64 op, void *arg) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(mmap_anonymous)) |
|
void *define_syscall | mmap_anonymous (ptr_t hint_addr, size_t size, mem_perm_t perm, mmap_flags_t flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(mmap_file)) |
|
void *define_syscall | mmap_file (ptr_t hint_addr, size_t size, mem_perm_t perm, mmap_flags_t mmap_flags, fd_t fd, off_t offset) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(wait_for_process)) |
|
pid_t define_syscall | wait_for_process (pid_t pid, u32 *exit_code, u32 flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(munmap)) |
|
bool define_syscall | munmap (void *addr, size_t size) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_chdirat)) |
|
long define_syscall | vfs_chdirat (fd_t dirfd, const char *path) |
| Change the current working directory.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_getcwd)) |
|
ssize_t define_syscall | vfs_getcwd (char *buf, size_t size) |
| Get the current working directory.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_seek)) |
|
off_t define_syscall | io_seek (fd_t fd, off_t offset, io_seek_whence_t whence) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_tell)) |
|
off_t define_syscall | io_tell (fd_t fd) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(signal_register)) |
|
bool define_syscall | signal_register (signal_t sig, const sigaction_t *action) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(signal_process)) |
|
long define_syscall | signal_process (pid_t pid, signal_t sig) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(signal_thread)) |
|
long define_syscall | signal_thread (tid_t tid, signal_t sig) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(signal_return)) |
|
void define_syscall | signal_return (void *sp) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vm_protect)) |
|
bool define_syscall | vm_protect (void *addr, size_t size, mem_perm_t perm) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_poll)) |
|
int define_syscall | io_poll (struct pollfd *fds, nfds_t nfds, int timeout) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_pselect)) |
|
int define_syscall | io_pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const sigset_t *sigmask) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(execveat)) |
|
long define_syscall | execveat (fd_t dirfd, const char *path, const char *const argv[], const char *const envp[], u32 flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(clock_msleep)) |
|
long define_syscall | clock_msleep (u64 ms) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_dup)) |
|
fd_t define_syscall | io_dup (fd_t fd) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_dup2)) |
|
fd_t define_syscall | io_dup2 (fd_t oldfd, fd_t newfd) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(dmabuf_alloc)) |
|
bool define_syscall | dmabuf_alloc (size_t n_pages, ptr_t *phys, ptr_t *virt) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(dmabuf_free)) |
|
bool define_syscall | dmabuf_free (ptr_t vaddr, ptr_t paddr) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(dmabuf_share)) |
|
bool define_syscall | dmabuf_share (void *buffer, size_t size, ptr_t *phyaddr) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(dmabuf_unshare)) |
|
bool define_syscall | dmabuf_unshare (ptr_t phys, size_t size, void *buf) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(pipe)) |
|
long define_syscall | pipe (fd_t *reader, fd_t *writer, fd_flags_t flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_readv)) |
|
ssize_t define_syscall | io_readv (fd_t fd, const struct iovec *iov, int iovcnt) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_unmount)) |
|
long define_syscall | vfs_unmount (const char *path) |
| Unmount a filesystem at a given path.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(clock_gettimeofday)) |
|
long define_syscall | clock_gettimeofday (struct timespec *ts) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(thread_setname)) |
|
long define_syscall | thread_setname (tid_t tid, const char *name) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(thread_getname)) |
|
ssize_t define_syscall | thread_getname (tid_t tid, char *buf, size_t buflen) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_fchmodat)) |
|
long define_syscall | vfs_fchmodat (fd_t dirfd, const char *path, int mode, int flags) |
| Change the permissions of a file.
|
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(io_pread)) |
|
long define_syscall | io_pread (fd_t fd, void *buf, size_t count, off_t offset) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(memfd_create)) |
|
fd_t define_syscall | memfd_create (const char *name, u32 flags) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(signal_mask_op)) |
|
long define_syscall | signal_mask_op (int how, const sigset_t *set, sigset_t *oldset) |
|
| MOS_STATIC_ASSERT (SYSCALL_DEFINED(vfs_fsync)) |
|
long define_syscall | vfs_fsync (fd_t fd, bool data_only) |
|