2 * System call argument to DTrace register array converstion.
4 * DO NOT EDIT-- this file is automatically generated.
6 * This file is part of the DTrace syscall provider.
10 systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
12 int64_t *iarg = (int64_t *) uarg;
14 /* cloudabi_sys_clock_res_get */
16 struct cloudabi_sys_clock_res_get_args *p = params;
17 iarg[0] = p->clock_id; /* cloudabi_clockid_t */
21 /* cloudabi_sys_clock_time_get */
23 struct cloudabi_sys_clock_time_get_args *p = params;
24 iarg[0] = p->clock_id; /* cloudabi_clockid_t */
25 iarg[1] = p->precision; /* cloudabi_timestamp_t */
29 /* cloudabi_sys_condvar_signal */
31 struct cloudabi_sys_condvar_signal_args *p = params;
32 uarg[0] = (intptr_t) p->condvar; /* cloudabi_condvar_t * */
33 iarg[1] = p->scope; /* cloudabi_scope_t */
34 iarg[2] = p->nwaiters; /* cloudabi_nthreads_t */
38 /* cloudabi_sys_fd_close */
40 struct cloudabi_sys_fd_close_args *p = params;
41 iarg[0] = p->fd; /* cloudabi_fd_t */
45 /* cloudabi_sys_fd_create1 */
47 struct cloudabi_sys_fd_create1_args *p = params;
48 iarg[0] = p->type; /* cloudabi_filetype_t */
52 /* cloudabi_sys_fd_create2 */
54 struct cloudabi_sys_fd_create2_args *p = params;
55 iarg[0] = p->type; /* cloudabi_filetype_t */
59 /* cloudabi_sys_fd_datasync */
61 struct cloudabi_sys_fd_datasync_args *p = params;
62 iarg[0] = p->fd; /* cloudabi_fd_t */
66 /* cloudabi_sys_fd_dup */
68 struct cloudabi_sys_fd_dup_args *p = params;
69 iarg[0] = p->from; /* cloudabi_fd_t */
73 /* cloudabi32_sys_fd_pread */
75 struct cloudabi32_sys_fd_pread_args *p = params;
76 iarg[0] = p->fd; /* cloudabi_fd_t */
77 uarg[1] = (intptr_t) p->iovs; /* const cloudabi32_iovec_t * */
78 uarg[2] = p->iovs_len; /* size_t */
79 iarg[3] = p->offset; /* cloudabi_filesize_t */
83 /* cloudabi32_sys_fd_pwrite */
85 struct cloudabi32_sys_fd_pwrite_args *p = params;
86 iarg[0] = p->fd; /* cloudabi_fd_t */
87 uarg[1] = (intptr_t) p->iovs; /* const cloudabi32_ciovec_t * */
88 uarg[2] = p->iovs_len; /* size_t */
89 iarg[3] = p->offset; /* cloudabi_filesize_t */
93 /* cloudabi32_sys_fd_read */
95 struct cloudabi32_sys_fd_read_args *p = params;
96 iarg[0] = p->fd; /* cloudabi_fd_t */
97 uarg[1] = (intptr_t) p->iovs; /* const cloudabi32_iovec_t * */
98 uarg[2] = p->iovs_len; /* size_t */
102 /* cloudabi_sys_fd_replace */
104 struct cloudabi_sys_fd_replace_args *p = params;
105 iarg[0] = p->from; /* cloudabi_fd_t */
106 iarg[1] = p->to; /* cloudabi_fd_t */
110 /* cloudabi_sys_fd_seek */
112 struct cloudabi_sys_fd_seek_args *p = params;
113 iarg[0] = p->fd; /* cloudabi_fd_t */
114 iarg[1] = p->offset; /* cloudabi_filedelta_t */
115 iarg[2] = p->whence; /* cloudabi_whence_t */
119 /* cloudabi_sys_fd_stat_get */
121 struct cloudabi_sys_fd_stat_get_args *p = params;
122 iarg[0] = p->fd; /* cloudabi_fd_t */
123 uarg[1] = (intptr_t) p->buf; /* cloudabi_fdstat_t * */
127 /* cloudabi_sys_fd_stat_put */
129 struct cloudabi_sys_fd_stat_put_args *p = params;
130 iarg[0] = p->fd; /* cloudabi_fd_t */
131 uarg[1] = (intptr_t) p->buf; /* const cloudabi_fdstat_t * */
132 iarg[2] = p->flags; /* cloudabi_fdsflags_t */
136 /* cloudabi_sys_fd_sync */
138 struct cloudabi_sys_fd_sync_args *p = params;
139 iarg[0] = p->fd; /* cloudabi_fd_t */
143 /* cloudabi32_sys_fd_write */
145 struct cloudabi32_sys_fd_write_args *p = params;
146 iarg[0] = p->fd; /* cloudabi_fd_t */
147 uarg[1] = (intptr_t) p->iovs; /* const cloudabi32_ciovec_t * */
148 uarg[2] = p->iovs_len; /* size_t */
152 /* cloudabi_sys_file_advise */
154 struct cloudabi_sys_file_advise_args *p = params;
155 iarg[0] = p->fd; /* cloudabi_fd_t */
156 iarg[1] = p->offset; /* cloudabi_filesize_t */
157 iarg[2] = p->len; /* cloudabi_filesize_t */
158 iarg[3] = p->advice; /* cloudabi_advice_t */
162 /* cloudabi_sys_file_allocate */
164 struct cloudabi_sys_file_allocate_args *p = params;
165 iarg[0] = p->fd; /* cloudabi_fd_t */
166 iarg[1] = p->offset; /* cloudabi_filesize_t */
167 iarg[2] = p->len; /* cloudabi_filesize_t */
171 /* cloudabi_sys_file_create */
173 struct cloudabi_sys_file_create_args *p = params;
174 iarg[0] = p->fd; /* cloudabi_fd_t */
175 uarg[1] = (intptr_t) p->path; /* const char * */
176 uarg[2] = p->path_len; /* size_t */
177 iarg[3] = p->type; /* cloudabi_filetype_t */
181 /* cloudabi_sys_file_link */
183 struct cloudabi_sys_file_link_args *p = params;
184 iarg[0] = p->fd1; /* cloudabi_lookup_t */
185 uarg[1] = (intptr_t) p->path1; /* const char * */
186 uarg[2] = p->path1_len; /* size_t */
187 iarg[3] = p->fd2; /* cloudabi_fd_t */
188 uarg[4] = (intptr_t) p->path2; /* const char * */
189 uarg[5] = p->path2_len; /* size_t */
193 /* cloudabi_sys_file_open */
195 struct cloudabi_sys_file_open_args *p = params;
196 iarg[0] = p->dirfd; /* cloudabi_lookup_t */
197 uarg[1] = (intptr_t) p->path; /* const char * */
198 uarg[2] = p->path_len; /* size_t */
199 iarg[3] = p->oflags; /* cloudabi_oflags_t */
200 uarg[4] = (intptr_t) p->fds; /* const cloudabi_fdstat_t * */
204 /* cloudabi_sys_file_readdir */
206 struct cloudabi_sys_file_readdir_args *p = params;
207 iarg[0] = p->fd; /* cloudabi_fd_t */
208 uarg[1] = (intptr_t) p->buf; /* void * */
209 uarg[2] = p->buf_len; /* size_t */
210 iarg[3] = p->cookie; /* cloudabi_dircookie_t */
214 /* cloudabi_sys_file_readlink */
216 struct cloudabi_sys_file_readlink_args *p = params;
217 iarg[0] = p->fd; /* cloudabi_fd_t */
218 uarg[1] = (intptr_t) p->path; /* const char * */
219 uarg[2] = p->path_len; /* size_t */
220 uarg[3] = (intptr_t) p->buf; /* char * */
221 uarg[4] = p->buf_len; /* size_t */
225 /* cloudabi_sys_file_rename */
227 struct cloudabi_sys_file_rename_args *p = params;
228 iarg[0] = p->fd1; /* cloudabi_fd_t */
229 uarg[1] = (intptr_t) p->path1; /* const char * */
230 uarg[2] = p->path1_len; /* size_t */
231 iarg[3] = p->fd2; /* cloudabi_fd_t */
232 uarg[4] = (intptr_t) p->path2; /* const char * */
233 uarg[5] = p->path2_len; /* size_t */
237 /* cloudabi_sys_file_stat_fget */
239 struct cloudabi_sys_file_stat_fget_args *p = params;
240 iarg[0] = p->fd; /* cloudabi_fd_t */
241 uarg[1] = (intptr_t) p->buf; /* cloudabi_filestat_t * */
245 /* cloudabi_sys_file_stat_fput */
247 struct cloudabi_sys_file_stat_fput_args *p = params;
248 iarg[0] = p->fd; /* cloudabi_fd_t */
249 uarg[1] = (intptr_t) p->buf; /* const cloudabi_filestat_t * */
250 iarg[2] = p->flags; /* cloudabi_fsflags_t */
254 /* cloudabi_sys_file_stat_get */
256 struct cloudabi_sys_file_stat_get_args *p = params;
257 iarg[0] = p->fd; /* cloudabi_lookup_t */
258 uarg[1] = (intptr_t) p->path; /* const char * */
259 uarg[2] = p->path_len; /* size_t */
260 uarg[3] = (intptr_t) p->buf; /* cloudabi_filestat_t * */
264 /* cloudabi_sys_file_stat_put */
266 struct cloudabi_sys_file_stat_put_args *p = params;
267 iarg[0] = p->fd; /* cloudabi_lookup_t */
268 uarg[1] = (intptr_t) p->path; /* const char * */
269 uarg[2] = p->path_len; /* size_t */
270 uarg[3] = (intptr_t) p->buf; /* const cloudabi_filestat_t * */
271 iarg[4] = p->flags; /* cloudabi_fsflags_t */
275 /* cloudabi_sys_file_symlink */
277 struct cloudabi_sys_file_symlink_args *p = params;
278 uarg[0] = (intptr_t) p->path1; /* const char * */
279 uarg[1] = p->path1_len; /* size_t */
280 iarg[2] = p->fd; /* cloudabi_fd_t */
281 uarg[3] = (intptr_t) p->path2; /* const char * */
282 uarg[4] = p->path2_len; /* size_t */
286 /* cloudabi_sys_file_unlink */
288 struct cloudabi_sys_file_unlink_args *p = params;
289 iarg[0] = p->fd; /* cloudabi_fd_t */
290 uarg[1] = (intptr_t) p->path; /* const char * */
291 uarg[2] = p->path_len; /* size_t */
292 iarg[3] = p->flags; /* cloudabi_ulflags_t */
296 /* cloudabi_sys_lock_unlock */
298 struct cloudabi_sys_lock_unlock_args *p = params;
299 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
300 iarg[1] = p->scope; /* cloudabi_scope_t */
304 /* cloudabi_sys_mem_advise */
306 struct cloudabi_sys_mem_advise_args *p = params;
307 uarg[0] = (intptr_t) p->mapping; /* void * */
308 uarg[1] = p->mapping_len; /* size_t */
309 iarg[2] = p->advice; /* cloudabi_advice_t */
313 /* cloudabi_sys_mem_map */
315 struct cloudabi_sys_mem_map_args *p = params;
316 uarg[0] = (intptr_t) p->addr; /* void * */
317 uarg[1] = p->len; /* size_t */
318 iarg[2] = p->prot; /* cloudabi_mprot_t */
319 iarg[3] = p->flags; /* cloudabi_mflags_t */
320 iarg[4] = p->fd; /* cloudabi_fd_t */
321 iarg[5] = p->off; /* cloudabi_filesize_t */
325 /* cloudabi_sys_mem_protect */
327 struct cloudabi_sys_mem_protect_args *p = params;
328 uarg[0] = (intptr_t) p->mapping; /* void * */
329 uarg[1] = p->mapping_len; /* size_t */
330 iarg[2] = p->prot; /* cloudabi_mprot_t */
334 /* cloudabi_sys_mem_sync */
336 struct cloudabi_sys_mem_sync_args *p = params;
337 uarg[0] = (intptr_t) p->mapping; /* void * */
338 uarg[1] = p->mapping_len; /* size_t */
339 iarg[2] = p->flags; /* cloudabi_msflags_t */
343 /* cloudabi_sys_mem_unmap */
345 struct cloudabi_sys_mem_unmap_args *p = params;
346 uarg[0] = (intptr_t) p->mapping; /* void * */
347 uarg[1] = p->mapping_len; /* size_t */
351 /* cloudabi32_sys_poll */
353 struct cloudabi32_sys_poll_args *p = params;
354 uarg[0] = (intptr_t) p->in; /* const cloudabi32_subscription_t * */
355 uarg[1] = (intptr_t) p->out; /* cloudabi32_event_t * */
356 uarg[2] = p->nsubscriptions; /* size_t */
360 /* cloudabi32_sys_poll_fd */
362 struct cloudabi32_sys_poll_fd_args *p = params;
363 iarg[0] = p->fd; /* cloudabi_fd_t */
364 uarg[1] = (intptr_t) p->in; /* const cloudabi32_subscription_t * */
365 uarg[2] = p->in_len; /* size_t */
366 uarg[3] = (intptr_t) p->out; /* cloudabi32_event_t * */
367 uarg[4] = p->out_len; /* size_t */
368 uarg[5] = (intptr_t) p->timeout; /* const cloudabi32_subscription_t * */
372 /* cloudabi_sys_proc_exec */
374 struct cloudabi_sys_proc_exec_args *p = params;
375 iarg[0] = p->fd; /* cloudabi_fd_t */
376 uarg[1] = (intptr_t) p->data; /* const void * */
377 uarg[2] = p->data_len; /* size_t */
378 uarg[3] = (intptr_t) p->fds; /* const cloudabi_fd_t * */
379 uarg[4] = p->fds_len; /* size_t */
383 /* cloudabi_sys_proc_exit */
385 struct cloudabi_sys_proc_exit_args *p = params;
386 iarg[0] = p->rval; /* cloudabi_exitcode_t */
390 /* cloudabi_sys_proc_fork */
395 /* cloudabi_sys_proc_raise */
397 struct cloudabi_sys_proc_raise_args *p = params;
398 iarg[0] = p->sig; /* cloudabi_signal_t */
402 /* cloudabi_sys_random_get */
404 struct cloudabi_sys_random_get_args *p = params;
405 uarg[0] = (intptr_t) p->buf; /* void * */
406 uarg[1] = p->buf_len; /* size_t */
410 /* cloudabi32_sys_sock_recv */
412 struct cloudabi32_sys_sock_recv_args *p = params;
413 iarg[0] = p->sock; /* cloudabi_fd_t */
414 uarg[1] = (intptr_t) p->in; /* const cloudabi32_recv_in_t * */
415 uarg[2] = (intptr_t) p->out; /* cloudabi32_recv_out_t * */
419 /* cloudabi32_sys_sock_send */
421 struct cloudabi32_sys_sock_send_args *p = params;
422 iarg[0] = p->sock; /* cloudabi_fd_t */
423 uarg[1] = (intptr_t) p->in; /* const cloudabi32_send_in_t * */
424 uarg[2] = (intptr_t) p->out; /* cloudabi32_send_out_t * */
428 /* cloudabi_sys_sock_shutdown */
430 struct cloudabi_sys_sock_shutdown_args *p = params;
431 iarg[0] = p->sock; /* cloudabi_fd_t */
432 iarg[1] = p->how; /* cloudabi_sdflags_t */
436 /* cloudabi32_sys_thread_create */
438 struct cloudabi32_sys_thread_create_args *p = params;
439 uarg[0] = (intptr_t) p->attr; /* cloudabi32_threadattr_t * */
443 /* cloudabi_sys_thread_exit */
445 struct cloudabi_sys_thread_exit_args *p = params;
446 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
447 iarg[1] = p->scope; /* cloudabi_scope_t */
451 /* cloudabi_sys_thread_yield */
462 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
464 const char *p = NULL;
466 /* cloudabi_sys_clock_res_get */
470 p = "cloudabi_clockid_t";
476 /* cloudabi_sys_clock_time_get */
480 p = "cloudabi_clockid_t";
483 p = "cloudabi_timestamp_t";
489 /* cloudabi_sys_condvar_signal */
493 p = "userland cloudabi_condvar_t *";
496 p = "cloudabi_scope_t";
499 p = "cloudabi_nthreads_t";
505 /* cloudabi_sys_fd_close */
515 /* cloudabi_sys_fd_create1 */
519 p = "cloudabi_filetype_t";
525 /* cloudabi_sys_fd_create2 */
529 p = "cloudabi_filetype_t";
535 /* cloudabi_sys_fd_datasync */
545 /* cloudabi_sys_fd_dup */
555 /* cloudabi32_sys_fd_pread */
562 p = "userland const cloudabi32_iovec_t *";
568 p = "cloudabi_filesize_t";
574 /* cloudabi32_sys_fd_pwrite */
581 p = "userland const cloudabi32_ciovec_t *";
587 p = "cloudabi_filesize_t";
593 /* cloudabi32_sys_fd_read */
600 p = "userland const cloudabi32_iovec_t *";
609 /* cloudabi_sys_fd_replace */
622 /* cloudabi_sys_fd_seek */
629 p = "cloudabi_filedelta_t";
632 p = "cloudabi_whence_t";
638 /* cloudabi_sys_fd_stat_get */
645 p = "userland cloudabi_fdstat_t *";
651 /* cloudabi_sys_fd_stat_put */
658 p = "userland const cloudabi_fdstat_t *";
661 p = "cloudabi_fdsflags_t";
667 /* cloudabi_sys_fd_sync */
677 /* cloudabi32_sys_fd_write */
684 p = "userland const cloudabi32_ciovec_t *";
693 /* cloudabi_sys_file_advise */
700 p = "cloudabi_filesize_t";
703 p = "cloudabi_filesize_t";
706 p = "cloudabi_advice_t";
712 /* cloudabi_sys_file_allocate */
719 p = "cloudabi_filesize_t";
722 p = "cloudabi_filesize_t";
728 /* cloudabi_sys_file_create */
735 p = "userland const char *";
741 p = "cloudabi_filetype_t";
747 /* cloudabi_sys_file_link */
751 p = "cloudabi_lookup_t";
754 p = "userland const char *";
763 p = "userland const char *";
772 /* cloudabi_sys_file_open */
776 p = "cloudabi_lookup_t";
779 p = "userland const char *";
785 p = "cloudabi_oflags_t";
788 p = "userland const cloudabi_fdstat_t *";
794 /* cloudabi_sys_file_readdir */
801 p = "userland void *";
807 p = "cloudabi_dircookie_t";
813 /* cloudabi_sys_file_readlink */
820 p = "userland const char *";
826 p = "userland char *";
835 /* cloudabi_sys_file_rename */
842 p = "userland const char *";
851 p = "userland const char *";
860 /* cloudabi_sys_file_stat_fget */
867 p = "userland cloudabi_filestat_t *";
873 /* cloudabi_sys_file_stat_fput */
880 p = "userland const cloudabi_filestat_t *";
883 p = "cloudabi_fsflags_t";
889 /* cloudabi_sys_file_stat_get */
893 p = "cloudabi_lookup_t";
896 p = "userland const char *";
902 p = "userland cloudabi_filestat_t *";
908 /* cloudabi_sys_file_stat_put */
912 p = "cloudabi_lookup_t";
915 p = "userland const char *";
921 p = "userland const cloudabi_filestat_t *";
924 p = "cloudabi_fsflags_t";
930 /* cloudabi_sys_file_symlink */
934 p = "userland const char *";
943 p = "userland const char *";
952 /* cloudabi_sys_file_unlink */
959 p = "userland const char *";
965 p = "cloudabi_ulflags_t";
971 /* cloudabi_sys_lock_unlock */
975 p = "userland cloudabi_lock_t *";
978 p = "cloudabi_scope_t";
984 /* cloudabi_sys_mem_advise */
988 p = "userland void *";
994 p = "cloudabi_advice_t";
1000 /* cloudabi_sys_mem_map */
1004 p = "userland void *";
1010 p = "cloudabi_mprot_t";
1013 p = "cloudabi_mflags_t";
1016 p = "cloudabi_fd_t";
1019 p = "cloudabi_filesize_t";
1025 /* cloudabi_sys_mem_protect */
1029 p = "userland void *";
1035 p = "cloudabi_mprot_t";
1041 /* cloudabi_sys_mem_sync */
1045 p = "userland void *";
1051 p = "cloudabi_msflags_t";
1057 /* cloudabi_sys_mem_unmap */
1061 p = "userland void *";
1070 /* cloudabi32_sys_poll */
1074 p = "userland const cloudabi32_subscription_t *";
1077 p = "userland cloudabi32_event_t *";
1086 /* cloudabi32_sys_poll_fd */
1090 p = "cloudabi_fd_t";
1093 p = "userland const cloudabi32_subscription_t *";
1099 p = "userland cloudabi32_event_t *";
1105 p = "userland const cloudabi32_subscription_t *";
1111 /* cloudabi_sys_proc_exec */
1115 p = "cloudabi_fd_t";
1118 p = "userland const void *";
1124 p = "userland const cloudabi_fd_t *";
1133 /* cloudabi_sys_proc_exit */
1137 p = "cloudabi_exitcode_t";
1143 /* cloudabi_sys_proc_fork */
1146 /* cloudabi_sys_proc_raise */
1150 p = "cloudabi_signal_t";
1156 /* cloudabi_sys_random_get */
1160 p = "userland void *";
1169 /* cloudabi32_sys_sock_recv */
1173 p = "cloudabi_fd_t";
1176 p = "userland const cloudabi32_recv_in_t *";
1179 p = "userland cloudabi32_recv_out_t *";
1185 /* cloudabi32_sys_sock_send */
1189 p = "cloudabi_fd_t";
1192 p = "userland const cloudabi32_send_in_t *";
1195 p = "userland cloudabi32_send_out_t *";
1201 /* cloudabi_sys_sock_shutdown */
1205 p = "cloudabi_fd_t";
1208 p = "cloudabi_sdflags_t";
1214 /* cloudabi32_sys_thread_create */
1218 p = "userland cloudabi32_threadattr_t *";
1224 /* cloudabi_sys_thread_exit */
1228 p = "userland cloudabi_lock_t *";
1231 p = "cloudabi_scope_t";
1237 /* cloudabi_sys_thread_yield */
1244 strlcpy(desc, p, descsz);
1247 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1249 const char *p = NULL;
1251 /* cloudabi_sys_clock_res_get */
1253 if (ndx == 0 || ndx == 1)
1254 p = "cloudabi_timestamp_t";
1256 /* cloudabi_sys_clock_time_get */
1258 if (ndx == 0 || ndx == 1)
1259 p = "cloudabi_timestamp_t";
1261 /* cloudabi_sys_condvar_signal */
1263 if (ndx == 0 || ndx == 1)
1266 /* cloudabi_sys_fd_close */
1268 if (ndx == 0 || ndx == 1)
1271 /* cloudabi_sys_fd_create1 */
1273 if (ndx == 0 || ndx == 1)
1274 p = "cloudabi_fd_t";
1276 /* cloudabi_sys_fd_create2 */
1278 if (ndx == 0 || ndx == 1)
1281 /* cloudabi_sys_fd_datasync */
1283 if (ndx == 0 || ndx == 1)
1286 /* cloudabi_sys_fd_dup */
1288 if (ndx == 0 || ndx == 1)
1289 p = "cloudabi_fd_t";
1291 /* cloudabi32_sys_fd_pread */
1293 if (ndx == 0 || ndx == 1)
1296 /* cloudabi32_sys_fd_pwrite */
1298 if (ndx == 0 || ndx == 1)
1301 /* cloudabi32_sys_fd_read */
1303 if (ndx == 0 || ndx == 1)
1306 /* cloudabi_sys_fd_replace */
1308 if (ndx == 0 || ndx == 1)
1311 /* cloudabi_sys_fd_seek */
1313 if (ndx == 0 || ndx == 1)
1314 p = "cloudabi_filesize_t";
1316 /* cloudabi_sys_fd_stat_get */
1318 if (ndx == 0 || ndx == 1)
1321 /* cloudabi_sys_fd_stat_put */
1323 if (ndx == 0 || ndx == 1)
1326 /* cloudabi_sys_fd_sync */
1328 if (ndx == 0 || ndx == 1)
1331 /* cloudabi32_sys_fd_write */
1333 if (ndx == 0 || ndx == 1)
1336 /* cloudabi_sys_file_advise */
1338 if (ndx == 0 || ndx == 1)
1341 /* cloudabi_sys_file_allocate */
1343 if (ndx == 0 || ndx == 1)
1346 /* cloudabi_sys_file_create */
1348 if (ndx == 0 || ndx == 1)
1351 /* cloudabi_sys_file_link */
1353 if (ndx == 0 || ndx == 1)
1356 /* cloudabi_sys_file_open */
1358 if (ndx == 0 || ndx == 1)
1359 p = "cloudabi_fd_t";
1361 /* cloudabi_sys_file_readdir */
1363 if (ndx == 0 || ndx == 1)
1366 /* cloudabi_sys_file_readlink */
1368 if (ndx == 0 || ndx == 1)
1371 /* cloudabi_sys_file_rename */
1373 if (ndx == 0 || ndx == 1)
1376 /* cloudabi_sys_file_stat_fget */
1378 if (ndx == 0 || ndx == 1)
1381 /* cloudabi_sys_file_stat_fput */
1383 if (ndx == 0 || ndx == 1)
1386 /* cloudabi_sys_file_stat_get */
1388 if (ndx == 0 || ndx == 1)
1391 /* cloudabi_sys_file_stat_put */
1393 if (ndx == 0 || ndx == 1)
1396 /* cloudabi_sys_file_symlink */
1398 if (ndx == 0 || ndx == 1)
1401 /* cloudabi_sys_file_unlink */
1403 if (ndx == 0 || ndx == 1)
1406 /* cloudabi_sys_lock_unlock */
1408 if (ndx == 0 || ndx == 1)
1411 /* cloudabi_sys_mem_advise */
1413 if (ndx == 0 || ndx == 1)
1416 /* cloudabi_sys_mem_map */
1418 if (ndx == 0 || ndx == 1)
1421 /* cloudabi_sys_mem_protect */
1423 if (ndx == 0 || ndx == 1)
1426 /* cloudabi_sys_mem_sync */
1428 if (ndx == 0 || ndx == 1)
1431 /* cloudabi_sys_mem_unmap */
1433 if (ndx == 0 || ndx == 1)
1436 /* cloudabi32_sys_poll */
1438 if (ndx == 0 || ndx == 1)
1441 /* cloudabi32_sys_poll_fd */
1443 if (ndx == 0 || ndx == 1)
1446 /* cloudabi_sys_proc_exec */
1448 if (ndx == 0 || ndx == 1)
1451 /* cloudabi_sys_proc_exit */
1453 if (ndx == 0 || ndx == 1)
1456 /* cloudabi_sys_proc_fork */
1458 /* cloudabi_sys_proc_raise */
1460 if (ndx == 0 || ndx == 1)
1463 /* cloudabi_sys_random_get */
1465 if (ndx == 0 || ndx == 1)
1468 /* cloudabi32_sys_sock_recv */
1470 if (ndx == 0 || ndx == 1)
1473 /* cloudabi32_sys_sock_send */
1475 if (ndx == 0 || ndx == 1)
1478 /* cloudabi_sys_sock_shutdown */
1480 if (ndx == 0 || ndx == 1)
1483 /* cloudabi32_sys_thread_create */
1485 if (ndx == 0 || ndx == 1)
1486 p = "cloudabi_tid_t";
1488 /* cloudabi_sys_thread_exit */
1490 if (ndx == 0 || ndx == 1)
1493 /* cloudabi_sys_thread_yield */
1499 strlcpy(desc, p, descsz);