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_futexscope_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 /* cloudabi64_sys_fd_pread */
75 struct cloudabi64_sys_fd_pread_args *p = params;
76 iarg[0] = p->fd; /* cloudabi_fd_t */
77 uarg[1] = (intptr_t) p->iov; /* const cloudabi64_iovec_t * */
78 iarg[2] = p->iovcnt; /* cloudabi64_size_t */
79 iarg[3] = p->offset; /* cloudabi_filesize_t */
83 /* cloudabi64_sys_fd_pwrite */
85 struct cloudabi64_sys_fd_pwrite_args *p = params;
86 iarg[0] = p->fd; /* cloudabi_fd_t */
87 uarg[1] = (intptr_t) p->iov; /* const cloudabi64_ciovec_t * */
88 iarg[2] = p->iovcnt; /* cloudabi64_size_t */
89 iarg[3] = p->offset; /* cloudabi_filesize_t */
93 /* cloudabi64_sys_fd_read */
95 struct cloudabi64_sys_fd_read_args *p = params;
96 iarg[0] = p->fd; /* cloudabi_fd_t */
97 uarg[1] = (intptr_t) p->iov; /* const cloudabi64_iovec_t * */
98 iarg[2] = p->iovcnt; /* cloudabi64_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 /* cloudabi64_sys_fd_write */
145 struct cloudabi64_sys_fd_write_args *p = params;
146 iarg[0] = p->fd; /* cloudabi_fd_t */
147 uarg[1] = (intptr_t) p->iov; /* const cloudabi64_ciovec_t * */
148 iarg[2] = p->iovcnt; /* cloudabi64_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->pathlen; /* 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->path1len; /* size_t */
187 iarg[3] = p->fd2; /* cloudabi_fd_t */
188 uarg[4] = (intptr_t) p->path2; /* const char * */
189 uarg[5] = p->path2len; /* size_t */
193 /* cloudabi_sys_file_open */
195 struct cloudabi_sys_file_open_args *p = params;
196 iarg[0] = p->fd; /* cloudabi_lookup_t */
197 uarg[1] = (intptr_t) p->path; /* const char * */
198 uarg[2] = p->pathlen; /* 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->nbyte; /* 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->pathlen; /* size_t */
220 uarg[3] = (intptr_t) p->buf; /* void * */
221 uarg[4] = p->bufsize; /* size_t */
225 /* cloudabi_sys_file_rename */
227 struct cloudabi_sys_file_rename_args *p = params;
228 iarg[0] = p->oldfd; /* cloudabi_fd_t */
229 uarg[1] = (intptr_t) p->old; /* const char * */
230 uarg[2] = p->oldlen; /* size_t */
231 iarg[3] = p->newfd; /* cloudabi_fd_t */
232 uarg[4] = (intptr_t) p->new; /* const char * */
233 uarg[5] = p->newlen; /* 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->pathlen; /* 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->pathlen; /* 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->path1len; /* size_t */
280 iarg[2] = p->fd; /* cloudabi_fd_t */
281 uarg[3] = (intptr_t) p->path2; /* const char * */
282 uarg[4] = p->path2len; /* 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->pathlen; /* size_t */
292 iarg[3] = p->flag; /* 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_futexscope_t */
304 /* cloudabi_sys_mem_advise */
306 struct cloudabi_sys_mem_advise_args *p = params;
307 uarg[0] = (intptr_t) p->addr; /* void * */
308 uarg[1] = p->len; /* size_t */
309 iarg[2] = p->advice; /* cloudabi_advice_t */
313 /* cloudabi_sys_mem_lock */
315 struct cloudabi_sys_mem_lock_args *p = params;
316 uarg[0] = (intptr_t) p->addr; /* const void * */
317 uarg[1] = p->len; /* size_t */
321 /* cloudabi_sys_mem_map */
323 struct cloudabi_sys_mem_map_args *p = params;
324 uarg[0] = (intptr_t) p->addr; /* void * */
325 uarg[1] = p->len; /* size_t */
326 iarg[2] = p->prot; /* cloudabi_mprot_t */
327 iarg[3] = p->flags; /* cloudabi_mflags_t */
328 iarg[4] = p->fd; /* cloudabi_fd_t */
329 iarg[5] = p->off; /* cloudabi_filesize_t */
333 /* cloudabi_sys_mem_protect */
335 struct cloudabi_sys_mem_protect_args *p = params;
336 uarg[0] = (intptr_t) p->addr; /* void * */
337 uarg[1] = p->len; /* size_t */
338 iarg[2] = p->prot; /* cloudabi_mprot_t */
342 /* cloudabi_sys_mem_sync */
344 struct cloudabi_sys_mem_sync_args *p = params;
345 uarg[0] = (intptr_t) p->addr; /* void * */
346 uarg[1] = p->len; /* size_t */
347 iarg[2] = p->flags; /* cloudabi_msflags_t */
351 /* cloudabi_sys_mem_unlock */
353 struct cloudabi_sys_mem_unlock_args *p = params;
354 uarg[0] = (intptr_t) p->addr; /* const void * */
355 uarg[1] = p->len; /* size_t */
359 /* cloudabi_sys_mem_unmap */
361 struct cloudabi_sys_mem_unmap_args *p = params;
362 uarg[0] = (intptr_t) p->addr; /* void * */
363 uarg[1] = p->len; /* size_t */
367 /* cloudabi64_sys_poll */
369 struct cloudabi64_sys_poll_args *p = params;
370 iarg[0] = p->fd; /* cloudabi_fd_t */
371 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
372 iarg[2] = p->nin; /* cloudabi64_size_t */
373 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
374 iarg[4] = p->nout; /* cloudabi64_size_t */
378 /* cloudabi_sys_proc_exec */
380 struct cloudabi_sys_proc_exec_args *p = params;
381 iarg[0] = p->fd; /* cloudabi_fd_t */
382 uarg[1] = (intptr_t) p->data; /* const void * */
383 uarg[2] = p->datalen; /* size_t */
384 uarg[3] = (intptr_t) p->fds; /* const cloudabi_fd_t * */
385 uarg[4] = p->fdslen; /* size_t */
389 /* cloudabi_sys_proc_exit */
391 struct cloudabi_sys_proc_exit_args *p = params;
392 iarg[0] = p->rval; /* cloudabi_exitcode_t */
396 /* cloudabi_sys_proc_fork */
401 /* cloudabi_sys_proc_raise */
403 struct cloudabi_sys_proc_raise_args *p = params;
404 iarg[0] = p->sig; /* cloudabi_signal_t */
408 /* cloudabi_sys_random_get */
410 struct cloudabi_sys_random_get_args *p = params;
411 uarg[0] = (intptr_t) p->buf; /* void * */
412 uarg[1] = p->nbyte; /* size_t */
416 /* cloudabi_sys_sock_accept */
418 struct cloudabi_sys_sock_accept_args *p = params;
419 iarg[0] = p->s; /* cloudabi_fd_t */
420 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
424 /* cloudabi_sys_sock_bind */
426 struct cloudabi_sys_sock_bind_args *p = params;
427 iarg[0] = p->s; /* cloudabi_fd_t */
428 iarg[1] = p->fd; /* cloudabi_fd_t */
429 uarg[2] = (intptr_t) p->path; /* const char * */
430 uarg[3] = p->pathlen; /* size_t */
434 /* cloudabi_sys_sock_connect */
436 struct cloudabi_sys_sock_connect_args *p = params;
437 iarg[0] = p->s; /* cloudabi_fd_t */
438 iarg[1] = p->fd; /* cloudabi_fd_t */
439 uarg[2] = (intptr_t) p->path; /* const char * */
440 uarg[3] = p->pathlen; /* size_t */
444 /* cloudabi_sys_sock_listen */
446 struct cloudabi_sys_sock_listen_args *p = params;
447 iarg[0] = p->s; /* cloudabi_fd_t */
448 iarg[1] = p->backlog; /* cloudabi_backlog_t */
452 /* cloudabi64_sys_sock_recv */
454 struct cloudabi64_sys_sock_recv_args *p = params;
455 iarg[0] = p->s; /* cloudabi_fd_t */
456 uarg[1] = (intptr_t) p->in; /* const cloudabi64_recv_in_t * */
457 uarg[2] = (intptr_t) p->out; /* cloudabi64_recv_out_t * */
461 /* cloudabi64_sys_sock_send */
463 struct cloudabi64_sys_sock_send_args *p = params;
464 iarg[0] = p->s; /* cloudabi_fd_t */
465 uarg[1] = (intptr_t) p->in; /* const cloudabi64_send_in_t * */
466 uarg[2] = (intptr_t) p->out; /* cloudabi64_send_out_t * */
470 /* cloudabi_sys_sock_shutdown */
472 struct cloudabi_sys_sock_shutdown_args *p = params;
473 iarg[0] = p->fd; /* cloudabi_fd_t */
474 iarg[1] = p->how; /* cloudabi_sdflags_t */
478 /* cloudabi_sys_sock_stat_get */
480 struct cloudabi_sys_sock_stat_get_args *p = params;
481 iarg[0] = p->fd; /* cloudabi_fd_t */
482 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
483 iarg[2] = p->flags; /* cloudabi_ssflags_t */
487 /* cloudabi64_sys_thread_create */
489 struct cloudabi64_sys_thread_create_args *p = params;
490 uarg[0] = (intptr_t) p->attr; /* cloudabi64_threadattr_t * */
494 /* cloudabi_sys_thread_exit */
496 struct cloudabi_sys_thread_exit_args *p = params;
497 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
498 iarg[1] = p->scope; /* cloudabi_futexscope_t */
502 /* cloudabi_sys_thread_tcb_set */
504 struct cloudabi_sys_thread_tcb_set_args *p = params;
505 uarg[0] = (intptr_t) p->tcb; /* void * */
509 /* cloudabi_sys_thread_yield */
520 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
522 const char *p = NULL;
524 /* cloudabi_sys_clock_res_get */
528 p = "cloudabi_clockid_t";
534 /* cloudabi_sys_clock_time_get */
538 p = "cloudabi_clockid_t";
541 p = "cloudabi_timestamp_t";
547 /* cloudabi_sys_condvar_signal */
551 p = "cloudabi_condvar_t *";
554 p = "cloudabi_futexscope_t";
557 p = "cloudabi_nthreads_t";
563 /* cloudabi_sys_fd_close */
573 /* cloudabi_sys_fd_create1 */
577 p = "cloudabi_filetype_t";
583 /* cloudabi_sys_fd_create2 */
587 p = "cloudabi_filetype_t";
593 /* cloudabi_sys_fd_datasync */
603 /* cloudabi_sys_fd_dup */
613 /* cloudabi64_sys_fd_pread */
620 p = "const cloudabi64_iovec_t *";
623 p = "cloudabi64_size_t";
626 p = "cloudabi_filesize_t";
632 /* cloudabi64_sys_fd_pwrite */
639 p = "const cloudabi64_ciovec_t *";
642 p = "cloudabi64_size_t";
645 p = "cloudabi_filesize_t";
651 /* cloudabi64_sys_fd_read */
658 p = "const cloudabi64_iovec_t *";
661 p = "cloudabi64_size_t";
667 /* cloudabi_sys_fd_replace */
680 /* cloudabi_sys_fd_seek */
687 p = "cloudabi_filedelta_t";
690 p = "cloudabi_whence_t";
696 /* cloudabi_sys_fd_stat_get */
703 p = "cloudabi_fdstat_t *";
709 /* cloudabi_sys_fd_stat_put */
716 p = "const cloudabi_fdstat_t *";
719 p = "cloudabi_fdsflags_t";
725 /* cloudabi_sys_fd_sync */
735 /* cloudabi64_sys_fd_write */
742 p = "const cloudabi64_ciovec_t *";
745 p = "cloudabi64_size_t";
751 /* cloudabi_sys_file_advise */
758 p = "cloudabi_filesize_t";
761 p = "cloudabi_filesize_t";
764 p = "cloudabi_advice_t";
770 /* cloudabi_sys_file_allocate */
777 p = "cloudabi_filesize_t";
780 p = "cloudabi_filesize_t";
786 /* cloudabi_sys_file_create */
799 p = "cloudabi_filetype_t";
805 /* cloudabi_sys_file_link */
809 p = "cloudabi_lookup_t";
830 /* cloudabi_sys_file_open */
834 p = "cloudabi_lookup_t";
843 p = "cloudabi_oflags_t";
846 p = "const cloudabi_fdstat_t *";
852 /* cloudabi_sys_file_readdir */
865 p = "cloudabi_dircookie_t";
871 /* cloudabi_sys_file_readlink */
893 /* cloudabi_sys_file_rename */
918 /* cloudabi_sys_file_stat_fget */
925 p = "cloudabi_filestat_t *";
931 /* cloudabi_sys_file_stat_fput */
938 p = "const cloudabi_filestat_t *";
941 p = "cloudabi_fsflags_t";
947 /* cloudabi_sys_file_stat_get */
951 p = "cloudabi_lookup_t";
960 p = "cloudabi_filestat_t *";
966 /* cloudabi_sys_file_stat_put */
970 p = "cloudabi_lookup_t";
979 p = "const cloudabi_filestat_t *";
982 p = "cloudabi_fsflags_t";
988 /* cloudabi_sys_file_symlink */
1010 /* cloudabi_sys_file_unlink */
1014 p = "cloudabi_fd_t";
1023 p = "cloudabi_ulflags_t";
1029 /* cloudabi_sys_lock_unlock */
1033 p = "cloudabi_lock_t *";
1036 p = "cloudabi_futexscope_t";
1042 /* cloudabi_sys_mem_advise */
1052 p = "cloudabi_advice_t";
1058 /* cloudabi_sys_mem_lock */
1071 /* cloudabi_sys_mem_map */
1081 p = "cloudabi_mprot_t";
1084 p = "cloudabi_mflags_t";
1087 p = "cloudabi_fd_t";
1090 p = "cloudabi_filesize_t";
1096 /* cloudabi_sys_mem_protect */
1106 p = "cloudabi_mprot_t";
1112 /* cloudabi_sys_mem_sync */
1122 p = "cloudabi_msflags_t";
1128 /* cloudabi_sys_mem_unlock */
1141 /* cloudabi_sys_mem_unmap */
1154 /* cloudabi64_sys_poll */
1158 p = "cloudabi_fd_t";
1161 p = "const cloudabi64_subscription_t *";
1164 p = "cloudabi64_size_t";
1167 p = "cloudabi64_event_t *";
1170 p = "cloudabi64_size_t";
1176 /* cloudabi_sys_proc_exec */
1180 p = "cloudabi_fd_t";
1189 p = "const cloudabi_fd_t *";
1198 /* cloudabi_sys_proc_exit */
1202 p = "cloudabi_exitcode_t";
1208 /* cloudabi_sys_proc_fork */
1211 /* cloudabi_sys_proc_raise */
1215 p = "cloudabi_signal_t";
1221 /* cloudabi_sys_random_get */
1234 /* cloudabi_sys_sock_accept */
1238 p = "cloudabi_fd_t";
1241 p = "cloudabi_sockstat_t *";
1247 /* cloudabi_sys_sock_bind */
1251 p = "cloudabi_fd_t";
1254 p = "cloudabi_fd_t";
1266 /* cloudabi_sys_sock_connect */
1270 p = "cloudabi_fd_t";
1273 p = "cloudabi_fd_t";
1285 /* cloudabi_sys_sock_listen */
1289 p = "cloudabi_fd_t";
1292 p = "cloudabi_backlog_t";
1298 /* cloudabi64_sys_sock_recv */
1302 p = "cloudabi_fd_t";
1305 p = "const cloudabi64_recv_in_t *";
1308 p = "cloudabi64_recv_out_t *";
1314 /* cloudabi64_sys_sock_send */
1318 p = "cloudabi_fd_t";
1321 p = "const cloudabi64_send_in_t *";
1324 p = "cloudabi64_send_out_t *";
1330 /* cloudabi_sys_sock_shutdown */
1334 p = "cloudabi_fd_t";
1337 p = "cloudabi_sdflags_t";
1343 /* cloudabi_sys_sock_stat_get */
1347 p = "cloudabi_fd_t";
1350 p = "cloudabi_sockstat_t *";
1353 p = "cloudabi_ssflags_t";
1359 /* cloudabi64_sys_thread_create */
1363 p = "cloudabi64_threadattr_t *";
1369 /* cloudabi_sys_thread_exit */
1373 p = "cloudabi_lock_t *";
1376 p = "cloudabi_futexscope_t";
1382 /* cloudabi_sys_thread_tcb_set */
1392 /* cloudabi_sys_thread_yield */
1399 strlcpy(desc, p, descsz);
1402 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1404 const char *p = NULL;
1406 /* cloudabi_sys_clock_res_get */
1408 if (ndx == 0 || ndx == 1)
1409 p = "cloudabi_timestamp_t";
1411 /* cloudabi_sys_clock_time_get */
1413 if (ndx == 0 || ndx == 1)
1414 p = "cloudabi_timestamp_t";
1416 /* cloudabi_sys_condvar_signal */
1418 if (ndx == 0 || ndx == 1)
1421 /* cloudabi_sys_fd_close */
1423 if (ndx == 0 || ndx == 1)
1426 /* cloudabi_sys_fd_create1 */
1428 if (ndx == 0 || ndx == 1)
1429 p = "cloudabi_fd_t";
1431 /* cloudabi_sys_fd_create2 */
1433 if (ndx == 0 || ndx == 1)
1436 /* cloudabi_sys_fd_datasync */
1438 if (ndx == 0 || ndx == 1)
1441 /* cloudabi_sys_fd_dup */
1443 if (ndx == 0 || ndx == 1)
1444 p = "cloudabi_fd_t";
1446 /* cloudabi64_sys_fd_pread */
1448 if (ndx == 0 || ndx == 1)
1449 p = "cloudabi64_size_t";
1451 /* cloudabi64_sys_fd_pwrite */
1453 if (ndx == 0 || ndx == 1)
1454 p = "cloudabi64_size_t";
1456 /* cloudabi64_sys_fd_read */
1458 if (ndx == 0 || ndx == 1)
1459 p = "cloudabi64_size_t";
1461 /* cloudabi_sys_fd_replace */
1463 if (ndx == 0 || ndx == 1)
1466 /* cloudabi_sys_fd_seek */
1468 if (ndx == 0 || ndx == 1)
1469 p = "cloudabi_filesize_t";
1471 /* cloudabi_sys_fd_stat_get */
1473 if (ndx == 0 || ndx == 1)
1476 /* cloudabi_sys_fd_stat_put */
1478 if (ndx == 0 || ndx == 1)
1481 /* cloudabi_sys_fd_sync */
1483 if (ndx == 0 || ndx == 1)
1486 /* cloudabi64_sys_fd_write */
1488 if (ndx == 0 || ndx == 1)
1489 p = "cloudabi64_size_t";
1491 /* cloudabi_sys_file_advise */
1493 if (ndx == 0 || ndx == 1)
1496 /* cloudabi_sys_file_allocate */
1498 if (ndx == 0 || ndx == 1)
1501 /* cloudabi_sys_file_create */
1503 if (ndx == 0 || ndx == 1)
1506 /* cloudabi_sys_file_link */
1508 if (ndx == 0 || ndx == 1)
1511 /* cloudabi_sys_file_open */
1513 if (ndx == 0 || ndx == 1)
1514 p = "cloudabi_fd_t";
1516 /* cloudabi_sys_file_readdir */
1518 if (ndx == 0 || ndx == 1)
1521 /* cloudabi_sys_file_readlink */
1523 if (ndx == 0 || ndx == 1)
1526 /* cloudabi_sys_file_rename */
1528 if (ndx == 0 || ndx == 1)
1531 /* cloudabi_sys_file_stat_fget */
1533 if (ndx == 0 || ndx == 1)
1536 /* cloudabi_sys_file_stat_fput */
1538 if (ndx == 0 || ndx == 1)
1541 /* cloudabi_sys_file_stat_get */
1543 if (ndx == 0 || ndx == 1)
1546 /* cloudabi_sys_file_stat_put */
1548 if (ndx == 0 || ndx == 1)
1551 /* cloudabi_sys_file_symlink */
1553 if (ndx == 0 || ndx == 1)
1556 /* cloudabi_sys_file_unlink */
1558 if (ndx == 0 || ndx == 1)
1561 /* cloudabi_sys_lock_unlock */
1563 if (ndx == 0 || ndx == 1)
1566 /* cloudabi_sys_mem_advise */
1568 if (ndx == 0 || ndx == 1)
1571 /* cloudabi_sys_mem_lock */
1573 if (ndx == 0 || ndx == 1)
1576 /* cloudabi_sys_mem_map */
1578 if (ndx == 0 || ndx == 1)
1581 /* cloudabi_sys_mem_protect */
1583 if (ndx == 0 || ndx == 1)
1586 /* cloudabi_sys_mem_sync */
1588 if (ndx == 0 || ndx == 1)
1591 /* cloudabi_sys_mem_unlock */
1593 if (ndx == 0 || ndx == 1)
1596 /* cloudabi_sys_mem_unmap */
1598 if (ndx == 0 || ndx == 1)
1601 /* cloudabi64_sys_poll */
1603 if (ndx == 0 || ndx == 1)
1604 p = "cloudabi64_size_t";
1606 /* cloudabi_sys_proc_exec */
1608 if (ndx == 0 || ndx == 1)
1611 /* cloudabi_sys_proc_exit */
1613 if (ndx == 0 || ndx == 1)
1616 /* cloudabi_sys_proc_fork */
1618 /* cloudabi_sys_proc_raise */
1620 if (ndx == 0 || ndx == 1)
1623 /* cloudabi_sys_random_get */
1625 if (ndx == 0 || ndx == 1)
1628 /* cloudabi_sys_sock_accept */
1630 if (ndx == 0 || ndx == 1)
1631 p = "cloudabi_fd_t";
1633 /* cloudabi_sys_sock_bind */
1635 if (ndx == 0 || ndx == 1)
1638 /* cloudabi_sys_sock_connect */
1640 if (ndx == 0 || ndx == 1)
1643 /* cloudabi_sys_sock_listen */
1645 if (ndx == 0 || ndx == 1)
1648 /* cloudabi64_sys_sock_recv */
1650 if (ndx == 0 || ndx == 1)
1651 p = "cloudabi64_size_t";
1653 /* cloudabi64_sys_sock_send */
1655 if (ndx == 0 || ndx == 1)
1656 p = "cloudabi64_size_t";
1658 /* cloudabi_sys_sock_shutdown */
1660 if (ndx == 0 || ndx == 1)
1663 /* cloudabi_sys_sock_stat_get */
1665 if (ndx == 0 || ndx == 1)
1668 /* cloudabi64_sys_thread_create */
1670 if (ndx == 0 || ndx == 1)
1671 p = "cloudabi_tid_t";
1673 /* cloudabi_sys_thread_exit */
1675 if (ndx == 0 || ndx == 1)
1678 /* cloudabi_sys_thread_tcb_set */
1680 if (ndx == 0 || ndx == 1)
1683 /* cloudabi_sys_thread_yield */
1689 strlcpy(desc, p, descsz);