| Commit | Line | Data |
|---|---|---|
| 984263bc MD |
1 | /* |
| 2 | * System call prototypes. | |
| 3 | * | |
| ba03102a | 4 | * DO NOT EDIT-- To regenerate this file, edit syscalls.master followed |
| c5b92a8c | 5 | * by running make sysent in the same directory. |
| 984263bc MD |
6 | */ |
| 7 | ||
| 8 | #ifndef _SYS_SYSPROTO_H_ | |
| 9 | #define _SYS_SYSPROTO_H_ | |
| 10 | ||
| 805f91d4 SS |
11 | #include <sys/select.h> |
| 12 | ||
| 984263bc MD |
13 | #include <sys/signal.h> |
| 14 | ||
| 15 | #include <sys/acl.h> | |
| 16 | ||
| a64ba182 MD |
17 | #include <sys/msgport.h> |
| 18 | ||
| c7114eea MD |
19 | #include <sys/sysmsg.h> |
| 20 | ||
| e143cb06 MD |
21 | #include <sys/syslink.h> |
| 22 | ||
| 984263bc MD |
23 | #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ |
| 24 | 0 : sizeof(register_t) - sizeof(t)) | |
| 25 | ||
| 17e1a2b5 JS |
26 | #ifdef COMPAT_43 |
| 27 | #endif | |
| 984263bc | 28 | struct nosys_args { |
| 245e4f17 | 29 | #ifdef _KERNEL |
| df2244e3 | 30 | struct sysmsg sysmsg; |
| 245e4f17 | 31 | #endif |
| 984263bc MD |
32 | register_t dummy; |
| 33 | }; | |
| 753fd850 | 34 | struct exit_args { |
| 245e4f17 | 35 | #ifdef _KERNEL |
| df2244e3 | 36 | struct sysmsg sysmsg; |
| 245e4f17 | 37 | #endif |
| 984263bc MD |
38 | int rval; char rval_[PAD_(int)]; |
| 39 | }; | |
| 40 | struct fork_args { | |
| 245e4f17 | 41 | #ifdef _KERNEL |
| df2244e3 | 42 | struct sysmsg sysmsg; |
| 245e4f17 | 43 | #endif |
| 984263bc MD |
44 | register_t dummy; |
| 45 | }; | |
| 46 | struct read_args { | |
| 245e4f17 | 47 | #ifdef _KERNEL |
| df2244e3 | 48 | struct sysmsg sysmsg; |
| 245e4f17 | 49 | #endif |
| 984263bc MD |
50 | int fd; char fd_[PAD_(int)]; |
| 51 | void * buf; char buf_[PAD_(void *)]; | |
| 52 | size_t nbyte; char nbyte_[PAD_(size_t)]; | |
| 53 | }; | |
| 54 | struct write_args { | |
| 245e4f17 | 55 | #ifdef _KERNEL |
| df2244e3 | 56 | struct sysmsg sysmsg; |
| 245e4f17 | 57 | #endif |
| 984263bc MD |
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)]; | |
| 61 | }; | |
| 62 | struct open_args { | |
| 245e4f17 | 63 | #ifdef _KERNEL |
| df2244e3 | 64 | struct sysmsg sysmsg; |
| 245e4f17 | 65 | #endif |
| 984263bc MD |
66 | char * path; char path_[PAD_(char *)]; |
| 67 | int flags; char flags_[PAD_(int)]; | |
| 68 | int mode; char mode_[PAD_(int)]; | |
| 69 | }; | |
| 70 | struct close_args { | |
| 245e4f17 | 71 | #ifdef _KERNEL |
| df2244e3 | 72 | struct sysmsg sysmsg; |
| 245e4f17 | 73 | #endif |
| 984263bc MD |
74 | int fd; char fd_[PAD_(int)]; |
| 75 | }; | |
| 76 | struct wait_args { | |
| 245e4f17 | 77 | #ifdef _KERNEL |
| df2244e3 | 78 | struct sysmsg sysmsg; |
| 245e4f17 | 79 | #endif |
| 984263bc MD |
80 | int pid; char pid_[PAD_(int)]; |
| 81 | int * status; char status_[PAD_(int *)]; | |
| 82 | int options; char options_[PAD_(int)]; | |
| 83 | struct rusage * rusage; char rusage_[PAD_(struct rusage *)]; | |
| 84 | }; | |
| 85 | struct link_args { | |
| 245e4f17 | 86 | #ifdef _KERNEL |
| df2244e3 | 87 | struct sysmsg sysmsg; |
| 245e4f17 | 88 | #endif |
| 984263bc MD |
89 | char * path; char path_[PAD_(char *)]; |
| 90 | char * link; char link_[PAD_(char *)]; | |
| 91 | }; | |
| 92 | struct unlink_args { | |
| 245e4f17 | 93 | #ifdef _KERNEL |
| df2244e3 | 94 | struct sysmsg sysmsg; |
| 245e4f17 | 95 | #endif |
| 984263bc MD |
96 | char * path; char path_[PAD_(char *)]; |
| 97 | }; | |
| 98 | struct chdir_args { | |
| 245e4f17 | 99 | #ifdef _KERNEL |
| df2244e3 | 100 | struct sysmsg sysmsg; |
| 245e4f17 | 101 | #endif |
| 984263bc MD |
102 | char * path; char path_[PAD_(char *)]; |
| 103 | }; | |
| 104 | struct fchdir_args { | |
| 245e4f17 | 105 | #ifdef _KERNEL |
| df2244e3 | 106 | struct sysmsg sysmsg; |
| 245e4f17 | 107 | #endif |
| 984263bc MD |
108 | int fd; char fd_[PAD_(int)]; |
| 109 | }; | |
| 110 | struct mknod_args { | |
| 245e4f17 | 111 | #ifdef _KERNEL |
| df2244e3 | 112 | struct sysmsg sysmsg; |
| 245e4f17 | 113 | #endif |
| 984263bc MD |
114 | char * path; char path_[PAD_(char *)]; |
| 115 | int mode; char mode_[PAD_(int)]; | |
| 116 | int dev; char dev_[PAD_(int)]; | |
| 117 | }; | |
| 118 | struct chmod_args { | |
| 245e4f17 | 119 | #ifdef _KERNEL |
| df2244e3 | 120 | struct sysmsg sysmsg; |
| 245e4f17 | 121 | #endif |
| 984263bc MD |
122 | char * path; char path_[PAD_(char *)]; |
| 123 | int mode; char mode_[PAD_(int)]; | |
| 124 | }; | |
| 125 | struct chown_args { | |
| 245e4f17 | 126 | #ifdef _KERNEL |
| df2244e3 | 127 | struct sysmsg sysmsg; |
| 245e4f17 | 128 | #endif |
| 984263bc MD |
129 | char * path; char path_[PAD_(char *)]; |
| 130 | int uid; char uid_[PAD_(int)]; | |
| 131 | int gid; char gid_[PAD_(int)]; | |
| 132 | }; | |
| 133 | struct obreak_args { | |
| 245e4f17 | 134 | #ifdef _KERNEL |
| df2244e3 | 135 | struct sysmsg sysmsg; |
| 245e4f17 | 136 | #endif |
| 984263bc MD |
137 | char * nsize; char nsize_[PAD_(char *)]; |
| 138 | }; | |
| 139 | struct getfsstat_args { | |
| 245e4f17 | 140 | #ifdef _KERNEL |
| df2244e3 | 141 | struct sysmsg sysmsg; |
| 245e4f17 | 142 | #endif |
| 984263bc MD |
143 | struct statfs * buf; char buf_[PAD_(struct statfs *)]; |
| 144 | long bufsize; char bufsize_[PAD_(long)]; | |
| 145 | int flags; char flags_[PAD_(int)]; | |
| 146 | }; | |
| 147 | struct getpid_args { | |
| 245e4f17 | 148 | #ifdef _KERNEL |
| df2244e3 | 149 | struct sysmsg sysmsg; |
| 245e4f17 | 150 | #endif |
| 984263bc MD |
151 | register_t dummy; |
| 152 | }; | |
| 153 | struct mount_args { | |
| 245e4f17 | 154 | #ifdef _KERNEL |
| df2244e3 | 155 | struct sysmsg sysmsg; |
| 245e4f17 | 156 | #endif |
| 984263bc MD |
157 | char * type; char type_[PAD_(char *)]; |
| 158 | char * path; char path_[PAD_(char *)]; | |
| 159 | int flags; char flags_[PAD_(int)]; | |
| 160 | caddr_t data; char data_[PAD_(caddr_t)]; | |
| 161 | }; | |
| 162 | struct unmount_args { | |
| 245e4f17 | 163 | #ifdef _KERNEL |
| df2244e3 | 164 | struct sysmsg sysmsg; |
| 245e4f17 | 165 | #endif |
| 984263bc MD |
166 | char * path; char path_[PAD_(char *)]; |
| 167 | int flags; char flags_[PAD_(int)]; | |
| 168 | }; | |
| 169 | struct setuid_args { | |
| 245e4f17 | 170 | #ifdef _KERNEL |
| df2244e3 | 171 | struct sysmsg sysmsg; |
| 245e4f17 | 172 | #endif |
| 984263bc MD |
173 | uid_t uid; char uid_[PAD_(uid_t)]; |
| 174 | }; | |
| 175 | struct getuid_args { | |
| 245e4f17 | 176 | #ifdef _KERNEL |
| df2244e3 | 177 | struct sysmsg sysmsg; |
| 245e4f17 | 178 | #endif |
| 984263bc MD |
179 | register_t dummy; |
| 180 | }; | |
| 181 | struct geteuid_args { | |
| 245e4f17 | 182 | #ifdef _KERNEL |
| df2244e3 | 183 | struct sysmsg sysmsg; |
| 245e4f17 | 184 | #endif |
| 984263bc MD |
185 | register_t dummy; |
| 186 | }; | |
| 187 | struct ptrace_args { | |
| 245e4f17 | 188 | #ifdef _KERNEL |
| df2244e3 | 189 | struct sysmsg sysmsg; |
| 245e4f17 | 190 | #endif |
| 984263bc MD |
191 | int req; char req_[PAD_(int)]; |
| 192 | pid_t pid; char pid_[PAD_(pid_t)]; | |
| 193 | caddr_t addr; char addr_[PAD_(caddr_t)]; | |
| 194 | int data; char data_[PAD_(int)]; | |
| 195 | }; | |
| 196 | struct recvmsg_args { | |
| 245e4f17 | 197 | #ifdef _KERNEL |
| df2244e3 | 198 | struct sysmsg sysmsg; |
| 245e4f17 | 199 | #endif |
| 984263bc MD |
200 | int s; char s_[PAD_(int)]; |
| 201 | struct msghdr * msg; char msg_[PAD_(struct msghdr *)]; | |
| 202 | int flags; char flags_[PAD_(int)]; | |
| 203 | }; | |
| 204 | struct sendmsg_args { | |
| 245e4f17 | 205 | #ifdef _KERNEL |
| df2244e3 | 206 | struct sysmsg sysmsg; |
| 245e4f17 | 207 | #endif |
| 984263bc MD |
208 | int s; char s_[PAD_(int)]; |
| 209 | caddr_t msg; char msg_[PAD_(caddr_t)]; | |
| 210 | int flags; char flags_[PAD_(int)]; | |
| 211 | }; | |
| 212 | struct recvfrom_args { | |
| 245e4f17 | 213 | #ifdef _KERNEL |
| df2244e3 | 214 | struct sysmsg sysmsg; |
| 245e4f17 | 215 | #endif |
| 984263bc MD |
216 | int s; char s_[PAD_(int)]; |
| 217 | caddr_t buf; char buf_[PAD_(caddr_t)]; | |
| 218 | size_t len; char len_[PAD_(size_t)]; | |
| 219 | int flags; char flags_[PAD_(int)]; | |
| 220 | caddr_t from; char from_[PAD_(caddr_t)]; | |
| 221 | int * fromlenaddr; char fromlenaddr_[PAD_(int *)]; | |
| 222 | }; | |
| 223 | struct accept_args { | |
| 245e4f17 | 224 | #ifdef _KERNEL |
| df2244e3 | 225 | struct sysmsg sysmsg; |
| 245e4f17 | 226 | #endif |
| 984263bc MD |
227 | int s; char s_[PAD_(int)]; |
| 228 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 229 | int * anamelen; char anamelen_[PAD_(int *)]; | |
| 230 | }; | |
| 231 | struct getpeername_args { | |
| 245e4f17 | 232 | #ifdef _KERNEL |
| df2244e3 | 233 | struct sysmsg sysmsg; |
| 245e4f17 | 234 | #endif |
| 984263bc MD |
235 | int fdes; char fdes_[PAD_(int)]; |
| 236 | caddr_t asa; char asa_[PAD_(caddr_t)]; | |
| 237 | int * alen; char alen_[PAD_(int *)]; | |
| 238 | }; | |
| 239 | struct getsockname_args { | |
| 245e4f17 | 240 | #ifdef _KERNEL |
| df2244e3 | 241 | struct sysmsg sysmsg; |
| 245e4f17 | 242 | #endif |
| 984263bc MD |
243 | int fdes; char fdes_[PAD_(int)]; |
| 244 | caddr_t asa; char asa_[PAD_(caddr_t)]; | |
| 245 | int * alen; char alen_[PAD_(int *)]; | |
| 246 | }; | |
| 247 | struct access_args { | |
| 245e4f17 | 248 | #ifdef _KERNEL |
| df2244e3 | 249 | struct sysmsg sysmsg; |
| 245e4f17 | 250 | #endif |
| 984263bc MD |
251 | char * path; char path_[PAD_(char *)]; |
| 252 | int flags; char flags_[PAD_(int)]; | |
| 253 | }; | |
| 254 | struct chflags_args { | |
| 245e4f17 | 255 | #ifdef _KERNEL |
| df2244e3 | 256 | struct sysmsg sysmsg; |
| 245e4f17 | 257 | #endif |
| 984263bc MD |
258 | char * path; char path_[PAD_(char *)]; |
| 259 | int flags; char flags_[PAD_(int)]; | |
| 260 | }; | |
| 261 | struct fchflags_args { | |
| 245e4f17 | 262 | #ifdef _KERNEL |
| df2244e3 | 263 | struct sysmsg sysmsg; |
| 245e4f17 | 264 | #endif |
| 984263bc MD |
265 | int fd; char fd_[PAD_(int)]; |
| 266 | int flags; char flags_[PAD_(int)]; | |
| 267 | }; | |
| 268 | struct sync_args { | |
| 245e4f17 | 269 | #ifdef _KERNEL |
| df2244e3 | 270 | struct sysmsg sysmsg; |
| 245e4f17 | 271 | #endif |
| 984263bc MD |
272 | register_t dummy; |
| 273 | }; | |
| 274 | struct kill_args { | |
| 245e4f17 | 275 | #ifdef _KERNEL |
| df2244e3 | 276 | struct sysmsg sysmsg; |
| 245e4f17 | 277 | #endif |
| 984263bc MD |
278 | int pid; char pid_[PAD_(int)]; |
| 279 | int signum; char signum_[PAD_(int)]; | |
| 280 | }; | |
| 281 | struct getppid_args { | |
| 245e4f17 | 282 | #ifdef _KERNEL |
| df2244e3 | 283 | struct sysmsg sysmsg; |
| 245e4f17 | 284 | #endif |
| 984263bc MD |
285 | register_t dummy; |
| 286 | }; | |
| 287 | struct dup_args { | |
| 245e4f17 | 288 | #ifdef _KERNEL |
| df2244e3 | 289 | struct sysmsg sysmsg; |
| 245e4f17 | 290 | #endif |
| 984263bc MD |
291 | u_int fd; char fd_[PAD_(u_int)]; |
| 292 | }; | |
| 293 | struct pipe_args { | |
| 245e4f17 | 294 | #ifdef _KERNEL |
| df2244e3 | 295 | struct sysmsg sysmsg; |
| 245e4f17 | 296 | #endif |
| 984263bc MD |
297 | register_t dummy; |
| 298 | }; | |
| 299 | struct getegid_args { | |
| 245e4f17 | 300 | #ifdef _KERNEL |
| df2244e3 | 301 | struct sysmsg sysmsg; |
| 245e4f17 | 302 | #endif |
| 984263bc MD |
303 | register_t dummy; |
| 304 | }; | |
| 305 | struct profil_args { | |
| 245e4f17 | 306 | #ifdef _KERNEL |
| df2244e3 | 307 | struct sysmsg sysmsg; |
| 245e4f17 | 308 | #endif |
| 984263bc MD |
309 | caddr_t samples; char samples_[PAD_(caddr_t)]; |
| 310 | size_t size; char size_[PAD_(size_t)]; | |
| 311 | size_t offset; char offset_[PAD_(size_t)]; | |
| 312 | u_int scale; char scale_[PAD_(u_int)]; | |
| 313 | }; | |
| 314 | struct ktrace_args { | |
| 245e4f17 | 315 | #ifdef _KERNEL |
| df2244e3 | 316 | struct sysmsg sysmsg; |
| 245e4f17 | 317 | #endif |
| 984263bc MD |
318 | const char * fname; char fname_[PAD_(const char *)]; |
| 319 | int ops; char ops_[PAD_(int)]; | |
| 320 | int facs; char facs_[PAD_(int)]; | |
| 321 | int pid; char pid_[PAD_(int)]; | |
| 322 | }; | |
| 323 | struct getgid_args { | |
| 245e4f17 | 324 | #ifdef _KERNEL |
| df2244e3 | 325 | struct sysmsg sysmsg; |
| 245e4f17 | 326 | #endif |
| 984263bc MD |
327 | register_t dummy; |
| 328 | }; | |
| 329 | struct getlogin_args { | |
| 245e4f17 | 330 | #ifdef _KERNEL |
| df2244e3 | 331 | struct sysmsg sysmsg; |
| 245e4f17 | 332 | #endif |
| 984263bc MD |
333 | char * namebuf; char namebuf_[PAD_(char *)]; |
| 334 | u_int namelen; char namelen_[PAD_(u_int)]; | |
| 335 | }; | |
| 336 | struct setlogin_args { | |
| 245e4f17 | 337 | #ifdef _KERNEL |
| df2244e3 | 338 | struct sysmsg sysmsg; |
| 245e4f17 | 339 | #endif |
| 984263bc MD |
340 | char * namebuf; char namebuf_[PAD_(char *)]; |
| 341 | }; | |
| 342 | struct acct_args { | |
| 245e4f17 | 343 | #ifdef _KERNEL |
| df2244e3 | 344 | struct sysmsg sysmsg; |
| 245e4f17 | 345 | #endif |
| 984263bc MD |
346 | char * path; char path_[PAD_(char *)]; |
| 347 | }; | |
| 984263bc | 348 | struct sigaltstack_args { |
| 245e4f17 | 349 | #ifdef _KERNEL |
| df2244e3 | 350 | struct sysmsg sysmsg; |
| 245e4f17 | 351 | #endif |
| 984263bc MD |
352 | stack_t * ss; char ss_[PAD_(stack_t *)]; |
| 353 | stack_t * oss; char oss_[PAD_(stack_t *)]; | |
| 354 | }; | |
| 355 | struct ioctl_args { | |
| 245e4f17 | 356 | #ifdef _KERNEL |
| df2244e3 | 357 | struct sysmsg sysmsg; |
| 245e4f17 | 358 | #endif |
| 984263bc MD |
359 | int fd; char fd_[PAD_(int)]; |
| 360 | u_long com; char com_[PAD_(u_long)]; | |
| 361 | caddr_t data; char data_[PAD_(caddr_t)]; | |
| 362 | }; | |
| 363 | struct reboot_args { | |
| 245e4f17 | 364 | #ifdef _KERNEL |
| df2244e3 | 365 | struct sysmsg sysmsg; |
| 245e4f17 | 366 | #endif |
| 984263bc MD |
367 | int opt; char opt_[PAD_(int)]; |
| 368 | }; | |
| 369 | struct revoke_args { | |
| 245e4f17 | 370 | #ifdef _KERNEL |
| df2244e3 | 371 | struct sysmsg sysmsg; |
| 245e4f17 | 372 | #endif |
| 984263bc MD |
373 | char * path; char path_[PAD_(char *)]; |
| 374 | }; | |
| 375 | struct symlink_args { | |
| 245e4f17 | 376 | #ifdef _KERNEL |
| df2244e3 | 377 | struct sysmsg sysmsg; |
| 245e4f17 | 378 | #endif |
| 984263bc MD |
379 | char * path; char path_[PAD_(char *)]; |
| 380 | char * link; char link_[PAD_(char *)]; | |
| 381 | }; | |
| 382 | struct readlink_args { | |
| 245e4f17 | 383 | #ifdef _KERNEL |
| df2244e3 | 384 | struct sysmsg sysmsg; |
| 245e4f17 | 385 | #endif |
| 984263bc MD |
386 | char * path; char path_[PAD_(char *)]; |
| 387 | char * buf; char buf_[PAD_(char *)]; | |
| 388 | int count; char count_[PAD_(int)]; | |
| 389 | }; | |
| 390 | struct execve_args { | |
| 245e4f17 | 391 | #ifdef _KERNEL |
| df2244e3 | 392 | struct sysmsg sysmsg; |
| 245e4f17 | 393 | #endif |
| 984263bc MD |
394 | char * fname; char fname_[PAD_(char *)]; |
| 395 | char ** argv; char argv_[PAD_(char **)]; | |
| 396 | char ** envv; char envv_[PAD_(char **)]; | |
| 397 | }; | |
| 398 | struct umask_args { | |
| 245e4f17 | 399 | #ifdef _KERNEL |
| df2244e3 | 400 | struct sysmsg sysmsg; |
| 245e4f17 | 401 | #endif |
| 984263bc MD |
402 | int newmask; char newmask_[PAD_(int)]; |
| 403 | }; | |
| 404 | struct chroot_args { | |
| 245e4f17 | 405 | #ifdef _KERNEL |
| df2244e3 | 406 | struct sysmsg sysmsg; |
| 245e4f17 | 407 | #endif |
| 984263bc MD |
408 | char * path; char path_[PAD_(char *)]; |
| 409 | }; | |
| 410 | struct getpagesize_args { | |
| 245e4f17 | 411 | #ifdef _KERNEL |
| df2244e3 | 412 | struct sysmsg sysmsg; |
| 245e4f17 | 413 | #endif |
| 984263bc MD |
414 | register_t dummy; |
| 415 | }; | |
| 416 | struct msync_args { | |
| 245e4f17 | 417 | #ifdef _KERNEL |
| df2244e3 | 418 | struct sysmsg sysmsg; |
| 245e4f17 | 419 | #endif |
| 984263bc MD |
420 | void * addr; char addr_[PAD_(void *)]; |
| 421 | size_t len; char len_[PAD_(size_t)]; | |
| 422 | int flags; char flags_[PAD_(int)]; | |
| 423 | }; | |
| 424 | struct vfork_args { | |
| 245e4f17 | 425 | #ifdef _KERNEL |
| df2244e3 | 426 | struct sysmsg sysmsg; |
| 245e4f17 | 427 | #endif |
| 984263bc MD |
428 | register_t dummy; |
| 429 | }; | |
| 430 | struct sbrk_args { | |
| 245e4f17 | 431 | #ifdef _KERNEL |
| df2244e3 | 432 | struct sysmsg sysmsg; |
| 245e4f17 | 433 | #endif |
| 984263bc MD |
434 | int incr; char incr_[PAD_(int)]; |
| 435 | }; | |
| 436 | struct sstk_args { | |
| 245e4f17 | 437 | #ifdef _KERNEL |
| df2244e3 | 438 | struct sysmsg sysmsg; |
| 245e4f17 | 439 | #endif |
| 984263bc MD |
440 | int incr; char incr_[PAD_(int)]; |
| 441 | }; | |
| 984263bc | 442 | struct munmap_args { |
| 245e4f17 | 443 | #ifdef _KERNEL |
| df2244e3 | 444 | struct sysmsg sysmsg; |
| 245e4f17 | 445 | #endif |
| 984263bc MD |
446 | void * addr; char addr_[PAD_(void *)]; |
| 447 | size_t len; char len_[PAD_(size_t)]; | |
| 448 | }; | |
| 449 | struct mprotect_args { | |
| 245e4f17 | 450 | #ifdef _KERNEL |
| df2244e3 | 451 | struct sysmsg sysmsg; |
| 245e4f17 | 452 | #endif |
| 438ad6d3 | 453 | void * addr; char addr_[PAD_(void *)]; |
| 984263bc MD |
454 | size_t len; char len_[PAD_(size_t)]; |
| 455 | int prot; char prot_[PAD_(int)]; | |
| 456 | }; | |
| 457 | struct madvise_args { | |
| 245e4f17 | 458 | #ifdef _KERNEL |
| df2244e3 | 459 | struct sysmsg sysmsg; |
| 245e4f17 | 460 | #endif |
| 984263bc MD |
461 | void * addr; char addr_[PAD_(void *)]; |
| 462 | size_t len; char len_[PAD_(size_t)]; | |
| 463 | int behav; char behav_[PAD_(int)]; | |
| 464 | }; | |
| 465 | struct mincore_args { | |
| 245e4f17 | 466 | #ifdef _KERNEL |
| df2244e3 | 467 | struct sysmsg sysmsg; |
| 245e4f17 | 468 | #endif |
| 984263bc MD |
469 | const void * addr; char addr_[PAD_(const void *)]; |
| 470 | size_t len; char len_[PAD_(size_t)]; | |
| 471 | char * vec; char vec_[PAD_(char *)]; | |
| 472 | }; | |
| 473 | struct getgroups_args { | |
| 245e4f17 | 474 | #ifdef _KERNEL |
| df2244e3 | 475 | struct sysmsg sysmsg; |
| 245e4f17 | 476 | #endif |
| 984263bc MD |
477 | u_int gidsetsize; char gidsetsize_[PAD_(u_int)]; |
| 478 | gid_t * gidset; char gidset_[PAD_(gid_t *)]; | |
| 479 | }; | |
| 480 | struct setgroups_args { | |
| 245e4f17 | 481 | #ifdef _KERNEL |
| df2244e3 | 482 | struct sysmsg sysmsg; |
| 245e4f17 | 483 | #endif |
| 984263bc MD |
484 | u_int gidsetsize; char gidsetsize_[PAD_(u_int)]; |
| 485 | gid_t * gidset; char gidset_[PAD_(gid_t *)]; | |
| 486 | }; | |
| 487 | struct getpgrp_args { | |
| 245e4f17 | 488 | #ifdef _KERNEL |
| df2244e3 | 489 | struct sysmsg sysmsg; |
| 245e4f17 | 490 | #endif |
| 984263bc MD |
491 | register_t dummy; |
| 492 | }; | |
| 493 | struct setpgid_args { | |
| 245e4f17 | 494 | #ifdef _KERNEL |
| df2244e3 | 495 | struct sysmsg sysmsg; |
| 245e4f17 | 496 | #endif |
| 984263bc MD |
497 | int pid; char pid_[PAD_(int)]; |
| 498 | int pgid; char pgid_[PAD_(int)]; | |
| 499 | }; | |
| 500 | struct setitimer_args { | |
| 245e4f17 | 501 | #ifdef _KERNEL |
| df2244e3 | 502 | struct sysmsg sysmsg; |
| 245e4f17 | 503 | #endif |
| 984263bc MD |
504 | u_int which; char which_[PAD_(u_int)]; |
| 505 | struct itimerval * itv; char itv_[PAD_(struct itimerval *)]; | |
| 506 | struct itimerval * oitv; char oitv_[PAD_(struct itimerval *)]; | |
| 507 | }; | |
| 508 | struct owait_args { | |
| 245e4f17 | 509 | #ifdef _KERNEL |
| df2244e3 | 510 | struct sysmsg sysmsg; |
| 245e4f17 | 511 | #endif |
| 984263bc MD |
512 | register_t dummy; |
| 513 | }; | |
| 514 | struct swapon_args { | |
| 245e4f17 | 515 | #ifdef _KERNEL |
| df2244e3 | 516 | struct sysmsg sysmsg; |
| 245e4f17 | 517 | #endif |
| 984263bc MD |
518 | char * name; char name_[PAD_(char *)]; |
| 519 | }; | |
| 520 | struct getitimer_args { | |
| 245e4f17 | 521 | #ifdef _KERNEL |
| df2244e3 | 522 | struct sysmsg sysmsg; |
| 245e4f17 | 523 | #endif |
| 984263bc MD |
524 | u_int which; char which_[PAD_(u_int)]; |
| 525 | struct itimerval * itv; char itv_[PAD_(struct itimerval *)]; | |
| 526 | }; | |
| 527 | struct getdtablesize_args { | |
| 245e4f17 | 528 | #ifdef _KERNEL |
| df2244e3 | 529 | struct sysmsg sysmsg; |
| 245e4f17 | 530 | #endif |
| 984263bc MD |
531 | register_t dummy; |
| 532 | }; | |
| 533 | struct dup2_args { | |
| 245e4f17 | 534 | #ifdef _KERNEL |
| df2244e3 | 535 | struct sysmsg sysmsg; |
| 245e4f17 | 536 | #endif |
| 984263bc MD |
537 | u_int from; char from_[PAD_(u_int)]; |
| 538 | u_int to; char to_[PAD_(u_int)]; | |
| 539 | }; | |
| 540 | struct fcntl_args { | |
| 245e4f17 | 541 | #ifdef _KERNEL |
| df2244e3 | 542 | struct sysmsg sysmsg; |
| 245e4f17 | 543 | #endif |
| 984263bc MD |
544 | int fd; char fd_[PAD_(int)]; |
| 545 | int cmd; char cmd_[PAD_(int)]; | |
| 546 | long arg; char arg_[PAD_(long)]; | |
| 547 | }; | |
| 548 | struct select_args { | |
| 245e4f17 | 549 | #ifdef _KERNEL |
| df2244e3 | 550 | struct sysmsg sysmsg; |
| 245e4f17 | 551 | #endif |
| 984263bc MD |
552 | int nd; char nd_[PAD_(int)]; |
| 553 | fd_set * in; char in_[PAD_(fd_set *)]; | |
| 554 | fd_set * ou; char ou_[PAD_(fd_set *)]; | |
| 555 | fd_set * ex; char ex_[PAD_(fd_set *)]; | |
| 556 | struct timeval * tv; char tv_[PAD_(struct timeval *)]; | |
| 557 | }; | |
| 558 | struct fsync_args { | |
| 245e4f17 | 559 | #ifdef _KERNEL |
| df2244e3 | 560 | struct sysmsg sysmsg; |
| 245e4f17 | 561 | #endif |
| 984263bc MD |
562 | int fd; char fd_[PAD_(int)]; |
| 563 | }; | |
| 564 | struct setpriority_args { | |
| 245e4f17 | 565 | #ifdef _KERNEL |
| df2244e3 | 566 | struct sysmsg sysmsg; |
| 245e4f17 | 567 | #endif |
| 984263bc MD |
568 | int which; char which_[PAD_(int)]; |
| 569 | int who; char who_[PAD_(int)]; | |
| 570 | int prio; char prio_[PAD_(int)]; | |
| 571 | }; | |
| 572 | struct socket_args { | |
| 245e4f17 | 573 | #ifdef _KERNEL |
| df2244e3 | 574 | struct sysmsg sysmsg; |
| 245e4f17 | 575 | #endif |
| 984263bc MD |
576 | int domain; char domain_[PAD_(int)]; |
| 577 | int type; char type_[PAD_(int)]; | |
| 578 | int protocol; char protocol_[PAD_(int)]; | |
| 579 | }; | |
| 580 | struct connect_args { | |
| 245e4f17 | 581 | #ifdef _KERNEL |
| df2244e3 | 582 | struct sysmsg sysmsg; |
| 245e4f17 | 583 | #endif |
| 984263bc MD |
584 | int s; char s_[PAD_(int)]; |
| 585 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 586 | int namelen; char namelen_[PAD_(int)]; | |
| 587 | }; | |
| 588 | struct getpriority_args { | |
| 245e4f17 | 589 | #ifdef _KERNEL |
| df2244e3 | 590 | struct sysmsg sysmsg; |
| 245e4f17 | 591 | #endif |
| 984263bc MD |
592 | int which; char which_[PAD_(int)]; |
| 593 | int who; char who_[PAD_(int)]; | |
| 594 | }; | |
| 595 | struct bind_args { | |
| 245e4f17 | 596 | #ifdef _KERNEL |
| df2244e3 | 597 | struct sysmsg sysmsg; |
| 245e4f17 | 598 | #endif |
| 984263bc MD |
599 | int s; char s_[PAD_(int)]; |
| 600 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 601 | int namelen; char namelen_[PAD_(int)]; | |
| 602 | }; | |
| 603 | struct setsockopt_args { | |
| 245e4f17 | 604 | #ifdef _KERNEL |
| df2244e3 | 605 | struct sysmsg sysmsg; |
| 245e4f17 | 606 | #endif |
| 984263bc MD |
607 | int s; char s_[PAD_(int)]; |
| 608 | int level; char level_[PAD_(int)]; | |
| 609 | int name; char name_[PAD_(int)]; | |
| 610 | caddr_t val; char val_[PAD_(caddr_t)]; | |
| 611 | int valsize; char valsize_[PAD_(int)]; | |
| 612 | }; | |
| 613 | struct listen_args { | |
| 245e4f17 | 614 | #ifdef _KERNEL |
| df2244e3 | 615 | struct sysmsg sysmsg; |
| 245e4f17 | 616 | #endif |
| 984263bc MD |
617 | int s; char s_[PAD_(int)]; |
| 618 | int backlog; char backlog_[PAD_(int)]; | |
| 619 | }; | |
| 620 | struct gettimeofday_args { | |
| 245e4f17 | 621 | #ifdef _KERNEL |
| df2244e3 | 622 | struct sysmsg sysmsg; |
| 245e4f17 | 623 | #endif |
| 984263bc MD |
624 | struct timeval * tp; char tp_[PAD_(struct timeval *)]; |
| 625 | struct timezone * tzp; char tzp_[PAD_(struct timezone *)]; | |
| 626 | }; | |
| 627 | struct getrusage_args { | |
| 245e4f17 | 628 | #ifdef _KERNEL |
| df2244e3 | 629 | struct sysmsg sysmsg; |
| 245e4f17 | 630 | #endif |
| 984263bc MD |
631 | int who; char who_[PAD_(int)]; |
| 632 | struct rusage * rusage; char rusage_[PAD_(struct rusage *)]; | |
| 633 | }; | |
| 634 | struct getsockopt_args { | |
| 245e4f17 | 635 | #ifdef _KERNEL |
| df2244e3 | 636 | struct sysmsg sysmsg; |
| 245e4f17 | 637 | #endif |
| 984263bc MD |
638 | int s; char s_[PAD_(int)]; |
| 639 | int level; char level_[PAD_(int)]; | |
| 640 | int name; char name_[PAD_(int)]; | |
| 641 | caddr_t val; char val_[PAD_(caddr_t)]; | |
| 642 | int * avalsize; char avalsize_[PAD_(int *)]; | |
| 643 | }; | |
| 644 | struct readv_args { | |
| 245e4f17 | 645 | #ifdef _KERNEL |
| df2244e3 | 646 | struct sysmsg sysmsg; |
| 245e4f17 | 647 | #endif |
| 984263bc MD |
648 | int fd; char fd_[PAD_(int)]; |
| 649 | struct iovec * iovp; char iovp_[PAD_(struct iovec *)]; | |
| 650 | u_int iovcnt; char iovcnt_[PAD_(u_int)]; | |
| 651 | }; | |
| 652 | struct writev_args { | |
| 245e4f17 | 653 | #ifdef _KERNEL |
| df2244e3 | 654 | struct sysmsg sysmsg; |
| 245e4f17 | 655 | #endif |
| 984263bc MD |
656 | int fd; char fd_[PAD_(int)]; |
| 657 | struct iovec * iovp; char iovp_[PAD_(struct iovec *)]; | |
| 658 | u_int iovcnt; char iovcnt_[PAD_(u_int)]; | |
| 659 | }; | |
| 660 | struct settimeofday_args { | |
| 245e4f17 | 661 | #ifdef _KERNEL |
| df2244e3 | 662 | struct sysmsg sysmsg; |
| 245e4f17 | 663 | #endif |
| 984263bc MD |
664 | struct timeval * tv; char tv_[PAD_(struct timeval *)]; |
| 665 | struct timezone * tzp; char tzp_[PAD_(struct timezone *)]; | |
| 666 | }; | |
| 667 | struct fchown_args { | |
| 245e4f17 | 668 | #ifdef _KERNEL |
| df2244e3 | 669 | struct sysmsg sysmsg; |
| 245e4f17 | 670 | #endif |
| 984263bc MD |
671 | int fd; char fd_[PAD_(int)]; |
| 672 | int uid; char uid_[PAD_(int)]; | |
| 673 | int gid; char gid_[PAD_(int)]; | |
| 674 | }; | |
| 675 | struct fchmod_args { | |
| 245e4f17 | 676 | #ifdef _KERNEL |
| df2244e3 | 677 | struct sysmsg sysmsg; |
| 245e4f17 | 678 | #endif |
| 984263bc MD |
679 | int fd; char fd_[PAD_(int)]; |
| 680 | int mode; char mode_[PAD_(int)]; | |
| 681 | }; | |
| 682 | struct setreuid_args { | |
| 245e4f17 | 683 | #ifdef _KERNEL |
| df2244e3 | 684 | struct sysmsg sysmsg; |
| 245e4f17 | 685 | #endif |
| 984263bc MD |
686 | int ruid; char ruid_[PAD_(int)]; |
| 687 | int euid; char euid_[PAD_(int)]; | |
| 688 | }; | |
| 689 | struct setregid_args { | |
| 245e4f17 | 690 | #ifdef _KERNEL |
| df2244e3 | 691 | struct sysmsg sysmsg; |
| 245e4f17 | 692 | #endif |
| 984263bc MD |
693 | int rgid; char rgid_[PAD_(int)]; |
| 694 | int egid; char egid_[PAD_(int)]; | |
| 695 | }; | |
| 696 | struct rename_args { | |
| 245e4f17 | 697 | #ifdef _KERNEL |
| df2244e3 | 698 | struct sysmsg sysmsg; |
| 245e4f17 | 699 | #endif |
| 984263bc MD |
700 | char * from; char from_[PAD_(char *)]; |
| 701 | char * to; char to_[PAD_(char *)]; | |
| 702 | }; | |
| 703 | struct flock_args { | |
| 245e4f17 | 704 | #ifdef _KERNEL |
| df2244e3 | 705 | struct sysmsg sysmsg; |
| 245e4f17 | 706 | #endif |
| 984263bc MD |
707 | int fd; char fd_[PAD_(int)]; |
| 708 | int how; char how_[PAD_(int)]; | |
| 709 | }; | |
| 710 | struct mkfifo_args { | |
| 245e4f17 | 711 | #ifdef _KERNEL |
| df2244e3 | 712 | struct sysmsg sysmsg; |
| 245e4f17 | 713 | #endif |
| 984263bc MD |
714 | char * path; char path_[PAD_(char *)]; |
| 715 | int mode; char mode_[PAD_(int)]; | |
| 716 | }; | |
| 717 | struct sendto_args { | |
| 245e4f17 | 718 | #ifdef _KERNEL |
| df2244e3 | 719 | struct sysmsg sysmsg; |
| 245e4f17 | 720 | #endif |
| 984263bc MD |
721 | int s; char s_[PAD_(int)]; |
| 722 | caddr_t buf; char buf_[PAD_(caddr_t)]; | |
| 723 | size_t len; char len_[PAD_(size_t)]; | |
| 724 | int flags; char flags_[PAD_(int)]; | |
| 725 | caddr_t to; char to_[PAD_(caddr_t)]; | |
| 726 | int tolen; char tolen_[PAD_(int)]; | |
| 727 | }; | |
| 728 | struct shutdown_args { | |
| 245e4f17 | 729 | #ifdef _KERNEL |
| df2244e3 | 730 | struct sysmsg sysmsg; |
| 245e4f17 | 731 | #endif |
| 984263bc MD |
732 | int s; char s_[PAD_(int)]; |
| 733 | int how; char how_[PAD_(int)]; | |
| 734 | }; | |
| 735 | struct socketpair_args { | |
| 245e4f17 | 736 | #ifdef _KERNEL |
| df2244e3 | 737 | struct sysmsg sysmsg; |
| 245e4f17 | 738 | #endif |
| 984263bc MD |
739 | int domain; char domain_[PAD_(int)]; |
| 740 | int type; char type_[PAD_(int)]; | |
| 741 | int protocol; char protocol_[PAD_(int)]; | |
| 742 | int * rsv; char rsv_[PAD_(int *)]; | |
| 743 | }; | |
| 744 | struct mkdir_args { | |
| 245e4f17 | 745 | #ifdef _KERNEL |
| df2244e3 | 746 | struct sysmsg sysmsg; |
| 245e4f17 | 747 | #endif |
| 984263bc MD |
748 | char * path; char path_[PAD_(char *)]; |
| 749 | int mode; char mode_[PAD_(int)]; | |
| 750 | }; | |
| 751 | struct rmdir_args { | |
| 245e4f17 | 752 | #ifdef _KERNEL |
| df2244e3 | 753 | struct sysmsg sysmsg; |
| 245e4f17 | 754 | #endif |
| 984263bc MD |
755 | char * path; char path_[PAD_(char *)]; |
| 756 | }; | |
| 757 | struct utimes_args { | |
| 245e4f17 | 758 | #ifdef _KERNEL |
| df2244e3 | 759 | struct sysmsg sysmsg; |
| 245e4f17 | 760 | #endif |
| 984263bc MD |
761 | char * path; char path_[PAD_(char *)]; |
| 762 | struct timeval * tptr; char tptr_[PAD_(struct timeval *)]; | |
| 763 | }; | |
| 764 | struct adjtime_args { | |
| 245e4f17 | 765 | #ifdef _KERNEL |
| df2244e3 | 766 | struct sysmsg sysmsg; |
| 245e4f17 | 767 | #endif |
| 984263bc MD |
768 | struct timeval * delta; char delta_[PAD_(struct timeval *)]; |
| 769 | struct timeval * olddelta; char olddelta_[PAD_(struct timeval *)]; | |
| 770 | }; | |
| 771 | struct ogethostid_args { | |
| 245e4f17 | 772 | #ifdef _KERNEL |
| df2244e3 | 773 | struct sysmsg sysmsg; |
| 245e4f17 | 774 | #endif |
| 984263bc MD |
775 | register_t dummy; |
| 776 | }; | |
| 777 | struct setsid_args { | |
| 245e4f17 | 778 | #ifdef _KERNEL |
| df2244e3 | 779 | struct sysmsg sysmsg; |
| 245e4f17 | 780 | #endif |
| 984263bc MD |
781 | register_t dummy; |
| 782 | }; | |
| 783 | struct quotactl_args { | |
| 245e4f17 | 784 | #ifdef _KERNEL |
| df2244e3 | 785 | struct sysmsg sysmsg; |
| 245e4f17 | 786 | #endif |
| 984263bc MD |
787 | char * path; char path_[PAD_(char *)]; |
| 788 | int cmd; char cmd_[PAD_(int)]; | |
| 789 | int uid; char uid_[PAD_(int)]; | |
| 790 | caddr_t arg; char arg_[PAD_(caddr_t)]; | |
| 791 | }; | |
| 792 | struct oquota_args { | |
| 245e4f17 | 793 | #ifdef _KERNEL |
| df2244e3 | 794 | struct sysmsg sysmsg; |
| 245e4f17 | 795 | #endif |
| 984263bc MD |
796 | register_t dummy; |
| 797 | }; | |
| 798 | struct nfssvc_args { | |
| 245e4f17 | 799 | #ifdef _KERNEL |
| df2244e3 | 800 | struct sysmsg sysmsg; |
| 245e4f17 | 801 | #endif |
| 984263bc MD |
802 | int flag; char flag_[PAD_(int)]; |
| 803 | caddr_t argp; char argp_[PAD_(caddr_t)]; | |
| 804 | }; | |
| 805 | struct statfs_args { | |
| 245e4f17 | 806 | #ifdef _KERNEL |
| df2244e3 | 807 | struct sysmsg sysmsg; |
| 245e4f17 | 808 | #endif |
| 984263bc MD |
809 | char * path; char path_[PAD_(char *)]; |
| 810 | struct statfs * buf; char buf_[PAD_(struct statfs *)]; | |
| 811 | }; | |
| 812 | struct fstatfs_args { | |
| 245e4f17 | 813 | #ifdef _KERNEL |
| df2244e3 | 814 | struct sysmsg sysmsg; |
| 245e4f17 | 815 | #endif |
| 984263bc MD |
816 | int fd; char fd_[PAD_(int)]; |
| 817 | struct statfs * buf; char buf_[PAD_(struct statfs *)]; | |
| 818 | }; | |
| 819 | struct getfh_args { | |
| 245e4f17 | 820 | #ifdef _KERNEL |
| df2244e3 | 821 | struct sysmsg sysmsg; |
| 245e4f17 | 822 | #endif |
| 984263bc MD |
823 | char * fname; char fname_[PAD_(char *)]; |
| 824 | struct fhandle * fhp; char fhp_[PAD_(struct fhandle *)]; | |
| 825 | }; | |
| 826 | struct getdomainname_args { | |
| 245e4f17 | 827 | #ifdef _KERNEL |
| df2244e3 | 828 | struct sysmsg sysmsg; |
| 245e4f17 | 829 | #endif |
| 984263bc MD |
830 | char * domainname; char domainname_[PAD_(char *)]; |
| 831 | int len; char len_[PAD_(int)]; | |
| 832 | }; | |
| 833 | struct setdomainname_args { | |
| 245e4f17 | 834 | #ifdef _KERNEL |
| df2244e3 | 835 | struct sysmsg sysmsg; |
| 245e4f17 | 836 | #endif |
| 984263bc MD |
837 | char * domainname; char domainname_[PAD_(char *)]; |
| 838 | int len; char len_[PAD_(int)]; | |
| 839 | }; | |
| 840 | struct uname_args { | |
| 245e4f17 | 841 | #ifdef _KERNEL |
| df2244e3 | 842 | struct sysmsg sysmsg; |
| 245e4f17 | 843 | #endif |
| 984263bc MD |
844 | struct utsname * name; char name_[PAD_(struct utsname *)]; |
| 845 | }; | |
| 846 | struct sysarch_args { | |
| 245e4f17 | 847 | #ifdef _KERNEL |
| df2244e3 | 848 | struct sysmsg sysmsg; |
| 245e4f17 | 849 | #endif |
| 984263bc MD |
850 | int op; char op_[PAD_(int)]; |
| 851 | char * parms; char parms_[PAD_(char *)]; | |
| 852 | }; | |
| 853 | struct rtprio_args { | |
| 245e4f17 | 854 | #ifdef _KERNEL |
| df2244e3 | 855 | struct sysmsg sysmsg; |
| 245e4f17 | 856 | #endif |
| 984263bc MD |
857 | int function; char function_[PAD_(int)]; |
| 858 | pid_t pid; char pid_[PAD_(pid_t)]; | |
| 859 | struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)]; | |
| 860 | }; | |
| 861 | struct semsys_args { | |
| 245e4f17 | 862 | #ifdef _KERNEL |
| df2244e3 | 863 | struct sysmsg sysmsg; |
| 245e4f17 | 864 | #endif |
| 984263bc MD |
865 | int which; char which_[PAD_(int)]; |
| 866 | int a2; char a2_[PAD_(int)]; | |
| 867 | int a3; char a3_[PAD_(int)]; | |
| 868 | int a4; char a4_[PAD_(int)]; | |
| 869 | int a5; char a5_[PAD_(int)]; | |
| 870 | }; | |
| 871 | struct msgsys_args { | |
| 245e4f17 | 872 | #ifdef _KERNEL |
| df2244e3 | 873 | struct sysmsg sysmsg; |
| 245e4f17 | 874 | #endif |
| 984263bc MD |
875 | int which; char which_[PAD_(int)]; |
| 876 | int a2; char a2_[PAD_(int)]; | |
| 877 | int a3; char a3_[PAD_(int)]; | |
| 878 | int a4; char a4_[PAD_(int)]; | |
| 879 | int a5; char a5_[PAD_(int)]; | |
| 880 | int a6; char a6_[PAD_(int)]; | |
| 881 | }; | |
| 882 | struct shmsys_args { | |
| 245e4f17 | 883 | #ifdef _KERNEL |
| df2244e3 | 884 | struct sysmsg sysmsg; |
| 245e4f17 | 885 | #endif |
| 984263bc MD |
886 | int which; char which_[PAD_(int)]; |
| 887 | int a2; char a2_[PAD_(int)]; | |
| 888 | int a3; char a3_[PAD_(int)]; | |
| 889 | int a4; char a4_[PAD_(int)]; | |
| 890 | }; | |
| b09fd398 | 891 | struct extpread_args { |
| 245e4f17 | 892 | #ifdef _KERNEL |
| df2244e3 | 893 | struct sysmsg sysmsg; |
| 245e4f17 | 894 | #endif |
| 984263bc MD |
895 | int fd; char fd_[PAD_(int)]; |
| 896 | void * buf; char buf_[PAD_(void *)]; | |
| 897 | size_t nbyte; char nbyte_[PAD_(size_t)]; | |
| 9ba76b73 | 898 | int flags; char flags_[PAD_(int)]; |
| 984263bc MD |
899 | off_t offset; char offset_[PAD_(off_t)]; |
| 900 | }; | |
| b09fd398 | 901 | struct extpwrite_args { |
| 245e4f17 | 902 | #ifdef _KERNEL |
| df2244e3 | 903 | struct sysmsg sysmsg; |
| 245e4f17 | 904 | #endif |
| 984263bc MD |
905 | int fd; char fd_[PAD_(int)]; |
| 906 | const void * buf; char buf_[PAD_(const void *)]; | |
| 907 | size_t nbyte; char nbyte_[PAD_(size_t)]; | |
| 9ba76b73 | 908 | int flags; char flags_[PAD_(int)]; |
| 984263bc MD |
909 | off_t offset; char offset_[PAD_(off_t)]; |
| 910 | }; | |
| 911 | struct ntp_adjtime_args { | |
| 245e4f17 | 912 | #ifdef _KERNEL |
| df2244e3 | 913 | struct sysmsg sysmsg; |
| 245e4f17 | 914 | #endif |
| 984263bc MD |
915 | struct timex * tp; char tp_[PAD_(struct timex *)]; |
| 916 | }; | |
| 917 | struct setgid_args { | |
| 245e4f17 | 918 | #ifdef _KERNEL |
| df2244e3 | 919 | struct sysmsg sysmsg; |
| 245e4f17 | 920 | #endif |
| 984263bc MD |
921 | gid_t gid; char gid_[PAD_(gid_t)]; |
| 922 | }; | |
| 923 | struct setegid_args { | |
| 245e4f17 | 924 | #ifdef _KERNEL |
| df2244e3 | 925 | struct sysmsg sysmsg; |
| 245e4f17 | 926 | #endif |
| 984263bc MD |
927 | gid_t egid; char egid_[PAD_(gid_t)]; |
| 928 | }; | |
| 929 | struct seteuid_args { | |
| 245e4f17 | 930 | #ifdef _KERNEL |
| df2244e3 | 931 | struct sysmsg sysmsg; |
| 245e4f17 | 932 | #endif |
| 984263bc MD |
933 | uid_t euid; char euid_[PAD_(uid_t)]; |
| 934 | }; | |
| 984263bc | 935 | struct pathconf_args { |
| 245e4f17 | 936 | #ifdef _KERNEL |
| df2244e3 | 937 | struct sysmsg sysmsg; |
| 245e4f17 | 938 | #endif |
| 984263bc MD |
939 | char * path; char path_[PAD_(char *)]; |
| 940 | int name; char name_[PAD_(int)]; | |
| 941 | }; | |
| 942 | struct fpathconf_args { | |
| 245e4f17 | 943 | #ifdef _KERNEL |
| df2244e3 | 944 | struct sysmsg sysmsg; |
| 245e4f17 | 945 | #endif |
| 984263bc MD |
946 | int fd; char fd_[PAD_(int)]; |
| 947 | int name; char name_[PAD_(int)]; | |
| 948 | }; | |
| 949 | struct __getrlimit_args { | |
| 245e4f17 | 950 | #ifdef _KERNEL |
| df2244e3 | 951 | struct sysmsg sysmsg; |
| 245e4f17 | 952 | #endif |
| 984263bc MD |
953 | u_int which; char which_[PAD_(u_int)]; |
| 954 | struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)]; | |
| 955 | }; | |
| 956 | struct __setrlimit_args { | |
| 245e4f17 | 957 | #ifdef _KERNEL |
| df2244e3 | 958 | struct sysmsg sysmsg; |
| 245e4f17 | 959 | #endif |
| 984263bc MD |
960 | u_int which; char which_[PAD_(u_int)]; |
| 961 | struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)]; | |
| 962 | }; | |
| 984263bc | 963 | struct mmap_args { |
| 245e4f17 | 964 | #ifdef _KERNEL |
| df2244e3 | 965 | struct sysmsg sysmsg; |
| 245e4f17 | 966 | #endif |
| 984263bc MD |
967 | caddr_t addr; char addr_[PAD_(caddr_t)]; |
| 968 | size_t len; char len_[PAD_(size_t)]; | |
| 969 | int prot; char prot_[PAD_(int)]; | |
| 970 | int flags; char flags_[PAD_(int)]; | |
| 971 | int fd; char fd_[PAD_(int)]; | |
| 972 | int pad; char pad_[PAD_(int)]; | |
| 973 | off_t pos; char pos_[PAD_(off_t)]; | |
| 974 | }; | |
| 975 | struct lseek_args { | |
| 245e4f17 | 976 | #ifdef _KERNEL |
| df2244e3 | 977 | struct sysmsg sysmsg; |
| 245e4f17 | 978 | #endif |
| 984263bc MD |
979 | int fd; char fd_[PAD_(int)]; |
| 980 | int pad; char pad_[PAD_(int)]; | |
| 981 | off_t offset; char offset_[PAD_(off_t)]; | |
| 982 | int whence; char whence_[PAD_(int)]; | |
| 983 | }; | |
| 984 | struct truncate_args { | |
| 245e4f17 | 985 | #ifdef _KERNEL |
| df2244e3 | 986 | struct sysmsg sysmsg; |
| 245e4f17 | 987 | #endif |
| 984263bc MD |
988 | char * path; char path_[PAD_(char *)]; |
| 989 | int pad; char pad_[PAD_(int)]; | |
| 990 | off_t length; char length_[PAD_(off_t)]; | |
| 991 | }; | |
| 992 | struct ftruncate_args { | |
| 245e4f17 | 993 | #ifdef _KERNEL |
| df2244e3 | 994 | struct sysmsg sysmsg; |
| 245e4f17 | 995 | #endif |
| 984263bc MD |
996 | int fd; char fd_[PAD_(int)]; |
| 997 | int pad; char pad_[PAD_(int)]; | |
| 998 | off_t length; char length_[PAD_(off_t)]; | |
| 999 | }; | |
| 1000 | struct sysctl_args { | |
| 245e4f17 | 1001 | #ifdef _KERNEL |
| df2244e3 | 1002 | struct sysmsg sysmsg; |
| 245e4f17 | 1003 | #endif |
| 984263bc MD |
1004 | int * name; char name_[PAD_(int *)]; |
| 1005 | u_int namelen; char namelen_[PAD_(u_int)]; | |
| 1006 | void * old; char old_[PAD_(void *)]; | |
| 1007 | size_t * oldlenp; char oldlenp_[PAD_(size_t *)]; | |
| 1008 | void * new; char new_[PAD_(void *)]; | |
| 1009 | size_t newlen; char newlen_[PAD_(size_t)]; | |
| 1010 | }; | |
| 1011 | struct mlock_args { | |
| 245e4f17 | 1012 | #ifdef _KERNEL |
| df2244e3 | 1013 | struct sysmsg sysmsg; |
| 245e4f17 | 1014 | #endif |
| 984263bc MD |
1015 | const void * addr; char addr_[PAD_(const void *)]; |
| 1016 | size_t len; char len_[PAD_(size_t)]; | |
| 1017 | }; | |
| 1018 | struct munlock_args { | |
| 245e4f17 | 1019 | #ifdef _KERNEL |
| df2244e3 | 1020 | struct sysmsg sysmsg; |
| 245e4f17 | 1021 | #endif |
| 984263bc MD |
1022 | const void * addr; char addr_[PAD_(const void *)]; |
| 1023 | size_t len; char len_[PAD_(size_t)]; | |
| 1024 | }; | |
| 1025 | struct undelete_args { | |
| 245e4f17 | 1026 | #ifdef _KERNEL |
| df2244e3 | 1027 | struct sysmsg sysmsg; |
| 245e4f17 | 1028 | #endif |
| 984263bc MD |
1029 | char * path; char path_[PAD_(char *)]; |
| 1030 | }; | |
| 1031 | struct futimes_args { | |
| 245e4f17 | 1032 | #ifdef _KERNEL |
| df2244e3 | 1033 | struct sysmsg sysmsg; |
| 245e4f17 | 1034 | #endif |
| 984263bc MD |
1035 | int fd; char fd_[PAD_(int)]; |
| 1036 | struct timeval * tptr; char tptr_[PAD_(struct timeval *)]; | |
| 1037 | }; | |
| 1038 | struct getpgid_args { | |
| 245e4f17 | 1039 | #ifdef _KERNEL |
| df2244e3 | 1040 | struct sysmsg sysmsg; |
| 245e4f17 | 1041 | #endif |
| 984263bc MD |
1042 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1043 | }; | |
| 1044 | struct poll_args { | |
| 245e4f17 | 1045 | #ifdef _KERNEL |
| df2244e3 | 1046 | struct sysmsg sysmsg; |
| 245e4f17 | 1047 | #endif |
| 984263bc MD |
1048 | struct pollfd * fds; char fds_[PAD_(struct pollfd *)]; |
| 1049 | u_int nfds; char nfds_[PAD_(u_int)]; | |
| 1050 | int timeout; char timeout_[PAD_(int)]; | |
| 1051 | }; | |
| 1052 | struct __semctl_args { | |
| 245e4f17 | 1053 | #ifdef _KERNEL |
| df2244e3 | 1054 | struct sysmsg sysmsg; |
| 245e4f17 | 1055 | #endif |
| 984263bc MD |
1056 | int semid; char semid_[PAD_(int)]; |
| 1057 | int semnum; char semnum_[PAD_(int)]; | |
| 1058 | int cmd; char cmd_[PAD_(int)]; | |
| 1059 | union semun * arg; char arg_[PAD_(union semun *)]; | |
| 1060 | }; | |
| 1061 | struct semget_args { | |
| 245e4f17 | 1062 | #ifdef _KERNEL |
| df2244e3 | 1063 | struct sysmsg sysmsg; |
| 245e4f17 | 1064 | #endif |
| 984263bc MD |
1065 | key_t key; char key_[PAD_(key_t)]; |
| 1066 | int nsems; char nsems_[PAD_(int)]; | |
| 1067 | int semflg; char semflg_[PAD_(int)]; | |
| 1068 | }; | |
| 1069 | struct semop_args { | |
| 245e4f17 | 1070 | #ifdef _KERNEL |
| df2244e3 | 1071 | struct sysmsg sysmsg; |
| 245e4f17 | 1072 | #endif |
| 984263bc MD |
1073 | int semid; char semid_[PAD_(int)]; |
| 1074 | struct sembuf * sops; char sops_[PAD_(struct sembuf *)]; | |
| 1075 | u_int nsops; char nsops_[PAD_(u_int)]; | |
| 1076 | }; | |
| 1077 | struct msgctl_args { | |
| 245e4f17 | 1078 | #ifdef _KERNEL |
| df2244e3 | 1079 | struct sysmsg sysmsg; |
| 245e4f17 | 1080 | #endif |
| 984263bc MD |
1081 | int msqid; char msqid_[PAD_(int)]; |
| 1082 | int cmd; char cmd_[PAD_(int)]; | |
| 1083 | struct msqid_ds * buf; char buf_[PAD_(struct msqid_ds *)]; | |
| 1084 | }; | |
| 1085 | struct msgget_args { | |
| 245e4f17 | 1086 | #ifdef _KERNEL |
| df2244e3 | 1087 | struct sysmsg sysmsg; |
| 245e4f17 | 1088 | #endif |
| 984263bc MD |
1089 | key_t key; char key_[PAD_(key_t)]; |
| 1090 | int msgflg; char msgflg_[PAD_(int)]; | |
| 1091 | }; | |
| 1092 | struct msgsnd_args { | |
| 245e4f17 | 1093 | #ifdef _KERNEL |
| df2244e3 | 1094 | struct sysmsg sysmsg; |
| 245e4f17 | 1095 | #endif |
| 984263bc MD |
1096 | int msqid; char msqid_[PAD_(int)]; |
| 1097 | void * msgp; char msgp_[PAD_(void *)]; | |
| 1098 | size_t msgsz; char msgsz_[PAD_(size_t)]; | |
| 1099 | int msgflg; char msgflg_[PAD_(int)]; | |
| 1100 | }; | |
| 1101 | struct msgrcv_args { | |
| 245e4f17 | 1102 | #ifdef _KERNEL |
| df2244e3 | 1103 | struct sysmsg sysmsg; |
| 245e4f17 | 1104 | #endif |
| 984263bc MD |
1105 | int msqid; char msqid_[PAD_(int)]; |
| 1106 | void * msgp; char msgp_[PAD_(void *)]; | |
| 1107 | size_t msgsz; char msgsz_[PAD_(size_t)]; | |
| 1108 | long msgtyp; char msgtyp_[PAD_(long)]; | |
| 1109 | int msgflg; char msgflg_[PAD_(int)]; | |
| 1110 | }; | |
| 1111 | struct shmat_args { | |
| 245e4f17 | 1112 | #ifdef _KERNEL |
| df2244e3 | 1113 | struct sysmsg sysmsg; |
| 245e4f17 | 1114 | #endif |
| 984263bc | 1115 | int shmid; char shmid_[PAD_(int)]; |
| 468e7a83 | 1116 | const void * shmaddr; char shmaddr_[PAD_(const void *)]; |
| 984263bc MD |
1117 | int shmflg; char shmflg_[PAD_(int)]; |
| 1118 | }; | |
| 1119 | struct shmctl_args { | |
| 245e4f17 | 1120 | #ifdef _KERNEL |
| df2244e3 | 1121 | struct sysmsg sysmsg; |
| 245e4f17 | 1122 | #endif |
| 984263bc MD |
1123 | int shmid; char shmid_[PAD_(int)]; |
| 1124 | int cmd; char cmd_[PAD_(int)]; | |
| 1125 | struct shmid_ds * buf; char buf_[PAD_(struct shmid_ds *)]; | |
| 1126 | }; | |
| 1127 | struct shmdt_args { | |
| 245e4f17 | 1128 | #ifdef _KERNEL |
| df2244e3 | 1129 | struct sysmsg sysmsg; |
| 245e4f17 | 1130 | #endif |
| 468e7a83 | 1131 | const void * shmaddr; char shmaddr_[PAD_(const void *)]; |
| 984263bc MD |
1132 | }; |
| 1133 | struct shmget_args { | |
| 245e4f17 | 1134 | #ifdef _KERNEL |
| df2244e3 | 1135 | struct sysmsg sysmsg; |
| 245e4f17 | 1136 | #endif |
| 984263bc | 1137 | key_t key; char key_[PAD_(key_t)]; |
| 8509e6aa | 1138 | size_t size; char size_[PAD_(size_t)]; |
| 984263bc MD |
1139 | int shmflg; char shmflg_[PAD_(int)]; |
| 1140 | }; | |
| 1141 | struct clock_gettime_args { | |
| 245e4f17 | 1142 | #ifdef _KERNEL |
| df2244e3 | 1143 | struct sysmsg sysmsg; |
| 245e4f17 | 1144 | #endif |
| 984263bc MD |
1145 | clockid_t clock_id; char clock_id_[PAD_(clockid_t)]; |
| 1146 | struct timespec * tp; char tp_[PAD_(struct timespec *)]; | |
| 1147 | }; | |
| 1148 | struct clock_settime_args { | |
| 245e4f17 | 1149 | #ifdef _KERNEL |
| df2244e3 | 1150 | struct sysmsg sysmsg; |
| 245e4f17 | 1151 | #endif |
| 984263bc MD |
1152 | clockid_t clock_id; char clock_id_[PAD_(clockid_t)]; |
| 1153 | const struct timespec * tp; char tp_[PAD_(const struct timespec *)]; | |
| 1154 | }; | |
| 1155 | struct clock_getres_args { | |
| 245e4f17 | 1156 | #ifdef _KERNEL |
| df2244e3 | 1157 | struct sysmsg sysmsg; |
| 245e4f17 | 1158 | #endif |
| 984263bc MD |
1159 | clockid_t clock_id; char clock_id_[PAD_(clockid_t)]; |
| 1160 | struct timespec * tp; char tp_[PAD_(struct timespec *)]; | |
| 1161 | }; | |
| 1162 | struct nanosleep_args { | |
| 245e4f17 | 1163 | #ifdef _KERNEL |
| df2244e3 | 1164 | struct sysmsg sysmsg; |
| 245e4f17 | 1165 | #endif |
| 984263bc MD |
1166 | const struct timespec * rqtp; char rqtp_[PAD_(const struct timespec *)]; |
| 1167 | struct timespec * rmtp; char rmtp_[PAD_(struct timespec *)]; | |
| 1168 | }; | |
| 1169 | struct minherit_args { | |
| 245e4f17 | 1170 | #ifdef _KERNEL |
| df2244e3 | 1171 | struct sysmsg sysmsg; |
| 245e4f17 | 1172 | #endif |
| 984263bc MD |
1173 | void * addr; char addr_[PAD_(void *)]; |
| 1174 | size_t len; char len_[PAD_(size_t)]; | |
| 1175 | int inherit; char inherit_[PAD_(int)]; | |
| 1176 | }; | |
| 1177 | struct rfork_args { | |
| 245e4f17 | 1178 | #ifdef _KERNEL |
| df2244e3 | 1179 | struct sysmsg sysmsg; |
| 245e4f17 | 1180 | #endif |
| 984263bc MD |
1181 | int flags; char flags_[PAD_(int)]; |
| 1182 | }; | |
| 1183 | struct openbsd_poll_args { | |
| 245e4f17 | 1184 | #ifdef _KERNEL |
| df2244e3 | 1185 | struct sysmsg sysmsg; |
| 245e4f17 | 1186 | #endif |
| 984263bc MD |
1187 | struct pollfd * fds; char fds_[PAD_(struct pollfd *)]; |
| 1188 | u_int nfds; char nfds_[PAD_(u_int)]; | |
| 1189 | int timeout; char timeout_[PAD_(int)]; | |
| 1190 | }; | |
| 1191 | struct issetugid_args { | |
| 245e4f17 | 1192 | #ifdef _KERNEL |
| df2244e3 | 1193 | struct sysmsg sysmsg; |
| 245e4f17 | 1194 | #endif |
| 984263bc MD |
1195 | register_t dummy; |
| 1196 | }; | |
| 1197 | struct lchown_args { | |
| 245e4f17 | 1198 | #ifdef _KERNEL |
| df2244e3 | 1199 | struct sysmsg sysmsg; |
| 245e4f17 | 1200 | #endif |
| 984263bc MD |
1201 | char * path; char path_[PAD_(char *)]; |
| 1202 | int uid; char uid_[PAD_(int)]; | |
| 1203 | int gid; char gid_[PAD_(int)]; | |
| 1204 | }; | |
| 984263bc | 1205 | struct lchmod_args { |
| 245e4f17 | 1206 | #ifdef _KERNEL |
| df2244e3 | 1207 | struct sysmsg sysmsg; |
| 245e4f17 | 1208 | #endif |
| 984263bc MD |
1209 | char * path; char path_[PAD_(char *)]; |
| 1210 | mode_t mode; char mode_[PAD_(mode_t)]; | |
| 1211 | }; | |
| 1212 | struct lutimes_args { | |
| 245e4f17 | 1213 | #ifdef _KERNEL |
| df2244e3 | 1214 | struct sysmsg sysmsg; |
| 245e4f17 | 1215 | #endif |
| 984263bc MD |
1216 | char * path; char path_[PAD_(char *)]; |
| 1217 | struct timeval * tptr; char tptr_[PAD_(struct timeval *)]; | |
| 1218 | }; | |
| b09fd398 | 1219 | struct extpreadv_args { |
| 7f83ed38 MD |
1220 | #ifdef _KERNEL |
| 1221 | struct sysmsg sysmsg; | |
| 1222 | #endif | |
| 7f83ed38 MD |
1223 | int fd; char fd_[PAD_(int)]; |
| 1224 | struct iovec * iovp; char iovp_[PAD_(struct iovec *)]; | |
| 1225 | u_int iovcnt; char iovcnt_[PAD_(u_int)]; | |
| 9ba76b73 | 1226 | int flags; char flags_[PAD_(int)]; |
| 7f83ed38 MD |
1227 | off_t offset; char offset_[PAD_(off_t)]; |
| 1228 | }; | |
| b09fd398 | 1229 | struct extpwritev_args { |
| 7f83ed38 MD |
1230 | #ifdef _KERNEL |
| 1231 | struct sysmsg sysmsg; | |
| 1232 | #endif | |
| 7f83ed38 MD |
1233 | int fd; char fd_[PAD_(int)]; |
| 1234 | struct iovec * iovp; char iovp_[PAD_(struct iovec *)]; | |
| 1235 | u_int iovcnt; char iovcnt_[PAD_(u_int)]; | |
| 9ba76b73 | 1236 | int flags; char flags_[PAD_(int)]; |
| 7f83ed38 MD |
1237 | off_t offset; char offset_[PAD_(off_t)]; |
| 1238 | }; | |
| 984263bc | 1239 | struct fhstatfs_args { |
| 245e4f17 | 1240 | #ifdef _KERNEL |
| df2244e3 | 1241 | struct sysmsg sysmsg; |
| 245e4f17 | 1242 | #endif |
| 984263bc MD |
1243 | const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)]; |
| 1244 | struct statfs * buf; char buf_[PAD_(struct statfs *)]; | |
| 1245 | }; | |
| 1246 | struct fhopen_args { | |
| 245e4f17 | 1247 | #ifdef _KERNEL |
| df2244e3 | 1248 | struct sysmsg sysmsg; |
| 245e4f17 | 1249 | #endif |
| 984263bc MD |
1250 | const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)]; |
| 1251 | int flags; char flags_[PAD_(int)]; | |
| 1252 | }; | |
| 984263bc | 1253 | struct modnext_args { |
| 245e4f17 | 1254 | #ifdef _KERNEL |
| df2244e3 | 1255 | struct sysmsg sysmsg; |
| 245e4f17 | 1256 | #endif |
| 984263bc MD |
1257 | int modid; char modid_[PAD_(int)]; |
| 1258 | }; | |
| 1259 | struct modstat_args { | |
| 245e4f17 | 1260 | #ifdef _KERNEL |
| df2244e3 | 1261 | struct sysmsg sysmsg; |
| 245e4f17 | 1262 | #endif |
| 984263bc MD |
1263 | int modid; char modid_[PAD_(int)]; |
| 1264 | struct module_stat * stat; char stat_[PAD_(struct module_stat *)]; | |
| 1265 | }; | |
| 1266 | struct modfnext_args { | |
| 245e4f17 | 1267 | #ifdef _KERNEL |
| df2244e3 | 1268 | struct sysmsg sysmsg; |
| 245e4f17 | 1269 | #endif |
| 984263bc MD |
1270 | int modid; char modid_[PAD_(int)]; |
| 1271 | }; | |
| 1272 | struct modfind_args { | |
| 245e4f17 | 1273 | #ifdef _KERNEL |
| df2244e3 | 1274 | struct sysmsg sysmsg; |
| 245e4f17 | 1275 | #endif |
| 984263bc MD |
1276 | const char * name; char name_[PAD_(const char *)]; |
| 1277 | }; | |
| 1278 | struct kldload_args { | |
| 245e4f17 | 1279 | #ifdef _KERNEL |
| df2244e3 | 1280 | struct sysmsg sysmsg; |
| 245e4f17 | 1281 | #endif |
| 984263bc MD |
1282 | const char * file; char file_[PAD_(const char *)]; |
| 1283 | }; | |
| 1284 | struct kldunload_args { | |
| 245e4f17 | 1285 | #ifdef _KERNEL |
| df2244e3 | 1286 | struct sysmsg sysmsg; |
| 245e4f17 | 1287 | #endif |
| 984263bc MD |
1288 | int fileid; char fileid_[PAD_(int)]; |
| 1289 | }; | |
| 1290 | struct kldfind_args { | |
| 245e4f17 | 1291 | #ifdef _KERNEL |
| df2244e3 | 1292 | struct sysmsg sysmsg; |
| 245e4f17 | 1293 | #endif |
| 984263bc MD |
1294 | const char * file; char file_[PAD_(const char *)]; |
| 1295 | }; | |
| 1296 | struct kldnext_args { | |
| 245e4f17 | 1297 | #ifdef _KERNEL |
| df2244e3 | 1298 | struct sysmsg sysmsg; |
| 245e4f17 | 1299 | #endif |
| 984263bc MD |
1300 | int fileid; char fileid_[PAD_(int)]; |
| 1301 | }; | |
| 1302 | struct kldstat_args { | |
| 245e4f17 | 1303 | #ifdef _KERNEL |
| df2244e3 | 1304 | struct sysmsg sysmsg; |
| 245e4f17 | 1305 | #endif |
| 984263bc MD |
1306 | int fileid; char fileid_[PAD_(int)]; |
| 1307 | struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)]; | |
| 1308 | }; | |
| 1309 | struct kldfirstmod_args { | |
| 245e4f17 | 1310 | #ifdef _KERNEL |
| df2244e3 | 1311 | struct sysmsg sysmsg; |
| 245e4f17 | 1312 | #endif |
| 984263bc MD |
1313 | int fileid; char fileid_[PAD_(int)]; |
| 1314 | }; | |
| 1315 | struct getsid_args { | |
| 245e4f17 | 1316 | #ifdef _KERNEL |
| df2244e3 | 1317 | struct sysmsg sysmsg; |
| 245e4f17 | 1318 | #endif |
| 984263bc MD |
1319 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1320 | }; | |
| 1321 | struct setresuid_args { | |
| 245e4f17 | 1322 | #ifdef _KERNEL |
| df2244e3 | 1323 | struct sysmsg sysmsg; |
| 245e4f17 | 1324 | #endif |
| 984263bc MD |
1325 | uid_t ruid; char ruid_[PAD_(uid_t)]; |
| 1326 | uid_t euid; char euid_[PAD_(uid_t)]; | |
| 1327 | uid_t suid; char suid_[PAD_(uid_t)]; | |
| 1328 | }; | |
| 1329 | struct setresgid_args { | |
| 245e4f17 | 1330 | #ifdef _KERNEL |
| df2244e3 | 1331 | struct sysmsg sysmsg; |
| 245e4f17 | 1332 | #endif |
| 984263bc MD |
1333 | gid_t rgid; char rgid_[PAD_(gid_t)]; |
| 1334 | gid_t egid; char egid_[PAD_(gid_t)]; | |
| 1335 | gid_t sgid; char sgid_[PAD_(gid_t)]; | |
| 1336 | }; | |
| 1337 | struct aio_return_args { | |
| 245e4f17 | 1338 | #ifdef _KERNEL |
| df2244e3 | 1339 | struct sysmsg sysmsg; |
| 245e4f17 | 1340 | #endif |
| 984263bc MD |
1341 | struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)]; |
| 1342 | }; | |
| 1343 | struct aio_suspend_args { | |
| 245e4f17 | 1344 | #ifdef _KERNEL |
| df2244e3 | 1345 | struct sysmsg sysmsg; |
| 245e4f17 | 1346 | #endif |
| 984263bc MD |
1347 | struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)]; |
| 1348 | int nent; char nent_[PAD_(int)]; | |
| 1349 | const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)]; | |
| 1350 | }; | |
| 1351 | struct aio_cancel_args { | |
| 245e4f17 | 1352 | #ifdef _KERNEL |
| df2244e3 | 1353 | struct sysmsg sysmsg; |
| 245e4f17 | 1354 | #endif |
| 984263bc MD |
1355 | int fd; char fd_[PAD_(int)]; |
| 1356 | struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)]; | |
| 1357 | }; | |
| 1358 | struct aio_error_args { | |
| 245e4f17 | 1359 | #ifdef _KERNEL |
| df2244e3 | 1360 | struct sysmsg sysmsg; |
| 245e4f17 | 1361 | #endif |
| 984263bc MD |
1362 | struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)]; |
| 1363 | }; | |
| 1364 | struct aio_read_args { | |
| 245e4f17 | 1365 | #ifdef _KERNEL |
| df2244e3 | 1366 | struct sysmsg sysmsg; |
| 245e4f17 | 1367 | #endif |
| 984263bc MD |
1368 | struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)]; |
| 1369 | }; | |
| 1370 | struct aio_write_args { | |
| 245e4f17 | 1371 | #ifdef _KERNEL |
| df2244e3 | 1372 | struct sysmsg sysmsg; |
| 245e4f17 | 1373 | #endif |
| 984263bc MD |
1374 | struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)]; |
| 1375 | }; | |
| 1376 | struct lio_listio_args { | |
| 245e4f17 | 1377 | #ifdef _KERNEL |
| df2244e3 | 1378 | struct sysmsg sysmsg; |
| 245e4f17 | 1379 | #endif |
| 984263bc MD |
1380 | int mode; char mode_[PAD_(int)]; |
| 1381 | struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)]; | |
| 1382 | int nent; char nent_[PAD_(int)]; | |
| 1383 | struct sigevent * sig; char sig_[PAD_(struct sigevent *)]; | |
| 1384 | }; | |
| 1385 | struct yield_args { | |
| 245e4f17 | 1386 | #ifdef _KERNEL |
| df2244e3 | 1387 | struct sysmsg sysmsg; |
| 245e4f17 | 1388 | #endif |
| 984263bc MD |
1389 | register_t dummy; |
| 1390 | }; | |
| 984263bc | 1391 | struct mlockall_args { |
| 245e4f17 | 1392 | #ifdef _KERNEL |
| df2244e3 | 1393 | struct sysmsg sysmsg; |
| 245e4f17 | 1394 | #endif |
| 984263bc MD |
1395 | int how; char how_[PAD_(int)]; |
| 1396 | }; | |
| 1397 | struct munlockall_args { | |
| 245e4f17 | 1398 | #ifdef _KERNEL |
| df2244e3 | 1399 | struct sysmsg sysmsg; |
| 245e4f17 | 1400 | #endif |
| 984263bc MD |
1401 | register_t dummy; |
| 1402 | }; | |
| 1403 | struct __getcwd_args { | |
| 245e4f17 | 1404 | #ifdef _KERNEL |
| df2244e3 | 1405 | struct sysmsg sysmsg; |
| 245e4f17 | 1406 | #endif |
| 984263bc MD |
1407 | u_char * buf; char buf_[PAD_(u_char *)]; |
| 1408 | u_int buflen; char buflen_[PAD_(u_int)]; | |
| 1409 | }; | |
| 1410 | struct sched_setparam_args { | |
| 245e4f17 | 1411 | #ifdef _KERNEL |
| df2244e3 | 1412 | struct sysmsg sysmsg; |
| 245e4f17 | 1413 | #endif |
| 984263bc MD |
1414 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1415 | const struct sched_param * param; char param_[PAD_(const struct sched_param *)]; | |
| 1416 | }; | |
| 1417 | struct sched_getparam_args { | |
| 245e4f17 | 1418 | #ifdef _KERNEL |
| df2244e3 | 1419 | struct sysmsg sysmsg; |
| 245e4f17 | 1420 | #endif |
| 984263bc MD |
1421 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1422 | struct sched_param * param; char param_[PAD_(struct sched_param *)]; | |
| 1423 | }; | |
| 1424 | struct sched_setscheduler_args { | |
| 245e4f17 | 1425 | #ifdef _KERNEL |
| df2244e3 | 1426 | struct sysmsg sysmsg; |
| 245e4f17 | 1427 | #endif |
| 984263bc MD |
1428 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1429 | int policy; char policy_[PAD_(int)]; | |
| 1430 | const struct sched_param * param; char param_[PAD_(const struct sched_param *)]; | |
| 1431 | }; | |
| 1432 | struct sched_getscheduler_args { | |
| 245e4f17 | 1433 | #ifdef _KERNEL |
| df2244e3 | 1434 | struct sysmsg sysmsg; |
| 245e4f17 | 1435 | #endif |
| 984263bc MD |
1436 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1437 | }; | |
| 1438 | struct sched_yield_args { | |
| 245e4f17 | 1439 | #ifdef _KERNEL |
| df2244e3 | 1440 | struct sysmsg sysmsg; |
| 245e4f17 | 1441 | #endif |
| 984263bc MD |
1442 | register_t dummy; |
| 1443 | }; | |
| 1444 | struct sched_get_priority_max_args { | |
| 245e4f17 | 1445 | #ifdef _KERNEL |
| df2244e3 | 1446 | struct sysmsg sysmsg; |
| 245e4f17 | 1447 | #endif |
| 984263bc MD |
1448 | int policy; char policy_[PAD_(int)]; |
| 1449 | }; | |
| 1450 | struct sched_get_priority_min_args { | |
| 245e4f17 | 1451 | #ifdef _KERNEL |
| df2244e3 | 1452 | struct sysmsg sysmsg; |
| 245e4f17 | 1453 | #endif |
| 984263bc MD |
1454 | int policy; char policy_[PAD_(int)]; |
| 1455 | }; | |
| 1456 | struct sched_rr_get_interval_args { | |
| 245e4f17 | 1457 | #ifdef _KERNEL |
| df2244e3 | 1458 | struct sysmsg sysmsg; |
| 245e4f17 | 1459 | #endif |
| 984263bc MD |
1460 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1461 | struct timespec * interval; char interval_[PAD_(struct timespec *)]; | |
| 1462 | }; | |
| 1463 | struct utrace_args { | |
| 245e4f17 | 1464 | #ifdef _KERNEL |
| df2244e3 | 1465 | struct sysmsg sysmsg; |
| 245e4f17 | 1466 | #endif |
| 984263bc MD |
1467 | const void * addr; char addr_[PAD_(const void *)]; |
| 1468 | size_t len; char len_[PAD_(size_t)]; | |
| 1469 | }; | |
| 1470 | struct kldsym_args { | |
| 245e4f17 | 1471 | #ifdef _KERNEL |
| df2244e3 | 1472 | struct sysmsg sysmsg; |
| 245e4f17 | 1473 | #endif |
| 984263bc MD |
1474 | int fileid; char fileid_[PAD_(int)]; |
| 1475 | int cmd; char cmd_[PAD_(int)]; | |
| 1476 | void * data; char data_[PAD_(void *)]; | |
| 1477 | }; | |
| 1478 | struct jail_args { | |
| 245e4f17 | 1479 | #ifdef _KERNEL |
| df2244e3 | 1480 | struct sysmsg sysmsg; |
| 245e4f17 | 1481 | #endif |
| 984263bc MD |
1482 | struct jail * jail; char jail_[PAD_(struct jail *)]; |
| 1483 | }; | |
| 1484 | struct sigprocmask_args { | |
| 245e4f17 | 1485 | #ifdef _KERNEL |
| df2244e3 | 1486 | struct sysmsg sysmsg; |
| 245e4f17 | 1487 | #endif |
| 984263bc MD |
1488 | int how; char how_[PAD_(int)]; |
| 1489 | const sigset_t * set; char set_[PAD_(const sigset_t *)]; | |
| 1490 | sigset_t * oset; char oset_[PAD_(sigset_t *)]; | |
| 1491 | }; | |
| 1492 | struct sigsuspend_args { | |
| 245e4f17 | 1493 | #ifdef _KERNEL |
| df2244e3 | 1494 | struct sysmsg sysmsg; |
| 245e4f17 | 1495 | #endif |
| 984263bc MD |
1496 | const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)]; |
| 1497 | }; | |
| 1498 | struct sigaction_args { | |
| 245e4f17 | 1499 | #ifdef _KERNEL |
| df2244e3 | 1500 | struct sysmsg sysmsg; |
| 245e4f17 | 1501 | #endif |
| 984263bc MD |
1502 | int sig; char sig_[PAD_(int)]; |
| 1503 | const struct sigaction * act; char act_[PAD_(const struct sigaction *)]; | |
| 1504 | struct sigaction * oact; char oact_[PAD_(struct sigaction *)]; | |
| 1505 | }; | |
| 1506 | struct sigpending_args { | |
| 245e4f17 | 1507 | #ifdef _KERNEL |
| df2244e3 | 1508 | struct sysmsg sysmsg; |
| 245e4f17 | 1509 | #endif |
| 984263bc MD |
1510 | sigset_t * set; char set_[PAD_(sigset_t *)]; |
| 1511 | }; | |
| 1512 | struct sigreturn_args { | |
| 245e4f17 | 1513 | #ifdef _KERNEL |
| df2244e3 | 1514 | struct sysmsg sysmsg; |
| 245e4f17 | 1515 | #endif |
| 984263bc MD |
1516 | ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)]; |
| 1517 | }; | |
| 3a59f0f7 DX |
1518 | struct sigtimedwait_args { |
| 1519 | #ifdef _KERNEL | |
| 1520 | struct sysmsg sysmsg; | |
| 1521 | #endif | |
| 3a59f0f7 DX |
1522 | const sigset_t * set; char set_[PAD_(const sigset_t *)]; |
| 1523 | siginfo_t * info; char info_[PAD_(siginfo_t *)]; | |
| 1524 | const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)]; | |
| 1525 | }; | |
| 1526 | struct sigwaitinfo_args { | |
| 1527 | #ifdef _KERNEL | |
| 1528 | struct sysmsg sysmsg; | |
| 1529 | #endif | |
| 3a59f0f7 DX |
1530 | const sigset_t * set; char set_[PAD_(const sigset_t *)]; |
| 1531 | siginfo_t * info; char info_[PAD_(siginfo_t *)]; | |
| 1532 | }; | |
| 984263bc | 1533 | struct __acl_get_file_args { |
| 245e4f17 | 1534 | #ifdef _KERNEL |
| df2244e3 | 1535 | struct sysmsg sysmsg; |
| 245e4f17 | 1536 | #endif |
| 984263bc MD |
1537 | const char * path; char path_[PAD_(const char *)]; |
| 1538 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1539 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1540 | }; | |
| 1541 | struct __acl_set_file_args { | |
| 245e4f17 | 1542 | #ifdef _KERNEL |
| df2244e3 | 1543 | struct sysmsg sysmsg; |
| 245e4f17 | 1544 | #endif |
| 984263bc MD |
1545 | const char * path; char path_[PAD_(const char *)]; |
| 1546 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1547 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1548 | }; | |
| 1549 | struct __acl_get_fd_args { | |
| 245e4f17 | 1550 | #ifdef _KERNEL |
| df2244e3 | 1551 | struct sysmsg sysmsg; |
| 245e4f17 | 1552 | #endif |
| 984263bc MD |
1553 | int filedes; char filedes_[PAD_(int)]; |
| 1554 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1555 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1556 | }; | |
| 1557 | struct __acl_set_fd_args { | |
| 245e4f17 | 1558 | #ifdef _KERNEL |
| df2244e3 | 1559 | struct sysmsg sysmsg; |
| 245e4f17 | 1560 | #endif |
| 984263bc MD |
1561 | int filedes; char filedes_[PAD_(int)]; |
| 1562 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1563 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1564 | }; | |
| 1565 | struct __acl_delete_file_args { | |
| 245e4f17 | 1566 | #ifdef _KERNEL |
| df2244e3 | 1567 | struct sysmsg sysmsg; |
| 245e4f17 | 1568 | #endif |
| 984263bc MD |
1569 | const char * path; char path_[PAD_(const char *)]; |
| 1570 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1571 | }; | |
| 1572 | struct __acl_delete_fd_args { | |
| 245e4f17 | 1573 | #ifdef _KERNEL |
| df2244e3 | 1574 | struct sysmsg sysmsg; |
| 245e4f17 | 1575 | #endif |
| 984263bc MD |
1576 | int filedes; char filedes_[PAD_(int)]; |
| 1577 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1578 | }; | |
| 1579 | struct __acl_aclcheck_file_args { | |
| 245e4f17 | 1580 | #ifdef _KERNEL |
| df2244e3 | 1581 | struct sysmsg sysmsg; |
| 245e4f17 | 1582 | #endif |
| 984263bc MD |
1583 | const char * path; char path_[PAD_(const char *)]; |
| 1584 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1585 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1586 | }; | |
| 1587 | struct __acl_aclcheck_fd_args { | |
| 245e4f17 | 1588 | #ifdef _KERNEL |
| df2244e3 | 1589 | struct sysmsg sysmsg; |
| 245e4f17 | 1590 | #endif |
| 984263bc MD |
1591 | int filedes; char filedes_[PAD_(int)]; |
| 1592 | acl_type_t type; char type_[PAD_(acl_type_t)]; | |
| 1593 | struct acl * aclp; char aclp_[PAD_(struct acl *)]; | |
| 1594 | }; | |
| 1595 | struct extattrctl_args { | |
| 245e4f17 | 1596 | #ifdef _KERNEL |
| df2244e3 | 1597 | struct sysmsg sysmsg; |
| 245e4f17 | 1598 | #endif |
| 984263bc MD |
1599 | const char * path; char path_[PAD_(const char *)]; |
| 1600 | int cmd; char cmd_[PAD_(int)]; | |
| 92afa1aa MD |
1601 | const char * filename; char filename_[PAD_(const char *)]; |
| 1602 | int attrnamespace; char attrnamespace_[PAD_(int)]; | |
| 984263bc | 1603 | const char * attrname; char attrname_[PAD_(const char *)]; |
| 984263bc MD |
1604 | }; |
| 1605 | struct extattr_set_file_args { | |
| 245e4f17 | 1606 | #ifdef _KERNEL |
| df2244e3 | 1607 | struct sysmsg sysmsg; |
| 245e4f17 | 1608 | #endif |
| 984263bc | 1609 | const char * path; char path_[PAD_(const char *)]; |
| 92afa1aa | 1610 | int attrnamespace; char attrnamespace_[PAD_(int)]; |
| 984263bc | 1611 | const char * attrname; char attrname_[PAD_(const char *)]; |
| 92afa1aa MD |
1612 | void * data; char data_[PAD_(void *)]; |
| 1613 | size_t nbytes; char nbytes_[PAD_(size_t)]; | |
| 984263bc MD |
1614 | }; |
| 1615 | struct extattr_get_file_args { | |
| 245e4f17 | 1616 | #ifdef _KERNEL |
| df2244e3 | 1617 | struct sysmsg sysmsg; |
| 245e4f17 | 1618 | #endif |
| 984263bc | 1619 | const char * path; char path_[PAD_(const char *)]; |
| 92afa1aa | 1620 | int attrnamespace; char attrnamespace_[PAD_(int)]; |
| 984263bc | 1621 | const char * attrname; char attrname_[PAD_(const char *)]; |
| 92afa1aa MD |
1622 | void * data; char data_[PAD_(void *)]; |
| 1623 | size_t nbytes; char nbytes_[PAD_(size_t)]; | |
| 984263bc MD |
1624 | }; |
| 1625 | struct extattr_delete_file_args { | |
| 245e4f17 | 1626 | #ifdef _KERNEL |
| df2244e3 | 1627 | struct sysmsg sysmsg; |
| 245e4f17 | 1628 | #endif |
| 984263bc | 1629 | const char * path; char path_[PAD_(const char *)]; |
| 92afa1aa | 1630 | int attrnamespace; char attrnamespace_[PAD_(int)]; |
| 984263bc MD |
1631 | const char * attrname; char attrname_[PAD_(const char *)]; |
| 1632 | }; | |
| 1633 | struct aio_waitcomplete_args { | |
| 245e4f17 | 1634 | #ifdef _KERNEL |
| df2244e3 | 1635 | struct sysmsg sysmsg; |
| 245e4f17 | 1636 | #endif |
| 984263bc MD |
1637 | struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)]; |
| 1638 | struct timespec * timeout; char timeout_[PAD_(struct timespec *)]; | |
| 1639 | }; | |
| 1640 | struct getresuid_args { | |
| 245e4f17 | 1641 | #ifdef _KERNEL |
| df2244e3 | 1642 | struct sysmsg sysmsg; |
| 245e4f17 | 1643 | #endif |
| 984263bc MD |
1644 | uid_t * ruid; char ruid_[PAD_(uid_t *)]; |
| 1645 | uid_t * euid; char euid_[PAD_(uid_t *)]; | |
| 1646 | uid_t * suid; char suid_[PAD_(uid_t *)]; | |
| 1647 | }; | |
| 1648 | struct getresgid_args { | |
| 245e4f17 | 1649 | #ifdef _KERNEL |
| df2244e3 | 1650 | struct sysmsg sysmsg; |
| 245e4f17 | 1651 | #endif |
| 984263bc MD |
1652 | gid_t * rgid; char rgid_[PAD_(gid_t *)]; |
| 1653 | gid_t * egid; char egid_[PAD_(gid_t *)]; | |
| 1654 | gid_t * sgid; char sgid_[PAD_(gid_t *)]; | |
| 1655 | }; | |
| 1656 | struct kqueue_args { | |
| 245e4f17 | 1657 | #ifdef _KERNEL |
| df2244e3 | 1658 | struct sysmsg sysmsg; |
| 245e4f17 | 1659 | #endif |
| 984263bc MD |
1660 | register_t dummy; |
| 1661 | }; | |
| 1662 | struct kevent_args { | |
| 245e4f17 | 1663 | #ifdef _KERNEL |
| df2244e3 | 1664 | struct sysmsg sysmsg; |
| 245e4f17 | 1665 | #endif |
| 984263bc MD |
1666 | int fd; char fd_[PAD_(int)]; |
| 1667 | const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)]; | |
| 1668 | int nchanges; char nchanges_[PAD_(int)]; | |
| 1669 | struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)]; | |
| 1670 | int nevents; char nevents_[PAD_(int)]; | |
| 1671 | const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)]; | |
| 1672 | }; | |
| 78812139 EN |
1673 | struct sctp_peeloff_args { |
| 1674 | #ifdef _KERNEL | |
| 1675 | struct sysmsg sysmsg; | |
| 1676 | #endif | |
| 78812139 EN |
1677 | int sd; char sd_[PAD_(int)]; |
| 1678 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 1679 | }; | |
| 91fdc001 PA |
1680 | struct lchflags_args { |
| 1681 | #ifdef _KERNEL | |
| 1682 | struct sysmsg sysmsg; | |
| 1683 | #endif | |
| 1684 | char * path; char path_[PAD_(char *)]; | |
| 1685 | int flags; char flags_[PAD_(int)]; | |
| 1686 | }; | |
| 2a0783db MD |
1687 | struct uuidgen_args { |
| 1688 | #ifdef _KERNEL | |
| 1689 | struct sysmsg sysmsg; | |
| 1690 | #endif | |
| 1691 | struct uuid * store; char store_[PAD_(struct uuid *)]; | |
| 1692 | int count; char count_[PAD_(int)]; | |
| 1693 | }; | |
| 984263bc | 1694 | struct sendfile_args { |
| 245e4f17 | 1695 | #ifdef _KERNEL |
| df2244e3 | 1696 | struct sysmsg sysmsg; |
| 245e4f17 | 1697 | #endif |
| 984263bc MD |
1698 | int fd; char fd_[PAD_(int)]; |
| 1699 | int s; char s_[PAD_(int)]; | |
| 1700 | off_t offset; char offset_[PAD_(off_t)]; | |
| 1701 | size_t nbytes; char nbytes_[PAD_(size_t)]; | |
| 1702 | struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)]; | |
| 1703 | off_t * sbytes; char sbytes_[PAD_(off_t *)]; | |
| 1704 | int flags; char flags_[PAD_(int)]; | |
| 1705 | }; | |
| 98a7f915 MD |
1706 | struct varsym_set_args { |
| 1707 | #ifdef _KERNEL | |
| df2244e3 | 1708 | struct sysmsg sysmsg; |
| 98a7f915 | 1709 | #endif |
| 98a7f915 MD |
1710 | int level; char level_[PAD_(int)]; |
| 1711 | const char * name; char name_[PAD_(const char *)]; | |
| 1712 | const char * data; char data_[PAD_(const char *)]; | |
| 1713 | }; | |
| 1714 | struct varsym_get_args { | |
| 1715 | #ifdef _KERNEL | |
| df2244e3 | 1716 | struct sysmsg sysmsg; |
| 98a7f915 | 1717 | #endif |
| 98a7f915 MD |
1718 | int mask; char mask_[PAD_(int)]; |
| 1719 | const char * wild; char wild_[PAD_(const char *)]; | |
| 1720 | char * buf; char buf_[PAD_(char *)]; | |
| 1721 | int bufsize; char bufsize_[PAD_(int)]; | |
| 1722 | }; | |
| 0a004aa2 MD |
1723 | struct varsym_list_args { |
| 1724 | #ifdef _KERNEL | |
| df2244e3 | 1725 | struct sysmsg sysmsg; |
| 0a004aa2 | 1726 | #endif |
| 0a004aa2 MD |
1727 | int level; char level_[PAD_(int)]; |
| 1728 | char * buf; char buf_[PAD_(char *)]; | |
| 1729 | int maxsize; char maxsize_[PAD_(int)]; | |
| 1730 | int * marker; char marker_[PAD_(int *)]; | |
| 1731 | }; | |
| 29802dbb MD |
1732 | struct exec_sys_register_args { |
| 1733 | #ifdef _KERNEL | |
| 1734 | struct sysmsg sysmsg; | |
| 1735 | #endif | |
| 29802dbb MD |
1736 | void * entry; char entry_[PAD_(void *)]; |
| 1737 | }; | |
| 1738 | struct exec_sys_unregister_args { | |
| 1739 | #ifdef _KERNEL | |
| 1740 | struct sysmsg sysmsg; | |
| 1741 | #endif | |
| 29802dbb MD |
1742 | int id; char id_[PAD_(int)]; |
| 1743 | }; | |
| 0ba6fbbf MD |
1744 | struct sys_checkpoint_args { |
| 1745 | #ifdef _KERNEL | |
| 1746 | struct sysmsg sysmsg; | |
| 1747 | #endif | |
| 0ba6fbbf MD |
1748 | int type; char type_[PAD_(int)]; |
| 1749 | int fd; char fd_[PAD_(int)]; | |
| 1750 | pid_t pid; char pid_[PAD_(pid_t)]; | |
| 1751 | int retval; char retval_[PAD_(int)]; | |
| 1752 | }; | |
| 949ecb9b MD |
1753 | struct mountctl_args { |
| 1754 | #ifdef _KERNEL | |
| 1755 | struct sysmsg sysmsg; | |
| 1756 | #endif | |
| da5fb9ef | 1757 | const char * path; char path_[PAD_(const char *)]; |
| 949ecb9b | 1758 | int op; char op_[PAD_(int)]; |
| 2281065e | 1759 | int fd; char fd_[PAD_(int)]; |
| 949ecb9b MD |
1760 | const void * ctl; char ctl_[PAD_(const void *)]; |
| 1761 | int ctllen; char ctllen_[PAD_(int)]; | |
| 1762 | void * buf; char buf_[PAD_(void *)]; | |
| 1763 | int buflen; char buflen_[PAD_(int)]; | |
| 1764 | }; | |
| da5fb9ef MD |
1765 | struct umtx_sleep_args { |
| 1766 | #ifdef _KERNEL | |
| 1767 | struct sysmsg sysmsg; | |
| 1768 | #endif | |
| 76798859 | 1769 | volatile const int * ptr; char ptr_[PAD_(volatile const int *)]; |
| da5fb9ef MD |
1770 | int value; char value_[PAD_(int)]; |
| 1771 | int timeout; char timeout_[PAD_(int)]; | |
| 1772 | }; | |
| 1773 | struct umtx_wakeup_args { | |
| 1774 | #ifdef _KERNEL | |
| 1775 | struct sysmsg sysmsg; | |
| 1776 | #endif | |
| 76798859 | 1777 | volatile const int * ptr; char ptr_[PAD_(volatile const int *)]; |
| da5fb9ef MD |
1778 | int count; char count_[PAD_(int)]; |
| 1779 | }; | |
| b9fca94d JS |
1780 | struct jail_attach_args { |
| 1781 | #ifdef _KERNEL | |
| 1782 | struct sysmsg sysmsg; | |
| 1783 | #endif | |
| b9fca94d JS |
1784 | int jid; char jid_[PAD_(int)]; |
| 1785 | }; | |
| ba491dfb | 1786 | struct set_tls_area_args { |
| 806bf111 MD |
1787 | #ifdef _KERNEL |
| 1788 | struct sysmsg sysmsg; | |
| 1789 | #endif | |
| 806bf111 MD |
1790 | int which; char which_[PAD_(int)]; |
| 1791 | struct tls_info * info; char info_[PAD_(struct tls_info *)]; | |
| 8383d6cf | 1792 | size_t infosize; char infosize_[PAD_(size_t)]; |
| 806bf111 | 1793 | }; |
| ba491dfb | 1794 | struct get_tls_area_args { |
| 806bf111 MD |
1795 | #ifdef _KERNEL |
| 1796 | struct sysmsg sysmsg; | |
| 1797 | #endif | |
| 806bf111 MD |
1798 | int which; char which_[PAD_(int)]; |
| 1799 | struct tls_info * info; char info_[PAD_(struct tls_info *)]; | |
| 8383d6cf | 1800 | size_t infosize; char infosize_[PAD_(size_t)]; |
| 806bf111 | 1801 | }; |
| ae5995b9 JS |
1802 | struct closefrom_args { |
| 1803 | #ifdef _KERNEL | |
| 1804 | struct sysmsg sysmsg; | |
| 1805 | #endif | |
| ae5995b9 JS |
1806 | int fd; char fd_[PAD_(int)]; |
| 1807 | }; | |
| f1787048 JS |
1808 | struct stat_args { |
| 1809 | #ifdef _KERNEL | |
| 1810 | struct sysmsg sysmsg; | |
| 1811 | #endif | |
| f1787048 JS |
1812 | const char * path; char path_[PAD_(const char *)]; |
| 1813 | struct stat * ub; char ub_[PAD_(struct stat *)]; | |
| 1814 | }; | |
| 1815 | struct fstat_args { | |
| 1816 | #ifdef _KERNEL | |
| 1817 | struct sysmsg sysmsg; | |
| 1818 | #endif | |
| f1787048 JS |
1819 | int fd; char fd_[PAD_(int)]; |
| 1820 | struct stat * sb; char sb_[PAD_(struct stat *)]; | |
| 1821 | }; | |
| 1822 | struct lstat_args { | |
| 1823 | #ifdef _KERNEL | |
| 1824 | struct sysmsg sysmsg; | |
| 1825 | #endif | |
| f1787048 JS |
1826 | const char * path; char path_[PAD_(const char *)]; |
| 1827 | struct stat * ub; char ub_[PAD_(struct stat *)]; | |
| 1828 | }; | |
| 1829 | struct fhstat_args { | |
| 4fd10eb6 | 1830 | #ifdef _KERNEL |
| f1787048 JS |
1831 | struct sysmsg sysmsg; |
| 1832 | #endif | |
| f1787048 JS |
1833 | const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)]; |
| 1834 | struct stat * sb; char sb_[PAD_(struct stat *)]; | |
| 1835 | }; | |
| 01f31ab3 JS |
1836 | struct getdirentries_args { |
| 1837 | #ifdef _KERNEL | |
| 1838 | struct sysmsg sysmsg; | |
| 1839 | #endif | |
| 01f31ab3 JS |
1840 | int fd; char fd_[PAD_(int)]; |
| 1841 | char * buf; char buf_[PAD_(char *)]; | |
| 1842 | u_int count; char count_[PAD_(u_int)]; | |
| 1843 | long * basep; char basep_[PAD_(long *)]; | |
| 1844 | }; | |
| 1845 | struct getdents_args { | |
| 1846 | #ifdef _KERNEL | |
| 1847 | struct sysmsg sysmsg; | |
| 1848 | #endif | |
| 01f31ab3 JS |
1849 | int fd; char fd_[PAD_(int)]; |
| 1850 | char * buf; char buf_[PAD_(char *)]; | |
| 1851 | size_t count; char count_[PAD_(size_t)]; | |
| 1852 | }; | |
| cb7f4ab1 MD |
1853 | struct usched_set_args { |
| 1854 | #ifdef _KERNEL | |
| 1855 | struct sysmsg sysmsg; | |
| 1856 | #endif | |
| ff256ae7 DX |
1857 | pid_t pid; char pid_[PAD_(pid_t)]; |
| 1858 | int cmd; char cmd_[PAD_(int)]; | |
| 1859 | void * data; char data_[PAD_(void *)]; | |
| 1860 | int bytes; char bytes_[PAD_(int)]; | |
| cb7f4ab1 | 1861 | }; |
| b09fd398 | 1862 | struct extaccept_args { |
| 358e1f78 MD |
1863 | #ifdef _KERNEL |
| 1864 | struct sysmsg sysmsg; | |
| 1865 | #endif | |
| 1866 | int s; char s_[PAD_(int)]; | |
| 1867 | int flags; char flags_[PAD_(int)]; | |
| 1868 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 1869 | int * anamelen; char anamelen_[PAD_(int *)]; | |
| 1870 | }; | |
| b09fd398 | 1871 | struct extconnect_args { |
| 358e1f78 MD |
1872 | #ifdef _KERNEL |
| 1873 | struct sysmsg sysmsg; | |
| 1874 | #endif | |
| 1875 | int s; char s_[PAD_(int)]; | |
| 1876 | int flags; char flags_[PAD_(int)]; | |
| 1877 | caddr_t name; char name_[PAD_(caddr_t)]; | |
| 1878 | int namelen; char namelen_[PAD_(int)]; | |
| 1879 | }; | |
| e143cb06 MD |
1880 | struct syslink_args { |
| 1881 | #ifdef _KERNEL | |
| 1882 | struct sysmsg sysmsg; | |
| 1883 | #endif | |
| bffded52 | 1884 | int cmd; char cmd_[PAD_(int)]; |
| 63db58ad MD |
1885 | struct syslink_info * info; char info_[PAD_(struct syslink_info *)]; |
| 1886 | size_t bytes; char bytes_[PAD_(size_t)]; | |
| e143cb06 | 1887 | }; |
| d3313941 MD |
1888 | struct mcontrol_args { |
| 1889 | #ifdef _KERNEL | |
| 1890 | struct sysmsg sysmsg; | |
| 1891 | #endif | |
| 1892 | void * addr; char addr_[PAD_(void *)]; | |
| 1893 | size_t len; char len_[PAD_(size_t)]; | |
| 1894 | int behav; char behav_[PAD_(int)]; | |
| 1895 | off_t value; char value_[PAD_(off_t)]; | |
| 1896 | }; | |
| 1897 | struct vmspace_create_args { | |
| 133aabc4 MD |
1898 | #ifdef _KERNEL |
| 1899 | struct sysmsg sysmsg; | |
| 1900 | #endif | |
| 1901 | void * id; char id_[PAD_(void *)]; | |
| d3313941 MD |
1902 | int type; char type_[PAD_(int)]; |
| 1903 | void * data; char data_[PAD_(void *)]; | |
| 133aabc4 | 1904 | }; |
| d3313941 | 1905 | struct vmspace_destroy_args { |
| 133aabc4 MD |
1906 | #ifdef _KERNEL |
| 1907 | struct sysmsg sysmsg; | |
| 1908 | #endif | |
| 1909 | void * id; char id_[PAD_(void *)]; | |
| 133aabc4 | 1910 | }; |
| d3313941 | 1911 | struct vmspace_ctl_args { |
| 133aabc4 MD |
1912 | #ifdef _KERNEL |
| 1913 | struct sysmsg sysmsg; | |
| 1914 | #endif | |
| 1915 | void * id; char id_[PAD_(void *)]; | |
| d3313941 | 1916 | int cmd; char cmd_[PAD_(int)]; |
| 4e7c41c5 MD |
1917 | struct trapframe * tframe; char tframe_[PAD_(struct trapframe *)]; |
| 1918 | struct vextframe * vframe; char vframe_[PAD_(struct vextframe *)]; | |
| 133aabc4 | 1919 | }; |
| d3313941 | 1920 | struct vmspace_mmap_args { |
| 133aabc4 MD |
1921 | #ifdef _KERNEL |
| 1922 | struct sysmsg sysmsg; | |
| 1923 | #endif | |
| 1924 | void * id; char id_[PAD_(void *)]; | |
| d3313941 MD |
1925 | void * addr; char addr_[PAD_(void *)]; |
| 1926 | size_t len; char len_[PAD_(size_t)]; | |
| 1927 | int prot; char prot_[PAD_(int)]; | |
| 1928 | int flags; char flags_[PAD_(int)]; | |
| 1929 | int fd; char fd_[PAD_(int)]; | |
| 1930 | off_t offset; char offset_[PAD_(off_t)]; | |
| 133aabc4 | 1931 | }; |
| d3313941 | 1932 | struct vmspace_munmap_args { |
| 133aabc4 MD |
1933 | #ifdef _KERNEL |
| 1934 | struct sysmsg sysmsg; | |
| 1935 | #endif | |
| 1936 | void * id; char id_[PAD_(void *)]; | |
| d3313941 MD |
1937 | void * addr; char addr_[PAD_(void *)]; |
| 1938 | size_t len; char len_[PAD_(size_t)]; | |
| 133aabc4 | 1939 | }; |
| d3313941 | 1940 | struct vmspace_mcontrol_args { |
| afeabdca MD |
1941 | #ifdef _KERNEL |
| 1942 | struct sysmsg sysmsg; | |
| 1943 | #endif | |
| d3313941 | 1944 | void * id; char id_[PAD_(void *)]; |
| afeabdca MD |
1945 | void * addr; char addr_[PAD_(void *)]; |
| 1946 | size_t len; char len_[PAD_(size_t)]; | |
| 1947 | int behav; char behav_[PAD_(int)]; | |
| 1948 | off_t value; char value_[PAD_(off_t)]; | |
| 1949 | }; | |
| 021a4ed4 MD |
1950 | struct vmspace_pread_args { |
| 1951 | #ifdef _KERNEL | |
| 1952 | struct sysmsg sysmsg; | |
| 1953 | #endif | |
| 1954 | void * id; char id_[PAD_(void *)]; | |
| 1955 | void * buf; char buf_[PAD_(void *)]; | |
| 1956 | size_t nbyte; char nbyte_[PAD_(size_t)]; | |
| 1957 | int flags; char flags_[PAD_(int)]; | |
| 1958 | off_t offset; char offset_[PAD_(off_t)]; | |
| 1959 | }; | |
| 1960 | struct vmspace_pwrite_args { | |
| 1961 | #ifdef _KERNEL | |
| 1962 | struct sysmsg sysmsg; | |
| 1963 | #endif | |
| 1964 | void * id; char id_[PAD_(void *)]; | |
| 1965 | const void * buf; char buf_[PAD_(const void *)]; | |
| 1966 | size_t nbyte; char nbyte_[PAD_(size_t)]; | |
| 1967 | int flags; char flags_[PAD_(int)]; | |
| 1968 | off_t offset; char offset_[PAD_(off_t)]; | |
| 1969 | }; | |
| a704dbd9 SS |
1970 | struct extexit_args { |
| 1971 | #ifdef _KERNEL | |
| 1972 | struct sysmsg sysmsg; | |
| 1973 | #endif | |
| 1974 | int how; char how_[PAD_(int)]; | |
| 1975 | int status; char status_[PAD_(int)]; | |
| 1976 | void * addr; char addr_[PAD_(void *)]; | |
| 1977 | }; | |
| a0a27cfb SS |
1978 | struct lwp_create_args { |
| 1979 | #ifdef _KERNEL | |
| 1980 | struct sysmsg sysmsg; | |
| 1981 | #endif | |
| 1982 | struct lwp_params * params; char params_[PAD_(struct lwp_params *)]; | |
| 1983 | }; | |
| c2e552b5 SS |
1984 | struct lwp_gettid_args { |
| 1985 | #ifdef _KERNEL | |
| 1986 | struct sysmsg sysmsg; | |
| 1987 | #endif | |
| 1988 | register_t dummy; | |
| 1989 | }; | |
| 1990 | struct lwp_kill_args { | |
| 1991 | #ifdef _KERNEL | |
| 1992 | struct sysmsg sysmsg; | |
| 1993 | #endif | |
| 1994 | pid_t pid; char pid_[PAD_(pid_t)]; | |
| 1995 | lwpid_t tid; char tid_[PAD_(lwpid_t)]; | |
| 1996 | int signum; char signum_[PAD_(int)]; | |
| 1997 | }; | |
| 649d3bd2 MD |
1998 | struct lwp_rtprio_args { |
| 1999 | #ifdef _KERNEL | |
| 2000 | struct sysmsg sysmsg; | |
| 2001 | #endif | |
| 2002 | int function; char function_[PAD_(int)]; | |
| 2003 | pid_t pid; char pid_[PAD_(pid_t)]; | |
| 2004 | lwpid_t tid; char tid_[PAD_(lwpid_t)]; | |
| 2005 | struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)]; | |
| 2006 | }; | |
| ae7cb1b5 NT |
2007 | struct pselect_args { |
| 2008 | #ifdef _KERNEL | |
| 2009 | struct sysmsg sysmsg; | |
| 2010 | #endif | |
| 2011 | int nd; char nd_[PAD_(int)]; | |
| 2012 | fd_set * in; char in_[PAD_(fd_set *)]; | |
| 2013 | fd_set * ou; char ou_[PAD_(fd_set *)]; | |
| 2014 | fd_set * ex; char ex_[PAD_(fd_set *)]; | |
| 2015 | const struct timespec * ts; char ts_[PAD_(const struct timespec *)]; | |
| 2016 | const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)]; | |
| 2017 | }; | |
| d9fad06e MD |
2018 | struct statvfs_args { |
| 2019 | #ifdef _KERNEL | |
| 2020 | struct sysmsg sysmsg; | |
| 2021 | #endif | |
| 2022 | const char * path; char path_[PAD_(const char *)]; | |
| 2023 | struct statvfs * buf; char buf_[PAD_(struct statvfs *)]; | |
| 2024 | }; | |
| 2025 | struct fstatvfs_args { | |
| 2026 | #ifdef _KERNEL | |
| 2027 | struct sysmsg sysmsg; | |
| 2028 | #endif | |
| 2029 | int fd; char fd_[PAD_(int)]; | |
| 2030 | struct statvfs * buf; char buf_[PAD_(struct statvfs *)]; | |
| 2031 | }; | |
| 2032 | struct fhstatvfs_args { | |
| 2033 | #ifdef _KERNEL | |
| 2034 | struct sysmsg sysmsg; | |
| 2035 | #endif | |
| 2036 | const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)]; | |
| 2037 | struct statvfs * buf; char buf_[PAD_(struct statvfs *)]; | |
| 2038 | }; | |
| 00fe9d48 MD |
2039 | struct getvfsstat_args { |
| 2040 | #ifdef _KERNEL | |
| 2041 | struct sysmsg sysmsg; | |
| 2042 | #endif | |
| 2043 | struct statfs * buf; char buf_[PAD_(struct statfs *)]; | |
| 2044 | struct statvfs * vbuf; char vbuf_[PAD_(struct statvfs *)]; | |
| 2045 | long vbufsize; char vbufsize_[PAD_(long)]; | |
| 2046 | int flags; char flags_[PAD_(int)]; | |
| 2047 | }; | |
| 83a11774 NT |
2048 | struct openat_args { |
| 2049 | #ifdef _KERNEL | |
| 2050 | struct sysmsg sysmsg; | |
| 2051 | #endif | |
| 2052 | int fd; char fd_[PAD_(int)]; | |
| 2053 | char * path; char path_[PAD_(char *)]; | |
| 2054 | int flags; char flags_[PAD_(int)]; | |
| 2055 | int mode; char mode_[PAD_(int)]; | |
| 2056 | }; | |
| e101a3f4 NT |
2057 | struct fstatat_args { |
| 2058 | #ifdef _KERNEL | |
| 2059 | struct sysmsg sysmsg; | |
| 2060 | #endif | |
| 2061 | int fd; char fd_[PAD_(int)]; | |
| 2062 | char * path; char path_[PAD_(char *)]; | |
| 2063 | struct stat * sb; char sb_[PAD_(struct stat *)]; | |
| 2064 | int flags; char flags_[PAD_(int)]; | |
| 2065 | }; | |
| 8cde3c79 NT |
2066 | struct fchmodat_args { |
| 2067 | #ifdef _KERNEL | |
| 2068 | struct sysmsg sysmsg; | |
| 2069 | #endif | |
| 2070 | int fd; char fd_[PAD_(int)]; | |
| 2071 | char * path; char path_[PAD_(char *)]; | |
| 2072 | int mode; char mode_[PAD_(int)]; | |
| 2073 | int flags; char flags_[PAD_(int)]; | |
| 2074 | }; | |
| 32013176 NT |
2075 | struct fchownat_args { |
| 2076 | #ifdef _KERNEL | |
| 2077 | struct sysmsg sysmsg; | |
| 2078 | #endif | |
| 2079 | int fd; char fd_[PAD_(int)]; | |
| 2080 | char * path; char path_[PAD_(char *)]; | |
| 2081 | int uid; char uid_[PAD_(int)]; | |
| 2082 | int gid; char gid_[PAD_(int)]; | |
| 2083 | int flags; char flags_[PAD_(int)]; | |
| 2084 | }; | |
| 3a6d8629 NT |
2085 | struct unlinkat_args { |
| 2086 | #ifdef _KERNEL | |
| 2087 | struct sysmsg sysmsg; | |
| 2088 | #endif | |
| 2089 | int fd; char fd_[PAD_(int)]; | |
| 2090 | char * path; char path_[PAD_(char *)]; | |
| 2091 | int flags; char flags_[PAD_(int)]; | |
| 2092 | }; | |
| 18cf460b NT |
2093 | struct faccessat_args { |
| 2094 | #ifdef _KERNEL | |
| 2095 | struct sysmsg sysmsg; | |
| 2096 | #endif | |
| 2097 | int fd; char fd_[PAD_(int)]; | |
| 2098 | char * path; char path_[PAD_(char *)]; | |
| 2099 | int amode; char amode_[PAD_(int)]; | |
| 2100 | int flags; char flags_[PAD_(int)]; | |
| 2101 | }; | |
| 0b96c93b SK |
2102 | struct mq_open_args { |
| 2103 | #ifdef _KERNEL | |
| 2104 | struct sysmsg sysmsg; | |
| 2105 | #endif | |
| 2106 | const char * name; char name_[PAD_(const char *)]; | |
| 2107 | int oflag; char oflag_[PAD_(int)]; | |
| 2108 | mode_t mode; char mode_[PAD_(mode_t)]; | |
| 2109 | struct mq_attr * attr; char attr_[PAD_(struct mq_attr *)]; | |
| 2110 | }; | |
| 2111 | struct mq_close_args { | |
| 2112 | #ifdef _KERNEL | |
| 2113 | struct sysmsg sysmsg; | |
| 2114 | #endif | |
| 2115 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2116 | }; | |
| 2117 | struct mq_unlink_args { | |
| 2118 | #ifdef _KERNEL | |
| 2119 | struct sysmsg sysmsg; | |
| 2120 | #endif | |
| 2121 | const char * name; char name_[PAD_(const char *)]; | |
| 2122 | }; | |
| 2123 | struct mq_getattr_args { | |
| 2124 | #ifdef _KERNEL | |
| 2125 | struct sysmsg sysmsg; | |
| 2126 | #endif | |
| 2127 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2128 | struct mq_attr * mqstat; char mqstat_[PAD_(struct mq_attr *)]; | |
| 2129 | }; | |
| 2130 | struct mq_setattr_args { | |
| 2131 | #ifdef _KERNEL | |
| 2132 | struct sysmsg sysmsg; | |
| 2133 | #endif | |
| 2134 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2135 | const struct mq_attr * mqstat; char mqstat_[PAD_(const struct mq_attr *)]; | |
| 2136 | struct mq_attr * omqstat; char omqstat_[PAD_(struct mq_attr *)]; | |
| 2137 | }; | |
| 2138 | struct mq_notify_args { | |
| 2139 | #ifdef _KERNEL | |
| 2140 | struct sysmsg sysmsg; | |
| 2141 | #endif | |
| 2142 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2143 | const struct sigevent * notification; char notification_[PAD_(const struct sigevent *)]; | |
| 2144 | }; | |
| 2145 | struct mq_send_args { | |
| 2146 | #ifdef _KERNEL | |
| 2147 | struct sysmsg sysmsg; | |
| 2148 | #endif | |
| 2149 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2150 | const char * msg_ptr; char msg_ptr_[PAD_(const char *)]; | |
| 2151 | size_t msg_len; char msg_len_[PAD_(size_t)]; | |
| 2152 | unsigned msg_prio; char msg_prio_[PAD_(unsigned)]; | |
| 2153 | }; | |
| 2154 | struct mq_receive_args { | |
| 2155 | #ifdef _KERNEL | |
| 2156 | struct sysmsg sysmsg; | |
| 2157 | #endif | |
| 2158 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2159 | char * msg_ptr; char msg_ptr_[PAD_(char *)]; | |
| 2160 | size_t msg_len; char msg_len_[PAD_(size_t)]; | |
| 2161 | unsigned * msg_prio; char msg_prio_[PAD_(unsigned *)]; | |
| 2162 | }; | |
| 2163 | struct mq_timedsend_args { | |
| 2164 | #ifdef _KERNEL | |
| 2165 | struct sysmsg sysmsg; | |
| 2166 | #endif | |
| 2167 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2168 | const char * msg_ptr; char msg_ptr_[PAD_(const char *)]; | |
| 2169 | size_t msg_len; char msg_len_[PAD_(size_t)]; | |
| 2170 | unsigned msg_prio; char msg_prio_[PAD_(unsigned)]; | |
| 2171 | const struct timespec * abs_timeout; char abs_timeout_[PAD_(const struct timespec *)]; | |
| 2172 | }; | |
| 2173 | struct mq_timedreceive_args { | |
| 2174 | #ifdef _KERNEL | |
| 2175 | struct sysmsg sysmsg; | |
| 2176 | #endif | |
| 2177 | mqd_t mqdes; char mqdes_[PAD_(mqd_t)]; | |
| 2178 | char * msg_ptr; char msg_ptr_[PAD_(char *)]; | |
| 2179 | size_t msg_len; char msg_len_[PAD_(size_t)]; | |
| 2180 | unsigned * msg_prio; char msg_prio_[PAD_(unsigned *)]; | |
| 2181 | const struct timespec * abs_timeout; char abs_timeout_[PAD_(const struct timespec *)]; | |
| 2182 | }; | |
| aa166ad1 AH |
2183 | struct ioprio_set_args { |
| 2184 | #ifdef _KERNEL | |
| 2185 | struct sysmsg sysmsg; | |
| 2186 | #endif | |
| 2187 | int which; char which_[PAD_(int)]; | |
| 2188 | int who; char who_[PAD_(int)]; | |
| 2189 | int prio; char prio_[PAD_(int)]; | |
| 2190 | }; | |
| 2191 | struct ioprio_get_args { | |
| 2192 | #ifdef _KERNEL | |
| 2193 | struct sysmsg sysmsg; | |
| 2194 | #endif | |
| 2195 | int which; char which_[PAD_(int)]; | |
| 2196 | int who; char who_[PAD_(int)]; | |
| 2197 | }; | |
| 72f12c5b AH |
2198 | struct chroot_kernel_args { |
| 2199 | #ifdef _KERNEL | |
| 2200 | struct sysmsg sysmsg; | |
| 2201 | #endif | |
| 2202 | char * path; char path_[PAD_(char *)]; | |
| 2203 | }; | |
| c7238745 SW |
2204 | struct renameat_args { |
| 2205 | #ifdef _KERNEL | |
| 2206 | struct sysmsg sysmsg; | |
| 2207 | #endif | |
| 2208 | int oldfd; char oldfd_[PAD_(int)]; | |
| 2209 | char * old; char old_[PAD_(char *)]; | |
| 2210 | int newfd; char newfd_[PAD_(int)]; | |
| 2211 | char * new; char new_[PAD_(char *)]; | |
| 2212 | }; | |
| 6d98f93c SW |
2213 | struct mkdirat_args { |
| 2214 | #ifdef _KERNEL | |
| 2215 | struct sysmsg sysmsg; | |
| 2216 | #endif | |
| 2217 | int fd; char fd_[PAD_(int)]; | |
| 2218 | char * path; char path_[PAD_(char *)]; | |
| 2219 | mode_t mode; char mode_[PAD_(mode_t)]; | |
| 2220 | }; | |
| 2221 | struct mkfifoat_args { | |
| 2222 | #ifdef _KERNEL | |
| 2223 | struct sysmsg sysmsg; | |
| 2224 | #endif | |
| 2225 | int fd; char fd_[PAD_(int)]; | |
| 2226 | char * path; char path_[PAD_(char *)]; | |
| 2227 | mode_t mode; char mode_[PAD_(mode_t)]; | |
| 2228 | }; | |
| 2229 | struct mknodat_args { | |
| 2230 | #ifdef _KERNEL | |
| 2231 | struct sysmsg sysmsg; | |
| 2232 | #endif | |
| 2233 | int fd; char fd_[PAD_(int)]; | |
| 2234 | char * path; char path_[PAD_(char *)]; | |
| 2235 | mode_t mode; char mode_[PAD_(mode_t)]; | |
| 2236 | dev_t dev; char dev_[PAD_(dev_t)]; | |
| 2237 | }; | |
| 2238 | struct readlinkat_args { | |
| 2239 | #ifdef _KERNEL | |
| 2240 | struct sysmsg sysmsg; | |
| 2241 | #endif | |
| 2242 | int fd; char fd_[PAD_(int)]; | |
| 2243 | char * path; char path_[PAD_(char *)]; | |
| 2244 | char * buf; char buf_[PAD_(char *)]; | |
| 2245 | size_t bufsize; char bufsize_[PAD_(size_t)]; | |
| 2246 | }; | |
| 2247 | struct symlinkat_args { | |
| 2248 | #ifdef _KERNEL | |
| 2249 | struct sysmsg sysmsg; | |
| 2250 | #endif | |
| 2251 | char * path1; char path1_[PAD_(char *)]; | |
| 2252 | int fd; char fd_[PAD_(int)]; | |
| 2253 | char * path2; char path2_[PAD_(char *)]; | |
| 2254 | }; | |
| ba45172b MD |
2255 | struct swapoff_args { |
| 2256 | #ifdef _KERNEL | |
| 2257 | struct sysmsg sysmsg; | |
| 2258 | #endif | |
| 2259 | char * name; char name_[PAD_(char *)]; | |
| 2260 | }; | |
| b4d6d8bb FT |
2261 | struct vquotactl_args { |
| 2262 | #ifdef _KERNEL | |
| 2263 | struct sysmsg sysmsg; | |
| 2264 | #endif | |
| 2265 | const char * path; char path_[PAD_(const char *)]; | |
| 2266 | struct plistref * pref; char pref_[PAD_(struct plistref *)]; | |
| 2267 | }; | |
| 77e32d4c AH |
2268 | struct linkat_args { |
| 2269 | #ifdef _KERNEL | |
| 2270 | struct sysmsg sysmsg; | |
| 2271 | #endif | |
| 2272 | int fd1; char fd1_[PAD_(int)]; | |
| 2273 | char * path1; char path1_[PAD_(char *)]; | |
| 2274 | int fd2; char fd2_[PAD_(int)]; | |
| 2275 | char * path2; char path2_[PAD_(char *)]; | |
| 2276 | int flags; char flags_[PAD_(int)]; | |
| 2277 | }; | |
| 6eb83deb JM |
2278 | struct eaccess_args { |
| 2279 | #ifdef _KERNEL | |
| 2280 | struct sysmsg sysmsg; | |
| 2281 | #endif | |
| 2282 | char * path; char path_[PAD_(char *)]; | |
| 2283 | int flags; char flags_[PAD_(int)]; | |
| 2284 | }; | |
| f1787048 JS |
2285 | |
| 2286 | #ifdef COMPAT_43 | |
| 4fd10eb6 | 2287 | |
| 17e1a2b5 | 2288 | #ifdef COMPAT_43 |
| 17e1a2b5 | 2289 | #endif |
| 984263bc | 2290 | struct ocreat_args { |
| 245e4f17 | 2291 | #ifdef _KERNEL |
| df2244e3 | 2292 | struct sysmsg sysmsg; |
| 245e4f17 | 2293 | #endif |
| 984263bc MD |
2294 | char * path; char path_[PAD_(char *)]; |
| 2295 | int mode; char mode_[PAD_(int)]; | |
| 2296 | }; | |
| 2297 | struct olseek_args { | |
| 245e4f17 | 2298 | #ifdef _KERNEL |
| df2244e3 | 2299 | struct sysmsg sysmsg; |
| 245e4f17 | 2300 | #endif |
| 984263bc MD |
2301 | int fd; char fd_[PAD_(int)]; |
| 2302 | long offset; char offset_[PAD_(long)]; | |
| 2303 | int whence; char whence_[PAD_(int)]; | |
| 2304 | }; | |
| 2305 | struct ostat_args { | |
| 245e4f17 | 2306 | #ifdef _KERNEL |
| df2244e3 | 2307 | struct sysmsg sysmsg; |
| 245e4f17 | 2308 | #endif |
| 984263bc MD |
2309 | char * path; char path_[PAD_(char *)]; |
| 2310 | struct ostat * ub; char ub_[PAD_(struct ostat *)]; | |
| 2311 | }; | |
| 2312 | struct olstat_args { | |
| 245e4f17 | 2313 | #ifdef _KERNEL |
| df2244e3 | 2314 | struct sysmsg sysmsg; |
| 245e4f17 | 2315 | #endif |
| 984263bc MD |
2316 | char * path; char path_[PAD_(char *)]; |
| 2317 | struct ostat * ub; char ub_[PAD_(struct ostat *)]; | |
| 2318 | }; | |
| 984263bc | 2319 | struct ofstat_args { |
| 245e4f17 | 2320 | #ifdef _KERNEL |
| df2244e3 | 2321 | struct sysmsg sysmsg; |
| 245e4f17 | 2322 | #endif |
| 984263bc MD |
2323 | int fd; char fd_[PAD_(int)]; |
| 2324 | struct ostat * sb; char sb_[PAD_(struct ostat *)]; | |
| 2325 | }; | |
| 2326 | struct getkerninfo_args { | |
| 245e4f17 | 2327 | #ifdef _KERNEL |
| df2244e3 | 2328 | struct sysmsg sysmsg; |
| 245e4f17 | 2329 | #endif |
| 984263bc MD |
2330 | int op; char op_[PAD_(int)]; |
| 2331 | char * where; char where_[PAD_(char *)]; | |
| 2332 | size_t * size; char size_[PAD_(size_t *)]; | |
| 2333 | int arg; char arg_[PAD_(int)]; | |
| 2334 | }; | |
| 2335 | struct ommap_args { | |
| 245e4f17 | 2336 | #ifdef _KERNEL |
| df2244e3 | 2337 | struct sysmsg sysmsg; |
| 245e4f17 | 2338 | #endif |
| 984263bc MD |
2339 | void * addr; char addr_[PAD_(void *)]; |
| 2340 | int len; char len_[PAD_(int)]; | |
| 2341 | int prot; char prot_[PAD_(int)]; | |
| 2342 | int flags; char flags_[PAD_(int)]; | |
| 2343 | int fd; char fd_[PAD_(int)]; | |
| 2344 | long pos; char pos_[PAD_(long)]; | |
| 2345 | }; | |
| 83b1807f SG |
2346 | struct ovadvise_args { |
| 2347 | #ifdef _KERNEL | |
| 2348 | struct sysmsg sysmsg; | |
| 2349 | #endif | |
| 2350 | int anom; char anom_[PAD_(int)]; | |
| 2351 | }; | |
| 984263bc | 2352 | struct gethostname_args { |
| 245e4f17 | 2353 | #ifdef _KERNEL |
| df2244e3 | 2354 | struct sysmsg sysmsg; |
| 245e4f17 | 2355 | #endif |
| 984263bc MD |
2356 | char * hostname; char hostname_[PAD_(char *)]; |
| 2357 | u_int len; char len_[PAD_(u_int)]; | |
| 2358 | }; | |
| 2359 | struct sethostname_args { | |
| 245e4f17 | 2360 | #ifdef _KERNEL |
| df2244e3 | 2361 | struct sysmsg sysmsg; |
| 245e4f17 | 2362 | #endif |
| 984263bc MD |
2363 | char * hostname; char hostname_[PAD_(char *)]; |
| 2364 | u_int len; char len_[PAD_(u_int)]; | |
| 2365 | }; | |
| 2366 | struct osend_args { | |
| 245e4f17 | 2367 | #ifdef _KERNEL |
| df2244e3 | 2368 | struct sysmsg sysmsg; |
| 245e4f17 | 2369 | #endif |
| 984263bc MD |
2370 | int s; char s_[PAD_(int)]; |
| 2371 | caddr_t buf; char buf_[PAD_(caddr_t)]; | |
| 2372 | int len; char len_[PAD_(int)]; | |
| 2373 | int flags; char flags_[PAD_(int)]; | |
| 2374 | }; | |
| 2375 | struct orecv_args { | |
| 245e4f17 | 2376 | #ifdef _KERNEL |
| df2244e3 | 2377 | struct sysmsg sysmsg; |
| 245e4f17 | 2378 | #endif |
| 984263bc MD |
2379 | int s; char s_[PAD_(int)]; |
| 2380 | caddr_t buf; char buf_[PAD_(caddr_t)]; | |
| 2381 | int len; char len_[PAD_(int)]; | |
| 2382 | int flags; char flags_[PAD_(int)]; | |
| 2383 | }; | |
| 984263bc | 2384 | struct osigvec_args { |
| 245e4f17 | 2385 | #ifdef _KERNEL |
| df2244e3 | 2386 | struct sysmsg sysmsg; |
| 245e4f17 | 2387 | #endif |
| 984263bc MD |
2388 | int signum; char signum_[PAD_(int)]; |
| 2389 | struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)]; | |
| 2390 | struct sigvec * osv; char osv_[PAD_(struct sigvec *)]; | |
| 2391 | }; | |
| 2392 | struct osigblock_args { | |
| 245e4f17 | 2393 | #ifdef _KERNEL |
| df2244e3 | 2394 | struct sysmsg sysmsg; |
| 245e4f17 | 2395 | #endif |
| 984263bc MD |
2396 | int mask; char mask_[PAD_(int)]; |
| 2397 | }; | |
| 2398 | struct osigsetmask_args { | |
| 245e4f17 | 2399 | #ifdef _KERNEL |
| df2244e3 | 2400 | struct sysmsg sysmsg; |
| 245e4f17 | 2401 | #endif |
| 984263bc MD |
2402 | int mask; char mask_[PAD_(int)]; |
| 2403 | }; | |
| 984263bc | 2404 | struct osigstack_args { |
| 245e4f17 | 2405 | #ifdef _KERNEL |
| df2244e3 | 2406 | struct sysmsg sysmsg; |
| 245e4f17 | 2407 | #endif |
| 984263bc MD |
2408 | struct sigstack * nss; char nss_[PAD_(struct sigstack *)]; |
| 2409 | struct sigstack * oss; char oss_[PAD_(struct sigstack *)]; | |
| 2410 | }; | |
| 2411 | struct orecvmsg_args { | |
| 245e4f17 | 2412 | #ifdef _KERNEL |
| df2244e3 | 2413 | struct sysmsg sysmsg; |
| 245e4f17 | 2414 | #endif |
| 984263bc MD |
2415 | int s; char s_[PAD_(int)]; |
| 2416 | struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)]; | |
| 2417 | int flags; char flags_[PAD_(int)]; | |
| 2418 | }; | |
| 2419 | struct osendmsg_args { | |
| 245e4f17 | 2420 | #ifdef _KERNEL |
| df2244e3 | 2421 | struct sysmsg sysmsg; |
| 245e4f17 | 2422 | #endif |
| 984263bc MD |
2423 | int s; char s_[PAD_(int)]; |
| 2424 | caddr_t msg; char msg_[PAD_(caddr_t)]; | |
| 2425 | int flags; char flags_[PAD_(int)]; | |
| 2426 | }; | |
| 2427 | struct otruncate_args { | |
| 245e4f17 | 2428 | #ifdef _KERNEL |
| df2244e3 | 2429 | struct sysmsg sysmsg; |
| 245e4f17 | 2430 | #endif |
| 984263bc MD |
2431 | char * path; char path_[PAD_(char *)]; |
| 2432 | long length; char length_[PAD_(long)]; | |
| 2433 | }; | |
| 2434 | struct oftruncate_args { | |
| 245e4f17 | 2435 | #ifdef _KERNEL |
| df2244e3 | 2436 | struct sysmsg sysmsg; |
| 245e4f17 | 2437 | #endif |
| 984263bc MD |
2438 | int fd; char fd_[PAD_(int)]; |
| 2439 | long length; char length_[PAD_(long)]; | |
| 2440 | }; | |
| 2441 | struct ogetpeername_args { | |
| 245e4f17 | 2442 | #ifdef _KERNEL |
| df2244e3 | 2443 | struct sysmsg sysmsg; |
| 245e4f17 | 2444 | #endif |
| 984263bc MD |
2445 | int fdes; char fdes_[PAD_(int)]; |
| 2446 | caddr_t asa; char asa_[PAD_(caddr_t)]; | |
| 2447 | int * alen; char alen_[PAD_(int *)]; | |
| 2448 | }; | |
| 2449 | struct osethostid_args { | |
| 245e4f17 | 2450 | #ifdef _KERNEL |
| df2244e3 | 2451 | struct sysmsg sysmsg; |
| 245e4f17 | 2452 | #endif |
| 984263bc MD |
2453 | long hostid; char hostid_[PAD_(long)]; |
| 2454 | }; | |
| 2455 | struct ogetrlimit_args { | |
| 245e4f17 | 2456 | #ifdef _KERNEL |
| df2244e3 | 2457 | struct sysmsg sysmsg; |
| 245e4f17 | 2458 | #endif |
| 984263bc MD |
2459 | u_int which; char which_[PAD_(u_int)]; |
| 2460 | struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)]; | |
| 2461 | }; | |
| 2462 | struct osetrlimit_args { | |
| 245e4f17 | 2463 | #ifdef _KERNEL |
| df2244e3 | 2464 | struct sysmsg sysmsg; |
| 245e4f17 | 2465 | #endif |
| 984263bc MD |
2466 | u_int which; char which_[PAD_(u_int)]; |
| 2467 | struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)]; | |
| 2468 | }; | |
| 2469 | struct okillpg_args { | |
| 245e4f17 | 2470 | #ifdef _KERNEL |
| df2244e3 | 2471 | struct sysmsg sysmsg; |
| 245e4f17 | 2472 | #endif |
| 984263bc MD |
2473 | int pgid; char pgid_[PAD_(int)]; |
| 2474 | int signum; char signum_[PAD_(int)]; | |
| 2475 | }; | |
| 2476 | struct ogetdirentries_args { | |
| 245e4f17 | 2477 | #ifdef _KERNEL |
| df2244e3 | 2478 | struct sysmsg sysmsg; |
| 245e4f17 | 2479 | #endif |
| 984263bc MD |
2480 | int fd; char fd_[PAD_(int)]; |
| 2481 | char * buf; char buf_[PAD_(char *)]; | |
| 2482 | u_int count; char count_[PAD_(u_int)]; | |
| 2483 | long * basep; char basep_[PAD_(long *)]; | |
| 2484 | }; | |
| 4fd10eb6 MD |
2485 | |
| 2486 | #ifdef _KERNEL | |
| 2487 | ||
| 753fd850 MD |
2488 | int sys_ocreat (struct ocreat_args *); |
| 2489 | int sys_olseek (struct olseek_args *); | |
| 2490 | int sys_ostat (struct ostat_args *); | |
| 2491 | int sys_olstat (struct olstat_args *); | |
| 2492 | int sys_ofstat (struct ofstat_args *); | |
| 2493 | int sys_ogetkerninfo (struct getkerninfo_args *); | |
| 2494 | int sys_ogetpagesize (struct getpagesize_args *); | |
| 2495 | int sys_ommap (struct ommap_args *); | |
| 83b1807f | 2496 | int sys_ovadvise (struct ovadvise_args *); |
| 753fd850 MD |
2497 | int sys_owait (struct owait_args *); |
| 2498 | int sys_ogethostname (struct gethostname_args *); | |
| 2499 | int sys_osethostname (struct sethostname_args *); | |
| 2500 | int sys_oaccept (struct accept_args *); | |
| 2501 | int sys_osend (struct osend_args *); | |
| 2502 | int sys_orecv (struct orecv_args *); | |
| 2503 | int sys_osigvec (struct osigvec_args *); | |
| 2504 | int sys_osigblock (struct osigblock_args *); | |
| 2505 | int sys_osigsetmask (struct osigsetmask_args *); | |
| 2506 | int sys_osigstack (struct osigstack_args *); | |
| 2507 | int sys_orecvmsg (struct orecvmsg_args *); | |
| 2508 | int sys_osendmsg (struct osendmsg_args *); | |
| 2509 | int sys_orecvfrom (struct recvfrom_args *); | |
| 2510 | int sys_otruncate (struct otruncate_args *); | |
| 2511 | int sys_oftruncate (struct oftruncate_args *); | |
| 2512 | int sys_ogetpeername (struct ogetpeername_args *); | |
| 2513 | int sys_ogethostid (struct ogethostid_args *); | |
| 2514 | int sys_osethostid (struct osethostid_args *); | |
| 2515 | int sys_ogetrlimit (struct ogetrlimit_args *); | |
| 2516 | int sys_osetrlimit (struct osetrlimit_args *); | |
| 2517 | int sys_okillpg (struct okillpg_args *); | |
| 2518 | int sys_oquota (struct oquota_args *); | |
| 2519 | int sys_ogetsockname (struct getsockname_args *); | |
| 2520 | int sys_ogetdirentries (struct ogetdirentries_args *); | |
| 984263bc | 2521 | |
| 4fd10eb6 MD |
2522 | #endif /* _KERNEL */ |
| 2523 | ||
| 984263bc MD |
2524 | #endif /* COMPAT_43 */ |
| 2525 | ||
| f1787048 JS |
2526 | |
| 2527 | #ifdef COMPAT_DF12 | |
| 2528 | ||
| 2529 | #ifdef COMPAT_43 | |
| 2530 | #endif | |
| 2531 | struct dfbsd12_stat_args { | |
| 2532 | #ifdef _KERNEL | |
| 2533 | struct sysmsg sysmsg; | |
| 2534 | #endif | |
| f1787048 JS |
2535 | const char * path; char path_[PAD_(const char *)]; |
| 2536 | struct dfbsd12_stat * ub; char ub_[PAD_(struct dfbsd12_stat *)]; | |
| 2537 | }; | |
| 2538 | struct dfbsd12_fstat_args { | |
| 2539 | #ifdef _KERNEL | |
| 2540 | struct sysmsg sysmsg; | |
| 2541 | #endif | |
| f1787048 JS |
2542 | int fd; char fd_[PAD_(int)]; |
| 2543 | struct dfbsd12_stat * sb; char sb_[PAD_(struct dfbsd12_stat *)]; | |
| 2544 | }; | |
| 2545 | struct dfbsd12_lstat_args { | |
| 2546 | #ifdef _KERNEL | |
| 2547 | struct sysmsg sysmsg; | |
| 2548 | #endif | |
| f1787048 JS |
2549 | const char * path; char path_[PAD_(const char *)]; |
| 2550 | struct dfbsd12_stat * ub; char ub_[PAD_(struct dfbsd12_stat *)]; | |
| 2551 | }; | |
| 01f31ab3 JS |
2552 | struct dfbsd12_getdirentries_args { |
| 2553 | #ifdef _KERNEL | |
| 2554 | struct sysmsg sysmsg; | |
| 2555 | #endif | |
| 01f31ab3 JS |
2556 | int fd; char fd_[PAD_(int)]; |
| 2557 | char * buf; char buf_[PAD_(char *)]; | |
| 2558 | u_int count; char count_[PAD_(u_int)]; | |
| 2559 | long * basep; char basep_[PAD_(long *)]; | |
| 2560 | }; | |
| 2561 | struct dfbsd12_getdents_args { | |
| 2562 | #ifdef _KERNEL | |
| 2563 | struct sysmsg sysmsg; | |
| 2564 | #endif | |
| 01f31ab3 JS |
2565 | int fd; char fd_[PAD_(int)]; |
| 2566 | char * buf; char buf_[PAD_(char *)]; | |
| 2567 | size_t count; char count_[PAD_(size_t)]; | |
| 2568 | }; | |
| f1787048 JS |
2569 | struct dfbsd12_fhstat_args { |
| 2570 | #ifdef _KERNEL | |
| 2571 | struct sysmsg sysmsg; | |
| 2572 | #endif | |
| f1787048 JS |
2573 | const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)]; |
| 2574 | struct dfbsd12_stat * sb; char sb_[PAD_(struct dfbsd12_stat *)]; | |
| 2575 | }; | |
| 2576 | ||
| 2577 | #ifdef _KERNEL | |
| 2578 | ||
| 753fd850 MD |
2579 | int sys_dfbsd12_stat (struct dfbsd12_stat_args *); |
| 2580 | int sys_dfbsd12_fstat (struct dfbsd12_fstat_args *); | |
| 2581 | int sys_dfbsd12_lstat (struct dfbsd12_lstat_args *); | |
| 2582 | int sys_dfbsd12_getdirentries (struct dfbsd12_getdirentries_args *); | |
| 2583 | int sys_dfbsd12_getdents (struct dfbsd12_getdents_args *); | |
| 2584 | int sys_dfbsd12_fhstat (struct dfbsd12_fhstat_args *); | |
| f1787048 JS |
2585 | |
| 2586 | #endif /* _KERNEL */ | |
| 2587 | ||
| 2588 | #endif /* COMPAT_DF12 */ | |
| 2589 | ||
| 2590 | ||
| 2591 | #ifdef _KERNEL | |
| 2592 | ||
| 2593 | #ifdef COMPAT_43 | |
| 2594 | #endif | |
| 753fd850 MD |
2595 | int sys_nosys (struct nosys_args *); |
| 2596 | int sys_exit (struct exit_args *); | |
| 2597 | int sys_fork (struct fork_args *); | |
| 2598 | int sys_read (struct read_args *); | |
| 2599 | int sys_write (struct write_args *); | |
| 2600 | int sys_open (struct open_args *); | |
| 2601 | int sys_close (struct close_args *); | |
| 2602 | int sys_wait4 (struct wait_args *); | |
| 2603 | int sys_link (struct link_args *); | |
| 2604 | int sys_unlink (struct unlink_args *); | |
| 2605 | int sys_chdir (struct chdir_args *); | |
| 2606 | int sys_fchdir (struct fchdir_args *); | |
| 2607 | int sys_mknod (struct mknod_args *); | |
| 2608 | int sys_chmod (struct chmod_args *); | |
| 2609 | int sys_chown (struct chown_args *); | |
| 2610 | int sys_obreak (struct obreak_args *); | |
| 2611 | int sys_getfsstat (struct getfsstat_args *); | |
| 2612 | int sys_getpid (struct getpid_args *); | |
| 2613 | int sys_mount (struct mount_args *); | |
| 2614 | int sys_unmount (struct unmount_args *); | |
| 2615 | int sys_setuid (struct setuid_args *); | |
| 2616 | int sys_getuid (struct getuid_args *); | |
| 2617 | int sys_geteuid (struct geteuid_args *); | |
| 2618 | int sys_ptrace (struct ptrace_args *); | |
| 2619 | int sys_recvmsg (struct recvmsg_args *); | |
| 2620 | int sys_sendmsg (struct sendmsg_args *); | |
| 2621 | int sys_recvfrom (struct recvfrom_args *); | |
| 2622 | int sys_accept (struct accept_args *); | |
| 2623 | int sys_getpeername (struct getpeername_args *); | |
| 2624 | int sys_getsockname (struct getsockname_args *); | |
| 2625 | int sys_access (struct access_args *); | |
| 2626 | int sys_chflags (struct chflags_args *); | |
| 2627 | int sys_fchflags (struct fchflags_args *); | |
| 2628 | int sys_sync (struct sync_args *); | |
| 2629 | int sys_kill (struct kill_args *); | |
| 2630 | int sys_getppid (struct getppid_args *); | |
| 2631 | int sys_dup (struct dup_args *); | |
| 2632 | int sys_pipe (struct pipe_args *); | |
| 2633 | int sys_getegid (struct getegid_args *); | |
| 2634 | int sys_profil (struct profil_args *); | |
| 2635 | int sys_ktrace (struct ktrace_args *); | |
| 2636 | int sys_getgid (struct getgid_args *); | |
| 2637 | int sys_getlogin (struct getlogin_args *); | |
| 2638 | int sys_setlogin (struct setlogin_args *); | |
| 2639 | int sys_acct (struct acct_args *); | |
| 2640 | int sys_sigaltstack (struct sigaltstack_args *); | |
| 2641 | int sys_ioctl (struct ioctl_args *); | |
| 2642 | int sys_reboot (struct reboot_args *); | |
| 2643 | int sys_revoke (struct revoke_args *); | |
| 2644 | int sys_symlink (struct symlink_args *); | |
| 2645 | int sys_readlink (struct readlink_args *); | |
| 2646 | int sys_execve (struct execve_args *); | |
| 2647 | int sys_umask (struct umask_args *); | |
| 2648 | int sys_chroot (struct chroot_args *); | |
| 2649 | int sys_msync (struct msync_args *); | |
| 2650 | int sys_vfork (struct vfork_args *); | |
| 2651 | int sys_sbrk (struct sbrk_args *); | |
| 2652 | int sys_sstk (struct sstk_args *); | |
| 753fd850 MD |
2653 | int sys_munmap (struct munmap_args *); |
| 2654 | int sys_mprotect (struct mprotect_args *); | |
| 2655 | int sys_madvise (struct madvise_args *); | |
| 2656 | int sys_mincore (struct mincore_args *); | |
| 2657 | int sys_getgroups (struct getgroups_args *); | |
| 2658 | int sys_setgroups (struct setgroups_args *); | |
| 2659 | int sys_getpgrp (struct getpgrp_args *); | |
| 2660 | int sys_setpgid (struct setpgid_args *); | |
| 2661 | int sys_setitimer (struct setitimer_args *); | |
| 2662 | int sys_swapon (struct swapon_args *); | |
| 2663 | int sys_getitimer (struct getitimer_args *); | |
| 2664 | int sys_getdtablesize (struct getdtablesize_args *); | |
| 2665 | int sys_dup2 (struct dup2_args *); | |
| 2666 | int sys_fcntl (struct fcntl_args *); | |
| 2667 | int sys_select (struct select_args *); | |
| 2668 | int sys_fsync (struct fsync_args *); | |
| 2669 | int sys_setpriority (struct setpriority_args *); | |
| 2670 | int sys_socket (struct socket_args *); | |
| 2671 | int sys_connect (struct connect_args *); | |
| 2672 | int sys_getpriority (struct getpriority_args *); | |
| 2673 | int sys_bind (struct bind_args *); | |
| 2674 | int sys_setsockopt (struct setsockopt_args *); | |
| 2675 | int sys_listen (struct listen_args *); | |
| 2676 | int sys_gettimeofday (struct gettimeofday_args *); | |
| 2677 | int sys_getrusage (struct getrusage_args *); | |
| 2678 | int sys_getsockopt (struct getsockopt_args *); | |
| 2679 | int sys_readv (struct readv_args *); | |
| 2680 | int sys_writev (struct writev_args *); | |
| 2681 | int sys_settimeofday (struct settimeofday_args *); | |
| 2682 | int sys_fchown (struct fchown_args *); | |
| 2683 | int sys_fchmod (struct fchmod_args *); | |
| 2684 | int sys_setreuid (struct setreuid_args *); | |
| 2685 | int sys_setregid (struct setregid_args *); | |
| 2686 | int sys_rename (struct rename_args *); | |
| 2687 | int sys_flock (struct flock_args *); | |
| 2688 | int sys_mkfifo (struct mkfifo_args *); | |
| 2689 | int sys_sendto (struct sendto_args *); | |
| 2690 | int sys_shutdown (struct shutdown_args *); | |
| 2691 | int sys_socketpair (struct socketpair_args *); | |
| 2692 | int sys_mkdir (struct mkdir_args *); | |
| 2693 | int sys_rmdir (struct rmdir_args *); | |
| 2694 | int sys_utimes (struct utimes_args *); | |
| 2695 | int sys_adjtime (struct adjtime_args *); | |
| 2696 | int sys_setsid (struct setsid_args *); | |
| 2697 | int sys_quotactl (struct quotactl_args *); | |
| 2698 | int sys_nfssvc (struct nfssvc_args *); | |
| 2699 | int sys_statfs (struct statfs_args *); | |
| 2700 | int sys_fstatfs (struct fstatfs_args *); | |
| 2701 | int sys_getfh (struct getfh_args *); | |
| 2702 | int sys_getdomainname (struct getdomainname_args *); | |
| 2703 | int sys_setdomainname (struct setdomainname_args *); | |
| 2704 | int sys_uname (struct uname_args *); | |
| 2705 | int sys_sysarch (struct sysarch_args *); | |
| 2706 | int sys_rtprio (struct rtprio_args *); | |
| 2707 | int sys_semsys (struct semsys_args *); | |
| 2708 | int sys_msgsys (struct msgsys_args *); | |
| 2709 | int sys_shmsys (struct shmsys_args *); | |
| b09fd398 MD |
2710 | int sys_extpread (struct extpread_args *); |
| 2711 | int sys_extpwrite (struct extpwrite_args *); | |
| 753fd850 MD |
2712 | int sys_ntp_adjtime (struct ntp_adjtime_args *); |
| 2713 | int sys_setgid (struct setgid_args *); | |
| 2714 | int sys_setegid (struct setegid_args *); | |
| 2715 | int sys_seteuid (struct seteuid_args *); | |
| 2716 | int sys_pathconf (struct pathconf_args *); | |
| 2717 | int sys_fpathconf (struct fpathconf_args *); | |
| 2718 | int sys_getrlimit (struct __getrlimit_args *); | |
| 2719 | int sys_setrlimit (struct __setrlimit_args *); | |
| 2720 | int sys_mmap (struct mmap_args *); | |
| 2721 | int sys_lseek (struct lseek_args *); | |
| 2722 | int sys_truncate (struct truncate_args *); | |
| 2723 | int sys_ftruncate (struct ftruncate_args *); | |
| 2724 | int sys___sysctl (struct sysctl_args *); | |
| 2725 | int sys_mlock (struct mlock_args *); | |
| 2726 | int sys_munlock (struct munlock_args *); | |
| 2727 | int sys_undelete (struct undelete_args *); | |
| 2728 | int sys_futimes (struct futimes_args *); | |
| 2729 | int sys_getpgid (struct getpgid_args *); | |
| 2730 | int sys_poll (struct poll_args *); | |
| 2731 | int sys_lkmnosys (struct nosys_args *); | |
| 2732 | int sys___semctl (struct __semctl_args *); | |
| 2733 | int sys_semget (struct semget_args *); | |
| 2734 | int sys_semop (struct semop_args *); | |
| 2735 | int sys_msgctl (struct msgctl_args *); | |
| 2736 | int sys_msgget (struct msgget_args *); | |
| 2737 | int sys_msgsnd (struct msgsnd_args *); | |
| 2738 | int sys_msgrcv (struct msgrcv_args *); | |
| 2739 | int sys_shmat (struct shmat_args *); | |
| 2740 | int sys_shmctl (struct shmctl_args *); | |
| 2741 | int sys_shmdt (struct shmdt_args *); | |
| 2742 | int sys_shmget (struct shmget_args *); | |
| 2743 | int sys_clock_gettime (struct clock_gettime_args *); | |
| 2744 | int sys_clock_settime (struct clock_settime_args *); | |
| 2745 | int sys_clock_getres (struct clock_getres_args *); | |
| 2746 | int sys_nanosleep (struct nanosleep_args *); | |
| 2747 | int sys_minherit (struct minherit_args *); | |
| 2748 | int sys_rfork (struct rfork_args *); | |
| 2749 | int sys_openbsd_poll (struct openbsd_poll_args *); | |
| 2750 | int sys_issetugid (struct issetugid_args *); | |
| 2751 | int sys_lchown (struct lchown_args *); | |
| 2752 | int sys_lchmod (struct lchmod_args *); | |
| 2753 | int sys_lutimes (struct lutimes_args *); | |
| b09fd398 MD |
2754 | int sys_extpreadv (struct extpreadv_args *); |
| 2755 | int sys_extpwritev (struct extpwritev_args *); | |
| 753fd850 MD |
2756 | int sys_fhstatfs (struct fhstatfs_args *); |
| 2757 | int sys_fhopen (struct fhopen_args *); | |
| 2758 | int sys_modnext (struct modnext_args *); | |
| 2759 | int sys_modstat (struct modstat_args *); | |
| 2760 | int sys_modfnext (struct modfnext_args *); | |
| 2761 | int sys_modfind (struct modfind_args *); | |
| 2762 | int sys_kldload (struct kldload_args *); | |
| 2763 | int sys_kldunload (struct kldunload_args *); | |
| 2764 | int sys_kldfind (struct kldfind_args *); | |
| 2765 | int sys_kldnext (struct kldnext_args *); | |
| 2766 | int sys_kldstat (struct kldstat_args *); | |
| 2767 | int sys_kldfirstmod (struct kldfirstmod_args *); | |
| 2768 | int sys_getsid (struct getsid_args *); | |
| 2769 | int sys_setresuid (struct setresuid_args *); | |
| 2770 | int sys_setresgid (struct setresgid_args *); | |
| 2771 | int sys_aio_return (struct aio_return_args *); | |
| 2772 | int sys_aio_suspend (struct aio_suspend_args *); | |
| 2773 | int sys_aio_cancel (struct aio_cancel_args *); | |
| 2774 | int sys_aio_error (struct aio_error_args *); | |
| 2775 | int sys_aio_read (struct aio_read_args *); | |
| 2776 | int sys_aio_write (struct aio_write_args *); | |
| 2777 | int sys_lio_listio (struct lio_listio_args *); | |
| 2778 | int sys_yield (struct yield_args *); | |
| 753fd850 MD |
2779 | int sys_mlockall (struct mlockall_args *); |
| 2780 | int sys_munlockall (struct munlockall_args *); | |
| 2781 | int sys___getcwd (struct __getcwd_args *); | |
| 2782 | int sys_sched_setparam (struct sched_setparam_args *); | |
| 2783 | int sys_sched_getparam (struct sched_getparam_args *); | |
| 2784 | int sys_sched_setscheduler (struct sched_setscheduler_args *); | |
| 2785 | int sys_sched_getscheduler (struct sched_getscheduler_args *); | |
| 2786 | int sys_sched_yield (struct sched_yield_args *); | |
| 2787 | int sys_sched_get_priority_max (struct sched_get_priority_max_args *); | |
| 2788 | int sys_sched_get_priority_min (struct sched_get_priority_min_args *); | |
| 2789 | int sys_sched_rr_get_interval (struct sched_rr_get_interval_args *); | |
| 2790 | int sys_utrace (struct utrace_args *); | |
| 2791 | int sys_kldsym (struct kldsym_args *); | |
| 2792 | int sys_jail (struct jail_args *); | |
| 2793 | int sys_sigprocmask (struct sigprocmask_args *); | |
| 2794 | int sys_sigsuspend (struct sigsuspend_args *); | |
| 2795 | int sys_sigaction (struct sigaction_args *); | |
| 2796 | int sys_sigpending (struct sigpending_args *); | |
| 2797 | int sys_sigreturn (struct sigreturn_args *); | |
| 2798 | int sys_sigtimedwait (struct sigtimedwait_args *); | |
| 2799 | int sys_sigwaitinfo (struct sigwaitinfo_args *); | |
| 2800 | int sys___acl_get_file (struct __acl_get_file_args *); | |
| 2801 | int sys___acl_set_file (struct __acl_set_file_args *); | |
| 2802 | int sys___acl_get_fd (struct __acl_get_fd_args *); | |
| 2803 | int sys___acl_set_fd (struct __acl_set_fd_args *); | |
| 2804 | int sys___acl_delete_file (struct __acl_delete_file_args *); | |
| 2805 | int sys___acl_delete_fd (struct __acl_delete_fd_args *); | |
| 2806 | int sys___acl_aclcheck_file (struct __acl_aclcheck_file_args *); | |
| 2807 | int sys___acl_aclcheck_fd (struct __acl_aclcheck_fd_args *); | |
| 2808 | int sys_extattrctl (struct extattrctl_args *); | |
| 2809 | int sys_extattr_set_file (struct extattr_set_file_args *); | |
| 2810 | int sys_extattr_get_file (struct extattr_get_file_args *); | |
| 2811 | int sys_extattr_delete_file (struct extattr_delete_file_args *); | |
| 2812 | int sys_aio_waitcomplete (struct aio_waitcomplete_args *); | |
| 2813 | int sys_getresuid (struct getresuid_args *); | |
| 2814 | int sys_getresgid (struct getresgid_args *); | |
| 2815 | int sys_kqueue (struct kqueue_args *); | |
| 2816 | int sys_kevent (struct kevent_args *); | |
| 2817 | int sys_sctp_peeloff (struct sctp_peeloff_args *); | |
| 91fdc001 | 2818 | int sys_lchflags (struct lchflags_args *); |
| 2a0783db | 2819 | int sys_uuidgen (struct uuidgen_args *); |
| 753fd850 MD |
2820 | int sys_sendfile (struct sendfile_args *); |
| 2821 | int sys_varsym_set (struct varsym_set_args *); | |
| 2822 | int sys_varsym_get (struct varsym_get_args *); | |
| 2823 | int sys_varsym_list (struct varsym_list_args *); | |
| 753fd850 MD |
2824 | int sys_exec_sys_register (struct exec_sys_register_args *); |
| 2825 | int sys_exec_sys_unregister (struct exec_sys_unregister_args *); | |
| 2826 | int sys_sys_checkpoint (struct sys_checkpoint_args *); | |
| 2827 | int sys_mountctl (struct mountctl_args *); | |
| 2828 | int sys_umtx_sleep (struct umtx_sleep_args *); | |
| 2829 | int sys_umtx_wakeup (struct umtx_wakeup_args *); | |
| 2830 | int sys_jail_attach (struct jail_attach_args *); | |
| ba491dfb MD |
2831 | int sys_set_tls_area (struct set_tls_area_args *); |
| 2832 | int sys_get_tls_area (struct get_tls_area_args *); | |
| 753fd850 MD |
2833 | int sys_closefrom (struct closefrom_args *); |
| 2834 | int sys_stat (struct stat_args *); | |
| 2835 | int sys_fstat (struct fstat_args *); | |
| 2836 | int sys_lstat (struct lstat_args *); | |
| 2837 | int sys_fhstat (struct fhstat_args *); | |
| 2838 | int sys_getdirentries (struct getdirentries_args *); | |
| 2839 | int sys_getdents (struct getdents_args *); | |
| 2840 | int sys_usched_set (struct usched_set_args *); | |
| b09fd398 MD |
2841 | int sys_extaccept (struct extaccept_args *); |
| 2842 | int sys_extconnect (struct extconnect_args *); | |
| e143cb06 | 2843 | int sys_syslink (struct syslink_args *); |
| afeabdca | 2844 | int sys_mcontrol (struct mcontrol_args *); |
| d3313941 MD |
2845 | int sys_vmspace_create (struct vmspace_create_args *); |
| 2846 | int sys_vmspace_destroy (struct vmspace_destroy_args *); | |
| 2847 | int sys_vmspace_ctl (struct vmspace_ctl_args *); | |
| 2848 | int sys_vmspace_mmap (struct vmspace_mmap_args *); | |
| 2849 | int sys_vmspace_munmap (struct vmspace_munmap_args *); | |
| 2850 | int sys_vmspace_mcontrol (struct vmspace_mcontrol_args *); | |
| 021a4ed4 MD |
2851 | int sys_vmspace_pread (struct vmspace_pread_args *); |
| 2852 | int sys_vmspace_pwrite (struct vmspace_pwrite_args *); | |
| a704dbd9 | 2853 | int sys_extexit (struct extexit_args *); |
| a0a27cfb | 2854 | int sys_lwp_create (struct lwp_create_args *); |
| c2e552b5 SS |
2855 | int sys_lwp_gettid (struct lwp_gettid_args *); |
| 2856 | int sys_lwp_kill (struct lwp_kill_args *); | |
| 649d3bd2 | 2857 | int sys_lwp_rtprio (struct lwp_rtprio_args *); |
| ae7cb1b5 | 2858 | int sys_pselect (struct pselect_args *); |
| d9fad06e MD |
2859 | int sys_statvfs (struct statvfs_args *); |
| 2860 | int sys_fstatvfs (struct fstatvfs_args *); | |
| 2861 | int sys_fhstatvfs (struct fhstatvfs_args *); | |
| 00fe9d48 | 2862 | int sys_getvfsstat (struct getvfsstat_args *); |
| 83a11774 | 2863 | int sys_openat (struct openat_args *); |
| e101a3f4 | 2864 | int sys_fstatat (struct fstatat_args *); |
| 8cde3c79 | 2865 | int sys_fchmodat (struct fchmodat_args *); |
| 32013176 | 2866 | int sys_fchownat (struct fchownat_args *); |
| 3a6d8629 | 2867 | int sys_unlinkat (struct unlinkat_args *); |
| 18cf460b | 2868 | int sys_faccessat (struct faccessat_args *); |
| 0b96c93b SK |
2869 | int sys_mq_open (struct mq_open_args *); |
| 2870 | int sys_mq_close (struct mq_close_args *); | |
| 2871 | int sys_mq_unlink (struct mq_unlink_args *); | |
| 2872 | int sys_mq_getattr (struct mq_getattr_args *); | |
| 2873 | int sys_mq_setattr (struct mq_setattr_args *); | |
| 2874 | int sys_mq_notify (struct mq_notify_args *); | |
| 2875 | int sys_mq_send (struct mq_send_args *); | |
| 2876 | int sys_mq_receive (struct mq_receive_args *); | |
| 2877 | int sys_mq_timedsend (struct mq_timedsend_args *); | |
| 2878 | int sys_mq_timedreceive (struct mq_timedreceive_args *); | |
| aa166ad1 AH |
2879 | int sys_ioprio_set (struct ioprio_set_args *); |
| 2880 | int sys_ioprio_get (struct ioprio_get_args *); | |
| 72f12c5b | 2881 | int sys_chroot_kernel (struct chroot_kernel_args *); |
| c7238745 | 2882 | int sys_renameat (struct renameat_args *); |
| 6d98f93c SW |
2883 | int sys_mkdirat (struct mkdirat_args *); |
| 2884 | int sys_mkfifoat (struct mkfifoat_args *); | |
| 2885 | int sys_mknodat (struct mknodat_args *); | |
| 2886 | int sys_readlinkat (struct readlinkat_args *); | |
| 2887 | int sys_symlinkat (struct symlinkat_args *); | |
| ba45172b | 2888 | int sys_swapoff (struct swapoff_args *); |
| b4d6d8bb | 2889 | int sys_vquotactl (struct vquotactl_args *); |
| 77e32d4c | 2890 | int sys_linkat (struct linkat_args *); |
| 6eb83deb | 2891 | int sys_eaccess (struct eaccess_args *); |
| 984263bc MD |
2892 | |
| 2893 | #endif /* !_SYS_SYSPROTO_H_ */ | |
| f1787048 JS |
2894 | #undef PAD_ |
| 2895 | ||
| 2896 | #endif /* _KERNEL */ |