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->iov; /* const cloudabi64_iovec_t * */
78 uarg[2] = p->iovcnt; /* 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 uarg[2] = p->iovcnt; /* 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 uarg[2] = p->iovcnt; /* 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 uarg[2] = p->iovcnt; /* 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->dirfd; /* 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; /* char * */
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->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->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 uarg[2] = p->nsubscriptions; /* size_t */
376 /* cloudabi64_sys_poll_fd */
378 struct cloudabi64_sys_poll_fd_args *p = params;
379 iarg[0] = p->fd; /* cloudabi_fd_t */
380 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
381 uarg[2] = p->nin; /* size_t */
382 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
383 uarg[4] = p->nout; /* size_t */
384 uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
388 /* cloudabi_sys_proc_exec */
390 struct cloudabi_sys_proc_exec_args *p = params;
391 iarg[0] = p->fd; /* cloudabi_fd_t */
392 uarg[1] = (intptr_t) p->data; /* const void * */
393 uarg[2] = p->datalen; /* size_t */
394 uarg[3] = (intptr_t) p->fds; /* const cloudabi_fd_t * */
395 uarg[4] = p->fdslen; /* size_t */
399 /* cloudabi_sys_proc_exit */
401 struct cloudabi_sys_proc_exit_args *p = params;
402 iarg[0] = p->rval; /* cloudabi_exitcode_t */
406 /* cloudabi_sys_proc_fork */
411 /* cloudabi_sys_proc_raise */
413 struct cloudabi_sys_proc_raise_args *p = params;
414 iarg[0] = p->sig; /* cloudabi_signal_t */
418 /* cloudabi_sys_random_get */
420 struct cloudabi_sys_random_get_args *p = params;
421 uarg[0] = (intptr_t) p->buf; /* void * */
422 uarg[1] = p->nbyte; /* size_t */
426 /* cloudabi_sys_sock_accept */
428 struct cloudabi_sys_sock_accept_args *p = params;
429 iarg[0] = p->sock; /* cloudabi_fd_t */
430 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
434 /* cloudabi_sys_sock_bind */
436 struct cloudabi_sys_sock_bind_args *p = params;
437 iarg[0] = p->sock; /* 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_connect */
446 struct cloudabi_sys_sock_connect_args *p = params;
447 iarg[0] = p->sock; /* cloudabi_fd_t */
448 iarg[1] = p->fd; /* cloudabi_fd_t */
449 uarg[2] = (intptr_t) p->path; /* const char * */
450 uarg[3] = p->pathlen; /* size_t */
454 /* cloudabi_sys_sock_listen */
456 struct cloudabi_sys_sock_listen_args *p = params;
457 iarg[0] = p->sock; /* cloudabi_fd_t */
458 iarg[1] = p->backlog; /* cloudabi_backlog_t */
462 /* cloudabi64_sys_sock_recv */
464 struct cloudabi64_sys_sock_recv_args *p = params;
465 iarg[0] = p->sock; /* cloudabi_fd_t */
466 uarg[1] = (intptr_t) p->in; /* const cloudabi64_recv_in_t * */
467 uarg[2] = (intptr_t) p->out; /* cloudabi64_recv_out_t * */
471 /* cloudabi64_sys_sock_send */
473 struct cloudabi64_sys_sock_send_args *p = params;
474 iarg[0] = p->sock; /* cloudabi_fd_t */
475 uarg[1] = (intptr_t) p->in; /* const cloudabi64_send_in_t * */
476 uarg[2] = (intptr_t) p->out; /* cloudabi64_send_out_t * */
480 /* cloudabi_sys_sock_shutdown */
482 struct cloudabi_sys_sock_shutdown_args *p = params;
483 iarg[0] = p->sock; /* cloudabi_fd_t */
484 iarg[1] = p->how; /* cloudabi_sdflags_t */
488 /* cloudabi_sys_sock_stat_get */
490 struct cloudabi_sys_sock_stat_get_args *p = params;
491 iarg[0] = p->sock; /* cloudabi_fd_t */
492 uarg[1] = (intptr_t) p->buf; /* cloudabi_sockstat_t * */
493 iarg[2] = p->flags; /* cloudabi_ssflags_t */
497 /* cloudabi64_sys_thread_create */
499 struct cloudabi64_sys_thread_create_args *p = params;
500 uarg[0] = (intptr_t) p->attr; /* cloudabi64_threadattr_t * */
504 /* cloudabi_sys_thread_exit */
506 struct cloudabi_sys_thread_exit_args *p = params;
507 uarg[0] = (intptr_t) p->lock; /* cloudabi_lock_t * */
508 iarg[1] = p->scope; /* cloudabi_scope_t */
512 /* cloudabi_sys_thread_yield */
523 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
525 const char *p = NULL;
527 /* cloudabi_sys_clock_res_get */
531 p = "cloudabi_clockid_t";
537 /* cloudabi_sys_clock_time_get */
541 p = "cloudabi_clockid_t";
544 p = "cloudabi_timestamp_t";
550 /* cloudabi_sys_condvar_signal */
554 p = "userland cloudabi_condvar_t *";
557 p = "cloudabi_scope_t";
560 p = "cloudabi_nthreads_t";
566 /* cloudabi_sys_fd_close */
576 /* cloudabi_sys_fd_create1 */
580 p = "cloudabi_filetype_t";
586 /* cloudabi_sys_fd_create2 */
590 p = "cloudabi_filetype_t";
596 /* cloudabi_sys_fd_datasync */
606 /* cloudabi_sys_fd_dup */
616 /* cloudabi64_sys_fd_pread */
623 p = "userland const cloudabi64_iovec_t *";
629 p = "cloudabi_filesize_t";
635 /* cloudabi64_sys_fd_pwrite */
642 p = "userland const cloudabi64_ciovec_t *";
648 p = "cloudabi_filesize_t";
654 /* cloudabi64_sys_fd_read */
661 p = "userland const cloudabi64_iovec_t *";
670 /* cloudabi_sys_fd_replace */
683 /* cloudabi_sys_fd_seek */
690 p = "cloudabi_filedelta_t";
693 p = "cloudabi_whence_t";
699 /* cloudabi_sys_fd_stat_get */
706 p = "userland cloudabi_fdstat_t *";
712 /* cloudabi_sys_fd_stat_put */
719 p = "userland const cloudabi_fdstat_t *";
722 p = "cloudabi_fdsflags_t";
728 /* cloudabi_sys_fd_sync */
738 /* cloudabi64_sys_fd_write */
745 p = "userland const cloudabi64_ciovec_t *";
754 /* cloudabi_sys_file_advise */
761 p = "cloudabi_filesize_t";
764 p = "cloudabi_filesize_t";
767 p = "cloudabi_advice_t";
773 /* cloudabi_sys_file_allocate */
780 p = "cloudabi_filesize_t";
783 p = "cloudabi_filesize_t";
789 /* cloudabi_sys_file_create */
796 p = "userland const char *";
802 p = "cloudabi_filetype_t";
808 /* cloudabi_sys_file_link */
812 p = "cloudabi_lookup_t";
815 p = "userland const char *";
824 p = "userland const char *";
833 /* cloudabi_sys_file_open */
837 p = "cloudabi_lookup_t";
840 p = "userland const char *";
846 p = "cloudabi_oflags_t";
849 p = "userland const cloudabi_fdstat_t *";
855 /* cloudabi_sys_file_readdir */
862 p = "userland void *";
868 p = "cloudabi_dircookie_t";
874 /* cloudabi_sys_file_readlink */
881 p = "userland const char *";
887 p = "userland char *";
896 /* cloudabi_sys_file_rename */
903 p = "userland const char *";
912 p = "userland const char *";
921 /* cloudabi_sys_file_stat_fget */
928 p = "userland cloudabi_filestat_t *";
934 /* cloudabi_sys_file_stat_fput */
941 p = "userland const cloudabi_filestat_t *";
944 p = "cloudabi_fsflags_t";
950 /* cloudabi_sys_file_stat_get */
954 p = "cloudabi_lookup_t";
957 p = "userland const char *";
963 p = "userland cloudabi_filestat_t *";
969 /* cloudabi_sys_file_stat_put */
973 p = "cloudabi_lookup_t";
976 p = "userland const char *";
982 p = "userland const cloudabi_filestat_t *";
985 p = "cloudabi_fsflags_t";
991 /* cloudabi_sys_file_symlink */
995 p = "userland const char *";
1001 p = "cloudabi_fd_t";
1004 p = "userland const char *";
1013 /* cloudabi_sys_file_unlink */
1017 p = "cloudabi_fd_t";
1020 p = "userland const char *";
1026 p = "cloudabi_ulflags_t";
1032 /* cloudabi_sys_lock_unlock */
1036 p = "userland cloudabi_lock_t *";
1039 p = "cloudabi_scope_t";
1045 /* cloudabi_sys_mem_advise */
1049 p = "userland void *";
1055 p = "cloudabi_advice_t";
1061 /* cloudabi_sys_mem_lock */
1065 p = "userland const void *";
1074 /* cloudabi_sys_mem_map */
1078 p = "userland void *";
1084 p = "cloudabi_mprot_t";
1087 p = "cloudabi_mflags_t";
1090 p = "cloudabi_fd_t";
1093 p = "cloudabi_filesize_t";
1099 /* cloudabi_sys_mem_protect */
1103 p = "userland void *";
1109 p = "cloudabi_mprot_t";
1115 /* cloudabi_sys_mem_sync */
1119 p = "userland void *";
1125 p = "cloudabi_msflags_t";
1131 /* cloudabi_sys_mem_unlock */
1135 p = "userland const void *";
1144 /* cloudabi_sys_mem_unmap */
1148 p = "userland void *";
1157 /* cloudabi64_sys_poll */
1161 p = "userland const cloudabi64_subscription_t *";
1164 p = "userland cloudabi64_event_t *";
1173 /* cloudabi64_sys_poll_fd */
1177 p = "cloudabi_fd_t";
1180 p = "userland const cloudabi64_subscription_t *";
1186 p = "userland cloudabi64_event_t *";
1192 p = "userland const cloudabi64_subscription_t *";
1198 /* cloudabi_sys_proc_exec */
1202 p = "cloudabi_fd_t";
1205 p = "userland const void *";
1211 p = "userland const cloudabi_fd_t *";
1220 /* cloudabi_sys_proc_exit */
1224 p = "cloudabi_exitcode_t";
1230 /* cloudabi_sys_proc_fork */
1233 /* cloudabi_sys_proc_raise */
1237 p = "cloudabi_signal_t";
1243 /* cloudabi_sys_random_get */
1247 p = "userland void *";
1256 /* cloudabi_sys_sock_accept */
1260 p = "cloudabi_fd_t";
1263 p = "userland cloudabi_sockstat_t *";
1269 /* cloudabi_sys_sock_bind */
1273 p = "cloudabi_fd_t";
1276 p = "cloudabi_fd_t";
1279 p = "userland const char *";
1288 /* cloudabi_sys_sock_connect */
1292 p = "cloudabi_fd_t";
1295 p = "cloudabi_fd_t";
1298 p = "userland const char *";
1307 /* cloudabi_sys_sock_listen */
1311 p = "cloudabi_fd_t";
1314 p = "cloudabi_backlog_t";
1320 /* cloudabi64_sys_sock_recv */
1324 p = "cloudabi_fd_t";
1327 p = "userland const cloudabi64_recv_in_t *";
1330 p = "userland cloudabi64_recv_out_t *";
1336 /* cloudabi64_sys_sock_send */
1340 p = "cloudabi_fd_t";
1343 p = "userland const cloudabi64_send_in_t *";
1346 p = "userland cloudabi64_send_out_t *";
1352 /* cloudabi_sys_sock_shutdown */
1356 p = "cloudabi_fd_t";
1359 p = "cloudabi_sdflags_t";
1365 /* cloudabi_sys_sock_stat_get */
1369 p = "cloudabi_fd_t";
1372 p = "userland cloudabi_sockstat_t *";
1375 p = "cloudabi_ssflags_t";
1381 /* cloudabi64_sys_thread_create */
1385 p = "userland cloudabi64_threadattr_t *";
1391 /* cloudabi_sys_thread_exit */
1395 p = "userland cloudabi_lock_t *";
1398 p = "cloudabi_scope_t";
1404 /* cloudabi_sys_thread_yield */
1411 strlcpy(desc, p, descsz);
1414 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
1416 const char *p = NULL;
1418 /* cloudabi_sys_clock_res_get */
1420 if (ndx == 0 || ndx == 1)
1421 p = "cloudabi_timestamp_t";
1423 /* cloudabi_sys_clock_time_get */
1425 if (ndx == 0 || ndx == 1)
1426 p = "cloudabi_timestamp_t";
1428 /* cloudabi_sys_condvar_signal */
1430 if (ndx == 0 || ndx == 1)
1433 /* cloudabi_sys_fd_close */
1435 if (ndx == 0 || ndx == 1)
1438 /* cloudabi_sys_fd_create1 */
1440 if (ndx == 0 || ndx == 1)
1441 p = "cloudabi_fd_t";
1443 /* cloudabi_sys_fd_create2 */
1445 if (ndx == 0 || ndx == 1)
1448 /* cloudabi_sys_fd_datasync */
1450 if (ndx == 0 || ndx == 1)
1453 /* cloudabi_sys_fd_dup */
1455 if (ndx == 0 || ndx == 1)
1456 p = "cloudabi_fd_t";
1458 /* cloudabi64_sys_fd_pread */
1460 if (ndx == 0 || ndx == 1)
1463 /* cloudabi64_sys_fd_pwrite */
1465 if (ndx == 0 || ndx == 1)
1468 /* cloudabi64_sys_fd_read */
1470 if (ndx == 0 || ndx == 1)
1473 /* cloudabi_sys_fd_replace */
1475 if (ndx == 0 || ndx == 1)
1478 /* cloudabi_sys_fd_seek */
1480 if (ndx == 0 || ndx == 1)
1481 p = "cloudabi_filesize_t";
1483 /* cloudabi_sys_fd_stat_get */
1485 if (ndx == 0 || ndx == 1)
1488 /* cloudabi_sys_fd_stat_put */
1490 if (ndx == 0 || ndx == 1)
1493 /* cloudabi_sys_fd_sync */
1495 if (ndx == 0 || ndx == 1)
1498 /* cloudabi64_sys_fd_write */
1500 if (ndx == 0 || ndx == 1)
1503 /* cloudabi_sys_file_advise */
1505 if (ndx == 0 || ndx == 1)
1508 /* cloudabi_sys_file_allocate */
1510 if (ndx == 0 || ndx == 1)
1513 /* cloudabi_sys_file_create */
1515 if (ndx == 0 || ndx == 1)
1518 /* cloudabi_sys_file_link */
1520 if (ndx == 0 || ndx == 1)
1523 /* cloudabi_sys_file_open */
1525 if (ndx == 0 || ndx == 1)
1526 p = "cloudabi_fd_t";
1528 /* cloudabi_sys_file_readdir */
1530 if (ndx == 0 || ndx == 1)
1533 /* cloudabi_sys_file_readlink */
1535 if (ndx == 0 || ndx == 1)
1538 /* cloudabi_sys_file_rename */
1540 if (ndx == 0 || ndx == 1)
1543 /* cloudabi_sys_file_stat_fget */
1545 if (ndx == 0 || ndx == 1)
1548 /* cloudabi_sys_file_stat_fput */
1550 if (ndx == 0 || ndx == 1)
1553 /* cloudabi_sys_file_stat_get */
1555 if (ndx == 0 || ndx == 1)
1558 /* cloudabi_sys_file_stat_put */
1560 if (ndx == 0 || ndx == 1)
1563 /* cloudabi_sys_file_symlink */
1565 if (ndx == 0 || ndx == 1)
1568 /* cloudabi_sys_file_unlink */
1570 if (ndx == 0 || ndx == 1)
1573 /* cloudabi_sys_lock_unlock */
1575 if (ndx == 0 || ndx == 1)
1578 /* cloudabi_sys_mem_advise */
1580 if (ndx == 0 || ndx == 1)
1583 /* cloudabi_sys_mem_lock */
1585 if (ndx == 0 || ndx == 1)
1588 /* cloudabi_sys_mem_map */
1590 if (ndx == 0 || ndx == 1)
1593 /* cloudabi_sys_mem_protect */
1595 if (ndx == 0 || ndx == 1)
1598 /* cloudabi_sys_mem_sync */
1600 if (ndx == 0 || ndx == 1)
1603 /* cloudabi_sys_mem_unlock */
1605 if (ndx == 0 || ndx == 1)
1608 /* cloudabi_sys_mem_unmap */
1610 if (ndx == 0 || ndx == 1)
1613 /* cloudabi64_sys_poll */
1615 if (ndx == 0 || ndx == 1)
1618 /* cloudabi64_sys_poll_fd */
1620 if (ndx == 0 || ndx == 1)
1623 /* cloudabi_sys_proc_exec */
1625 if (ndx == 0 || ndx == 1)
1628 /* cloudabi_sys_proc_exit */
1630 if (ndx == 0 || ndx == 1)
1633 /* cloudabi_sys_proc_fork */
1635 /* cloudabi_sys_proc_raise */
1637 if (ndx == 0 || ndx == 1)
1640 /* cloudabi_sys_random_get */
1642 if (ndx == 0 || ndx == 1)
1645 /* cloudabi_sys_sock_accept */
1647 if (ndx == 0 || ndx == 1)
1648 p = "cloudabi_fd_t";
1650 /* cloudabi_sys_sock_bind */
1652 if (ndx == 0 || ndx == 1)
1655 /* cloudabi_sys_sock_connect */
1657 if (ndx == 0 || ndx == 1)
1660 /* cloudabi_sys_sock_listen */
1662 if (ndx == 0 || ndx == 1)
1665 /* cloudabi64_sys_sock_recv */
1667 if (ndx == 0 || ndx == 1)
1670 /* cloudabi64_sys_sock_send */
1672 if (ndx == 0 || ndx == 1)
1675 /* cloudabi_sys_sock_shutdown */
1677 if (ndx == 0 || ndx == 1)
1680 /* cloudabi_sys_sock_stat_get */
1682 if (ndx == 0 || ndx == 1)
1685 /* cloudabi64_sys_thread_create */
1687 if (ndx == 0 || ndx == 1)
1688 p = "cloudabi_tid_t";
1690 /* cloudabi_sys_thread_exit */
1692 if (ndx == 0 || ndx == 1)
1695 /* cloudabi_sys_thread_yield */
1701 strlcpy(desc, p, descsz);