2 * System call prototypes.
4 * DO NOT EDIT-- this file is automatically generated.
5 * $DragonFly: src/sys/sys/sysproto.h,v 1.9 2003/10/08 01:30:32 daver Exp $
6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.2 2003/06/17 04:28:41 dillon Exp
9 #ifndef _SYS_SYSPROTO_H_
10 #define _SYS_SYSPROTO_H_
12 #include <sys/signal.h>
16 #include <sys/msgport.h>
18 #include <sys/sysmsg.h>
20 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
30 struct sys_exit_args {
35 int rval; char rval_[PAD_(int)];
49 int fd; char fd_[PAD_(int)];
50 void * buf; char buf_[PAD_(void *)];
51 size_t nbyte; char nbyte_[PAD_(size_t)];
58 int fd; char fd_[PAD_(int)];
59 const void * buf; char buf_[PAD_(const void *)];
60 size_t nbyte; char nbyte_[PAD_(size_t)];
67 char * path; char path_[PAD_(char *)];
68 int flags; char flags_[PAD_(int)];
69 int mode; char mode_[PAD_(int)];
76 int fd; char fd_[PAD_(int)];
83 int pid; char pid_[PAD_(int)];
84 int * status; char status_[PAD_(int *)];
85 int options; char options_[PAD_(int)];
86 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
93 char * path; char path_[PAD_(char *)];
94 char * link; char link_[PAD_(char *)];
101 char * path; char path_[PAD_(char *)];
108 char * path; char path_[PAD_(char *)];
115 int fd; char fd_[PAD_(int)];
122 char * path; char path_[PAD_(char *)];
123 int mode; char mode_[PAD_(int)];
124 int dev; char dev_[PAD_(int)];
131 char * path; char path_[PAD_(char *)];
132 int mode; char mode_[PAD_(int)];
139 char * path; char path_[PAD_(char *)];
140 int uid; char uid_[PAD_(int)];
141 int gid; char gid_[PAD_(int)];
148 char * nsize; char nsize_[PAD_(char *)];
150 struct getfsstat_args {
155 struct statfs * buf; char buf_[PAD_(struct statfs *)];
156 long bufsize; char bufsize_[PAD_(long)];
157 int flags; char flags_[PAD_(int)];
171 char * type; char type_[PAD_(char *)];
172 char * path; char path_[PAD_(char *)];
173 int flags; char flags_[PAD_(int)];
174 caddr_t data; char data_[PAD_(caddr_t)];
176 struct unmount_args {
181 char * path; char path_[PAD_(char *)];
182 int flags; char flags_[PAD_(int)];
189 uid_t uid; char uid_[PAD_(uid_t)];
198 struct geteuid_args {
210 int req; char req_[PAD_(int)];
211 pid_t pid; char pid_[PAD_(pid_t)];
212 caddr_t addr; char addr_[PAD_(caddr_t)];
213 int data; char data_[PAD_(int)];
215 struct recvmsg_args {
220 int s; char s_[PAD_(int)];
221 struct msghdr * msg; char msg_[PAD_(struct msghdr *)];
222 int flags; char flags_[PAD_(int)];
224 struct sendmsg_args {
229 int s; char s_[PAD_(int)];
230 caddr_t msg; char msg_[PAD_(caddr_t)];
231 int flags; char flags_[PAD_(int)];
233 struct recvfrom_args {
238 int s; char s_[PAD_(int)];
239 caddr_t buf; char buf_[PAD_(caddr_t)];
240 size_t len; char len_[PAD_(size_t)];
241 int flags; char flags_[PAD_(int)];
242 caddr_t from; char from_[PAD_(caddr_t)];
243 int * fromlenaddr; char fromlenaddr_[PAD_(int *)];
250 int s; char s_[PAD_(int)];
251 caddr_t name; char name_[PAD_(caddr_t)];
252 int * anamelen; char anamelen_[PAD_(int *)];
254 struct getpeername_args {
259 int fdes; char fdes_[PAD_(int)];
260 caddr_t asa; char asa_[PAD_(caddr_t)];
261 int * alen; char alen_[PAD_(int *)];
263 struct getsockname_args {
268 int fdes; char fdes_[PAD_(int)];
269 caddr_t asa; char asa_[PAD_(caddr_t)];
270 int * alen; char alen_[PAD_(int *)];
277 char * path; char path_[PAD_(char *)];
278 int flags; char flags_[PAD_(int)];
280 struct chflags_args {
285 char * path; char path_[PAD_(char *)];
286 int flags; char flags_[PAD_(int)];
288 struct fchflags_args {
293 int fd; char fd_[PAD_(int)];
294 int flags; char flags_[PAD_(int)];
308 int pid; char pid_[PAD_(int)];
309 int signum; char signum_[PAD_(int)];
311 struct getppid_args {
323 u_int fd; char fd_[PAD_(u_int)];
332 struct getegid_args {
344 caddr_t samples; char samples_[PAD_(caddr_t)];
345 size_t size; char size_[PAD_(size_t)];
346 size_t offset; char offset_[PAD_(size_t)];
347 u_int scale; char scale_[PAD_(u_int)];
354 const char * fname; char fname_[PAD_(const char *)];
355 int ops; char ops_[PAD_(int)];
356 int facs; char facs_[PAD_(int)];
357 int pid; char pid_[PAD_(int)];
366 struct getlogin_args {
371 char * namebuf; char namebuf_[PAD_(char *)];
372 u_int namelen; char namelen_[PAD_(u_int)];
374 struct setlogin_args {
379 char * namebuf; char namebuf_[PAD_(char *)];
386 char * path; char path_[PAD_(char *)];
388 struct osigpending_args {
395 struct sigaltstack_args {
400 stack_t * ss; char ss_[PAD_(stack_t *)];
401 stack_t * oss; char oss_[PAD_(stack_t *)];
408 int fd; char fd_[PAD_(int)];
409 u_long com; char com_[PAD_(u_long)];
410 caddr_t data; char data_[PAD_(caddr_t)];
417 int opt; char opt_[PAD_(int)];
424 char * path; char path_[PAD_(char *)];
426 struct symlink_args {
431 char * path; char path_[PAD_(char *)];
432 char * link; char link_[PAD_(char *)];
434 struct readlink_args {
439 char * path; char path_[PAD_(char *)];
440 char * buf; char buf_[PAD_(char *)];
441 int count; char count_[PAD_(int)];
448 char * fname; char fname_[PAD_(char *)];
449 char ** argv; char argv_[PAD_(char **)];
450 char ** envv; char envv_[PAD_(char **)];
457 int newmask; char newmask_[PAD_(int)];
464 char * path; char path_[PAD_(char *)];
466 struct getpagesize_args {
478 void * addr; char addr_[PAD_(void *)];
479 size_t len; char len_[PAD_(size_t)];
480 int flags; char flags_[PAD_(int)];
494 int incr; char incr_[PAD_(int)];
501 int incr; char incr_[PAD_(int)];
503 struct ovadvise_args {
508 int anom; char anom_[PAD_(int)];
515 void * addr; char addr_[PAD_(void *)];
516 size_t len; char len_[PAD_(size_t)];
518 struct mprotect_args {
523 const void * addr; char addr_[PAD_(const void *)];
524 size_t len; char len_[PAD_(size_t)];
525 int prot; char prot_[PAD_(int)];
527 struct madvise_args {
532 void * addr; char addr_[PAD_(void *)];
533 size_t len; char len_[PAD_(size_t)];
534 int behav; char behav_[PAD_(int)];
536 struct mincore_args {
541 const void * addr; char addr_[PAD_(const void *)];
542 size_t len; char len_[PAD_(size_t)];
543 char * vec; char vec_[PAD_(char *)];
545 struct getgroups_args {
550 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
551 gid_t * gidset; char gidset_[PAD_(gid_t *)];
553 struct setgroups_args {
558 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
559 gid_t * gidset; char gidset_[PAD_(gid_t *)];
561 struct getpgrp_args {
568 struct setpgid_args {
573 int pid; char pid_[PAD_(int)];
574 int pgid; char pgid_[PAD_(int)];
576 struct setitimer_args {
581 u_int which; char which_[PAD_(u_int)];
582 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
583 struct itimerval * oitv; char oitv_[PAD_(struct itimerval *)];
597 char * name; char name_[PAD_(char *)];
599 struct getitimer_args {
604 u_int which; char which_[PAD_(u_int)];
605 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
607 struct getdtablesize_args {
619 u_int from; char from_[PAD_(u_int)];
620 u_int to; char to_[PAD_(u_int)];
627 int fd; char fd_[PAD_(int)];
628 int cmd; char cmd_[PAD_(int)];
629 long arg; char arg_[PAD_(long)];
636 int nd; char nd_[PAD_(int)];
637 fd_set * in; char in_[PAD_(fd_set *)];
638 fd_set * ou; char ou_[PAD_(fd_set *)];
639 fd_set * ex; char ex_[PAD_(fd_set *)];
640 struct timeval * tv; char tv_[PAD_(struct timeval *)];
647 int fd; char fd_[PAD_(int)];
649 struct setpriority_args {
654 int which; char which_[PAD_(int)];
655 int who; char who_[PAD_(int)];
656 int prio; char prio_[PAD_(int)];
663 int domain; char domain_[PAD_(int)];
664 int type; char type_[PAD_(int)];
665 int protocol; char protocol_[PAD_(int)];
667 struct connect_args {
672 int s; char s_[PAD_(int)];
673 caddr_t name; char name_[PAD_(caddr_t)];
674 int namelen; char namelen_[PAD_(int)];
676 struct getpriority_args {
681 int which; char which_[PAD_(int)];
682 int who; char who_[PAD_(int)];
689 int s; char s_[PAD_(int)];
690 caddr_t name; char name_[PAD_(caddr_t)];
691 int namelen; char namelen_[PAD_(int)];
693 struct setsockopt_args {
698 int s; char s_[PAD_(int)];
699 int level; char level_[PAD_(int)];
700 int name; char name_[PAD_(int)];
701 caddr_t val; char val_[PAD_(caddr_t)];
702 int valsize; char valsize_[PAD_(int)];
709 int s; char s_[PAD_(int)];
710 int backlog; char backlog_[PAD_(int)];
712 struct gettimeofday_args {
717 struct timeval * tp; char tp_[PAD_(struct timeval *)];
718 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
720 struct getrusage_args {
725 int who; char who_[PAD_(int)];
726 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
728 struct getsockopt_args {
733 int s; char s_[PAD_(int)];
734 int level; char level_[PAD_(int)];
735 int name; char name_[PAD_(int)];
736 caddr_t val; char val_[PAD_(caddr_t)];
737 int * avalsize; char avalsize_[PAD_(int *)];
744 int fd; char fd_[PAD_(int)];
745 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
746 u_int iovcnt; char iovcnt_[PAD_(u_int)];
753 int fd; char fd_[PAD_(int)];
754 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
755 u_int iovcnt; char iovcnt_[PAD_(u_int)];
757 struct settimeofday_args {
762 struct timeval * tv; char tv_[PAD_(struct timeval *)];
763 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
770 int fd; char fd_[PAD_(int)];
771 int uid; char uid_[PAD_(int)];
772 int gid; char gid_[PAD_(int)];
779 int fd; char fd_[PAD_(int)];
780 int mode; char mode_[PAD_(int)];
782 struct setreuid_args {
787 int ruid; char ruid_[PAD_(int)];
788 int euid; char euid_[PAD_(int)];
790 struct setregid_args {
795 int rgid; char rgid_[PAD_(int)];
796 int egid; char egid_[PAD_(int)];
803 char * from; char from_[PAD_(char *)];
804 char * to; char to_[PAD_(char *)];
811 int fd; char fd_[PAD_(int)];
812 int how; char how_[PAD_(int)];
819 char * path; char path_[PAD_(char *)];
820 int mode; char mode_[PAD_(int)];
827 int s; char s_[PAD_(int)];
828 caddr_t buf; char buf_[PAD_(caddr_t)];
829 size_t len; char len_[PAD_(size_t)];
830 int flags; char flags_[PAD_(int)];
831 caddr_t to; char to_[PAD_(caddr_t)];
832 int tolen; char tolen_[PAD_(int)];
834 struct shutdown_args {
839 int s; char s_[PAD_(int)];
840 int how; char how_[PAD_(int)];
842 struct socketpair_args {
847 int domain; char domain_[PAD_(int)];
848 int type; char type_[PAD_(int)];
849 int protocol; char protocol_[PAD_(int)];
850 int * rsv; char rsv_[PAD_(int *)];
857 char * path; char path_[PAD_(char *)];
858 int mode; char mode_[PAD_(int)];
865 char * path; char path_[PAD_(char *)];
872 char * path; char path_[PAD_(char *)];
873 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
875 struct adjtime_args {
880 struct timeval * delta; char delta_[PAD_(struct timeval *)];
881 struct timeval * olddelta; char olddelta_[PAD_(struct timeval *)];
883 struct ogethostid_args {
897 struct quotactl_args {
902 char * path; char path_[PAD_(char *)];
903 int cmd; char cmd_[PAD_(int)];
904 int uid; char uid_[PAD_(int)];
905 caddr_t arg; char arg_[PAD_(caddr_t)];
919 int flag; char flag_[PAD_(int)];
920 caddr_t argp; char argp_[PAD_(caddr_t)];
927 char * path; char path_[PAD_(char *)];
928 struct statfs * buf; char buf_[PAD_(struct statfs *)];
930 struct fstatfs_args {
935 int fd; char fd_[PAD_(int)];
936 struct statfs * buf; char buf_[PAD_(struct statfs *)];
943 char * fname; char fname_[PAD_(char *)];
944 struct fhandle * fhp; char fhp_[PAD_(struct fhandle *)];
946 struct getdomainname_args {
951 char * domainname; char domainname_[PAD_(char *)];
952 int len; char len_[PAD_(int)];
954 struct setdomainname_args {
959 char * domainname; char domainname_[PAD_(char *)];
960 int len; char len_[PAD_(int)];
967 struct utsname * name; char name_[PAD_(struct utsname *)];
969 struct sysarch_args {
974 int op; char op_[PAD_(int)];
975 char * parms; char parms_[PAD_(char *)];
982 int function; char function_[PAD_(int)];
983 pid_t pid; char pid_[PAD_(pid_t)];
984 struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)];
991 int which; char which_[PAD_(int)];
992 int a2; char a2_[PAD_(int)];
993 int a3; char a3_[PAD_(int)];
994 int a4; char a4_[PAD_(int)];
995 int a5; char a5_[PAD_(int)];
1001 union usrmsg usrmsg;
1002 int which; char which_[PAD_(int)];
1003 int a2; char a2_[PAD_(int)];
1004 int a3; char a3_[PAD_(int)];
1005 int a4; char a4_[PAD_(int)];
1006 int a5; char a5_[PAD_(int)];
1007 int a6; char a6_[PAD_(int)];
1009 struct shmsys_args {
1011 union sysmsg sysmsg;
1013 union usrmsg usrmsg;
1014 int which; char which_[PAD_(int)];
1015 int a2; char a2_[PAD_(int)];
1016 int a3; char a3_[PAD_(int)];
1017 int a4; char a4_[PAD_(int)];
1021 union sysmsg sysmsg;
1023 union usrmsg usrmsg;
1024 int fd; char fd_[PAD_(int)];
1025 void * buf; char buf_[PAD_(void *)];
1026 size_t nbyte; char nbyte_[PAD_(size_t)];
1027 int pad; char pad_[PAD_(int)];
1028 off_t offset; char offset_[PAD_(off_t)];
1030 struct pwrite_args {
1032 union sysmsg sysmsg;
1034 union usrmsg usrmsg;
1035 int fd; char fd_[PAD_(int)];
1036 const void * buf; char buf_[PAD_(const void *)];
1037 size_t nbyte; char nbyte_[PAD_(size_t)];
1038 int pad; char pad_[PAD_(int)];
1039 off_t offset; char offset_[PAD_(off_t)];
1041 struct ntp_adjtime_args {
1043 union sysmsg sysmsg;
1045 union usrmsg usrmsg;
1046 struct timex * tp; char tp_[PAD_(struct timex *)];
1048 struct setgid_args {
1050 union sysmsg sysmsg;
1052 union usrmsg usrmsg;
1053 gid_t gid; char gid_[PAD_(gid_t)];
1055 struct setegid_args {
1057 union sysmsg sysmsg;
1059 union usrmsg usrmsg;
1060 gid_t egid; char egid_[PAD_(gid_t)];
1062 struct seteuid_args {
1064 union sysmsg sysmsg;
1066 union usrmsg usrmsg;
1067 uid_t euid; char euid_[PAD_(uid_t)];
1071 union sysmsg sysmsg;
1073 union usrmsg usrmsg;
1074 char * path; char path_[PAD_(char *)];
1075 struct stat * ub; char ub_[PAD_(struct stat *)];
1079 union sysmsg sysmsg;
1081 union usrmsg usrmsg;
1082 int fd; char fd_[PAD_(int)];
1083 struct stat * sb; char sb_[PAD_(struct stat *)];
1087 union sysmsg sysmsg;
1089 union usrmsg usrmsg;
1090 char * path; char path_[PAD_(char *)];
1091 struct stat * ub; char ub_[PAD_(struct stat *)];
1093 struct pathconf_args {
1095 union sysmsg sysmsg;
1097 union usrmsg usrmsg;
1098 char * path; char path_[PAD_(char *)];
1099 int name; char name_[PAD_(int)];
1101 struct fpathconf_args {
1103 union sysmsg sysmsg;
1105 union usrmsg usrmsg;
1106 int fd; char fd_[PAD_(int)];
1107 int name; char name_[PAD_(int)];
1109 struct __getrlimit_args {
1111 union sysmsg sysmsg;
1113 union usrmsg usrmsg;
1114 u_int which; char which_[PAD_(u_int)];
1115 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1117 struct __setrlimit_args {
1119 union sysmsg sysmsg;
1121 union usrmsg usrmsg;
1122 u_int which; char which_[PAD_(u_int)];
1123 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1125 struct getdirentries_args {
1127 union sysmsg sysmsg;
1129 union usrmsg usrmsg;
1130 int fd; char fd_[PAD_(int)];
1131 char * buf; char buf_[PAD_(char *)];
1132 u_int count; char count_[PAD_(u_int)];
1133 long * basep; char basep_[PAD_(long *)];
1137 union sysmsg sysmsg;
1139 union usrmsg usrmsg;
1140 caddr_t addr; char addr_[PAD_(caddr_t)];
1141 size_t len; char len_[PAD_(size_t)];
1142 int prot; char prot_[PAD_(int)];
1143 int flags; char flags_[PAD_(int)];
1144 int fd; char fd_[PAD_(int)];
1145 int pad; char pad_[PAD_(int)];
1146 off_t pos; char pos_[PAD_(off_t)];
1150 union sysmsg sysmsg;
1152 union usrmsg usrmsg;
1153 int fd; char fd_[PAD_(int)];
1154 int pad; char pad_[PAD_(int)];
1155 off_t offset; char offset_[PAD_(off_t)];
1156 int whence; char whence_[PAD_(int)];
1158 struct truncate_args {
1160 union sysmsg sysmsg;
1162 union usrmsg usrmsg;
1163 char * path; char path_[PAD_(char *)];
1164 int pad; char pad_[PAD_(int)];
1165 off_t length; char length_[PAD_(off_t)];
1167 struct ftruncate_args {
1169 union sysmsg sysmsg;
1171 union usrmsg usrmsg;
1172 int fd; char fd_[PAD_(int)];
1173 int pad; char pad_[PAD_(int)];
1174 off_t length; char length_[PAD_(off_t)];
1176 struct sysctl_args {
1178 union sysmsg sysmsg;
1180 union usrmsg usrmsg;
1181 int * name; char name_[PAD_(int *)];
1182 u_int namelen; char namelen_[PAD_(u_int)];
1183 void * old; char old_[PAD_(void *)];
1184 size_t * oldlenp; char oldlenp_[PAD_(size_t *)];
1185 void * new; char new_[PAD_(void *)];
1186 size_t newlen; char newlen_[PAD_(size_t)];
1190 union sysmsg sysmsg;
1192 union usrmsg usrmsg;
1193 const void * addr; char addr_[PAD_(const void *)];
1194 size_t len; char len_[PAD_(size_t)];
1196 struct munlock_args {
1198 union sysmsg sysmsg;
1200 union usrmsg usrmsg;
1201 const void * addr; char addr_[PAD_(const void *)];
1202 size_t len; char len_[PAD_(size_t)];
1204 struct undelete_args {
1206 union sysmsg sysmsg;
1208 union usrmsg usrmsg;
1209 char * path; char path_[PAD_(char *)];
1211 struct futimes_args {
1213 union sysmsg sysmsg;
1215 union usrmsg usrmsg;
1216 int fd; char fd_[PAD_(int)];
1217 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1219 struct getpgid_args {
1221 union sysmsg sysmsg;
1223 union usrmsg usrmsg;
1224 pid_t pid; char pid_[PAD_(pid_t)];
1228 union sysmsg sysmsg;
1230 union usrmsg usrmsg;
1231 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1232 u_int nfds; char nfds_[PAD_(u_int)];
1233 int timeout; char timeout_[PAD_(int)];
1235 struct __semctl_args {
1237 union sysmsg sysmsg;
1239 union usrmsg usrmsg;
1240 int semid; char semid_[PAD_(int)];
1241 int semnum; char semnum_[PAD_(int)];
1242 int cmd; char cmd_[PAD_(int)];
1243 union semun * arg; char arg_[PAD_(union semun *)];
1245 struct semget_args {
1247 union sysmsg sysmsg;
1249 union usrmsg usrmsg;
1250 key_t key; char key_[PAD_(key_t)];
1251 int nsems; char nsems_[PAD_(int)];
1252 int semflg; char semflg_[PAD_(int)];
1256 union sysmsg sysmsg;
1258 union usrmsg usrmsg;
1259 int semid; char semid_[PAD_(int)];
1260 struct sembuf * sops; char sops_[PAD_(struct sembuf *)];
1261 u_int nsops; char nsops_[PAD_(u_int)];
1263 struct msgctl_args {
1265 union sysmsg sysmsg;
1267 union usrmsg usrmsg;
1268 int msqid; char msqid_[PAD_(int)];
1269 int cmd; char cmd_[PAD_(int)];
1270 struct msqid_ds * buf; char buf_[PAD_(struct msqid_ds *)];
1272 struct msgget_args {
1274 union sysmsg sysmsg;
1276 union usrmsg usrmsg;
1277 key_t key; char key_[PAD_(key_t)];
1278 int msgflg; char msgflg_[PAD_(int)];
1280 struct msgsnd_args {
1282 union sysmsg sysmsg;
1284 union usrmsg usrmsg;
1285 int msqid; char msqid_[PAD_(int)];
1286 void * msgp; char msgp_[PAD_(void *)];
1287 size_t msgsz; char msgsz_[PAD_(size_t)];
1288 int msgflg; char msgflg_[PAD_(int)];
1290 struct msgrcv_args {
1292 union sysmsg sysmsg;
1294 union usrmsg usrmsg;
1295 int msqid; char msqid_[PAD_(int)];
1296 void * msgp; char msgp_[PAD_(void *)];
1297 size_t msgsz; char msgsz_[PAD_(size_t)];
1298 long msgtyp; char msgtyp_[PAD_(long)];
1299 int msgflg; char msgflg_[PAD_(int)];
1303 union sysmsg sysmsg;
1305 union usrmsg usrmsg;
1306 int shmid; char shmid_[PAD_(int)];
1307 void * shmaddr; char shmaddr_[PAD_(void *)];
1308 int shmflg; char shmflg_[PAD_(int)];
1310 struct shmctl_args {
1312 union sysmsg sysmsg;
1314 union usrmsg usrmsg;
1315 int shmid; char shmid_[PAD_(int)];
1316 int cmd; char cmd_[PAD_(int)];
1317 struct shmid_ds * buf; char buf_[PAD_(struct shmid_ds *)];
1321 union sysmsg sysmsg;
1323 union usrmsg usrmsg;
1324 void * shmaddr; char shmaddr_[PAD_(void *)];
1326 struct shmget_args {
1328 union sysmsg sysmsg;
1330 union usrmsg usrmsg;
1331 key_t key; char key_[PAD_(key_t)];
1332 int size; char size_[PAD_(int)];
1333 int shmflg; char shmflg_[PAD_(int)];
1335 struct clock_gettime_args {
1337 union sysmsg sysmsg;
1339 union usrmsg usrmsg;
1340 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1341 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1343 struct clock_settime_args {
1345 union sysmsg sysmsg;
1347 union usrmsg usrmsg;
1348 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1349 const struct timespec * tp; char tp_[PAD_(const struct timespec *)];
1351 struct clock_getres_args {
1353 union sysmsg sysmsg;
1355 union usrmsg usrmsg;
1356 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1357 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1359 struct nanosleep_args {
1361 union sysmsg sysmsg;
1363 union usrmsg usrmsg;
1364 const struct timespec * rqtp; char rqtp_[PAD_(const struct timespec *)];
1365 struct timespec * rmtp; char rmtp_[PAD_(struct timespec *)];
1367 struct minherit_args {
1369 union sysmsg sysmsg;
1371 union usrmsg usrmsg;
1372 void * addr; char addr_[PAD_(void *)];
1373 size_t len; char len_[PAD_(size_t)];
1374 int inherit; char inherit_[PAD_(int)];
1378 union sysmsg sysmsg;
1380 union usrmsg usrmsg;
1381 int flags; char flags_[PAD_(int)];
1383 struct openbsd_poll_args {
1385 union sysmsg sysmsg;
1387 union usrmsg usrmsg;
1388 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1389 u_int nfds; char nfds_[PAD_(u_int)];
1390 int timeout; char timeout_[PAD_(int)];
1392 struct issetugid_args {
1394 union sysmsg sysmsg;
1396 union usrmsg usrmsg;
1399 struct lchown_args {
1401 union sysmsg sysmsg;
1403 union usrmsg usrmsg;
1404 char * path; char path_[PAD_(char *)];
1405 int uid; char uid_[PAD_(int)];
1406 int gid; char gid_[PAD_(int)];
1408 struct getdents_args {
1410 union sysmsg sysmsg;
1412 union usrmsg usrmsg;
1413 int fd; char fd_[PAD_(int)];
1414 char * buf; char buf_[PAD_(char *)];
1415 size_t count; char count_[PAD_(size_t)];
1417 struct lchmod_args {
1419 union sysmsg sysmsg;
1421 union usrmsg usrmsg;
1422 char * path; char path_[PAD_(char *)];
1423 mode_t mode; char mode_[PAD_(mode_t)];
1425 struct lutimes_args {
1427 union sysmsg sysmsg;
1429 union usrmsg usrmsg;
1430 char * path; char path_[PAD_(char *)];
1431 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1435 union sysmsg sysmsg;
1437 union usrmsg usrmsg;
1438 char * path; char path_[PAD_(char *)];
1439 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1441 struct nfstat_args {
1443 union sysmsg sysmsg;
1445 union usrmsg usrmsg;
1446 int fd; char fd_[PAD_(int)];
1447 struct nstat * sb; char sb_[PAD_(struct nstat *)];
1449 struct nlstat_args {
1451 union sysmsg sysmsg;
1453 union usrmsg usrmsg;
1454 char * path; char path_[PAD_(char *)];
1455 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1457 struct fhstatfs_args {
1459 union sysmsg sysmsg;
1461 union usrmsg usrmsg;
1462 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1463 struct statfs * buf; char buf_[PAD_(struct statfs *)];
1465 struct fhopen_args {
1467 union sysmsg sysmsg;
1469 union usrmsg usrmsg;
1470 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1471 int flags; char flags_[PAD_(int)];
1473 struct fhstat_args {
1475 union sysmsg sysmsg;
1477 union usrmsg usrmsg;
1478 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1479 struct stat * sb; char sb_[PAD_(struct stat *)];
1481 struct modnext_args {
1483 union sysmsg sysmsg;
1485 union usrmsg usrmsg;
1486 int modid; char modid_[PAD_(int)];
1488 struct modstat_args {
1490 union sysmsg sysmsg;
1492 union usrmsg usrmsg;
1493 int modid; char modid_[PAD_(int)];
1494 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
1496 struct modfnext_args {
1498 union sysmsg sysmsg;
1500 union usrmsg usrmsg;
1501 int modid; char modid_[PAD_(int)];
1503 struct modfind_args {
1505 union sysmsg sysmsg;
1507 union usrmsg usrmsg;
1508 const char * name; char name_[PAD_(const char *)];
1510 struct kldload_args {
1512 union sysmsg sysmsg;
1514 union usrmsg usrmsg;
1515 const char * file; char file_[PAD_(const char *)];
1517 struct kldunload_args {
1519 union sysmsg sysmsg;
1521 union usrmsg usrmsg;
1522 int fileid; char fileid_[PAD_(int)];
1524 struct kldfind_args {
1526 union sysmsg sysmsg;
1528 union usrmsg usrmsg;
1529 const char * file; char file_[PAD_(const char *)];
1531 struct kldnext_args {
1533 union sysmsg sysmsg;
1535 union usrmsg usrmsg;
1536 int fileid; char fileid_[PAD_(int)];
1538 struct kldstat_args {
1540 union sysmsg sysmsg;
1542 union usrmsg usrmsg;
1543 int fileid; char fileid_[PAD_(int)];
1544 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
1546 struct kldfirstmod_args {
1548 union sysmsg sysmsg;
1550 union usrmsg usrmsg;
1551 int fileid; char fileid_[PAD_(int)];
1553 struct getsid_args {
1555 union sysmsg sysmsg;
1557 union usrmsg usrmsg;
1558 pid_t pid; char pid_[PAD_(pid_t)];
1560 struct setresuid_args {
1562 union sysmsg sysmsg;
1564 union usrmsg usrmsg;
1565 uid_t ruid; char ruid_[PAD_(uid_t)];
1566 uid_t euid; char euid_[PAD_(uid_t)];
1567 uid_t suid; char suid_[PAD_(uid_t)];
1569 struct setresgid_args {
1571 union sysmsg sysmsg;
1573 union usrmsg usrmsg;
1574 gid_t rgid; char rgid_[PAD_(gid_t)];
1575 gid_t egid; char egid_[PAD_(gid_t)];
1576 gid_t sgid; char sgid_[PAD_(gid_t)];
1578 struct aio_return_args {
1580 union sysmsg sysmsg;
1582 union usrmsg usrmsg;
1583 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1585 struct aio_suspend_args {
1587 union sysmsg sysmsg;
1589 union usrmsg usrmsg;
1590 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1591 int nent; char nent_[PAD_(int)];
1592 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1594 struct aio_cancel_args {
1596 union sysmsg sysmsg;
1598 union usrmsg usrmsg;
1599 int fd; char fd_[PAD_(int)];
1600 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1602 struct aio_error_args {
1604 union sysmsg sysmsg;
1606 union usrmsg usrmsg;
1607 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1609 struct aio_read_args {
1611 union sysmsg sysmsg;
1613 union usrmsg usrmsg;
1614 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1616 struct aio_write_args {
1618 union sysmsg sysmsg;
1620 union usrmsg usrmsg;
1621 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1623 struct lio_listio_args {
1625 union sysmsg sysmsg;
1627 union usrmsg usrmsg;
1628 int mode; char mode_[PAD_(int)];
1629 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1630 int nent; char nent_[PAD_(int)];
1631 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1635 union sysmsg sysmsg;
1637 union usrmsg usrmsg;
1640 struct thr_sleep_args {
1642 union sysmsg sysmsg;
1644 union usrmsg usrmsg;
1645 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1647 struct thr_wakeup_args {
1649 union sysmsg sysmsg;
1651 union usrmsg usrmsg;
1652 pid_t pid; char pid_[PAD_(pid_t)];
1654 struct mlockall_args {
1656 union sysmsg sysmsg;
1658 union usrmsg usrmsg;
1659 int how; char how_[PAD_(int)];
1661 struct munlockall_args {
1663 union sysmsg sysmsg;
1665 union usrmsg usrmsg;
1668 struct __getcwd_args {
1670 union sysmsg sysmsg;
1672 union usrmsg usrmsg;
1673 u_char * buf; char buf_[PAD_(u_char *)];
1674 u_int buflen; char buflen_[PAD_(u_int)];
1676 struct sched_setparam_args {
1678 union sysmsg sysmsg;
1680 union usrmsg usrmsg;
1681 pid_t pid; char pid_[PAD_(pid_t)];
1682 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1684 struct sched_getparam_args {
1686 union sysmsg sysmsg;
1688 union usrmsg usrmsg;
1689 pid_t pid; char pid_[PAD_(pid_t)];
1690 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1692 struct sched_setscheduler_args {
1694 union sysmsg sysmsg;
1696 union usrmsg usrmsg;
1697 pid_t pid; char pid_[PAD_(pid_t)];
1698 int policy; char policy_[PAD_(int)];
1699 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1701 struct sched_getscheduler_args {
1703 union sysmsg sysmsg;
1705 union usrmsg usrmsg;
1706 pid_t pid; char pid_[PAD_(pid_t)];
1708 struct sched_yield_args {
1710 union sysmsg sysmsg;
1712 union usrmsg usrmsg;
1715 struct sched_get_priority_max_args {
1717 union sysmsg sysmsg;
1719 union usrmsg usrmsg;
1720 int policy; char policy_[PAD_(int)];
1722 struct sched_get_priority_min_args {
1724 union sysmsg sysmsg;
1726 union usrmsg usrmsg;
1727 int policy; char policy_[PAD_(int)];
1729 struct sched_rr_get_interval_args {
1731 union sysmsg sysmsg;
1733 union usrmsg usrmsg;
1734 pid_t pid; char pid_[PAD_(pid_t)];
1735 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1737 struct utrace_args {
1739 union sysmsg sysmsg;
1741 union usrmsg usrmsg;
1742 const void * addr; char addr_[PAD_(const void *)];
1743 size_t len; char len_[PAD_(size_t)];
1745 struct kldsym_args {
1747 union sysmsg sysmsg;
1749 union usrmsg usrmsg;
1750 int fileid; char fileid_[PAD_(int)];
1751 int cmd; char cmd_[PAD_(int)];
1752 void * data; char data_[PAD_(void *)];
1756 union sysmsg sysmsg;
1758 union usrmsg usrmsg;
1759 struct jail * jail; char jail_[PAD_(struct jail *)];
1761 struct sigprocmask_args {
1763 union sysmsg sysmsg;
1765 union usrmsg usrmsg;
1766 int how; char how_[PAD_(int)];
1767 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1768 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1770 struct sigsuspend_args {
1772 union sysmsg sysmsg;
1774 union usrmsg usrmsg;
1775 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1777 struct sigaction_args {
1779 union sysmsg sysmsg;
1781 union usrmsg usrmsg;
1782 int sig; char sig_[PAD_(int)];
1783 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1784 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1786 struct sigpending_args {
1788 union sysmsg sysmsg;
1790 union usrmsg usrmsg;
1791 sigset_t * set; char set_[PAD_(sigset_t *)];
1793 struct sigreturn_args {
1795 union sysmsg sysmsg;
1797 union usrmsg usrmsg;
1798 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1800 struct __acl_get_file_args {
1802 union sysmsg sysmsg;
1804 union usrmsg usrmsg;
1805 const char * path; char path_[PAD_(const char *)];
1806 acl_type_t type; char type_[PAD_(acl_type_t)];
1807 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1809 struct __acl_set_file_args {
1811 union sysmsg sysmsg;
1813 union usrmsg usrmsg;
1814 const char * path; char path_[PAD_(const char *)];
1815 acl_type_t type; char type_[PAD_(acl_type_t)];
1816 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1818 struct __acl_get_fd_args {
1820 union sysmsg sysmsg;
1822 union usrmsg usrmsg;
1823 int filedes; char filedes_[PAD_(int)];
1824 acl_type_t type; char type_[PAD_(acl_type_t)];
1825 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1827 struct __acl_set_fd_args {
1829 union sysmsg sysmsg;
1831 union usrmsg usrmsg;
1832 int filedes; char filedes_[PAD_(int)];
1833 acl_type_t type; char type_[PAD_(acl_type_t)];
1834 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1836 struct __acl_delete_file_args {
1838 union sysmsg sysmsg;
1840 union usrmsg usrmsg;
1841 const char * path; char path_[PAD_(const char *)];
1842 acl_type_t type; char type_[PAD_(acl_type_t)];
1844 struct __acl_delete_fd_args {
1846 union sysmsg sysmsg;
1848 union usrmsg usrmsg;
1849 int filedes; char filedes_[PAD_(int)];
1850 acl_type_t type; char type_[PAD_(acl_type_t)];
1852 struct __acl_aclcheck_file_args {
1854 union sysmsg sysmsg;
1856 union usrmsg usrmsg;
1857 const char * path; char path_[PAD_(const char *)];
1858 acl_type_t type; char type_[PAD_(acl_type_t)];
1859 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1861 struct __acl_aclcheck_fd_args {
1863 union sysmsg sysmsg;
1865 union usrmsg usrmsg;
1866 int filedes; char filedes_[PAD_(int)];
1867 acl_type_t type; char type_[PAD_(acl_type_t)];
1868 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1870 struct extattrctl_args {
1872 union sysmsg sysmsg;
1874 union usrmsg usrmsg;
1875 const char * path; char path_[PAD_(const char *)];
1876 int cmd; char cmd_[PAD_(int)];
1877 const char * attrname; char attrname_[PAD_(const char *)];
1878 char * arg; char arg_[PAD_(char *)];
1880 struct extattr_set_file_args {
1882 union sysmsg sysmsg;
1884 union usrmsg usrmsg;
1885 const char * path; char path_[PAD_(const char *)];
1886 const char * attrname; char attrname_[PAD_(const char *)];
1887 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1888 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1890 struct extattr_get_file_args {
1892 union sysmsg sysmsg;
1894 union usrmsg usrmsg;
1895 const char * path; char path_[PAD_(const char *)];
1896 const char * attrname; char attrname_[PAD_(const char *)];
1897 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1898 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1900 struct extattr_delete_file_args {
1902 union sysmsg sysmsg;
1904 union usrmsg usrmsg;
1905 const char * path; char path_[PAD_(const char *)];
1906 const char * attrname; char attrname_[PAD_(const char *)];
1908 struct aio_waitcomplete_args {
1910 union sysmsg sysmsg;
1912 union usrmsg usrmsg;
1913 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1914 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1916 struct getresuid_args {
1918 union sysmsg sysmsg;
1920 union usrmsg usrmsg;
1921 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1922 uid_t * euid; char euid_[PAD_(uid_t *)];
1923 uid_t * suid; char suid_[PAD_(uid_t *)];
1925 struct getresgid_args {
1927 union sysmsg sysmsg;
1929 union usrmsg usrmsg;
1930 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1931 gid_t * egid; char egid_[PAD_(gid_t *)];
1932 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1934 struct kqueue_args {
1936 union sysmsg sysmsg;
1938 union usrmsg usrmsg;
1941 struct kevent_args {
1943 union sysmsg sysmsg;
1945 union usrmsg usrmsg;
1946 int fd; char fd_[PAD_(int)];
1947 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1948 int nchanges; char nchanges_[PAD_(int)];
1949 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1950 int nevents; char nevents_[PAD_(int)];
1951 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1953 struct sendfile_args {
1955 union sysmsg sysmsg;
1957 union usrmsg usrmsg;
1958 int fd; char fd_[PAD_(int)];
1959 int s; char s_[PAD_(int)];
1960 off_t offset; char offset_[PAD_(off_t)];
1961 size_t nbytes; char nbytes_[PAD_(size_t)];
1962 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1963 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1964 int flags; char flags_[PAD_(int)];
1969 int nosys (struct nosys_args *);
1970 void sys_exit (struct sys_exit_args *);
1971 int fork (struct fork_args *);
1972 int read (struct read_args *);
1973 int write (struct write_args *);
1974 int open (struct open_args *);
1975 int close (struct close_args *);
1976 int wait4 (struct wait_args *);
1977 int link (struct link_args *);
1978 int unlink (struct unlink_args *);
1979 int chdir (struct chdir_args *);
1980 int fchdir (struct fchdir_args *);
1981 int mknod (struct mknod_args *);
1982 int chmod (struct chmod_args *);
1983 int chown (struct chown_args *);
1984 int obreak (struct obreak_args *);
1985 int getfsstat (struct getfsstat_args *);
1986 int getpid (struct getpid_args *);
1987 int mount (struct mount_args *);
1988 int unmount (struct unmount_args *);
1989 int setuid (struct setuid_args *);
1990 int getuid (struct getuid_args *);
1991 int geteuid (struct geteuid_args *);
1992 int ptrace (struct ptrace_args *);
1993 int recvmsg (struct recvmsg_args *);
1994 int sendmsg (struct sendmsg_args *);
1995 int recvfrom (struct recvfrom_args *);
1996 int accept (struct accept_args *);
1997 int getpeername (struct getpeername_args *);
1998 int getsockname (struct getsockname_args *);
1999 int access (struct access_args *);
2000 int chflags (struct chflags_args *);
2001 int fchflags (struct fchflags_args *);
2002 int sync (struct sync_args *);
2003 int kill (struct kill_args *);
2004 int getppid (struct getppid_args *);
2005 int dup (struct dup_args *);
2006 int pipe (struct pipe_args *);
2007 int getegid (struct getegid_args *);
2008 int profil (struct profil_args *);
2009 int ktrace (struct ktrace_args *);
2010 int getgid (struct getgid_args *);
2011 int getlogin (struct getlogin_args *);
2012 int setlogin (struct setlogin_args *);
2013 int acct (struct acct_args *);
2014 int sigaltstack (struct sigaltstack_args *);
2015 int ioctl (struct ioctl_args *);
2016 int reboot (struct reboot_args *);
2017 int revoke (struct revoke_args *);
2018 int symlink (struct symlink_args *);
2019 int readlink (struct readlink_args *);
2020 int execve (struct execve_args *);
2021 int umask (struct umask_args *);
2022 int chroot (struct chroot_args *);
2023 int msync (struct msync_args *);
2024 int vfork (struct vfork_args *);
2025 int sbrk (struct sbrk_args *);
2026 int sstk (struct sstk_args *);
2027 int ovadvise (struct ovadvise_args *);
2028 int munmap (struct munmap_args *);
2029 int mprotect (struct mprotect_args *);
2030 int madvise (struct madvise_args *);
2031 int mincore (struct mincore_args *);
2032 int getgroups (struct getgroups_args *);
2033 int setgroups (struct setgroups_args *);
2034 int getpgrp (struct getpgrp_args *);
2035 int setpgid (struct setpgid_args *);
2036 int setitimer (struct setitimer_args *);
2037 int swapon (struct swapon_args *);
2038 int getitimer (struct getitimer_args *);
2039 int getdtablesize (struct getdtablesize_args *);
2040 int dup2 (struct dup2_args *);
2041 int fcntl (struct fcntl_args *);
2042 int select (struct select_args *);
2043 int fsync (struct fsync_args *);
2044 int setpriority (struct setpriority_args *);
2045 int socket (struct socket_args *);
2046 int connect (struct connect_args *);
2047 int getpriority (struct getpriority_args *);
2048 int bind (struct bind_args *);
2049 int setsockopt (struct setsockopt_args *);
2050 int listen (struct listen_args *);
2051 int gettimeofday (struct gettimeofday_args *);
2052 int getrusage (struct getrusage_args *);
2053 int getsockopt (struct getsockopt_args *);
2054 int readv (struct readv_args *);
2055 int writev (struct writev_args *);
2056 int settimeofday (struct settimeofday_args *);
2057 int fchown (struct fchown_args *);
2058 int fchmod (struct fchmod_args *);
2059 int setreuid (struct setreuid_args *);
2060 int setregid (struct setregid_args *);
2061 int rename (struct rename_args *);
2062 int flock (struct flock_args *);
2063 int mkfifo (struct mkfifo_args *);
2064 int sendto (struct sendto_args *);
2065 int shutdown (struct shutdown_args *);
2066 int socketpair (struct socketpair_args *);
2067 int mkdir (struct mkdir_args *);
2068 int rmdir (struct rmdir_args *);
2069 int utimes (struct utimes_args *);
2070 int adjtime (struct adjtime_args *);
2071 int setsid (struct setsid_args *);
2072 int quotactl (struct quotactl_args *);
2073 int nfssvc (struct nfssvc_args *);
2074 int statfs (struct statfs_args *);
2075 int fstatfs (struct fstatfs_args *);
2076 int getfh (struct getfh_args *);
2077 int getdomainname (struct getdomainname_args *);
2078 int setdomainname (struct setdomainname_args *);
2079 int uname (struct uname_args *);
2080 int sysarch (struct sysarch_args *);
2081 int rtprio (struct rtprio_args *);
2082 int semsys (struct semsys_args *);
2083 int msgsys (struct msgsys_args *);
2084 int shmsys (struct shmsys_args *);
2085 int pread (struct pread_args *);
2086 int pwrite (struct pwrite_args *);
2087 int ntp_adjtime (struct ntp_adjtime_args *);
2088 int setgid (struct setgid_args *);
2089 int setegid (struct setegid_args *);
2090 int seteuid (struct seteuid_args *);
2091 int stat (struct stat_args *);
2092 int fstat (struct fstat_args *);
2093 int lstat (struct lstat_args *);
2094 int pathconf (struct pathconf_args *);
2095 int fpathconf (struct fpathconf_args *);
2096 int getrlimit (struct __getrlimit_args *);
2097 int setrlimit (struct __setrlimit_args *);
2098 int getdirentries (struct getdirentries_args *);
2099 int mmap (struct mmap_args *);
2100 int lseek (struct lseek_args *);
2101 int truncate (struct truncate_args *);
2102 int ftruncate (struct ftruncate_args *);
2103 int __sysctl (struct sysctl_args *);
2104 int mlock (struct mlock_args *);
2105 int munlock (struct munlock_args *);
2106 int undelete (struct undelete_args *);
2107 int futimes (struct futimes_args *);
2108 int getpgid (struct getpgid_args *);
2109 int poll (struct poll_args *);
2110 int lkmnosys (struct nosys_args *);
2111 int __semctl (struct __semctl_args *);
2112 int semget (struct semget_args *);
2113 int semop (struct semop_args *);
2114 int msgctl (struct msgctl_args *);
2115 int msgget (struct msgget_args *);
2116 int msgsnd (struct msgsnd_args *);
2117 int msgrcv (struct msgrcv_args *);
2118 int shmat (struct shmat_args *);
2119 int shmctl (struct shmctl_args *);
2120 int shmdt (struct shmdt_args *);
2121 int shmget (struct shmget_args *);
2122 int clock_gettime (struct clock_gettime_args *);
2123 int clock_settime (struct clock_settime_args *);
2124 int clock_getres (struct clock_getres_args *);
2125 int nanosleep (struct nanosleep_args *);
2126 int minherit (struct minherit_args *);
2127 int rfork (struct rfork_args *);
2128 int openbsd_poll (struct openbsd_poll_args *);
2129 int issetugid (struct issetugid_args *);
2130 int lchown (struct lchown_args *);
2131 int getdents (struct getdents_args *);
2132 int lchmod (struct lchmod_args *);
2133 int lutimes (struct lutimes_args *);
2134 int nstat (struct nstat_args *);
2135 int nfstat (struct nfstat_args *);
2136 int nlstat (struct nlstat_args *);
2137 int fhstatfs (struct fhstatfs_args *);
2138 int fhopen (struct fhopen_args *);
2139 int fhstat (struct fhstat_args *);
2140 int modnext (struct modnext_args *);
2141 int modstat (struct modstat_args *);
2142 int modfnext (struct modfnext_args *);
2143 int modfind (struct modfind_args *);
2144 int kldload (struct kldload_args *);
2145 int kldunload (struct kldunload_args *);
2146 int kldfind (struct kldfind_args *);
2147 int kldnext (struct kldnext_args *);
2148 int kldstat (struct kldstat_args *);
2149 int kldfirstmod (struct kldfirstmod_args *);
2150 int getsid (struct getsid_args *);
2151 int setresuid (struct setresuid_args *);
2152 int setresgid (struct setresgid_args *);
2153 int aio_return (struct aio_return_args *);
2154 int aio_suspend (struct aio_suspend_args *);
2155 int aio_cancel (struct aio_cancel_args *);
2156 int aio_error (struct aio_error_args *);
2157 int aio_read (struct aio_read_args *);
2158 int aio_write (struct aio_write_args *);
2159 int lio_listio (struct lio_listio_args *);
2160 int yield (struct yield_args *);
2161 int thr_sleep (struct thr_sleep_args *);
2162 int thr_wakeup (struct thr_wakeup_args *);
2163 int mlockall (struct mlockall_args *);
2164 int munlockall (struct munlockall_args *);
2165 int __getcwd (struct __getcwd_args *);
2166 int sched_setparam (struct sched_setparam_args *);
2167 int sched_getparam (struct sched_getparam_args *);
2168 int sched_setscheduler (struct sched_setscheduler_args *);
2169 int sched_getscheduler (struct sched_getscheduler_args *);
2170 int sched_yield (struct sched_yield_args *);
2171 int sched_get_priority_max (struct sched_get_priority_max_args *);
2172 int sched_get_priority_min (struct sched_get_priority_min_args *);
2173 int sched_rr_get_interval (struct sched_rr_get_interval_args *);
2174 int utrace (struct utrace_args *);
2175 int kldsym (struct kldsym_args *);
2176 int jail (struct jail_args *);
2177 int sigprocmask (struct sigprocmask_args *);
2178 int sigsuspend (struct sigsuspend_args *);
2179 int sigaction (struct sigaction_args *);
2180 int sigpending (struct sigpending_args *);
2181 int sigreturn (struct sigreturn_args *);
2182 int __acl_get_file (struct __acl_get_file_args *);
2183 int __acl_set_file (struct __acl_set_file_args *);
2184 int __acl_get_fd (struct __acl_get_fd_args *);
2185 int __acl_set_fd (struct __acl_set_fd_args *);
2186 int __acl_delete_file (struct __acl_delete_file_args *);
2187 int __acl_delete_fd (struct __acl_delete_fd_args *);
2188 int __acl_aclcheck_file (struct __acl_aclcheck_file_args *);
2189 int __acl_aclcheck_fd (struct __acl_aclcheck_fd_args *);
2190 int extattrctl (struct extattrctl_args *);
2191 int extattr_set_file (struct extattr_set_file_args *);
2192 int extattr_get_file (struct extattr_get_file_args *);
2193 int extattr_delete_file (struct extattr_delete_file_args *);
2194 int aio_waitcomplete (struct aio_waitcomplete_args *);
2195 int getresuid (struct getresuid_args *);
2196 int getresgid (struct getresgid_args *);
2197 int kqueue (struct kqueue_args *);
2198 int kevent (struct kevent_args *);
2199 int sendfile (struct sendfile_args *);
2201 #endif /* _KERNEL */
2205 struct ocreat_args {
2207 union sysmsg sysmsg;
2209 union usrmsg usrmsg;
2210 char * path; char path_[PAD_(char *)];
2211 int mode; char mode_[PAD_(int)];
2213 struct olseek_args {
2215 union sysmsg sysmsg;
2217 union usrmsg usrmsg;
2218 int fd; char fd_[PAD_(int)];
2219 long offset; char offset_[PAD_(long)];
2220 int whence; char whence_[PAD_(int)];
2224 union sysmsg sysmsg;
2226 union usrmsg usrmsg;
2227 char * path; char path_[PAD_(char *)];
2228 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2230 struct olstat_args {
2232 union sysmsg sysmsg;
2234 union usrmsg usrmsg;
2235 char * path; char path_[PAD_(char *)];
2236 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2238 struct osigaction_args {
2240 union sysmsg sysmsg;
2242 union usrmsg usrmsg;
2243 int signum; char signum_[PAD_(int)];
2244 struct osigaction * nsa; char nsa_[PAD_(struct osigaction *)];
2245 struct osigaction * osa; char osa_[PAD_(struct osigaction *)];
2247 struct osigprocmask_args {
2249 union sysmsg sysmsg;
2251 union usrmsg usrmsg;
2252 int how; char how_[PAD_(int)];
2253 osigset_t mask; char mask_[PAD_(osigset_t)];
2255 struct ofstat_args {
2257 union sysmsg sysmsg;
2259 union usrmsg usrmsg;
2260 int fd; char fd_[PAD_(int)];
2261 struct ostat * sb; char sb_[PAD_(struct ostat *)];
2263 struct getkerninfo_args {
2265 union sysmsg sysmsg;
2267 union usrmsg usrmsg;
2268 int op; char op_[PAD_(int)];
2269 char * where; char where_[PAD_(char *)];
2270 size_t * size; char size_[PAD_(size_t *)];
2271 int arg; char arg_[PAD_(int)];
2275 union sysmsg sysmsg;
2277 union usrmsg usrmsg;
2278 void * addr; char addr_[PAD_(void *)];
2279 int len; char len_[PAD_(int)];
2280 int prot; char prot_[PAD_(int)];
2281 int flags; char flags_[PAD_(int)];
2282 int fd; char fd_[PAD_(int)];
2283 long pos; char pos_[PAD_(long)];
2285 struct gethostname_args {
2287 union sysmsg sysmsg;
2289 union usrmsg usrmsg;
2290 char * hostname; char hostname_[PAD_(char *)];
2291 u_int len; char len_[PAD_(u_int)];
2293 struct sethostname_args {
2295 union sysmsg sysmsg;
2297 union usrmsg usrmsg;
2298 char * hostname; char hostname_[PAD_(char *)];
2299 u_int len; char len_[PAD_(u_int)];
2303 union sysmsg sysmsg;
2305 union usrmsg usrmsg;
2306 int s; char s_[PAD_(int)];
2307 caddr_t buf; char buf_[PAD_(caddr_t)];
2308 int len; char len_[PAD_(int)];
2309 int flags; char flags_[PAD_(int)];
2313 union sysmsg sysmsg;
2315 union usrmsg usrmsg;
2316 int s; char s_[PAD_(int)];
2317 caddr_t buf; char buf_[PAD_(caddr_t)];
2318 int len; char len_[PAD_(int)];
2319 int flags; char flags_[PAD_(int)];
2321 struct osigreturn_args {
2323 union sysmsg sysmsg;
2325 union usrmsg usrmsg;
2326 struct osigcontext * sigcntxp; char sigcntxp_[PAD_(struct osigcontext *)];
2328 struct osigvec_args {
2330 union sysmsg sysmsg;
2332 union usrmsg usrmsg;
2333 int signum; char signum_[PAD_(int)];
2334 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
2335 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
2337 struct osigblock_args {
2339 union sysmsg sysmsg;
2341 union usrmsg usrmsg;
2342 int mask; char mask_[PAD_(int)];
2344 struct osigsetmask_args {
2346 union sysmsg sysmsg;
2348 union usrmsg usrmsg;
2349 int mask; char mask_[PAD_(int)];
2351 struct osigsuspend_args {
2353 union sysmsg sysmsg;
2355 union usrmsg usrmsg;
2356 osigset_t mask; char mask_[PAD_(osigset_t)];
2358 struct osigstack_args {
2360 union sysmsg sysmsg;
2362 union usrmsg usrmsg;
2363 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
2364 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
2366 struct orecvmsg_args {
2368 union sysmsg sysmsg;
2370 union usrmsg usrmsg;
2371 int s; char s_[PAD_(int)];
2372 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
2373 int flags; char flags_[PAD_(int)];
2375 struct osendmsg_args {
2377 union sysmsg sysmsg;
2379 union usrmsg usrmsg;
2380 int s; char s_[PAD_(int)];
2381 caddr_t msg; char msg_[PAD_(caddr_t)];
2382 int flags; char flags_[PAD_(int)];
2384 struct otruncate_args {
2386 union sysmsg sysmsg;
2388 union usrmsg usrmsg;
2389 char * path; char path_[PAD_(char *)];
2390 long length; char length_[PAD_(long)];
2392 struct oftruncate_args {
2394 union sysmsg sysmsg;
2396 union usrmsg usrmsg;
2397 int fd; char fd_[PAD_(int)];
2398 long length; char length_[PAD_(long)];
2400 struct ogetpeername_args {
2402 union sysmsg sysmsg;
2404 union usrmsg usrmsg;
2405 int fdes; char fdes_[PAD_(int)];
2406 caddr_t asa; char asa_[PAD_(caddr_t)];
2407 int * alen; char alen_[PAD_(int *)];
2409 struct osethostid_args {
2411 union sysmsg sysmsg;
2413 union usrmsg usrmsg;
2414 long hostid; char hostid_[PAD_(long)];
2416 struct ogetrlimit_args {
2418 union sysmsg sysmsg;
2420 union usrmsg usrmsg;
2421 u_int which; char which_[PAD_(u_int)];
2422 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2424 struct osetrlimit_args {
2426 union sysmsg sysmsg;
2428 union usrmsg usrmsg;
2429 u_int which; char which_[PAD_(u_int)];
2430 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2432 struct okillpg_args {
2434 union sysmsg sysmsg;
2436 union usrmsg usrmsg;
2437 int pgid; char pgid_[PAD_(int)];
2438 int signum; char signum_[PAD_(int)];
2440 struct ogetdirentries_args {
2442 union sysmsg sysmsg;
2444 union usrmsg usrmsg;
2445 int fd; char fd_[PAD_(int)];
2446 char * buf; char buf_[PAD_(char *)];
2447 u_int count; char count_[PAD_(u_int)];
2448 long * basep; char basep_[PAD_(long *)];
2453 int ocreat (struct ocreat_args *);
2454 int olseek (struct olseek_args *);
2455 int ostat (struct ostat_args *);
2456 int olstat (struct olstat_args *);
2457 int osigaction (struct osigaction_args *);
2458 int osigprocmask (struct osigprocmask_args *);
2459 int osigpending (struct osigpending_args *);
2460 int ofstat (struct ofstat_args *);
2461 int ogetkerninfo (struct getkerninfo_args *);
2462 int ogetpagesize (struct getpagesize_args *);
2463 int ommap (struct ommap_args *);
2464 int owait (struct owait_args *);
2465 int ogethostname (struct gethostname_args *);
2466 int osethostname (struct sethostname_args *);
2467 int oaccept (struct accept_args *);
2468 int osend (struct osend_args *);
2469 int orecv (struct orecv_args *);
2470 int osigreturn (struct osigreturn_args *);
2471 int osigvec (struct osigvec_args *);
2472 int osigblock (struct osigblock_args *);
2473 int osigsetmask (struct osigsetmask_args *);
2474 int osigsuspend (struct osigsuspend_args *);
2475 int osigstack (struct osigstack_args *);
2476 int orecvmsg (struct orecvmsg_args *);
2477 int osendmsg (struct osendmsg_args *);
2478 int orecvfrom (struct recvfrom_args *);
2479 int otruncate (struct otruncate_args *);
2480 int oftruncate (struct oftruncate_args *);
2481 int ogetpeername (struct ogetpeername_args *);
2482 int ogethostid (struct ogethostid_args *);
2483 int osethostid (struct osethostid_args *);
2484 int ogetrlimit (struct ogetrlimit_args *);
2485 int osetrlimit (struct osetrlimit_args *);
2486 int okillpg (struct okillpg_args *);
2487 int oquota (struct oquota_args *);
2488 int ogetsockname (struct getsockname_args *);
2489 int ogetdirentries (struct ogetdirentries_args *);
2491 #endif /* _KERNEL */
2493 #endif /* COMPAT_43 */
2497 #endif /* !_SYS_SYSPROTO_H_ */