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 /* 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->iovs; /* const cloudabi64_iovec_t * */
78 uarg[2] = p->iovs_len; /* 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->iovs; /* const cloudabi64_ciovec_t * */
88 uarg[2] = p->iovs_len; /* 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->iovs; /* const cloudabi64_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 /* 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->iovs; /* const cloudabi64_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 /* cloudabi64_sys_poll */
353 struct cloudabi64_sys_poll_args *p = params;
354 uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
355 uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
356 uarg[2] = p->nsubscriptions; /* size_t */
360 /* cloudabi64_sys_poll_fd */
362 struct cloudabi64_sys_poll_fd_args *p = params;
363 iarg[0] = p->fd; /* cloudabi_fd_t */
364 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
365 uarg[2] = p->in_len; /* size_t */
366 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
367 uarg[4] = p->out_len; /* size_t */
368 uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_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 /* cloudabi_sys_sock_accept */
412 struct cloudabi_sys_sock_accept_args *p = params;
413 iarg[0] = p->sock; /* cloudabi_fd_t */
414 uarg[1] = (intptr_t) p->unused; /* void * */
418 /* cloudabi_sys_sock_bind */
420 struct cloudabi_sys_sock_bind_args *p = params;
421 iarg[0] = p->sock; /* cloudabi_fd_t */
422 iarg[1] = p->fd; /* cloudabi_fd_t */
423 uarg[2] = (intptr_t) p->path; /* const char * */
424 uarg[3] = p->path_len; /* size_t */
428 /* cloudabi_sys_sock_connect */
430 struct cloudabi_sys_sock_connect_args *p = params;
431 iarg[0] = p->sock; /* cloudabi_fd_t */
432 iarg[1] = p->fd; /* cloudabi_fd_t */
433 uarg[2] = (intptr_t) p->path; /* const char * */
434 uarg[3] = p->path_len; /* size_t */
438 /* cloudabi_sys_sock_listen */
440 struct cloudabi_sys_sock_listen_args *p = params;
441 iarg[0] = p->sock; /* cloudabi_fd_t */
442 iarg[1] = p->backlog; /* cloudabi_backlog_t */
446 /* cloudabi64_sys_sock_recv */
448 struct cloudabi64_sys_sock_recv_args *p = params;
449 iarg[0] = p->sock; /* cloudabi_fd_t */
450 uarg[1] = (intptr_t) p->in; /* const cloudabi64_recv_in_t * */
451 uarg[2] = (intptr_t) p->out; /* cloudabi64_recv_out_t * */
455 /* cloudabi64_sys_sock_send */
457 struct cloudabi64_sys_sock_send_args *p = params;
458 iarg[0] = p->sock; /* cloudabi_fd_t */
459 uarg[1] = (intptr_t) p->in; /* const cloudabi64_send_in_t * */
460 uarg[2] = (intptr_t) p->out; /* cloudabi64_send_out_t * */
464 /* cloudabi_sys_sock_shutdown */
466 struct cloudabi_sys_sock_shutdown_args *p = params;
467 iarg[0] = p->sock; /* cloudabi_fd_t */
468 iarg[1] = p->how; /* cloudabi_sdflags_t */
472 /* cloudabi_sys_sock_stat_get */
474 struct cloudabi_sys_sock_stat_get_args *p = params;
475 iarg[0] = p->sock; /* cloudabi_fd_t */
476 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
477 iarg[2] = p->flags; /* cloudabi_ssflags_t */
481 /* cloudabi64_sys_thread_create */
483 struct cloudabi64_sys_thread_create_args *p = params;
484 uarg[0] = (intptr_t) p->attr; /* cloudabi64_threadattr_t * */
488 /* cloudabi_sys_thread_exit */
490 struct cloudabi_sys_thread_exit_args *p = params;
491 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
492 iarg[1] = p->scope; /* cloudabi_scope_t */
496 /* cloudabi_sys_thread_yield */
507 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
509 const char *p = NULL;
511 /* cloudabi_sys_clock_res_get */
515 p = "cloudabi_clockid_t";
521 /* cloudabi_sys_clock_time_get */
525 p = "cloudabi_clockid_t";
528 p = "cloudabi_timestamp_t";
534 /* cloudabi_sys_condvar_signal */
538 p = "userland cloudabi_condvar_t *";
541 p = "cloudabi_scope_t";
544 p = "cloudabi_nthreads_t";
550 /* cloudabi_sys_fd_close */
560 /* cloudabi_sys_fd_create1 */
564 p = "cloudabi_filetype_t";
570 /* cloudabi_sys_fd_create2 */
574 p = "cloudabi_filetype_t";
580 /* cloudabi_sys_fd_datasync */
590 /* cloudabi_sys_fd_dup */
600 /* cloudabi64_sys_fd_pread */
607 p = "userland const cloudabi64_iovec_t *";
613 p = "cloudabi_filesize_t";
619 /* cloudabi64_sys_fd_pwrite */
626 p = "userland const cloudabi64_ciovec_t *";
632 p = "cloudabi_filesize_t";
638 /* cloudabi64_sys_fd_read */
645 p = "userland const cloudabi64_iovec_t *";
654 /* cloudabi_sys_fd_replace */
667 /* cloudabi_sys_fd_seek */
674 p = "cloudabi_filedelta_t";
677 p = "cloudabi_whence_t";
683 /* cloudabi_sys_fd_stat_get */
690 p = "userland cloudabi_fdstat_t *";
696 /* cloudabi_sys_fd_stat_put */
703 p = "userland const cloudabi_fdstat_t *";
706 p = "cloudabi_fdsflags_t";
712 /* cloudabi_sys_fd_sync */
722 /* cloudabi64_sys_fd_write */
729 p = "userland const cloudabi64_ciovec_t *";
738 /* cloudabi_sys_file_advise */
745 p = "cloudabi_filesize_t";
748 p = "cloudabi_filesize_t";
751 p = "cloudabi_advice_t";
757 /* cloudabi_sys_file_allocate */
764 p = "cloudabi_filesize_t";
767 p = "cloudabi_filesize_t";
773 /* cloudabi_sys_file_create */
780 p = "userland const char *";
786 p = "cloudabi_filetype_t";
792 /* cloudabi_sys_file_link */
796 p = "cloudabi_lookup_t";
799 p = "userland const char *";
808 p = "userland const char *";
817 /* cloudabi_sys_file_open */
821 p = "cloudabi_lookup_t";
824 p = "userland const char *";
830 p = "cloudabi_oflags_t";
833 p = "userland const cloudabi_fdstat_t *";
839 /* cloudabi_sys_file_readdir */
846 p = "userland void *";
852 p = "cloudabi_dircookie_t";
858 /* cloudabi_sys_file_readlink */
865 p = "userland const char *";
871 p = "userland char *";
880 /* cloudabi_sys_file_rename */
887 p = "userland const char *";
896 p = "userland const char *";
905 /* cloudabi_sys_file_stat_fget */
912 p = "userland cloudabi_filestat_t *";
918 /* cloudabi_sys_file_stat_fput */
925 p = "userland const cloudabi_filestat_t *";
928 p = "cloudabi_fsflags_t";
934 /* cloudabi_sys_file_stat_get */
938 p = "cloudabi_lookup_t";
941 p = "userland const char *";
947 p = "userland cloudabi_filestat_t *";
953 /* cloudabi_sys_file_stat_put */
957 p = "cloudabi_lookup_t";
960 p = "userland const char *";
966 p = "userland const cloudabi_filestat_t *";
969 p = "cloudabi_fsflags_t";
975 /* cloudabi_sys_file_symlink */
979 p = "userland const char *";
988 p = "userland const char *";
997 /* cloudabi_sys_file_unlink */
1001 p = "cloudabi_fd_t";
1004 p = "userland const char *";
1010 p = "cloudabi_ulflags_t";
1016 /* cloudabi_sys_lock_unlock */
1020 p = "userland cloudabi_lock_t *";
1023 p = "cloudabi_scope_t";
1029 /* cloudabi_sys_mem_advise */
1033 p = "userland void *";
1039 p = "cloudabi_advice_t";
1045 /* cloudabi_sys_mem_map */
1049 p = "userland void *";
1055 p = "cloudabi_mprot_t";
1058 p = "cloudabi_mflags_t";
1061 p = "cloudabi_fd_t";
1064 p = "cloudabi_filesize_t";
1070 /* cloudabi_sys_mem_protect */
1074 p = "userland void *";
1080 p = "cloudabi_mprot_t";
1086 /* cloudabi_sys_mem_sync */
1090 p = "userland void *";
1096 p = "cloudabi_msflags_t";
1102 /* cloudabi_sys_mem_unmap */
1106 p = "userland void *";
1115 /* cloudabi64_sys_poll */
1119 p = "userland const cloudabi64_subscription_t *";
1122 p = "userland cloudabi64_event_t *";
1131 /* cloudabi64_sys_poll_fd */
1135 p = "cloudabi_fd_t";
1138 p = "userland const cloudabi64_subscription_t *";
1144 p = "userland cloudabi64_event_t *";
1150 p = "userland const cloudabi64_subscription_t *";
1156 /* cloudabi_sys_proc_exec */
1160 p = "cloudabi_fd_t";
1163 p = "userland const void *";
1169 p = "userland const cloudabi_fd_t *";
1178 /* cloudabi_sys_proc_exit */
1182 p = "cloudabi_exitcode_t";
1188 /* cloudabi_sys_proc_fork */
1191 /* cloudabi_sys_proc_raise */
1195 p = "cloudabi_signal_t";
1201 /* cloudabi_sys_random_get */
1205 p = "userland void *";
1214 /* cloudabi_sys_sock_accept */
1218 p = "cloudabi_fd_t";
1221 p = "userland void *";
1227 /* cloudabi_sys_sock_bind */
1231 p = "cloudabi_fd_t";
1234 p = "cloudabi_fd_t";
1237 p = "userland const char *";
1246 /* cloudabi_sys_sock_connect */
1250 p = "cloudabi_fd_t";
1253 p = "cloudabi_fd_t";
1256 p = "userland const char *";
1265 /* cloudabi_sys_sock_listen */
1269 p = "cloudabi_fd_t";
1272 p = "cloudabi_backlog_t";
1278 /* cloudabi64_sys_sock_recv */
1282 p = "cloudabi_fd_t";
1285 p = "userland const cloudabi64_recv_in_t *";
1288 p = "userland cloudabi64_recv_out_t *";
1294 /* cloudabi64_sys_sock_send */
1298 p = "cloudabi_fd_t";
1301 p = "userland const cloudabi64_send_in_t *";
1304 p = "userland cloudabi64_send_out_t *";
1310 /* cloudabi_sys_sock_shutdown */
1314 p = "cloudabi_fd_t";
1317 p = "cloudabi_sdflags_t";
1323 /* cloudabi_sys_sock_stat_get */
1327 p = "cloudabi_fd_t";
1330 p = "userland cloudabi_sockstat_t *";
1333 p = "cloudabi_ssflags_t";
1339 /* cloudabi64_sys_thread_create */
1343 p = "userland cloudabi64_threadattr_t *";
1349 /* cloudabi_sys_thread_exit */
1353 p = "userland cloudabi_lock_t *";
1356 p = "cloudabi_scope_t";
1362 /* cloudabi_sys_thread_yield */
1369 strlcpy(desc, p, descsz);
1372 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1374 const char *p = NULL;
1376 /* cloudabi_sys_clock_res_get */
1378 if (ndx == 0 || ndx == 1)
1379 p = "cloudabi_timestamp_t";
1381 /* cloudabi_sys_clock_time_get */
1383 if (ndx == 0 || ndx == 1)
1384 p = "cloudabi_timestamp_t";
1386 /* cloudabi_sys_condvar_signal */
1388 if (ndx == 0 || ndx == 1)
1391 /* cloudabi_sys_fd_close */
1393 if (ndx == 0 || ndx == 1)
1396 /* cloudabi_sys_fd_create1 */
1398 if (ndx == 0 || ndx == 1)
1399 p = "cloudabi_fd_t";
1401 /* cloudabi_sys_fd_create2 */
1403 if (ndx == 0 || ndx == 1)
1406 /* cloudabi_sys_fd_datasync */
1408 if (ndx == 0 || ndx == 1)
1411 /* cloudabi_sys_fd_dup */
1413 if (ndx == 0 || ndx == 1)
1414 p = "cloudabi_fd_t";
1416 /* cloudabi64_sys_fd_pread */
1418 if (ndx == 0 || ndx == 1)
1421 /* cloudabi64_sys_fd_pwrite */
1423 if (ndx == 0 || ndx == 1)
1426 /* cloudabi64_sys_fd_read */
1428 if (ndx == 0 || ndx == 1)
1431 /* cloudabi_sys_fd_replace */
1433 if (ndx == 0 || ndx == 1)
1436 /* cloudabi_sys_fd_seek */
1438 if (ndx == 0 || ndx == 1)
1439 p = "cloudabi_filesize_t";
1441 /* cloudabi_sys_fd_stat_get */
1443 if (ndx == 0 || ndx == 1)
1446 /* cloudabi_sys_fd_stat_put */
1448 if (ndx == 0 || ndx == 1)
1451 /* cloudabi_sys_fd_sync */
1453 if (ndx == 0 || ndx == 1)
1456 /* cloudabi64_sys_fd_write */
1458 if (ndx == 0 || ndx == 1)
1461 /* cloudabi_sys_file_advise */
1463 if (ndx == 0 || ndx == 1)
1466 /* cloudabi_sys_file_allocate */
1468 if (ndx == 0 || ndx == 1)
1471 /* cloudabi_sys_file_create */
1473 if (ndx == 0 || ndx == 1)
1476 /* cloudabi_sys_file_link */
1478 if (ndx == 0 || ndx == 1)
1481 /* cloudabi_sys_file_open */
1483 if (ndx == 0 || ndx == 1)
1484 p = "cloudabi_fd_t";
1486 /* cloudabi_sys_file_readdir */
1488 if (ndx == 0 || ndx == 1)
1491 /* cloudabi_sys_file_readlink */
1493 if (ndx == 0 || ndx == 1)
1496 /* cloudabi_sys_file_rename */
1498 if (ndx == 0 || ndx == 1)
1501 /* cloudabi_sys_file_stat_fget */
1503 if (ndx == 0 || ndx == 1)
1506 /* cloudabi_sys_file_stat_fput */
1508 if (ndx == 0 || ndx == 1)
1511 /* cloudabi_sys_file_stat_get */
1513 if (ndx == 0 || ndx == 1)
1516 /* cloudabi_sys_file_stat_put */
1518 if (ndx == 0 || ndx == 1)
1521 /* cloudabi_sys_file_symlink */
1523 if (ndx == 0 || ndx == 1)
1526 /* cloudabi_sys_file_unlink */
1528 if (ndx == 0 || ndx == 1)
1531 /* cloudabi_sys_lock_unlock */
1533 if (ndx == 0 || ndx == 1)
1536 /* cloudabi_sys_mem_advise */
1538 if (ndx == 0 || ndx == 1)
1541 /* cloudabi_sys_mem_map */
1543 if (ndx == 0 || ndx == 1)
1546 /* cloudabi_sys_mem_protect */
1548 if (ndx == 0 || ndx == 1)
1551 /* cloudabi_sys_mem_sync */
1553 if (ndx == 0 || ndx == 1)
1556 /* cloudabi_sys_mem_unmap */
1558 if (ndx == 0 || ndx == 1)
1561 /* cloudabi64_sys_poll */
1563 if (ndx == 0 || ndx == 1)
1566 /* cloudabi64_sys_poll_fd */
1568 if (ndx == 0 || ndx == 1)
1571 /* cloudabi_sys_proc_exec */
1573 if (ndx == 0 || ndx == 1)
1576 /* cloudabi_sys_proc_exit */
1578 if (ndx == 0 || ndx == 1)
1581 /* cloudabi_sys_proc_fork */
1583 /* cloudabi_sys_proc_raise */
1585 if (ndx == 0 || ndx == 1)
1588 /* cloudabi_sys_random_get */
1590 if (ndx == 0 || ndx == 1)
1593 /* cloudabi_sys_sock_accept */
1595 if (ndx == 0 || ndx == 1)
1596 p = "cloudabi_fd_t";
1598 /* cloudabi_sys_sock_bind */
1600 if (ndx == 0 || ndx == 1)
1603 /* cloudabi_sys_sock_connect */
1605 if (ndx == 0 || ndx == 1)
1608 /* cloudabi_sys_sock_listen */
1610 if (ndx == 0 || ndx == 1)
1613 /* cloudabi64_sys_sock_recv */
1615 if (ndx == 0 || ndx == 1)
1618 /* cloudabi64_sys_sock_send */
1620 if (ndx == 0 || ndx == 1)
1623 /* cloudabi_sys_sock_shutdown */
1625 if (ndx == 0 || ndx == 1)
1628 /* cloudabi_sys_sock_stat_get */
1630 if (ndx == 0 || ndx == 1)
1633 /* cloudabi64_sys_thread_create */
1635 if (ndx == 0 || ndx == 1)
1636 p = "cloudabi_tid_t";
1638 /* cloudabi_sys_thread_exit */
1640 if (ndx == 0 || ndx == 1)
1643 /* cloudabi_sys_thread_yield */
1649 strlcpy(desc, p, descsz);