syscallargs.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329
  1. /* $OpenBSD: syscallargs.h,v 1.168 2015/07/20 00:57:06 guenther Exp $ */
  2. /*
  3. * System call argument lists.
  4. *
  5. * DO NOT EDIT-- this file is automatically generated.
  6. * created from; OpenBSD: syscalls.master,v 1.155 2015/07/20 00:56:10 guenther Exp
  7. */
  8. #ifdef syscallarg
  9. #undef syscallarg
  10. #endif
  11. #define syscallarg(x) \
  12. union { \
  13. register_t pad; \
  14. struct { x datum; } le; \
  15. struct { \
  16. int8_t pad[ (sizeof (register_t) < sizeof (x)) \
  17. ? 0 \
  18. : sizeof (register_t) - sizeof (x)]; \
  19. x datum; \
  20. } be; \
  21. }
  22. struct sys_exit_args {
  23. syscallarg(int) rval;
  24. };
  25. struct sys_read_args {
  26. syscallarg(int) fd;
  27. syscallarg(void *) buf;
  28. syscallarg(size_t) nbyte;
  29. };
  30. struct sys_write_args {
  31. syscallarg(int) fd;
  32. syscallarg(const void *) buf;
  33. syscallarg(size_t) nbyte;
  34. };
  35. struct sys_open_args {
  36. syscallarg(const char *) path;
  37. syscallarg(int) flags;
  38. syscallarg(mode_t) mode;
  39. };
  40. struct sys_close_args {
  41. syscallarg(int) fd;
  42. };
  43. struct sys_getentropy_args {
  44. syscallarg(void *) buf;
  45. syscallarg(size_t) nbyte;
  46. };
  47. struct sys___tfork_args {
  48. syscallarg(const struct __tfork *) param;
  49. syscallarg(size_t) psize;
  50. };
  51. struct sys_link_args {
  52. syscallarg(const char *) path;
  53. syscallarg(const char *) link;
  54. };
  55. struct sys_unlink_args {
  56. syscallarg(const char *) path;
  57. };
  58. struct sys_wait4_args {
  59. syscallarg(pid_t) pid;
  60. syscallarg(int *) status;
  61. syscallarg(int) options;
  62. syscallarg(struct rusage *) rusage;
  63. };
  64. struct sys_chdir_args {
  65. syscallarg(const char *) path;
  66. };
  67. struct sys_fchdir_args {
  68. syscallarg(int) fd;
  69. };
  70. struct sys_mknod_args {
  71. syscallarg(const char *) path;
  72. syscallarg(mode_t) mode;
  73. syscallarg(dev_t) dev;
  74. };
  75. struct sys_chmod_args {
  76. syscallarg(const char *) path;
  77. syscallarg(mode_t) mode;
  78. };
  79. struct sys_chown_args {
  80. syscallarg(const char *) path;
  81. syscallarg(uid_t) uid;
  82. syscallarg(gid_t) gid;
  83. };
  84. struct sys_obreak_args {
  85. syscallarg(char *) nsize;
  86. };
  87. struct sys_getrusage_args {
  88. syscallarg(int) who;
  89. syscallarg(struct rusage *) rusage;
  90. };
  91. struct sys_mount_args {
  92. syscallarg(const char *) type;
  93. syscallarg(const char *) path;
  94. syscallarg(int) flags;
  95. syscallarg(void *) data;
  96. };
  97. struct sys_unmount_args {
  98. syscallarg(const char *) path;
  99. syscallarg(int) flags;
  100. };
  101. struct sys_setuid_args {
  102. syscallarg(uid_t) uid;
  103. };
  104. struct sys_ptrace_args {
  105. syscallarg(int) req;
  106. syscallarg(pid_t) pid;
  107. syscallarg(caddr_t) addr;
  108. syscallarg(int) data;
  109. };
  110. struct sys_recvmsg_args {
  111. syscallarg(int) s;
  112. syscallarg(struct msghdr *) msg;
  113. syscallarg(int) flags;
  114. };
  115. struct sys_sendmsg_args {
  116. syscallarg(int) s;
  117. syscallarg(const struct msghdr *) msg;
  118. syscallarg(int) flags;
  119. };
  120. struct sys_recvfrom_args {
  121. syscallarg(int) s;
  122. syscallarg(void *) buf;
  123. syscallarg(size_t) len;
  124. syscallarg(int) flags;
  125. syscallarg(struct sockaddr *) from;
  126. syscallarg(socklen_t *) fromlenaddr;
  127. };
  128. struct sys_accept_args {
  129. syscallarg(int) s;
  130. syscallarg(struct sockaddr *) name;
  131. syscallarg(socklen_t *) anamelen;
  132. };
  133. struct sys_getpeername_args {
  134. syscallarg(int) fdes;
  135. syscallarg(struct sockaddr *) asa;
  136. syscallarg(socklen_t *) alen;
  137. };
  138. struct sys_getsockname_args {
  139. syscallarg(int) fdes;
  140. syscallarg(struct sockaddr *) asa;
  141. syscallarg(socklen_t *) alen;
  142. };
  143. struct sys_access_args {
  144. syscallarg(const char *) path;
  145. syscallarg(int) amode;
  146. };
  147. struct sys_chflags_args {
  148. syscallarg(const char *) path;
  149. syscallarg(u_int) flags;
  150. };
  151. struct sys_fchflags_args {
  152. syscallarg(int) fd;
  153. syscallarg(u_int) flags;
  154. };
  155. struct sys_kill_args {
  156. syscallarg(int) pid;
  157. syscallarg(int) signum;
  158. };
  159. struct sys_stat_args {
  160. syscallarg(const char *) path;
  161. syscallarg(struct stat *) ub;
  162. };
  163. struct sys_lstat_args {
  164. syscallarg(const char *) path;
  165. syscallarg(struct stat *) ub;
  166. };
  167. struct sys_dup_args {
  168. syscallarg(int) fd;
  169. };
  170. struct sys_fstatat_args {
  171. syscallarg(int) fd;
  172. syscallarg(const char *) path;
  173. syscallarg(struct stat *) buf;
  174. syscallarg(int) flag;
  175. };
  176. struct sys_profil_args {
  177. syscallarg(caddr_t) samples;
  178. syscallarg(size_t) size;
  179. syscallarg(u_long) offset;
  180. syscallarg(u_int) scale;
  181. };
  182. struct sys_ktrace_args {
  183. syscallarg(const char *) fname;
  184. syscallarg(int) ops;
  185. syscallarg(int) facs;
  186. syscallarg(pid_t) pid;
  187. };
  188. struct sys_sigaction_args {
  189. syscallarg(int) signum;
  190. syscallarg(const struct sigaction *) nsa;
  191. syscallarg(struct sigaction *) osa;
  192. };
  193. struct sys_sigprocmask_args {
  194. syscallarg(int) how;
  195. syscallarg(sigset_t) mask;
  196. };
  197. struct sys_getlogin_args {
  198. syscallarg(char *) namebuf;
  199. syscallarg(u_int) namelen;
  200. };
  201. struct sys_setlogin_args {
  202. syscallarg(const char *) namebuf;
  203. };
  204. struct sys_acct_args {
  205. syscallarg(const char *) path;
  206. };
  207. struct sys_fstat_args {
  208. syscallarg(int) fd;
  209. syscallarg(struct stat *) sb;
  210. };
  211. struct sys_ioctl_args {
  212. syscallarg(int) fd;
  213. syscallarg(u_long) com;
  214. syscallarg(void *) data;
  215. };
  216. struct sys_reboot_args {
  217. syscallarg(int) opt;
  218. };
  219. struct sys_revoke_args {
  220. syscallarg(const char *) path;
  221. };
  222. struct sys_symlink_args {
  223. syscallarg(const char *) path;
  224. syscallarg(const char *) link;
  225. };
  226. struct sys_readlink_args {
  227. syscallarg(const char *) path;
  228. syscallarg(char *) buf;
  229. syscallarg(size_t) count;
  230. };
  231. struct sys_execve_args {
  232. syscallarg(const char *) path;
  233. syscallarg(char *const *) argp;
  234. syscallarg(char *const *) envp;
  235. };
  236. struct sys_umask_args {
  237. syscallarg(mode_t) newmask;
  238. };
  239. struct sys_chroot_args {
  240. syscallarg(const char *) path;
  241. };
  242. struct sys_getfsstat_args {
  243. syscallarg(struct statfs *) buf;
  244. syscallarg(size_t) bufsize;
  245. syscallarg(int) flags;
  246. };
  247. struct sys_statfs_args {
  248. syscallarg(const char *) path;
  249. syscallarg(struct statfs *) buf;
  250. };
  251. struct sys_fstatfs_args {
  252. syscallarg(int) fd;
  253. syscallarg(struct statfs *) buf;
  254. };
  255. struct sys_fhstatfs_args {
  256. syscallarg(const fhandle_t *) fhp;
  257. syscallarg(struct statfs *) buf;
  258. };
  259. struct sys_gettimeofday_args {
  260. syscallarg(struct timeval *) tp;
  261. syscallarg(struct timezone *) tzp;
  262. };
  263. struct sys_settimeofday_args {
  264. syscallarg(const struct timeval *) tv;
  265. syscallarg(const struct timezone *) tzp;
  266. };
  267. struct sys_setitimer_args {
  268. syscallarg(int) which;
  269. syscallarg(const struct itimerval *) itv;
  270. syscallarg(struct itimerval *) oitv;
  271. };
  272. struct sys_getitimer_args {
  273. syscallarg(int) which;
  274. syscallarg(struct itimerval *) itv;
  275. };
  276. struct sys_select_args {
  277. syscallarg(int) nd;
  278. syscallarg(fd_set *) in;
  279. syscallarg(fd_set *) ou;
  280. syscallarg(fd_set *) ex;
  281. syscallarg(struct timeval *) tv;
  282. };
  283. struct sys_kevent_args {
  284. syscallarg(int) fd;
  285. syscallarg(const struct kevent *) changelist;
  286. syscallarg(int) nchanges;
  287. syscallarg(struct kevent *) eventlist;
  288. syscallarg(int) nevents;
  289. syscallarg(const struct timespec *) timeout;
  290. };
  291. struct sys_munmap_args {
  292. syscallarg(void *) addr;
  293. syscallarg(size_t) len;
  294. };
  295. struct sys_mprotect_args {
  296. syscallarg(void *) addr;
  297. syscallarg(size_t) len;
  298. syscallarg(int) prot;
  299. };
  300. struct sys_madvise_args {
  301. syscallarg(void *) addr;
  302. syscallarg(size_t) len;
  303. syscallarg(int) behav;
  304. };
  305. struct sys_utimes_args {
  306. syscallarg(const char *) path;
  307. syscallarg(const struct timeval *) tptr;
  308. };
  309. struct sys_futimes_args {
  310. syscallarg(int) fd;
  311. syscallarg(const struct timeval *) tptr;
  312. };
  313. struct sys_mincore_args {
  314. syscallarg(void *) addr;
  315. syscallarg(size_t) len;
  316. syscallarg(char *) vec;
  317. };
  318. struct sys_getgroups_args {
  319. syscallarg(int) gidsetsize;
  320. syscallarg(gid_t *) gidset;
  321. };
  322. struct sys_setgroups_args {
  323. syscallarg(int) gidsetsize;
  324. syscallarg(const gid_t *) gidset;
  325. };
  326. struct sys_setpgid_args {
  327. syscallarg(pid_t) pid;
  328. syscallarg(pid_t) pgid;
  329. };
  330. struct sys_sendsyslog_args {
  331. syscallarg(const void *) buf;
  332. syscallarg(size_t) nbyte;
  333. };
  334. struct sys_utimensat_args {
  335. syscallarg(int) fd;
  336. syscallarg(const char *) path;
  337. syscallarg(const struct timespec *) times;
  338. syscallarg(int) flag;
  339. };
  340. struct sys_futimens_args {
  341. syscallarg(int) fd;
  342. syscallarg(const struct timespec *) times;
  343. };
  344. struct sys_kbind_args {
  345. syscallarg(const struct __kbind *) param;
  346. syscallarg(size_t) psize;
  347. syscallarg(int64_t) proc_cookie;
  348. };
  349. struct sys_clock_gettime_args {
  350. syscallarg(clockid_t) clock_id;
  351. syscallarg(struct timespec *) tp;
  352. };
  353. struct sys_clock_settime_args {
  354. syscallarg(clockid_t) clock_id;
  355. syscallarg(const struct timespec *) tp;
  356. };
  357. struct sys_clock_getres_args {
  358. syscallarg(clockid_t) clock_id;
  359. syscallarg(struct timespec *) tp;
  360. };
  361. struct sys_dup2_args {
  362. syscallarg(int) from;
  363. syscallarg(int) to;
  364. };
  365. struct sys_nanosleep_args {
  366. syscallarg(const struct timespec *) rqtp;
  367. syscallarg(struct timespec *) rmtp;
  368. };
  369. struct sys_fcntl_args {
  370. syscallarg(int) fd;
  371. syscallarg(int) cmd;
  372. syscallarg(void *) arg;
  373. };
  374. struct sys_accept4_args {
  375. syscallarg(int) s;
  376. syscallarg(struct sockaddr *) name;
  377. syscallarg(socklen_t *) anamelen;
  378. syscallarg(int) flags;
  379. };
  380. struct sys___thrsleep_args {
  381. syscallarg(const volatile void *) ident;
  382. syscallarg(clockid_t) clock_id;
  383. syscallarg(const struct timespec *) tp;
  384. syscallarg(void *) lock;
  385. syscallarg(const int *) abort;
  386. };
  387. struct sys_fsync_args {
  388. syscallarg(int) fd;
  389. };
  390. struct sys_setpriority_args {
  391. syscallarg(int) which;
  392. syscallarg(id_t) who;
  393. syscallarg(int) prio;
  394. };
  395. struct sys_socket_args {
  396. syscallarg(int) domain;
  397. syscallarg(int) type;
  398. syscallarg(int) protocol;
  399. };
  400. struct sys_connect_args {
  401. syscallarg(int) s;
  402. syscallarg(const struct sockaddr *) name;
  403. syscallarg(socklen_t) namelen;
  404. };
  405. struct sys_getdents_args {
  406. syscallarg(int) fd;
  407. syscallarg(void *) buf;
  408. syscallarg(size_t) buflen;
  409. };
  410. struct sys_getpriority_args {
  411. syscallarg(int) which;
  412. syscallarg(id_t) who;
  413. };
  414. struct sys_pipe2_args {
  415. syscallarg(int *) fdp;
  416. syscallarg(int) flags;
  417. };
  418. struct sys_dup3_args {
  419. syscallarg(int) from;
  420. syscallarg(int) to;
  421. syscallarg(int) flags;
  422. };
  423. struct sys_sigreturn_args {
  424. syscallarg(struct sigcontext *) sigcntxp;
  425. };
  426. struct sys_bind_args {
  427. syscallarg(int) s;
  428. syscallarg(const struct sockaddr *) name;
  429. syscallarg(socklen_t) namelen;
  430. };
  431. struct sys_setsockopt_args {
  432. syscallarg(int) s;
  433. syscallarg(int) level;
  434. syscallarg(int) name;
  435. syscallarg(const void *) val;
  436. syscallarg(socklen_t) valsize;
  437. };
  438. struct sys_listen_args {
  439. syscallarg(int) s;
  440. syscallarg(int) backlog;
  441. };
  442. struct sys_chflagsat_args {
  443. syscallarg(int) fd;
  444. syscallarg(const char *) path;
  445. syscallarg(u_int) flags;
  446. syscallarg(int) atflags;
  447. };
  448. struct sys_tame_args {
  449. syscallarg(int) flags;
  450. };
  451. struct sys_ppoll_args {
  452. syscallarg(struct pollfd *) fds;
  453. syscallarg(u_int) nfds;
  454. syscallarg(const struct timespec *) ts;
  455. syscallarg(const sigset_t *) mask;
  456. };
  457. struct sys_pselect_args {
  458. syscallarg(int) nd;
  459. syscallarg(fd_set *) in;
  460. syscallarg(fd_set *) ou;
  461. syscallarg(fd_set *) ex;
  462. syscallarg(const struct timespec *) ts;
  463. syscallarg(const sigset_t *) mask;
  464. };
  465. struct sys_sigsuspend_args {
  466. syscallarg(int) mask;
  467. };
  468. struct sys_getsockopt_args {
  469. syscallarg(int) s;
  470. syscallarg(int) level;
  471. syscallarg(int) name;
  472. syscallarg(void *) val;
  473. syscallarg(socklen_t *) avalsize;
  474. };
  475. struct sys_readv_args {
  476. syscallarg(int) fd;
  477. syscallarg(const struct iovec *) iovp;
  478. syscallarg(int) iovcnt;
  479. };
  480. struct sys_writev_args {
  481. syscallarg(int) fd;
  482. syscallarg(const struct iovec *) iovp;
  483. syscallarg(int) iovcnt;
  484. };
  485. struct sys_fchown_args {
  486. syscallarg(int) fd;
  487. syscallarg(uid_t) uid;
  488. syscallarg(gid_t) gid;
  489. };
  490. struct sys_fchmod_args {
  491. syscallarg(int) fd;
  492. syscallarg(mode_t) mode;
  493. };
  494. struct sys_setreuid_args {
  495. syscallarg(uid_t) ruid;
  496. syscallarg(uid_t) euid;
  497. };
  498. struct sys_setregid_args {
  499. syscallarg(gid_t) rgid;
  500. syscallarg(gid_t) egid;
  501. };
  502. struct sys_rename_args {
  503. syscallarg(const char *) from;
  504. syscallarg(const char *) to;
  505. };
  506. struct sys_flock_args {
  507. syscallarg(int) fd;
  508. syscallarg(int) how;
  509. };
  510. struct sys_mkfifo_args {
  511. syscallarg(const char *) path;
  512. syscallarg(mode_t) mode;
  513. };
  514. struct sys_sendto_args {
  515. syscallarg(int) s;
  516. syscallarg(const void *) buf;
  517. syscallarg(size_t) len;
  518. syscallarg(int) flags;
  519. syscallarg(const struct sockaddr *) to;
  520. syscallarg(socklen_t) tolen;
  521. };
  522. struct sys_shutdown_args {
  523. syscallarg(int) s;
  524. syscallarg(int) how;
  525. };
  526. struct sys_socketpair_args {
  527. syscallarg(int) domain;
  528. syscallarg(int) type;
  529. syscallarg(int) protocol;
  530. syscallarg(int *) rsv;
  531. };
  532. struct sys_mkdir_args {
  533. syscallarg(const char *) path;
  534. syscallarg(mode_t) mode;
  535. };
  536. struct sys_rmdir_args {
  537. syscallarg(const char *) path;
  538. };
  539. struct sys_adjtime_args {
  540. syscallarg(const struct timeval *) delta;
  541. syscallarg(struct timeval *) olddelta;
  542. };
  543. struct sys_quotactl_args {
  544. syscallarg(const char *) path;
  545. syscallarg(int) cmd;
  546. syscallarg(int) uid;
  547. syscallarg(char *) arg;
  548. };
  549. struct sys_nfssvc_args {
  550. syscallarg(int) flag;
  551. syscallarg(void *) argp;
  552. };
  553. struct sys_getfh_args {
  554. syscallarg(const char *) fname;
  555. syscallarg(fhandle_t *) fhp;
  556. };
  557. struct sys_sysarch_args {
  558. syscallarg(int) op;
  559. syscallarg(void *) parms;
  560. };
  561. struct sys_pread_args {
  562. syscallarg(int) fd;
  563. syscallarg(void *) buf;
  564. syscallarg(size_t) nbyte;
  565. syscallarg(int) pad;
  566. syscallarg(off_t) offset;
  567. };
  568. struct sys_pwrite_args {
  569. syscallarg(int) fd;
  570. syscallarg(const void *) buf;
  571. syscallarg(size_t) nbyte;
  572. syscallarg(int) pad;
  573. syscallarg(off_t) offset;
  574. };
  575. struct sys_setgid_args {
  576. syscallarg(gid_t) gid;
  577. };
  578. struct sys_setegid_args {
  579. syscallarg(gid_t) egid;
  580. };
  581. struct sys_seteuid_args {
  582. syscallarg(uid_t) euid;
  583. };
  584. struct sys_pathconf_args {
  585. syscallarg(const char *) path;
  586. syscallarg(int) name;
  587. };
  588. struct sys_fpathconf_args {
  589. syscallarg(int) fd;
  590. syscallarg(int) name;
  591. };
  592. struct sys_swapctl_args {
  593. syscallarg(int) cmd;
  594. syscallarg(const void *) arg;
  595. syscallarg(int) misc;
  596. };
  597. struct sys_getrlimit_args {
  598. syscallarg(int) which;
  599. syscallarg(struct rlimit *) rlp;
  600. };
  601. struct sys_setrlimit_args {
  602. syscallarg(int) which;
  603. syscallarg(const struct rlimit *) rlp;
  604. };
  605. struct sys_mmap_args {
  606. syscallarg(void *) addr;
  607. syscallarg(size_t) len;
  608. syscallarg(int) prot;
  609. syscallarg(int) flags;
  610. syscallarg(int) fd;
  611. syscallarg(long) pad;
  612. syscallarg(off_t) pos;
  613. };
  614. struct sys_lseek_args {
  615. syscallarg(int) fd;
  616. syscallarg(int) pad;
  617. syscallarg(off_t) offset;
  618. syscallarg(int) whence;
  619. };
  620. struct sys_truncate_args {
  621. syscallarg(const char *) path;
  622. syscallarg(int) pad;
  623. syscallarg(off_t) length;
  624. };
  625. struct sys_ftruncate_args {
  626. syscallarg(int) fd;
  627. syscallarg(int) pad;
  628. syscallarg(off_t) length;
  629. };
  630. struct sys___sysctl_args {
  631. syscallarg(const int *) name;
  632. syscallarg(u_int) namelen;
  633. syscallarg(void *) old;
  634. syscallarg(size_t *) oldlenp;
  635. syscallarg(void *) new;
  636. syscallarg(size_t) newlen;
  637. };
  638. struct sys_mlock_args {
  639. syscallarg(const void *) addr;
  640. syscallarg(size_t) len;
  641. };
  642. struct sys_munlock_args {
  643. syscallarg(const void *) addr;
  644. syscallarg(size_t) len;
  645. };
  646. struct sys_getpgid_args {
  647. syscallarg(pid_t) pid;
  648. };
  649. struct sys_utrace_args {
  650. syscallarg(const char *) label;
  651. syscallarg(const void *) addr;
  652. syscallarg(size_t) len;
  653. };
  654. struct sys_semget_args {
  655. syscallarg(key_t) key;
  656. syscallarg(int) nsems;
  657. syscallarg(int) semflg;
  658. };
  659. struct sys_msgget_args {
  660. syscallarg(key_t) key;
  661. syscallarg(int) msgflg;
  662. };
  663. struct sys_msgsnd_args {
  664. syscallarg(int) msqid;
  665. syscallarg(const void *) msgp;
  666. syscallarg(size_t) msgsz;
  667. syscallarg(int) msgflg;
  668. };
  669. struct sys_msgrcv_args {
  670. syscallarg(int) msqid;
  671. syscallarg(void *) msgp;
  672. syscallarg(size_t) msgsz;
  673. syscallarg(long) msgtyp;
  674. syscallarg(int) msgflg;
  675. };
  676. struct sys_shmat_args {
  677. syscallarg(int) shmid;
  678. syscallarg(const void *) shmaddr;
  679. syscallarg(int) shmflg;
  680. };
  681. struct sys_shmdt_args {
  682. syscallarg(const void *) shmaddr;
  683. };
  684. struct sys_minherit_args {
  685. syscallarg(void *) addr;
  686. syscallarg(size_t) len;
  687. syscallarg(int) inherit;
  688. };
  689. struct sys_poll_args {
  690. syscallarg(struct pollfd *) fds;
  691. syscallarg(u_int) nfds;
  692. syscallarg(int) timeout;
  693. };
  694. struct sys_lchown_args {
  695. syscallarg(const char *) path;
  696. syscallarg(uid_t) uid;
  697. syscallarg(gid_t) gid;
  698. };
  699. struct sys_getsid_args {
  700. syscallarg(pid_t) pid;
  701. };
  702. struct sys_msync_args {
  703. syscallarg(void *) addr;
  704. syscallarg(size_t) len;
  705. syscallarg(int) flags;
  706. };
  707. struct sys_pipe_args {
  708. syscallarg(int *) fdp;
  709. };
  710. struct sys_fhopen_args {
  711. syscallarg(const fhandle_t *) fhp;
  712. syscallarg(int) flags;
  713. };
  714. struct sys_preadv_args {
  715. syscallarg(int) fd;
  716. syscallarg(const struct iovec *) iovp;
  717. syscallarg(int) iovcnt;
  718. syscallarg(int) pad;
  719. syscallarg(off_t) offset;
  720. };
  721. struct sys_pwritev_args {
  722. syscallarg(int) fd;
  723. syscallarg(const struct iovec *) iovp;
  724. syscallarg(int) iovcnt;
  725. syscallarg(int) pad;
  726. syscallarg(off_t) offset;
  727. };
  728. struct sys_mlockall_args {
  729. syscallarg(int) flags;
  730. };
  731. struct sys_getresuid_args {
  732. syscallarg(uid_t *) ruid;
  733. syscallarg(uid_t *) euid;
  734. syscallarg(uid_t *) suid;
  735. };
  736. struct sys_setresuid_args {
  737. syscallarg(uid_t) ruid;
  738. syscallarg(uid_t) euid;
  739. syscallarg(uid_t) suid;
  740. };
  741. struct sys_getresgid_args {
  742. syscallarg(gid_t *) rgid;
  743. syscallarg(gid_t *) egid;
  744. syscallarg(gid_t *) sgid;
  745. };
  746. struct sys_setresgid_args {
  747. syscallarg(gid_t) rgid;
  748. syscallarg(gid_t) egid;
  749. syscallarg(gid_t) sgid;
  750. };
  751. struct sys_mquery_args {
  752. syscallarg(void *) addr;
  753. syscallarg(size_t) len;
  754. syscallarg(int) prot;
  755. syscallarg(int) flags;
  756. syscallarg(int) fd;
  757. syscallarg(long) pad;
  758. syscallarg(off_t) pos;
  759. };
  760. struct sys_closefrom_args {
  761. syscallarg(int) fd;
  762. };
  763. struct sys_sigaltstack_args {
  764. syscallarg(const struct sigaltstack *) nss;
  765. syscallarg(struct sigaltstack *) oss;
  766. };
  767. struct sys_shmget_args {
  768. syscallarg(key_t) key;
  769. syscallarg(size_t) size;
  770. syscallarg(int) shmflg;
  771. };
  772. struct sys_semop_args {
  773. syscallarg(int) semid;
  774. syscallarg(struct sembuf *) sops;
  775. syscallarg(size_t) nsops;
  776. };
  777. struct sys_fhstat_args {
  778. syscallarg(const fhandle_t *) fhp;
  779. syscallarg(struct stat *) sb;
  780. };
  781. struct sys___semctl_args {
  782. syscallarg(int) semid;
  783. syscallarg(int) semnum;
  784. syscallarg(int) cmd;
  785. syscallarg(union semun *) arg;
  786. };
  787. struct sys_shmctl_args {
  788. syscallarg(int) shmid;
  789. syscallarg(int) cmd;
  790. syscallarg(struct shmid_ds *) buf;
  791. };
  792. struct sys_msgctl_args {
  793. syscallarg(int) msqid;
  794. syscallarg(int) cmd;
  795. syscallarg(struct msqid_ds *) buf;
  796. };
  797. struct sys___thrwakeup_args {
  798. syscallarg(const volatile void *) ident;
  799. syscallarg(int) n;
  800. };
  801. struct sys___threxit_args {
  802. syscallarg(pid_t *) notdead;
  803. };
  804. struct sys___thrsigdivert_args {
  805. syscallarg(sigset_t) sigmask;
  806. syscallarg(siginfo_t *) info;
  807. syscallarg(const struct timespec *) timeout;
  808. };
  809. struct sys___getcwd_args {
  810. syscallarg(char *) buf;
  811. syscallarg(size_t) len;
  812. };
  813. struct sys_adjfreq_args {
  814. syscallarg(const int64_t *) freq;
  815. syscallarg(int64_t *) oldfreq;
  816. };
  817. struct sys_setrtable_args {
  818. syscallarg(int) rtableid;
  819. };
  820. struct sys_faccessat_args {
  821. syscallarg(int) fd;
  822. syscallarg(const char *) path;
  823. syscallarg(int) amode;
  824. syscallarg(int) flag;
  825. };
  826. struct sys_fchmodat_args {
  827. syscallarg(int) fd;
  828. syscallarg(const char *) path;
  829. syscallarg(mode_t) mode;
  830. syscallarg(int) flag;
  831. };
  832. struct sys_fchownat_args {
  833. syscallarg(int) fd;
  834. syscallarg(const char *) path;
  835. syscallarg(uid_t) uid;
  836. syscallarg(gid_t) gid;
  837. syscallarg(int) flag;
  838. };
  839. struct sys_linkat_args {
  840. syscallarg(int) fd1;
  841. syscallarg(const char *) path1;
  842. syscallarg(int) fd2;
  843. syscallarg(const char *) path2;
  844. syscallarg(int) flag;
  845. };
  846. struct sys_mkdirat_args {
  847. syscallarg(int) fd;
  848. syscallarg(const char *) path;
  849. syscallarg(mode_t) mode;
  850. };
  851. struct sys_mkfifoat_args {
  852. syscallarg(int) fd;
  853. syscallarg(const char *) path;
  854. syscallarg(mode_t) mode;
  855. };
  856. struct sys_mknodat_args {
  857. syscallarg(int) fd;
  858. syscallarg(const char *) path;
  859. syscallarg(mode_t) mode;
  860. syscallarg(dev_t) dev;
  861. };
  862. struct sys_openat_args {
  863. syscallarg(int) fd;
  864. syscallarg(const char *) path;
  865. syscallarg(int) flags;
  866. syscallarg(mode_t) mode;
  867. };
  868. struct sys_readlinkat_args {
  869. syscallarg(int) fd;
  870. syscallarg(const char *) path;
  871. syscallarg(char *) buf;
  872. syscallarg(size_t) count;
  873. };
  874. struct sys_renameat_args {
  875. syscallarg(int) fromfd;
  876. syscallarg(const char *) from;
  877. syscallarg(int) tofd;
  878. syscallarg(const char *) to;
  879. };
  880. struct sys_symlinkat_args {
  881. syscallarg(const char *) path;
  882. syscallarg(int) fd;
  883. syscallarg(const char *) link;
  884. };
  885. struct sys_unlinkat_args {
  886. syscallarg(int) fd;
  887. syscallarg(const char *) path;
  888. syscallarg(int) flag;
  889. };
  890. struct sys___set_tcb_args {
  891. syscallarg(void *) tcb;
  892. };
  893. /*
  894. * System call prototypes.
  895. */
  896. int sys_exit(struct proc *, void *, register_t *);
  897. int sys_fork(struct proc *, void *, register_t *);
  898. int sys_read(struct proc *, void *, register_t *);
  899. int sys_write(struct proc *, void *, register_t *);
  900. int sys_open(struct proc *, void *, register_t *);
  901. int sys_close(struct proc *, void *, register_t *);
  902. int sys_getentropy(struct proc *, void *, register_t *);
  903. int sys___tfork(struct proc *, void *, register_t *);
  904. int sys_link(struct proc *, void *, register_t *);
  905. int sys_unlink(struct proc *, void *, register_t *);
  906. int sys_wait4(struct proc *, void *, register_t *);
  907. int sys_chdir(struct proc *, void *, register_t *);
  908. int sys_fchdir(struct proc *, void *, register_t *);
  909. int sys_mknod(struct proc *, void *, register_t *);
  910. int sys_chmod(struct proc *, void *, register_t *);
  911. int sys_chown(struct proc *, void *, register_t *);
  912. int sys_obreak(struct proc *, void *, register_t *);
  913. int sys_getdtablecount(struct proc *, void *, register_t *);
  914. int sys_getrusage(struct proc *, void *, register_t *);
  915. int sys_getpid(struct proc *, void *, register_t *);
  916. int sys_mount(struct proc *, void *, register_t *);
  917. int sys_unmount(struct proc *, void *, register_t *);
  918. int sys_setuid(struct proc *, void *, register_t *);
  919. int sys_getuid(struct proc *, void *, register_t *);
  920. int sys_geteuid(struct proc *, void *, register_t *);
  921. #ifdef PTRACE
  922. int sys_ptrace(struct proc *, void *, register_t *);
  923. #else
  924. #endif
  925. int sys_recvmsg(struct proc *, void *, register_t *);
  926. int sys_sendmsg(struct proc *, void *, register_t *);
  927. int sys_recvfrom(struct proc *, void *, register_t *);
  928. int sys_accept(struct proc *, void *, register_t *);
  929. int sys_getpeername(struct proc *, void *, register_t *);
  930. int sys_getsockname(struct proc *, void *, register_t *);
  931. int sys_access(struct proc *, void *, register_t *);
  932. int sys_chflags(struct proc *, void *, register_t *);
  933. int sys_fchflags(struct proc *, void *, register_t *);
  934. int sys_sync(struct proc *, void *, register_t *);
  935. int sys_kill(struct proc *, void *, register_t *);
  936. int sys_stat(struct proc *, void *, register_t *);
  937. int sys_getppid(struct proc *, void *, register_t *);
  938. int sys_lstat(struct proc *, void *, register_t *);
  939. int sys_dup(struct proc *, void *, register_t *);
  940. int sys_fstatat(struct proc *, void *, register_t *);
  941. int sys_getegid(struct proc *, void *, register_t *);
  942. int sys_profil(struct proc *, void *, register_t *);
  943. #ifdef KTRACE
  944. int sys_ktrace(struct proc *, void *, register_t *);
  945. #else
  946. #endif
  947. int sys_sigaction(struct proc *, void *, register_t *);
  948. int sys_getgid(struct proc *, void *, register_t *);
  949. int sys_sigprocmask(struct proc *, void *, register_t *);
  950. int sys_getlogin(struct proc *, void *, register_t *);
  951. int sys_setlogin(struct proc *, void *, register_t *);
  952. #ifdef ACCOUNTING
  953. int sys_acct(struct proc *, void *, register_t *);
  954. #else
  955. #endif
  956. int sys_sigpending(struct proc *, void *, register_t *);
  957. int sys_fstat(struct proc *, void *, register_t *);
  958. int sys_ioctl(struct proc *, void *, register_t *);
  959. int sys_reboot(struct proc *, void *, register_t *);
  960. int sys_revoke(struct proc *, void *, register_t *);
  961. int sys_symlink(struct proc *, void *, register_t *);
  962. int sys_readlink(struct proc *, void *, register_t *);
  963. int sys_execve(struct proc *, void *, register_t *);
  964. int sys_umask(struct proc *, void *, register_t *);
  965. int sys_chroot(struct proc *, void *, register_t *);
  966. int sys_getfsstat(struct proc *, void *, register_t *);
  967. int sys_statfs(struct proc *, void *, register_t *);
  968. int sys_fstatfs(struct proc *, void *, register_t *);
  969. int sys_fhstatfs(struct proc *, void *, register_t *);
  970. int sys_vfork(struct proc *, void *, register_t *);
  971. int sys_gettimeofday(struct proc *, void *, register_t *);
  972. int sys_settimeofday(struct proc *, void *, register_t *);
  973. int sys_setitimer(struct proc *, void *, register_t *);
  974. int sys_getitimer(struct proc *, void *, register_t *);
  975. int sys_select(struct proc *, void *, register_t *);
  976. int sys_kevent(struct proc *, void *, register_t *);
  977. int sys_munmap(struct proc *, void *, register_t *);
  978. int sys_mprotect(struct proc *, void *, register_t *);
  979. int sys_madvise(struct proc *, void *, register_t *);
  980. int sys_utimes(struct proc *, void *, register_t *);
  981. int sys_futimes(struct proc *, void *, register_t *);
  982. int sys_mincore(struct proc *, void *, register_t *);
  983. int sys_getgroups(struct proc *, void *, register_t *);
  984. int sys_setgroups(struct proc *, void *, register_t *);
  985. int sys_getpgrp(struct proc *, void *, register_t *);
  986. int sys_setpgid(struct proc *, void *, register_t *);
  987. int sys_sendsyslog(struct proc *, void *, register_t *);
  988. int sys_utimensat(struct proc *, void *, register_t *);
  989. int sys_futimens(struct proc *, void *, register_t *);
  990. int sys_kbind(struct proc *, void *, register_t *);
  991. int sys_clock_gettime(struct proc *, void *, register_t *);
  992. int sys_clock_settime(struct proc *, void *, register_t *);
  993. int sys_clock_getres(struct proc *, void *, register_t *);
  994. int sys_dup2(struct proc *, void *, register_t *);
  995. int sys_nanosleep(struct proc *, void *, register_t *);
  996. int sys_fcntl(struct proc *, void *, register_t *);
  997. int sys_accept4(struct proc *, void *, register_t *);
  998. int sys___thrsleep(struct proc *, void *, register_t *);
  999. int sys_fsync(struct proc *, void *, register_t *);
  1000. int sys_setpriority(struct proc *, void *, register_t *);
  1001. int sys_socket(struct proc *, void *, register_t *);
  1002. int sys_connect(struct proc *, void *, register_t *);
  1003. int sys_getdents(struct proc *, void *, register_t *);
  1004. int sys_getpriority(struct proc *, void *, register_t *);
  1005. int sys_pipe2(struct proc *, void *, register_t *);
  1006. int sys_dup3(struct proc *, void *, register_t *);
  1007. int sys_sigreturn(struct proc *, void *, register_t *);
  1008. int sys_bind(struct proc *, void *, register_t *);
  1009. int sys_setsockopt(struct proc *, void *, register_t *);
  1010. int sys_listen(struct proc *, void *, register_t *);
  1011. int sys_chflagsat(struct proc *, void *, register_t *);
  1012. int sys_tame(struct proc *, void *, register_t *);
  1013. int sys_ppoll(struct proc *, void *, register_t *);
  1014. int sys_pselect(struct proc *, void *, register_t *);
  1015. int sys_sigsuspend(struct proc *, void *, register_t *);
  1016. int sys_getsockopt(struct proc *, void *, register_t *);
  1017. int sys_readv(struct proc *, void *, register_t *);
  1018. int sys_writev(struct proc *, void *, register_t *);
  1019. int sys_fchown(struct proc *, void *, register_t *);
  1020. int sys_fchmod(struct proc *, void *, register_t *);
  1021. int sys_setreuid(struct proc *, void *, register_t *);
  1022. int sys_setregid(struct proc *, void *, register_t *);
  1023. int sys_rename(struct proc *, void *, register_t *);
  1024. int sys_flock(struct proc *, void *, register_t *);
  1025. int sys_mkfifo(struct proc *, void *, register_t *);
  1026. int sys_sendto(struct proc *, void *, register_t *);
  1027. int sys_shutdown(struct proc *, void *, register_t *);
  1028. int sys_socketpair(struct proc *, void *, register_t *);
  1029. int sys_mkdir(struct proc *, void *, register_t *);
  1030. int sys_rmdir(struct proc *, void *, register_t *);
  1031. int sys_adjtime(struct proc *, void *, register_t *);
  1032. int sys_setsid(struct proc *, void *, register_t *);
  1033. int sys_quotactl(struct proc *, void *, register_t *);
  1034. #if defined(NFSCLIENT) || defined(NFSSERVER)
  1035. int sys_nfssvc(struct proc *, void *, register_t *);
  1036. #else
  1037. #endif
  1038. int sys_getfh(struct proc *, void *, register_t *);
  1039. int sys_sysarch(struct proc *, void *, register_t *);
  1040. int sys_pread(struct proc *, void *, register_t *);
  1041. int sys_pwrite(struct proc *, void *, register_t *);
  1042. int sys_setgid(struct proc *, void *, register_t *);
  1043. int sys_setegid(struct proc *, void *, register_t *);
  1044. int sys_seteuid(struct proc *, void *, register_t *);
  1045. int sys_pathconf(struct proc *, void *, register_t *);
  1046. int sys_fpathconf(struct proc *, void *, register_t *);
  1047. int sys_swapctl(struct proc *, void *, register_t *);
  1048. int sys_getrlimit(struct proc *, void *, register_t *);
  1049. int sys_setrlimit(struct proc *, void *, register_t *);
  1050. int sys_mmap(struct proc *, void *, register_t *);
  1051. int sys_lseek(struct proc *, void *, register_t *);
  1052. int sys_truncate(struct proc *, void *, register_t *);
  1053. int sys_ftruncate(struct proc *, void *, register_t *);
  1054. int sys___sysctl(struct proc *, void *, register_t *);
  1055. int sys_mlock(struct proc *, void *, register_t *);
  1056. int sys_munlock(struct proc *, void *, register_t *);
  1057. int sys_getpgid(struct proc *, void *, register_t *);
  1058. int sys_utrace(struct proc *, void *, register_t *);
  1059. #ifdef SYSVSEM
  1060. int sys_semget(struct proc *, void *, register_t *);
  1061. #else
  1062. #endif
  1063. #ifdef SYSVMSG
  1064. int sys_msgget(struct proc *, void *, register_t *);
  1065. int sys_msgsnd(struct proc *, void *, register_t *);
  1066. int sys_msgrcv(struct proc *, void *, register_t *);
  1067. #else
  1068. #endif
  1069. #ifdef SYSVSHM
  1070. int sys_shmat(struct proc *, void *, register_t *);
  1071. int sys_shmdt(struct proc *, void *, register_t *);
  1072. #else
  1073. #endif
  1074. int sys_minherit(struct proc *, void *, register_t *);
  1075. int sys_poll(struct proc *, void *, register_t *);
  1076. int sys_issetugid(struct proc *, void *, register_t *);
  1077. int sys_lchown(struct proc *, void *, register_t *);
  1078. int sys_getsid(struct proc *, void *, register_t *);
  1079. int sys_msync(struct proc *, void *, register_t *);
  1080. int sys_pipe(struct proc *, void *, register_t *);
  1081. int sys_fhopen(struct proc *, void *, register_t *);
  1082. int sys_preadv(struct proc *, void *, register_t *);
  1083. int sys_pwritev(struct proc *, void *, register_t *);
  1084. int sys_kqueue(struct proc *, void *, register_t *);
  1085. int sys_mlockall(struct proc *, void *, register_t *);
  1086. int sys_munlockall(struct proc *, void *, register_t *);
  1087. int sys_getresuid(struct proc *, void *, register_t *);
  1088. int sys_setresuid(struct proc *, void *, register_t *);
  1089. int sys_getresgid(struct proc *, void *, register_t *);
  1090. int sys_setresgid(struct proc *, void *, register_t *);
  1091. int sys_mquery(struct proc *, void *, register_t *);
  1092. int sys_closefrom(struct proc *, void *, register_t *);
  1093. int sys_sigaltstack(struct proc *, void *, register_t *);
  1094. #ifdef SYSVSHM
  1095. int sys_shmget(struct proc *, void *, register_t *);
  1096. #else
  1097. #endif
  1098. #ifdef SYSVSEM
  1099. int sys_semop(struct proc *, void *, register_t *);
  1100. #else
  1101. #endif
  1102. int sys_fhstat(struct proc *, void *, register_t *);
  1103. #ifdef SYSVSEM
  1104. int sys___semctl(struct proc *, void *, register_t *);
  1105. #else
  1106. #endif
  1107. #ifdef SYSVSHM
  1108. int sys_shmctl(struct proc *, void *, register_t *);
  1109. #else
  1110. #endif
  1111. #ifdef SYSVMSG
  1112. int sys_msgctl(struct proc *, void *, register_t *);
  1113. #else
  1114. #endif
  1115. int sys_sched_yield(struct proc *, void *, register_t *);
  1116. int sys_getthrid(struct proc *, void *, register_t *);
  1117. int sys___thrwakeup(struct proc *, void *, register_t *);
  1118. int sys___threxit(struct proc *, void *, register_t *);
  1119. int sys___thrsigdivert(struct proc *, void *, register_t *);
  1120. int sys___getcwd(struct proc *, void *, register_t *);
  1121. int sys_adjfreq(struct proc *, void *, register_t *);
  1122. int sys_setrtable(struct proc *, void *, register_t *);
  1123. int sys_getrtable(struct proc *, void *, register_t *);
  1124. int sys_faccessat(struct proc *, void *, register_t *);
  1125. int sys_fchmodat(struct proc *, void *, register_t *);
  1126. int sys_fchownat(struct proc *, void *, register_t *);
  1127. int sys_linkat(struct proc *, void *, register_t *);
  1128. int sys_mkdirat(struct proc *, void *, register_t *);
  1129. int sys_mkfifoat(struct proc *, void *, register_t *);
  1130. int sys_mknodat(struct proc *, void *, register_t *);
  1131. int sys_openat(struct proc *, void *, register_t *);
  1132. int sys_readlinkat(struct proc *, void *, register_t *);
  1133. int sys_renameat(struct proc *, void *, register_t *);
  1134. int sys_symlinkat(struct proc *, void *, register_t *);
  1135. int sys_unlinkat(struct proc *, void *, register_t *);
  1136. int sys___set_tcb(struct proc *, void *, register_t *);
  1137. int sys___get_tcb(struct proc *, void *, register_t *);