Linux syscalls
The following tables list the syscalls supported by the user-mode
simulators rv-sim and rv-jit. Note: the user-mode simulator supports
simulation of Linux syscalls on macOS.
Linux Emulated Syscalls
| System Call | Number | Notes |
|---|---|---|
| getcwd | 17 | |
| fcntl | 25 | |
| ioctl | 29 | supports TIOCGWINSZ for musl isatty |
| unlinkat | 35 | |
| faccessat | 48 | |
| openat | 56 | |
| close | 57 | |
| lseek | 62 | |
| read | 63 | |
| write | 64 | |
| readv | 65 | |
| writev | 66 | |
| pread | 67 | |
| pwrite | 68 | |
| readlinkat | 78 | |
| fstatat | 79 | |
| fstat | 80 | |
| exit | 93 | |
| exit_group | 94 | |
| set_tid_address | 96 | returns tid 1 |
| clock_gettime | 113 | |
| rt_sigaction | 134 | nop |
| rt_sigprocmask | 135 | nop |
| times | 153 | |
| uname | 160 | |
| getrusage | 165 | |
| gettimeofday | 169 | |
| sysinfo | 179 | nop |
| brk | 214 | |
| munmap | 215 | protected regions and flag conversion |
| mmap | 222 | protected regions and flag conversion |
| mprotect | 226 | |
| madvise | 233 | nop |
| prlimit64 | 261 | |
| open | 1024 | |
| unlink | 1026 | |
| stat | 1038 | |
| chown | 1039 |