root/compat/freebsd/freebsd_syscallargs.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


    1 /*      $OpenBSD: freebsd_syscallargs.h,v 1.34 2007/04/05 15:33:58 tedu Exp $   */
    2 
    3 /*
    4  * System call argument lists.
    5  *
    6  * DO NOT EDIT-- this file is automatically generated.
    7  * created from OpenBSD: syscalls.master,v 1.31 2007/04/05 15:33:42 tedu Exp 
    8  */
    9 
   10 #ifdef  syscallarg
   11 #undef  syscallarg
   12 #endif
   13 
   14 #define syscallarg(x)                                                   \
   15         union {                                                         \
   16                 register_t pad;                                         \
   17                 struct { x datum; } le;                                 \
   18                 struct {                                                \
   19                         int8_t pad[ (sizeof (register_t) < sizeof (x))  \
   20                                 ? 0                                     \
   21                                 : sizeof (register_t) - sizeof (x)];    \
   22                         x datum;                                        \
   23                 } be;                                                   \
   24         }
   25 
   26 struct freebsd_sys_open_args {
   27         syscallarg(char *) path;
   28         syscallarg(int) flags;
   29         syscallarg(int) mode;
   30 };
   31 
   32 struct compat_43_freebsd_sys_creat_args {
   33         syscallarg(char *) path;
   34         syscallarg(int) mode;
   35 };
   36 
   37 struct freebsd_sys_link_args {
   38         syscallarg(char *) path;
   39         syscallarg(char *) link;
   40 };
   41 
   42 struct freebsd_sys_unlink_args {
   43         syscallarg(char *) path;
   44 };
   45 
   46 struct freebsd_sys_chdir_args {
   47         syscallarg(char *) path;
   48 };
   49 
   50 struct freebsd_sys_mknod_args {
   51         syscallarg(char *) path;
   52         syscallarg(int) mode;
   53         syscallarg(int) dev;
   54 };
   55 
   56 struct freebsd_sys_chmod_args {
   57         syscallarg(char *) path;
   58         syscallarg(int) mode;
   59 };
   60 
   61 struct freebsd_sys_chown_args {
   62         syscallarg(char *) path;
   63         syscallarg(int) uid;
   64         syscallarg(int) gid;
   65 };
   66 
   67 struct freebsd_sys_getfsstat_args {
   68         syscallarg(struct freebsd_statfs *) buf;
   69         syscallarg(long) bufsize;
   70         syscallarg(int) flags;
   71 };
   72 
   73 struct freebsd_sys_mount_args {
   74         syscallarg(int) type;
   75         syscallarg(char *) path;
   76         syscallarg(int) flags;
   77         syscallarg(caddr_t) data;
   78 };
   79 
   80 struct freebsd_sys_unmount_args {
   81         syscallarg(char *) path;
   82         syscallarg(int) flags;
   83 };
   84 
   85 struct freebsd_sys_ptrace_args {
   86         syscallarg(int) req;
   87         syscallarg(pid_t) pid;
   88         syscallarg(caddr_t) addr;
   89         syscallarg(int) data;
   90 };
   91 
   92 struct freebsd_sys_access_args {
   93         syscallarg(char *) path;
   94         syscallarg(int) flags;
   95 };
   96 
   97 struct freebsd_sys_chflags_args {
   98         syscallarg(char *) path;
   99         syscallarg(int) flags;
  100 };
  101 
  102 struct compat_43_freebsd_sys_stat_args {
  103         syscallarg(char *) path;
  104         syscallarg(struct stat43 *) ub;
  105 };
  106 
  107 struct compat_43_freebsd_sys_lstat_args {
  108         syscallarg(char *) path;
  109         syscallarg(struct stat43 *) ub;
  110 };
  111 
  112 struct freebsd_sys_ioctl_args {
  113         syscallarg(int) fd;
  114         syscallarg(u_long) com;
  115         syscallarg(caddr_t) data;
  116 };
  117 
  118 struct freebsd_sys_revoke_args {
  119         syscallarg(char *) path;
  120 };
  121 
  122 struct freebsd_sys_symlink_args {
  123         syscallarg(char *) path;
  124         syscallarg(char *) link;
  125 };
  126 
  127 struct freebsd_sys_readlink_args {
  128         syscallarg(char *) path;
  129         syscallarg(char *) buf;
  130         syscallarg(int) count;
  131 };
  132 
  133 struct freebsd_sys_execve_args {
  134         syscallarg(char *) path;
  135         syscallarg(char **) argp;
  136         syscallarg(char **) envp;
  137 };
  138 
  139 struct freebsd_sys_chroot_args {
  140         syscallarg(char *) path;
  141 };
  142 
  143 struct freebsd_sys_madvise_args {
  144         syscallarg(caddr_t) addr;
  145         syscallarg(size_t) len;
  146         syscallarg(int) behav;
  147 };
  148 
  149 struct freebsd_sys_fcntl_args {
  150         syscallarg(int) fd;
  151         syscallarg(int) cmd;
  152         syscallarg(void *) arg;
  153 };
  154 
  155 struct freebsd_sys_sigreturn_args {
  156         syscallarg(struct freebsd_sigcontext *) scp;
  157 };
  158 
  159 struct freebsd_sys_rename_args {
  160         syscallarg(char *) from;
  161         syscallarg(char *) to;
  162 };
  163 
  164 struct compat_43_freebsd_sys_truncate_args {
  165         syscallarg(char *) path;
  166         syscallarg(long) length;
  167 };
  168 
  169 struct freebsd_sys_mkfifo_args {
  170         syscallarg(char *) path;
  171         syscallarg(int) mode;
  172 };
  173 
  174 struct freebsd_sys_mkdir_args {
  175         syscallarg(char *) path;
  176         syscallarg(int) mode;
  177 };
  178 
  179 struct freebsd_sys_rmdir_args {
  180         syscallarg(char *) path;
  181 };
  182 
  183 struct freebsd_sys_statfs_args {
  184         syscallarg(char *) path;
  185         syscallarg(struct freebsd_statfs *) buf;
  186 };
  187 
  188 struct freebsd_sys_fstatfs_args {
  189         syscallarg(int) fd;
  190         syscallarg(struct freebsd_statfs *) buf;
  191 };
  192 
  193 struct freebsd_sys_getfh_args {
  194         syscallarg(char *) fname;
  195         syscallarg(fhandle_t *) fhp;
  196 };
  197 
  198 struct freebsd_sys_rtprio_args {
  199         syscallarg(int) function;
  200         syscallarg(pid_t) pid;
  201         syscallarg(struct freebsd_rtprio *) rtp;
  202 };
  203 
  204 struct freebsd_sys_stat_args {
  205         syscallarg(char *) path;
  206         syscallarg(struct stat35 *) ub;
  207 };
  208 
  209 struct freebsd_sys_lstat_args {
  210         syscallarg(char *) path;
  211         syscallarg(struct stat35 *) ub;
  212 };
  213 
  214 struct freebsd_sys_pathconf_args {
  215         syscallarg(char *) path;
  216         syscallarg(int) name;
  217 };
  218 
  219 struct freebsd_sys_mmap_args {
  220         syscallarg(caddr_t) addr;
  221         syscallarg(size_t) len;
  222         syscallarg(int) prot;
  223         syscallarg(int) flags;
  224         syscallarg(int) fd;
  225         syscallarg(long) pad;
  226         syscallarg(off_t) pos;
  227 };
  228 
  229 struct freebsd_sys_truncate_args {
  230         syscallarg(char *) path;
  231         syscallarg(int) pad;
  232         syscallarg(off_t) length;
  233 };
  234 
  235 struct freebsd_sys_poll2_args {
  236         syscallarg(struct pollfd *) fds;
  237         syscallarg(unsigned long) nfds;
  238         syscallarg(int) timeout;
  239 };
  240 
  241 struct freebsd_sys_getdents_args {
  242         syscallarg(int) fd;
  243         syscallarg(void *) dirent;
  244         syscallarg(unsigned) count;
  245 };
  246 
  247 struct freebsd_sys_sigprocmask40_args {
  248         syscallarg(int) how;
  249         syscallarg(const freebsd_sigset_t *) set;
  250         syscallarg(freebsd_sigset_t *) oset;
  251 };
  252 
  253 struct freebsd_sys_sigsuspend40_args {
  254         syscallarg(const freebsd_sigset_t *) sigmask;
  255 };
  256 
  257 struct freebsd_sys_sigaction40_args {
  258         syscallarg(int) sig;
  259         syscallarg(const struct freebsd_sigaction *) act;
  260         syscallarg(struct freebsd_sigaction *) oact;
  261 };
  262 
  263 struct freebsd_sys_sigpending40_args {
  264         syscallarg(freebsd_sigset_t *) set;
  265 };
  266 
  267 /*
  268  * System call prototypes.
  269  */
  270 
  271 int     sys_nosys(struct proc *, void *, register_t *);
  272 int     sys_exit(struct proc *, void *, register_t *);
  273 int     sys_fork(struct proc *, void *, register_t *);
  274 int     sys_read(struct proc *, void *, register_t *);
  275 int     sys_write(struct proc *, void *, register_t *);
  276 int     freebsd_sys_open(struct proc *, void *, register_t *);
  277 int     sys_close(struct proc *, void *, register_t *);
  278 int     sys_wait4(struct proc *, void *, register_t *);
  279 int     compat_43_freebsd_sys_creat(struct proc *, void *, register_t *);
  280 int     freebsd_sys_link(struct proc *, void *, register_t *);
  281 int     freebsd_sys_unlink(struct proc *, void *, register_t *);
  282 int     freebsd_sys_chdir(struct proc *, void *, register_t *);
  283 int     sys_fchdir(struct proc *, void *, register_t *);
  284 int     freebsd_sys_mknod(struct proc *, void *, register_t *);
  285 int     freebsd_sys_chmod(struct proc *, void *, register_t *);
  286 int     freebsd_sys_chown(struct proc *, void *, register_t *);
  287 int     sys_obreak(struct proc *, void *, register_t *);
  288 int     freebsd_sys_getfsstat(struct proc *, void *, register_t *);
  289 int     compat_43_sys_lseek(struct proc *, void *, register_t *);
  290 int     sys_getpid(struct proc *, void *, register_t *);
  291 int     freebsd_sys_mount(struct proc *, void *, register_t *);
  292 int     freebsd_sys_unmount(struct proc *, void *, register_t *);
  293 int     sys_setuid(struct proc *, void *, register_t *);
  294 int     sys_getuid(struct proc *, void *, register_t *);
  295 int     sys_geteuid(struct proc *, void *, register_t *);
  296 #ifdef PTRACE
  297 int     freebsd_sys_ptrace(struct proc *, void *, register_t *);
  298 #else
  299 #endif
  300 int     sys_recvmsg(struct proc *, void *, register_t *);
  301 int     sys_sendmsg(struct proc *, void *, register_t *);
  302 int     sys_recvfrom(struct proc *, void *, register_t *);
  303 int     sys_accept(struct proc *, void *, register_t *);
  304 int     sys_getpeername(struct proc *, void *, register_t *);
  305 int     sys_getsockname(struct proc *, void *, register_t *);
  306 int     freebsd_sys_access(struct proc *, void *, register_t *);
  307 int     freebsd_sys_chflags(struct proc *, void *, register_t *);
  308 int     sys_fchflags(struct proc *, void *, register_t *);
  309 int     sys_sync(struct proc *, void *, register_t *);
  310 int     sys_kill(struct proc *, void *, register_t *);
  311 int     compat_43_freebsd_sys_stat(struct proc *, void *, register_t *);
  312 int     sys_getppid(struct proc *, void *, register_t *);
  313 int     compat_43_freebsd_sys_lstat(struct proc *, void *, register_t *);
  314 int     sys_dup(struct proc *, void *, register_t *);
  315 int     sys_opipe(struct proc *, void *, register_t *);
  316 int     sys_getegid(struct proc *, void *, register_t *);
  317 int     sys_profil(struct proc *, void *, register_t *);
  318 #ifdef KTRACE
  319 int     sys_ktrace(struct proc *, void *, register_t *);
  320 #else
  321 #endif
  322 int     sys_sigaction(struct proc *, void *, register_t *);
  323 int     sys_getgid(struct proc *, void *, register_t *);
  324 int     sys_sigprocmask(struct proc *, void *, register_t *);
  325 int     sys_getlogin(struct proc *, void *, register_t *);
  326 int     sys_setlogin(struct proc *, void *, register_t *);
  327 #ifdef ACCOUNTING
  328 int     sys_acct(struct proc *, void *, register_t *);
  329 #else
  330 #endif
  331 int     sys_sigpending(struct proc *, void *, register_t *);
  332 int     sys_sigaltstack(struct proc *, void *, register_t *);
  333 int     freebsd_sys_ioctl(struct proc *, void *, register_t *);
  334 int     sys_reboot(struct proc *, void *, register_t *);
  335 int     freebsd_sys_revoke(struct proc *, void *, register_t *);
  336 int     freebsd_sys_symlink(struct proc *, void *, register_t *);
  337 int     freebsd_sys_readlink(struct proc *, void *, register_t *);
  338 int     freebsd_sys_execve(struct proc *, void *, register_t *);
  339 int     sys_umask(struct proc *, void *, register_t *);
  340 int     freebsd_sys_chroot(struct proc *, void *, register_t *);
  341 int     compat_43_sys_fstat(struct proc *, void *, register_t *);
  342 int     compat_43_sys_getkerninfo(struct proc *, void *, register_t *);
  343 int     compat_43_sys_getpagesize(struct proc *, void *, register_t *);
  344 int     sys_msync(struct proc *, void *, register_t *);
  345 int     sys_vfork(struct proc *, void *, register_t *);
  346 int     sys_sbrk(struct proc *, void *, register_t *);
  347 int     sys_sstk(struct proc *, void *, register_t *);
  348 int     compat_43_sys_mmap(struct proc *, void *, register_t *);
  349 int     sys_ovadvise(struct proc *, void *, register_t *);
  350 int     sys_munmap(struct proc *, void *, register_t *);
  351 int     sys_mprotect(struct proc *, void *, register_t *);
  352 int     freebsd_sys_madvise(struct proc *, void *, register_t *);
  353 int     sys_mincore(struct proc *, void *, register_t *);
  354 int     sys_getgroups(struct proc *, void *, register_t *);
  355 int     sys_setgroups(struct proc *, void *, register_t *);
  356 int     sys_getpgrp(struct proc *, void *, register_t *);
  357 int     sys_setpgid(struct proc *, void *, register_t *);
  358 int     sys_setitimer(struct proc *, void *, register_t *);
  359 int     compat_43_sys_wait(struct proc *, void *, register_t *);
  360 int     compat_25_sys_swapon(struct proc *, void *, register_t *);
  361 int     sys_getitimer(struct proc *, void *, register_t *);
  362 int     compat_43_sys_gethostname(struct proc *, void *, register_t *);
  363 int     compat_43_sys_sethostname(struct proc *, void *, register_t *);
  364 int     compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
  365 int     sys_dup2(struct proc *, void *, register_t *);
  366 int     freebsd_sys_fcntl(struct proc *, void *, register_t *);
  367 int     sys_select(struct proc *, void *, register_t *);
  368 int     sys_fsync(struct proc *, void *, register_t *);
  369 int     sys_setpriority(struct proc *, void *, register_t *);
  370 int     sys_socket(struct proc *, void *, register_t *);
  371 int     sys_connect(struct proc *, void *, register_t *);
  372 int     compat_43_sys_accept(struct proc *, void *, register_t *);
  373 int     sys_getpriority(struct proc *, void *, register_t *);
  374 int     compat_43_sys_send(struct proc *, void *, register_t *);
  375 int     compat_43_sys_recv(struct proc *, void *, register_t *);
  376 int     freebsd_sys_sigreturn(struct proc *, void *, register_t *);
  377 int     sys_bind(struct proc *, void *, register_t *);
  378 int     sys_setsockopt(struct proc *, void *, register_t *);
  379 int     sys_listen(struct proc *, void *, register_t *);
  380 int     compat_43_sys_sigvec(struct proc *, void *, register_t *);
  381 int     compat_43_sys_sigblock(struct proc *, void *, register_t *);
  382 int     compat_43_sys_sigsetmask(struct proc *, void *, register_t *);
  383 int     sys_sigsuspend(struct proc *, void *, register_t *);
  384 int     compat_43_sys_sigstack(struct proc *, void *, register_t *);
  385 int     compat_43_sys_recvmsg(struct proc *, void *, register_t *);
  386 int     compat_43_sys_sendmsg(struct proc *, void *, register_t *);
  387 #ifdef TRACE
  388 int     sys_vtrace(struct proc *, void *, register_t *);
  389 #else
  390 #endif
  391 int     sys_gettimeofday(struct proc *, void *, register_t *);
  392 int     sys_getrusage(struct proc *, void *, register_t *);
  393 int     sys_getsockopt(struct proc *, void *, register_t *);
  394 int     sys_readv(struct proc *, void *, register_t *);
  395 int     sys_writev(struct proc *, void *, register_t *);
  396 int     sys_settimeofday(struct proc *, void *, register_t *);
  397 int     sys_fchown(struct proc *, void *, register_t *);
  398 int     sys_fchmod(struct proc *, void *, register_t *);
  399 int     compat_43_sys_recvfrom(struct proc *, void *, register_t *);
  400 int     sys_setreuid(struct proc *, void *, register_t *);
  401 int     sys_setregid(struct proc *, void *, register_t *);
  402 int     freebsd_sys_rename(struct proc *, void *, register_t *);
  403 int     compat_43_freebsd_sys_truncate(struct proc *, void *, register_t *);
  404 int     compat_43_sys_ftruncate(struct proc *, void *, register_t *);
  405 int     sys_flock(struct proc *, void *, register_t *);
  406 int     freebsd_sys_mkfifo(struct proc *, void *, register_t *);
  407 int     sys_sendto(struct proc *, void *, register_t *);
  408 int     sys_shutdown(struct proc *, void *, register_t *);
  409 int     sys_socketpair(struct proc *, void *, register_t *);
  410 int     freebsd_sys_mkdir(struct proc *, void *, register_t *);
  411 int     freebsd_sys_rmdir(struct proc *, void *, register_t *);
  412 int     sys_utimes(struct proc *, void *, register_t *);
  413 int     sys_adjtime(struct proc *, void *, register_t *);
  414 int     compat_43_sys_getpeername(struct proc *, void *, register_t *);
  415 int     compat_43_sys_gethostid(struct proc *, void *, register_t *);
  416 int     compat_43_sys_sethostid(struct proc *, void *, register_t *);
  417 int     compat_43_sys_getrlimit(struct proc *, void *, register_t *);
  418 int     compat_43_sys_setrlimit(struct proc *, void *, register_t *);
  419 int     compat_43_sys_killpg(struct proc *, void *, register_t *);
  420 int     sys_setsid(struct proc *, void *, register_t *);
  421 int     sys_quotactl(struct proc *, void *, register_t *);
  422 int     compat_43_sys_quota(struct proc *, void *, register_t *);
  423 int     compat_43_sys_getsockname(struct proc *, void *, register_t *);
  424 #if defined(NFSCLIENT) || defined(NFSSERVER)
  425 int     sys_nfssvc(struct proc *, void *, register_t *);
  426 #else
  427 #endif
  428 int     compat_43_sys_getdirentries(struct proc *, void *, register_t *);
  429 int     freebsd_sys_statfs(struct proc *, void *, register_t *);
  430 int     freebsd_sys_fstatfs(struct proc *, void *, register_t *);
  431 #ifdef NFSCLIENT
  432 int     freebsd_sys_getfh(struct proc *, void *, register_t *);
  433 #else
  434 #endif
  435 int     compat_09_sys_getdomainname(struct proc *, void *, register_t *);
  436 int     compat_09_sys_setdomainname(struct proc *, void *, register_t *);
  437 int     compat_09_sys_uname(struct proc *, void *, register_t *);
  438 int     sys_sysarch(struct proc *, void *, register_t *);
  439 int     freebsd_sys_rtprio(struct proc *, void *, register_t *);
  440 #if defined(SYSVSEM) && !defined(alpha)
  441 int     compat_10_sys_semsys(struct proc *, void *, register_t *);
  442 #else
  443 #endif
  444 #if defined(SYSVMSG) && !defined(alpha)
  445 int     compat_10_sys_msgsys(struct proc *, void *, register_t *);
  446 #else
  447 #endif
  448 #if defined(SYSVSHM) && !defined(alpha)
  449 int     compat_10_sys_shmsys(struct proc *, void *, register_t *);
  450 #else
  451 #endif
  452 int     sys_pread(struct proc *, void *, register_t *);
  453 int     sys_pwrite(struct proc *, void *, register_t *);
  454 int     sys_setgid(struct proc *, void *, register_t *);
  455 int     sys_setegid(struct proc *, void *, register_t *);
  456 int     sys_seteuid(struct proc *, void *, register_t *);
  457 int     freebsd_sys_stat(struct proc *, void *, register_t *);
  458 int     compat_35_sys_fstat(struct proc *, void *, register_t *);
  459 int     freebsd_sys_lstat(struct proc *, void *, register_t *);
  460 int     freebsd_sys_pathconf(struct proc *, void *, register_t *);
  461 int     sys_fpathconf(struct proc *, void *, register_t *);
  462 int     sys_getrlimit(struct proc *, void *, register_t *);
  463 int     sys_setrlimit(struct proc *, void *, register_t *);
  464 int     sys_getdirentries(struct proc *, void *, register_t *);
  465 int     freebsd_sys_mmap(struct proc *, void *, register_t *);
  466 int     sys_nosys(struct proc *, void *, register_t *);
  467 int     sys_lseek(struct proc *, void *, register_t *);
  468 int     freebsd_sys_truncate(struct proc *, void *, register_t *);
  469 int     sys_ftruncate(struct proc *, void *, register_t *);
  470 int     sys___sysctl(struct proc *, void *, register_t *);
  471 int     sys_mlock(struct proc *, void *, register_t *);
  472 int     sys_munlock(struct proc *, void *, register_t *);
  473 int     sys_getpgid(struct proc *, void *, register_t *);
  474 int     sys_poll(struct proc *, void *, register_t *);
  475 #ifdef SYSVSEM
  476 int     sys___semctl(struct proc *, void *, register_t *);
  477 int     sys_semget(struct proc *, void *, register_t *);
  478 int     sys_semop(struct proc *, void *, register_t *);
  479 #else
  480 #endif
  481 #ifdef SYSVMSG
  482 int     sys_msgctl(struct proc *, void *, register_t *);
  483 int     sys_msgget(struct proc *, void *, register_t *);
  484 int     sys_msgsnd(struct proc *, void *, register_t *);
  485 int     sys_msgrcv(struct proc *, void *, register_t *);
  486 #else
  487 #endif
  488 #ifdef SYSVSHM
  489 int     sys_shmat(struct proc *, void *, register_t *);
  490 int     sys_shmctl(struct proc *, void *, register_t *);
  491 int     sys_shmdt(struct proc *, void *, register_t *);
  492 int     sys_shmget(struct proc *, void *, register_t *);
  493 #else
  494 #endif
  495 int     sys_clock_gettime(struct proc *, void *, register_t *);
  496 int     sys_nanosleep(struct proc *, void *, register_t *);
  497 int     sys_minherit(struct proc *, void *, register_t *);
  498 int     sys_rfork(struct proc *, void *, register_t *);
  499 int     freebsd_sys_poll2(struct proc *, void *, register_t *);
  500 int     sys_issetugid(struct proc *, void *, register_t *);
  501 int     sys_lchown(struct proc *, void *, register_t *);
  502 int     freebsd_sys_getdents(struct proc *, void *, register_t *);
  503 int     sys_setresuid(struct proc *, void *, register_t *);
  504 int     sys_setresgid(struct proc *, void *, register_t *);
  505 int     freebsd_sys_sigprocmask40(struct proc *, void *, register_t *);
  506 int     freebsd_sys_sigsuspend40(struct proc *, void *, register_t *);
  507 int     freebsd_sys_sigaction40(struct proc *, void *, register_t *);
  508 int     freebsd_sys_sigpending40(struct proc *, void *, register_t *);
  509 int     sys_kqueue(struct proc *, void *, register_t *);
  510 int     sys_kevent(struct proc *, void *, register_t *);

/* [<][>][^][v][top][bottom][index][help] */