Skip to content

WALI Syscall Specification

This page lists all system calls and auxiliary functions defined in the WALI specification.

Summary

  • Auxiliary Functions: 11
  • System Calls: 141

Auxiliary Functions

These are WALI-specific functions that supplement the standard syscall interface.

Function
__init
__deinit
__proc_exit
__cl_get_argc
__cl_get_argv_len
__cl_copy_argv
__get_init_envfile
__wasm_thread_spawn
sigsetjmp
longjmp
setjmp

System Calls

Syscall x86_64 ARM64 RV64
SYS_read 0 63 63
SYS_write 1 64 64
SYS_open 2 - -
SYS_close 3 57 57
SYS_stat 4 - -
SYS_fstat 5 80 80
SYS_lstat 6 - -
SYS_poll 7 - -
SYS_lseek 8 62 62
SYS_mmap 9 222 222
SYS_mprotect 10 226 226
SYS_munmap 11 215 215
SYS_brk 12 214 214
SYS_rt_sigaction 13 134 134
SYS_rt_sigprocmask 14 135 135
SYS_rt_sigreturn 15 139 139
SYS_ioctl 16 29 29
SYS_pread64 17 67 67
SYS_pwrite64 18 68 68
SYS_readv 19 65 65
SYS_writev 20 66 66
SYS_access 21 - -
SYS_pipe 22 - -
SYS_select 23 - -
SYS_sched_yield 24 124 124
SYS_mremap 25 216 216
SYS_msync 26 227 227
SYS_madvise 28 233 233
SYS_dup 32 23 23
SYS_dup2 33 - -
SYS_nanosleep 35 101 101
SYS_alarm 37 - -
SYS_setitimer 38 103 103
SYS_getpid 39 172 172
SYS_socket 41 198 198
SYS_connect 42 203 203
SYS_accept 43 202 202
SYS_sendto 44 206 206
SYS_recvfrom 45 207 207
SYS_sendmsg 46 211 211
SYS_recvmsg 47 212 212
SYS_shutdown 48 210 210
SYS_bind 49 200 200
SYS_listen 50 201 201
SYS_getsockname 51 204 204
SYS_getpeername 52 205 205
SYS_socketpair 53 199 199
SYS_setsockopt 54 208 208
SYS_getsockopt 55 209 209
SYS_fork 57 - -
SYS_execve 59 221 221
SYS_exit 60 93 93
SYS_wait4 61 260 260
SYS_kill 62 129 129
SYS_uname 63 160 160
SYS_fcntl 72 25 25
SYS_flock 73 32 32
SYS_fsync 74 82 82
SYS_fdatasync 75 83 83
SYS_ftruncate 77 46 46
SYS_getcwd 79 17 17
SYS_chdir 80 49 49
SYS_fchdir 81 50 50
SYS_rename 82 - -
SYS_mkdir 83 - -
SYS_rmdir 84 - -
SYS_link 86 - -
SYS_unlink 87 - -
SYS_symlink 88 - -
SYS_readlink 89 - -
SYS_chmod 90 - -
SYS_fchmod 91 52 52
SYS_chown 92 - -
SYS_fchown 93 55 55
SYS_umask 95 166 166
SYS_gettimeofday 96 169 169
SYS_getrlimit 97 163 163
SYS_getrusage 98 165 165
SYS_sysinfo 99 179 179
SYS_getuid 102 174 174
SYS_getgid 104 176 176
SYS_setuid 105 146 146
SYS_setgid 106 144 144
SYS_geteuid 107 175 175
SYS_getegid 108 177 177
SYS_setpgid 109 154 154
SYS_getppid 110 173 173
SYS_setsid 112 157 157
SYS_setreuid 113 145 145
SYS_setregid 114 143 143
SYS_getgroups 115 158 158
SYS_setgroups 116 159 159
SYS_setresuid 117 147 147
SYS_setresgid 119 149 149
SYS_getpgid 121 155 155
SYS_getsid 124 156 156
SYS_rt_sigpending 127 136 136
SYS_rt_sigsuspend 130 133 133
SYS_sigaltstack 131 132 132
SYS_statfs 137 43 43
SYS_fstatfs 138 44 44
SYS_prctl 157 167 167
SYS_setrlimit 160 164 164
SYS_chroot 161 51 51
SYS_gettid 186 178 178
SYS_tkill 200 130 130
SYS_futex 202 98 98
SYS_sched_getaffinity 204 123 123
SYS_getdents64 217 61 61
SYS_set_tid_address 218 96 96
SYS_fadvise 221 223 223
SYS_clock_gettime 228 113 113
SYS_clock_getres 229 114 114
SYS_clock_nanosleep 230 115 115
SYS_exit_group 231 94 94
SYS_epoll_ctl 233 21 21
SYS_openat 257 56 56
SYS_mkdirat 258 34 34
SYS_fchownat 260 54 54
SYS_newfstatat 262 79 79
SYS_unlinkat 263 35 35
SYS_linkat 265 37 37
SYS_symlinkat 266 36 36
SYS_readlinkat 267 78 78
SYS_fchmodat 268 53 53
SYS_faccessat 269 48 48
SYS_pselect6 270 72 72
SYS_ppoll 271 73 73
SYS_utimensat 280 88 88
SYS_epoll_pwait 281 22 22
SYS_eventfd 284 - -
SYS_accept4 288 242 242
SYS_eventfd2 290 19 19
SYS_epoll_create1 291 20 20
SYS_dup3 292 24 24
SYS_pipe2 293 59 59
SYS_prlimit64 302 261 261
SYS_renameat2 316 276 276
SYS_getrandom 318 278 278
SYS_statx 332 291 291
SYS_faccessat2 439 439 439