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_mflags_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_mflags_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 uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
371 uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
372 iarg[2] = p->nevents; /* cloudabi64_size_t */
376 /* cloudabi_sys_proc_exec */
378 struct cloudabi_sys_proc_exec_args *p = params;
379 iarg[0] = p->fd; /* cloudabi_fd_t */
380 uarg[1] = (intptr_t) p->data; /* const void * */
381 uarg[2] = p->datalen; /* size_t */
382 uarg[3] = (intptr_t) p->fds; /* const cloudabi_fd_t * */
383 uarg[4] = p->fdslen; /* size_t */
387 /* cloudabi_sys_proc_exit */
389 struct cloudabi_sys_proc_exit_args *p = params;
390 iarg[0] = p->rval; /* cloudabi_exitcode_t */
394 /* cloudabi_sys_proc_fork */
399 /* cloudabi_sys_proc_raise */
401 struct cloudabi_sys_proc_raise_args *p = params;
402 iarg[0] = p->sig; /* cloudabi_signal_t */
406 /* cloudabi_sys_random_get */
408 struct cloudabi_sys_random_get_args *p = params;
409 uarg[0] = (intptr_t) p->buf; /* void * */
410 uarg[1] = p->nbyte; /* size_t */
414 /* cloudabi_sys_sock_accept */
416 struct cloudabi_sys_sock_accept_args *p = params;
417 iarg[0] = p->s; /* cloudabi_fd_t */
418 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
422 /* cloudabi_sys_sock_bind */
424 struct cloudabi_sys_sock_bind_args *p = params;
425 iarg[0] = p->s; /* cloudabi_fd_t */
426 iarg[1] = p->fd; /* cloudabi_fd_t */
427 uarg[2] = (intptr_t) p->path; /* const char * */
428 uarg[3] = p->pathlen; /* size_t */
432 /* cloudabi_sys_sock_connect */
434 struct cloudabi_sys_sock_connect_args *p = params;
435 iarg[0] = p->s; /* cloudabi_fd_t */
436 iarg[1] = p->fd; /* cloudabi_fd_t */
437 uarg[2] = (intptr_t) p->path; /* const char * */
438 uarg[3] = p->pathlen; /* size_t */
442 /* cloudabi_sys_sock_listen */
444 struct cloudabi_sys_sock_listen_args *p = params;
445 iarg[0] = p->s; /* cloudabi_fd_t */
446 iarg[1] = p->backlog; /* cloudabi_backlog_t */
450 /* cloudabi64_sys_sock_recv */
452 struct cloudabi64_sys_sock_recv_args *p = params;
453 iarg[0] = p->s; /* cloudabi_fd_t */
454 uarg[1] = (intptr_t) p->in; /* const cloudabi64_recv_in_t * */
455 uarg[2] = (intptr_t) p->out; /* cloudabi64_recv_out_t * */
459 /* cloudabi64_sys_sock_send */
461 struct cloudabi64_sys_sock_send_args *p = params;
462 iarg[0] = p->s; /* cloudabi_fd_t */
463 uarg[1] = (intptr_t) p->in; /* const cloudabi64_send_in_t * */
464 uarg[2] = (intptr_t) p->out; /* cloudabi64_send_out_t * */
468 /* cloudabi_sys_sock_shutdown */
470 struct cloudabi_sys_sock_shutdown_args *p = params;
471 iarg[0] = p->fd; /* cloudabi_fd_t */
472 iarg[1] = p->how; /* cloudabi_sdflags_t */
476 /* cloudabi_sys_sock_stat_get */
478 struct cloudabi_sys_sock_stat_get_args *p = params;
479 iarg[0] = p->fd; /* cloudabi_fd_t */
480 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
481 iarg[2] = p->flags; /* cloudabi_ssflags_t */
485 /* cloudabi64_sys_thread_create */
487 struct cloudabi64_sys_thread_create_args *p = params;
488 uarg[0] = (intptr_t) p->attr; /* cloudabi64_threadattr_t * */
492 /* cloudabi_sys_thread_exit */
494 struct cloudabi_sys_thread_exit_args *p = params;
495 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
496 iarg[1] = p->scope; /* cloudabi_mflags_t */
500 /* cloudabi_sys_thread_tcb_set */
502 struct cloudabi_sys_thread_tcb_set_args *p = params;
503 uarg[0] = (intptr_t) p->tcb; /* void * */
507 /* cloudabi_sys_thread_yield */
512 /* cloudabi64_sys_poll_fd */
514 struct cloudabi64_sys_poll_fd_args *p = params;
515 iarg[0] = p->fd; /* cloudabi_fd_t */
516 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
517 iarg[2] = p->nin; /* cloudabi64_size_t */
518 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
519 iarg[4] = p->nout; /* cloudabi64_size_t */
520 uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
530 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
532 const char *p = NULL;
534 /* cloudabi_sys_clock_res_get */
538 p = "cloudabi_clockid_t";
544 /* cloudabi_sys_clock_time_get */
548 p = "cloudabi_clockid_t";
551 p = "cloudabi_timestamp_t";
557 /* cloudabi_sys_condvar_signal */
561 p = "cloudabi_condvar_t *";
564 p = "cloudabi_mflags_t";
567 p = "cloudabi_nthreads_t";
573 /* cloudabi_sys_fd_close */
583 /* cloudabi_sys_fd_create1 */
587 p = "cloudabi_filetype_t";
593 /* cloudabi_sys_fd_create2 */
597 p = "cloudabi_filetype_t";
603 /* cloudabi_sys_fd_datasync */
613 /* cloudabi_sys_fd_dup */
623 /* cloudabi64_sys_fd_pread */
630 p = "const cloudabi64_iovec_t *";
633 p = "cloudabi64_size_t";
636 p = "cloudabi_filesize_t";
642 /* cloudabi64_sys_fd_pwrite */
649 p = "const cloudabi64_ciovec_t *";
652 p = "cloudabi64_size_t";
655 p = "cloudabi_filesize_t";
661 /* cloudabi64_sys_fd_read */
668 p = "const cloudabi64_iovec_t *";
671 p = "cloudabi64_size_t";
677 /* cloudabi_sys_fd_replace */
690 /* cloudabi_sys_fd_seek */
697 p = "cloudabi_filedelta_t";
700 p = "cloudabi_whence_t";
706 /* cloudabi_sys_fd_stat_get */
713 p = "cloudabi_fdstat_t *";
719 /* cloudabi_sys_fd_stat_put */
726 p = "const cloudabi_fdstat_t *";
729 p = "cloudabi_fdsflags_t";
735 /* cloudabi_sys_fd_sync */
745 /* cloudabi64_sys_fd_write */
752 p = "const cloudabi64_ciovec_t *";
755 p = "cloudabi64_size_t";
761 /* cloudabi_sys_file_advise */
768 p = "cloudabi_filesize_t";
771 p = "cloudabi_filesize_t";
774 p = "cloudabi_advice_t";
780 /* cloudabi_sys_file_allocate */
787 p = "cloudabi_filesize_t";
790 p = "cloudabi_filesize_t";
796 /* cloudabi_sys_file_create */
809 p = "cloudabi_filetype_t";
815 /* cloudabi_sys_file_link */
819 p = "cloudabi_lookup_t";
840 /* cloudabi_sys_file_open */
844 p = "cloudabi_lookup_t";
853 p = "cloudabi_oflags_t";
856 p = "const cloudabi_fdstat_t *";
862 /* cloudabi_sys_file_readdir */
875 p = "cloudabi_dircookie_t";
881 /* cloudabi_sys_file_readlink */
903 /* cloudabi_sys_file_rename */
928 /* cloudabi_sys_file_stat_fget */
935 p = "cloudabi_filestat_t *";
941 /* cloudabi_sys_file_stat_fput */
948 p = "const cloudabi_filestat_t *";
951 p = "cloudabi_fsflags_t";
957 /* cloudabi_sys_file_stat_get */
961 p = "cloudabi_lookup_t";
970 p = "cloudabi_filestat_t *";
976 /* cloudabi_sys_file_stat_put */
980 p = "cloudabi_lookup_t";
989 p = "const cloudabi_filestat_t *";
992 p = "cloudabi_fsflags_t";
998 /* cloudabi_sys_file_symlink */
1008 p = "cloudabi_fd_t";
1020 /* cloudabi_sys_file_unlink */
1024 p = "cloudabi_fd_t";
1033 p = "cloudabi_ulflags_t";
1039 /* cloudabi_sys_lock_unlock */
1043 p = "cloudabi_lock_t *";
1046 p = "cloudabi_mflags_t";
1052 /* cloudabi_sys_mem_advise */
1062 p = "cloudabi_advice_t";
1068 /* cloudabi_sys_mem_lock */
1081 /* cloudabi_sys_mem_map */
1091 p = "cloudabi_mprot_t";
1094 p = "cloudabi_mflags_t";
1097 p = "cloudabi_fd_t";
1100 p = "cloudabi_filesize_t";
1106 /* cloudabi_sys_mem_protect */
1116 p = "cloudabi_mprot_t";
1122 /* cloudabi_sys_mem_sync */
1132 p = "cloudabi_msflags_t";
1138 /* cloudabi_sys_mem_unlock */
1151 /* cloudabi_sys_mem_unmap */
1164 /* cloudabi64_sys_poll */
1168 p = "const cloudabi64_subscription_t *";
1171 p = "cloudabi64_event_t *";
1174 p = "cloudabi64_size_t";
1180 /* cloudabi_sys_proc_exec */
1184 p = "cloudabi_fd_t";
1193 p = "const cloudabi_fd_t *";
1202 /* cloudabi_sys_proc_exit */
1206 p = "cloudabi_exitcode_t";
1212 /* cloudabi_sys_proc_fork */
1215 /* cloudabi_sys_proc_raise */
1219 p = "cloudabi_signal_t";
1225 /* cloudabi_sys_random_get */
1238 /* cloudabi_sys_sock_accept */
1242 p = "cloudabi_fd_t";
1245 p = "cloudabi_sockstat_t *";
1251 /* cloudabi_sys_sock_bind */
1255 p = "cloudabi_fd_t";
1258 p = "cloudabi_fd_t";
1270 /* cloudabi_sys_sock_connect */
1274 p = "cloudabi_fd_t";
1277 p = "cloudabi_fd_t";
1289 /* cloudabi_sys_sock_listen */
1293 p = "cloudabi_fd_t";
1296 p = "cloudabi_backlog_t";
1302 /* cloudabi64_sys_sock_recv */
1306 p = "cloudabi_fd_t";
1309 p = "const cloudabi64_recv_in_t *";
1312 p = "cloudabi64_recv_out_t *";
1318 /* cloudabi64_sys_sock_send */
1322 p = "cloudabi_fd_t";
1325 p = "const cloudabi64_send_in_t *";
1328 p = "cloudabi64_send_out_t *";
1334 /* cloudabi_sys_sock_shutdown */
1338 p = "cloudabi_fd_t";
1341 p = "cloudabi_sdflags_t";
1347 /* cloudabi_sys_sock_stat_get */
1351 p = "cloudabi_fd_t";
1354 p = "cloudabi_sockstat_t *";
1357 p = "cloudabi_ssflags_t";
1363 /* cloudabi64_sys_thread_create */
1367 p = "cloudabi64_threadattr_t *";
1373 /* cloudabi_sys_thread_exit */
1377 p = "cloudabi_lock_t *";
1380 p = "cloudabi_mflags_t";
1386 /* cloudabi_sys_thread_tcb_set */
1396 /* cloudabi_sys_thread_yield */
1399 /* cloudabi64_sys_poll_fd */
1403 p = "cloudabi_fd_t";
1406 p = "const cloudabi64_subscription_t *";
1409 p = "cloudabi64_size_t";
1412 p = "cloudabi64_event_t *";
1415 p = "cloudabi64_size_t";
1418 p = "const cloudabi64_subscription_t *";
1428 strlcpy(desc, p, descsz);
1431 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1433 const char *p = NULL;
1435 /* cloudabi_sys_clock_res_get */
1437 if (ndx == 0 || ndx == 1)
1438 p = "cloudabi_timestamp_t";
1440 /* cloudabi_sys_clock_time_get */
1442 if (ndx == 0 || ndx == 1)
1443 p = "cloudabi_timestamp_t";
1445 /* cloudabi_sys_condvar_signal */
1447 if (ndx == 0 || ndx == 1)
1450 /* cloudabi_sys_fd_close */
1452 if (ndx == 0 || ndx == 1)
1455 /* cloudabi_sys_fd_create1 */
1457 if (ndx == 0 || ndx == 1)
1458 p = "cloudabi_fd_t";
1460 /* cloudabi_sys_fd_create2 */
1462 if (ndx == 0 || ndx == 1)
1465 /* cloudabi_sys_fd_datasync */
1467 if (ndx == 0 || ndx == 1)
1470 /* cloudabi_sys_fd_dup */
1472 if (ndx == 0 || ndx == 1)
1473 p = "cloudabi_fd_t";
1475 /* cloudabi64_sys_fd_pread */
1477 if (ndx == 0 || ndx == 1)
1478 p = "cloudabi64_size_t";
1480 /* cloudabi64_sys_fd_pwrite */
1482 if (ndx == 0 || ndx == 1)
1483 p = "cloudabi64_size_t";
1485 /* cloudabi64_sys_fd_read */
1487 if (ndx == 0 || ndx == 1)
1488 p = "cloudabi64_size_t";
1490 /* cloudabi_sys_fd_replace */
1492 if (ndx == 0 || ndx == 1)
1495 /* cloudabi_sys_fd_seek */
1497 if (ndx == 0 || ndx == 1)
1498 p = "cloudabi_filesize_t";
1500 /* cloudabi_sys_fd_stat_get */
1502 if (ndx == 0 || ndx == 1)
1505 /* cloudabi_sys_fd_stat_put */
1507 if (ndx == 0 || ndx == 1)
1510 /* cloudabi_sys_fd_sync */
1512 if (ndx == 0 || ndx == 1)
1515 /* cloudabi64_sys_fd_write */
1517 if (ndx == 0 || ndx == 1)
1518 p = "cloudabi64_size_t";
1520 /* cloudabi_sys_file_advise */
1522 if (ndx == 0 || ndx == 1)
1525 /* cloudabi_sys_file_allocate */
1527 if (ndx == 0 || ndx == 1)
1530 /* cloudabi_sys_file_create */
1532 if (ndx == 0 || ndx == 1)
1535 /* cloudabi_sys_file_link */
1537 if (ndx == 0 || ndx == 1)
1540 /* cloudabi_sys_file_open */
1542 if (ndx == 0 || ndx == 1)
1543 p = "cloudabi_fd_t";
1545 /* cloudabi_sys_file_readdir */
1547 if (ndx == 0 || ndx == 1)
1550 /* cloudabi_sys_file_readlink */
1552 if (ndx == 0 || ndx == 1)
1555 /* cloudabi_sys_file_rename */
1557 if (ndx == 0 || ndx == 1)
1560 /* cloudabi_sys_file_stat_fget */
1562 if (ndx == 0 || ndx == 1)
1565 /* cloudabi_sys_file_stat_fput */
1567 if (ndx == 0 || ndx == 1)
1570 /* cloudabi_sys_file_stat_get */
1572 if (ndx == 0 || ndx == 1)
1575 /* cloudabi_sys_file_stat_put */
1577 if (ndx == 0 || ndx == 1)
1580 /* cloudabi_sys_file_symlink */
1582 if (ndx == 0 || ndx == 1)
1585 /* cloudabi_sys_file_unlink */
1587 if (ndx == 0 || ndx == 1)
1590 /* cloudabi_sys_lock_unlock */
1592 if (ndx == 0 || ndx == 1)
1595 /* cloudabi_sys_mem_advise */
1597 if (ndx == 0 || ndx == 1)
1600 /* cloudabi_sys_mem_lock */
1602 if (ndx == 0 || ndx == 1)
1605 /* cloudabi_sys_mem_map */
1607 if (ndx == 0 || ndx == 1)
1610 /* cloudabi_sys_mem_protect */
1612 if (ndx == 0 || ndx == 1)
1615 /* cloudabi_sys_mem_sync */
1617 if (ndx == 0 || ndx == 1)
1620 /* cloudabi_sys_mem_unlock */
1622 if (ndx == 0 || ndx == 1)
1625 /* cloudabi_sys_mem_unmap */
1627 if (ndx == 0 || ndx == 1)
1630 /* cloudabi64_sys_poll */
1632 if (ndx == 0 || ndx == 1)
1633 p = "cloudabi64_size_t";
1635 /* cloudabi_sys_proc_exec */
1637 if (ndx == 0 || ndx == 1)
1640 /* cloudabi_sys_proc_exit */
1642 if (ndx == 0 || ndx == 1)
1645 /* cloudabi_sys_proc_fork */
1647 /* cloudabi_sys_proc_raise */
1649 if (ndx == 0 || ndx == 1)
1652 /* cloudabi_sys_random_get */
1654 if (ndx == 0 || ndx == 1)
1657 /* cloudabi_sys_sock_accept */
1659 if (ndx == 0 || ndx == 1)
1660 p = "cloudabi_fd_t";
1662 /* cloudabi_sys_sock_bind */
1664 if (ndx == 0 || ndx == 1)
1667 /* cloudabi_sys_sock_connect */
1669 if (ndx == 0 || ndx == 1)
1672 /* cloudabi_sys_sock_listen */
1674 if (ndx == 0 || ndx == 1)
1677 /* cloudabi64_sys_sock_recv */
1679 if (ndx == 0 || ndx == 1)
1680 p = "cloudabi64_size_t";
1682 /* cloudabi64_sys_sock_send */
1684 if (ndx == 0 || ndx == 1)
1685 p = "cloudabi64_size_t";
1687 /* cloudabi_sys_sock_shutdown */
1689 if (ndx == 0 || ndx == 1)
1692 /* cloudabi_sys_sock_stat_get */
1694 if (ndx == 0 || ndx == 1)
1697 /* cloudabi64_sys_thread_create */
1699 if (ndx == 0 || ndx == 1)
1700 p = "cloudabi_tid_t";
1702 /* cloudabi_sys_thread_exit */
1704 if (ndx == 0 || ndx == 1)
1707 /* cloudabi_sys_thread_tcb_set */
1709 if (ndx == 0 || ndx == 1)
1712 /* cloudabi_sys_thread_yield */
1714 /* cloudabi64_sys_poll_fd */
1716 if (ndx == 0 || ndx == 1)
1717 p = "cloudabi64_size_t";
1723 strlcpy(desc, p, descsz);