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; /* cloudabi_event_t * */
356 uarg[2] = p->nsubscriptions; /* size_t */
360 /* cloudabi_sys_proc_exec */
362 struct cloudabi_sys_proc_exec_args *p = params;
363 iarg[0] = p->fd; /* cloudabi_fd_t */
364 uarg[1] = (intptr_t) p->data; /* const void * */
365 uarg[2] = p->data_len; /* size_t */
366 uarg[3] = (intptr_t) p->fds; /* const cloudabi_fd_t * */
367 uarg[4] = p->fds_len; /* size_t */
371 /* cloudabi_sys_proc_exit */
373 struct cloudabi_sys_proc_exit_args *p = params;
374 iarg[0] = p->rval; /* cloudabi_exitcode_t */
378 /* cloudabi_sys_proc_fork */
383 /* cloudabi_sys_proc_raise */
385 struct cloudabi_sys_proc_raise_args *p = params;
386 iarg[0] = p->sig; /* cloudabi_signal_t */
390 /* cloudabi_sys_random_get */
392 struct cloudabi_sys_random_get_args *p = params;
393 uarg[0] = (intptr_t) p->buf; /* void * */
394 uarg[1] = p->buf_len; /* size_t */
398 /* cloudabi32_sys_sock_recv */
400 struct cloudabi32_sys_sock_recv_args *p = params;
401 iarg[0] = p->sock; /* cloudabi_fd_t */
402 uarg[1] = (intptr_t) p->in; /* const cloudabi32_recv_in_t * */
403 uarg[2] = (intptr_t) p->out; /* cloudabi32_recv_out_t * */
407 /* cloudabi32_sys_sock_send */
409 struct cloudabi32_sys_sock_send_args *p = params;
410 iarg[0] = p->sock; /* cloudabi_fd_t */
411 uarg[1] = (intptr_t) p->in; /* const cloudabi32_send_in_t * */
412 uarg[2] = (intptr_t) p->out; /* cloudabi32_send_out_t * */
416 /* cloudabi_sys_sock_shutdown */
418 struct cloudabi_sys_sock_shutdown_args *p = params;
419 iarg[0] = p->sock; /* cloudabi_fd_t */
420 iarg[1] = p->how; /* cloudabi_sdflags_t */
424 /* cloudabi32_sys_thread_create */
426 struct cloudabi32_sys_thread_create_args *p = params;
427 uarg[0] = (intptr_t) p->attr; /* cloudabi32_threadattr_t * */
431 /* cloudabi_sys_thread_exit */
433 struct cloudabi_sys_thread_exit_args *p = params;
434 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
435 iarg[1] = p->scope; /* cloudabi_scope_t */
439 /* cloudabi_sys_thread_yield */
450 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
452 const char *p = NULL;
454 /* cloudabi_sys_clock_res_get */
458 p = "cloudabi_clockid_t";
464 /* cloudabi_sys_clock_time_get */
468 p = "cloudabi_clockid_t";
471 p = "cloudabi_timestamp_t";
477 /* cloudabi_sys_condvar_signal */
481 p = "userland cloudabi_condvar_t *";
484 p = "cloudabi_scope_t";
487 p = "cloudabi_nthreads_t";
493 /* cloudabi_sys_fd_close */
503 /* cloudabi_sys_fd_create1 */
507 p = "cloudabi_filetype_t";
513 /* cloudabi_sys_fd_create2 */
517 p = "cloudabi_filetype_t";
523 /* cloudabi_sys_fd_datasync */
533 /* cloudabi_sys_fd_dup */
543 /* cloudabi32_sys_fd_pread */
550 p = "userland const cloudabi32_iovec_t *";
556 p = "cloudabi_filesize_t";
562 /* cloudabi32_sys_fd_pwrite */
569 p = "userland const cloudabi32_ciovec_t *";
575 p = "cloudabi_filesize_t";
581 /* cloudabi32_sys_fd_read */
588 p = "userland const cloudabi32_iovec_t *";
597 /* cloudabi_sys_fd_replace */
610 /* cloudabi_sys_fd_seek */
617 p = "cloudabi_filedelta_t";
620 p = "cloudabi_whence_t";
626 /* cloudabi_sys_fd_stat_get */
633 p = "userland cloudabi_fdstat_t *";
639 /* cloudabi_sys_fd_stat_put */
646 p = "userland const cloudabi_fdstat_t *";
649 p = "cloudabi_fdsflags_t";
655 /* cloudabi_sys_fd_sync */
665 /* cloudabi32_sys_fd_write */
672 p = "userland const cloudabi32_ciovec_t *";
681 /* cloudabi_sys_file_advise */
688 p = "cloudabi_filesize_t";
691 p = "cloudabi_filesize_t";
694 p = "cloudabi_advice_t";
700 /* cloudabi_sys_file_allocate */
707 p = "cloudabi_filesize_t";
710 p = "cloudabi_filesize_t";
716 /* cloudabi_sys_file_create */
723 p = "userland const char *";
729 p = "cloudabi_filetype_t";
735 /* cloudabi_sys_file_link */
739 p = "cloudabi_lookup_t";
742 p = "userland const char *";
751 p = "userland const char *";
760 /* cloudabi_sys_file_open */
764 p = "cloudabi_lookup_t";
767 p = "userland const char *";
773 p = "cloudabi_oflags_t";
776 p = "userland const cloudabi_fdstat_t *";
782 /* cloudabi_sys_file_readdir */
789 p = "userland void *";
795 p = "cloudabi_dircookie_t";
801 /* cloudabi_sys_file_readlink */
808 p = "userland const char *";
814 p = "userland char *";
823 /* cloudabi_sys_file_rename */
830 p = "userland const char *";
839 p = "userland const char *";
848 /* cloudabi_sys_file_stat_fget */
855 p = "userland cloudabi_filestat_t *";
861 /* cloudabi_sys_file_stat_fput */
868 p = "userland const cloudabi_filestat_t *";
871 p = "cloudabi_fsflags_t";
877 /* cloudabi_sys_file_stat_get */
881 p = "cloudabi_lookup_t";
884 p = "userland const char *";
890 p = "userland cloudabi_filestat_t *";
896 /* cloudabi_sys_file_stat_put */
900 p = "cloudabi_lookup_t";
903 p = "userland const char *";
909 p = "userland const cloudabi_filestat_t *";
912 p = "cloudabi_fsflags_t";
918 /* cloudabi_sys_file_symlink */
922 p = "userland const char *";
931 p = "userland const char *";
940 /* cloudabi_sys_file_unlink */
947 p = "userland const char *";
953 p = "cloudabi_ulflags_t";
959 /* cloudabi_sys_lock_unlock */
963 p = "userland cloudabi_lock_t *";
966 p = "cloudabi_scope_t";
972 /* cloudabi_sys_mem_advise */
976 p = "userland void *";
982 p = "cloudabi_advice_t";
988 /* cloudabi_sys_mem_map */
992 p = "userland void *";
998 p = "cloudabi_mprot_t";
1001 p = "cloudabi_mflags_t";
1004 p = "cloudabi_fd_t";
1007 p = "cloudabi_filesize_t";
1013 /* cloudabi_sys_mem_protect */
1017 p = "userland void *";
1023 p = "cloudabi_mprot_t";
1029 /* cloudabi_sys_mem_sync */
1033 p = "userland void *";
1039 p = "cloudabi_msflags_t";
1045 /* cloudabi_sys_mem_unmap */
1049 p = "userland void *";
1058 /* cloudabi32_sys_poll */
1062 p = "userland const cloudabi32_subscription_t *";
1065 p = "userland cloudabi_event_t *";
1074 /* cloudabi_sys_proc_exec */
1078 p = "cloudabi_fd_t";
1081 p = "userland const void *";
1087 p = "userland const cloudabi_fd_t *";
1096 /* cloudabi_sys_proc_exit */
1100 p = "cloudabi_exitcode_t";
1106 /* cloudabi_sys_proc_fork */
1109 /* cloudabi_sys_proc_raise */
1113 p = "cloudabi_signal_t";
1119 /* cloudabi_sys_random_get */
1123 p = "userland void *";
1132 /* cloudabi32_sys_sock_recv */
1136 p = "cloudabi_fd_t";
1139 p = "userland const cloudabi32_recv_in_t *";
1142 p = "userland cloudabi32_recv_out_t *";
1148 /* cloudabi32_sys_sock_send */
1152 p = "cloudabi_fd_t";
1155 p = "userland const cloudabi32_send_in_t *";
1158 p = "userland cloudabi32_send_out_t *";
1164 /* cloudabi_sys_sock_shutdown */
1168 p = "cloudabi_fd_t";
1171 p = "cloudabi_sdflags_t";
1177 /* cloudabi32_sys_thread_create */
1181 p = "userland cloudabi32_threadattr_t *";
1187 /* cloudabi_sys_thread_exit */
1191 p = "userland cloudabi_lock_t *";
1194 p = "cloudabi_scope_t";
1200 /* cloudabi_sys_thread_yield */
1207 strlcpy(desc, p, descsz);
1210 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1212 const char *p = NULL;
1214 /* cloudabi_sys_clock_res_get */
1216 if (ndx == 0 || ndx == 1)
1217 p = "cloudabi_timestamp_t";
1219 /* cloudabi_sys_clock_time_get */
1221 if (ndx == 0 || ndx == 1)
1222 p = "cloudabi_timestamp_t";
1224 /* cloudabi_sys_condvar_signal */
1226 if (ndx == 0 || ndx == 1)
1229 /* cloudabi_sys_fd_close */
1231 if (ndx == 0 || ndx == 1)
1234 /* cloudabi_sys_fd_create1 */
1236 if (ndx == 0 || ndx == 1)
1237 p = "cloudabi_fd_t";
1239 /* cloudabi_sys_fd_create2 */
1241 if (ndx == 0 || ndx == 1)
1244 /* cloudabi_sys_fd_datasync */
1246 if (ndx == 0 || ndx == 1)
1249 /* cloudabi_sys_fd_dup */
1251 if (ndx == 0 || ndx == 1)
1252 p = "cloudabi_fd_t";
1254 /* cloudabi32_sys_fd_pread */
1256 if (ndx == 0 || ndx == 1)
1259 /* cloudabi32_sys_fd_pwrite */
1261 if (ndx == 0 || ndx == 1)
1264 /* cloudabi32_sys_fd_read */
1266 if (ndx == 0 || ndx == 1)
1269 /* cloudabi_sys_fd_replace */
1271 if (ndx == 0 || ndx == 1)
1274 /* cloudabi_sys_fd_seek */
1276 if (ndx == 0 || ndx == 1)
1277 p = "cloudabi_filesize_t";
1279 /* cloudabi_sys_fd_stat_get */
1281 if (ndx == 0 || ndx == 1)
1284 /* cloudabi_sys_fd_stat_put */
1286 if (ndx == 0 || ndx == 1)
1289 /* cloudabi_sys_fd_sync */
1291 if (ndx == 0 || ndx == 1)
1294 /* cloudabi32_sys_fd_write */
1296 if (ndx == 0 || ndx == 1)
1299 /* cloudabi_sys_file_advise */
1301 if (ndx == 0 || ndx == 1)
1304 /* cloudabi_sys_file_allocate */
1306 if (ndx == 0 || ndx == 1)
1309 /* cloudabi_sys_file_create */
1311 if (ndx == 0 || ndx == 1)
1314 /* cloudabi_sys_file_link */
1316 if (ndx == 0 || ndx == 1)
1319 /* cloudabi_sys_file_open */
1321 if (ndx == 0 || ndx == 1)
1322 p = "cloudabi_fd_t";
1324 /* cloudabi_sys_file_readdir */
1326 if (ndx == 0 || ndx == 1)
1329 /* cloudabi_sys_file_readlink */
1331 if (ndx == 0 || ndx == 1)
1334 /* cloudabi_sys_file_rename */
1336 if (ndx == 0 || ndx == 1)
1339 /* cloudabi_sys_file_stat_fget */
1341 if (ndx == 0 || ndx == 1)
1344 /* cloudabi_sys_file_stat_fput */
1346 if (ndx == 0 || ndx == 1)
1349 /* cloudabi_sys_file_stat_get */
1351 if (ndx == 0 || ndx == 1)
1354 /* cloudabi_sys_file_stat_put */
1356 if (ndx == 0 || ndx == 1)
1359 /* cloudabi_sys_file_symlink */
1361 if (ndx == 0 || ndx == 1)
1364 /* cloudabi_sys_file_unlink */
1366 if (ndx == 0 || ndx == 1)
1369 /* cloudabi_sys_lock_unlock */
1371 if (ndx == 0 || ndx == 1)
1374 /* cloudabi_sys_mem_advise */
1376 if (ndx == 0 || ndx == 1)
1379 /* cloudabi_sys_mem_map */
1381 if (ndx == 0 || ndx == 1)
1384 /* cloudabi_sys_mem_protect */
1386 if (ndx == 0 || ndx == 1)
1389 /* cloudabi_sys_mem_sync */
1391 if (ndx == 0 || ndx == 1)
1394 /* cloudabi_sys_mem_unmap */
1396 if (ndx == 0 || ndx == 1)
1399 /* cloudabi32_sys_poll */
1401 if (ndx == 0 || ndx == 1)
1404 /* cloudabi_sys_proc_exec */
1406 if (ndx == 0 || ndx == 1)
1409 /* cloudabi_sys_proc_exit */
1411 if (ndx == 0 || ndx == 1)
1414 /* cloudabi_sys_proc_fork */
1416 /* cloudabi_sys_proc_raise */
1418 if (ndx == 0 || ndx == 1)
1421 /* cloudabi_sys_random_get */
1423 if (ndx == 0 || ndx == 1)
1426 /* cloudabi32_sys_sock_recv */
1428 if (ndx == 0 || ndx == 1)
1431 /* cloudabi32_sys_sock_send */
1433 if (ndx == 0 || ndx == 1)
1436 /* cloudabi_sys_sock_shutdown */
1438 if (ndx == 0 || ndx == 1)
1441 /* cloudabi32_sys_thread_create */
1443 if (ndx == 0 || ndx == 1)
1444 p = "cloudabi_tid_t";
1446 /* cloudabi_sys_thread_exit */
1448 if (ndx == 0 || ndx == 1)
1451 /* cloudabi_sys_thread_yield */
1457 strlcpy(desc, p, descsz);