/* $NetBSD: linux32_syscallargs.h,v 1.6 2006/09/01 21:19:45 matt Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. * created from NetBSD: syscalls.master,v 1.3 2006/06/25 16:15:39 manu Exp */ #ifndef _LINUX32_SYS_SYSCALLARGS_H_ #define _LINUX32_SYS_SYSCALLARGS_H_ #ifdef syscallarg #undef syscallarg #endif #define syscallarg(x) \ union { \ register32_t pad; \ struct { x datum; } le; \ struct { /* LINTED zero array dimension */ \ int8_t pad[ /* CONSTCOND */ \ (sizeof (register32_t) < sizeof (x)) \ ? 0 \ : sizeof (register32_t) - sizeof (x)]; \ x datum; \ } be; \ } struct linux32_sys_open_args { syscallarg(const netbsd32_charp) path; syscallarg(int) flags; syscallarg(int) mode; }; struct linux32_sys_waitpid_args { syscallarg(int) pid; syscallarg(netbsd32_intp) status; syscallarg(int) options; }; struct linux32_sys_creat_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; }; struct linux32_sys_link_args { syscallarg(const netbsd32_charp) path; syscallarg(const netbsd32_charp) link; }; struct linux32_sys_unlink_args { syscallarg(const netbsd32_charp) path; }; struct linux32_sys_chdir_args { syscallarg(const netbsd32_charp) path; }; struct linux32_sys_time_args { syscallarg(linux32_timep_t) t; }; struct linux32_sys_mknod_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; syscallarg(int) dev; }; struct linux32_sys_chmod_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; }; struct linux32_sys_lchown16_args { syscallarg(const netbsd32_charp) path; syscallarg(int) uid; syscallarg(int) gid; }; struct linux32_sys_break_args { syscallarg(netbsd32_charp) nsize; }; struct linux32_sys_stime_args { syscallarg(linux32_timep_t) t; }; struct linux32_sys_utime_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_utimbufp_t) times; }; struct linux32_sys_access_args { syscallarg(const netbsd32_charp) path; syscallarg(int) flags; }; struct linux32_sys_kill_args { syscallarg(int) pid; syscallarg(int) signum; }; struct linux32_sys_rename_args { syscallarg(const netbsd32_charp) from; syscallarg(const netbsd32_charp) to; }; struct linux32_sys_mkdir_args { syscallarg(const netbsd32_charp) path; syscallarg(int) mode; }; struct linux32_sys_rmdir_args { syscallarg(const netbsd32_charp) path; }; struct linux32_sys_pipe_args { syscallarg(netbsd32_intp) fd; }; struct linux32_sys_times_args { syscallarg(linux32_tmsp_t) tms; }; struct linux32_sys_brk_args { syscallarg(netbsd32_charp) nsize; }; struct linux32_sys_signal_args { syscallarg(int) signum; syscallarg(linux32_handler_t) handler; }; struct linux32_sys_ioctl_args { syscallarg(int) fd; syscallarg(netbsd32_u_long) com; syscallarg(netbsd32_charp) data; }; struct linux32_sys_fcntl_args { syscallarg(int) fd; syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; struct linux32_sys_oldolduname_args { syscallarg(linux32_oldold_utsnamep_t) up; }; struct linux_sys_setreuid16_args { syscallarg(int) ruid; syscallarg(int) euid; }; struct linux_sys_setregid16_args { syscallarg(int) rgid; syscallarg(int) egid; }; struct linux32_sys_setrlimit_args { syscallarg(u_int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; struct linux32_sys_getrlimit_args { syscallarg(u_int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; struct linux32_sys_gettimeofday_args { syscallarg(netbsd32_timevalp_t) tp; syscallarg(netbsd32_timezonep_t) tzp; }; struct linux32_sys_settimeofday_args { syscallarg(netbsd32_timevalp_t) tp; syscallarg(netbsd32_timezonep_t) tzp; }; struct linux32_sys_getgroups16_args { syscallarg(int) gidsetsize; syscallarg(linux32_gidp_t) gidset; }; struct linux32_sys_setgroups16_args { syscallarg(int) gidsetsize; syscallarg(linux32_gidp_t) gidset; }; struct linux32_sys_oldselect_args { syscallarg(linux32_oldselectp_t) lsp; }; struct linux32_sys_symlink_args { syscallarg(netbsd32_charp) path; syscallarg(const netbsd32_charp) link; }; struct linux32_sys_readlink_args { syscallarg(const netbsd32_charp) name; syscallarg(netbsd32_charp) buf; syscallarg(int) count; }; struct linux32_sys_swapon_args { syscallarg(netbsd32_charp) name; }; struct linux32_sys_reboot_args { syscallarg(int) magic1; syscallarg(int) magic2; syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; struct linux32_sys_old_mmap_args { syscallarg(linux32_oldmmapp) lmp; }; struct linux32_sys_truncate_args { syscallarg(const netbsd32_charp) path; syscallarg(netbsd32_long) length; }; struct linux32_sys_fchown16_args { syscallarg(int) fd; syscallarg(int) uid; syscallarg(int) gid; }; struct linux32_sys_getpriority_args { syscallarg(int) which; syscallarg(int) who; }; struct linux32_sys_setpriority_args { syscallarg(int) which; syscallarg(int) who; syscallarg(int) prio; }; struct linux32_sys_socketcall_args { syscallarg(int) what; syscallarg(netbsd32_voidp) args; }; struct linux32_sys_wait4_args { syscallarg(int) pid; syscallarg(netbsd32_intp) status; syscallarg(int) options; syscallarg(netbsd32_rusagep_t) rusage; }; struct linux32_sys_swapoff_args { syscallarg(const netbsd32_charp) path; }; struct linux32_sys_sigreturn_args { syscallarg(linux32_sigcontextp_t) scp; }; struct linux32_sys_clone_args { syscallarg(int) flags; syscallarg(netbsd32_voidp) stack; }; struct linux32_sys_uname_args { syscallarg(linux32_utsnamep) up; }; struct linux32_sys_mprotect_args { syscallarg(netbsd32_voidp) addr; syscallarg(netbsd32_size_t) len; syscallarg(int) prot; }; struct linux32_sys_llseek_args { syscallarg(int) fd; syscallarg(u_int32_t) ohigh; syscallarg(u_int32_t) olow; syscallarg(netbsd32_caddr_t) res; syscallarg(int) whence; }; struct linux32_sys_getdents_args { syscallarg(int) fd; syscallarg(linux32_direntp_t) dent; syscallarg(unsigned int) count; }; struct linux32_sys_select_args { syscallarg(int) nfds; syscallarg(netbsd32_fd_setp_t) readfds; syscallarg(netbsd32_fd_setp_t) writefds; syscallarg(netbsd32_fd_setp_t) exceptfds; syscallarg(netbsd32_timevalp_t) timeout; }; struct linux32_sys___sysctl_args { syscallarg(linux32___sysctlp_t) lsp; }; struct linux32_sys_sched_setscheduler_args { syscallarg(pid_t) pid; syscallarg(int) policy; syscallarg(const linux32_sched_paramp_t) sp; }; struct linux32_sys_rt_sigreturn_args { syscallarg(linux32_ucontextp_t) ucp; }; struct linux32_sys_rt_sigaction_args { syscallarg(int) signum; syscallarg(const linux32_sigactionp_t) nsa; syscallarg(linux32_sigactionp_t) osa; syscallarg(netbsd32_size_t) sigsetsize; }; struct linux32_sys_rt_sigprocmask_args { syscallarg(int) how; syscallarg(const linux32_sigsetp_t) set; syscallarg(linux32_sigsetp_t) oset; syscallarg(netbsd32_size_t) sigsetsize; }; struct linux32_sys_rt_sigsuspend_args { syscallarg(linux32_sigsetp_t) unewset; syscallarg(netbsd32_size_t) sigsetsize; }; struct linux32_sys_ugetrlimit_args { syscallarg(int) which; syscallarg(netbsd32_orlimitp_t) rlp; }; struct linux32_sys_stat64_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_stat64p) sp; }; struct linux32_sys_lstat64_args { syscallarg(const netbsd32_charp) path; syscallarg(linux32_stat64p) sp; }; struct linux32_sys_fstat64_args { syscallarg(int) fd; syscallarg(linux32_stat64p) sp; }; struct linux32_sys_getdents64_args { syscallarg(int) fd; syscallarg(linux32_dirent64p_t) dent; syscallarg(unsigned int) count; }; struct linux32_sys_fcntl64_args { syscallarg(int) fd; syscallarg(int) cmd; syscallarg(netbsd32_voidp) arg; }; /* * System call prototypes. */ int linux_sys_nosys(struct lwp *, void *, register_t *); int sys_exit(struct lwp *, void *, register_t *); int sys_fork(struct lwp *, void *, register_t *); int netbsd32_read(struct lwp *, void *, register_t *); int netbsd32_write(struct lwp *, void *, register_t *); int linux32_sys_open(struct lwp *, void *, register_t *); int sys_close(struct lwp *, void *, register_t *); int linux32_sys_waitpid(struct lwp *, void *, register_t *); int linux32_sys_creat(struct lwp *, void *, register_t *); int linux32_sys_link(struct lwp *, void *, register_t *); int linux32_sys_unlink(struct lwp *, void *, register_t *); int netbsd32_execve(struct lwp *, void *, register_t *); int linux32_sys_chdir(struct lwp *, void *, register_t *); int linux32_sys_time(struct lwp *, void *, register_t *); int linux32_sys_mknod(struct lwp *, void *, register_t *); int linux32_sys_chmod(struct lwp *, void *, register_t *); int linux32_sys_lchown16(struct lwp *, void *, register_t *); int linux32_sys_break(struct lwp *, void *, register_t *); int compat_43_netbsd32_olseek(struct lwp *, void *, register_t *); int linux_sys_getpid(struct lwp *, void *, register_t *); int sys_setuid(struct lwp *, void *, register_t *); int sys_getuid(struct lwp *, void *, register_t *); int linux32_sys_stime(struct lwp *, void *, register_t *); int linux_sys_alarm(struct lwp *, void *, register_t *); int linux_sys_pause(struct lwp *, void *, register_t *); int linux32_sys_utime(struct lwp *, void *, register_t *); int linux32_sys_access(struct lwp *, void *, register_t *); int linux_sys_nice(struct lwp *, void *, register_t *); int sys_sync(struct lwp *, void *, register_t *); int linux32_sys_kill(struct lwp *, void *, register_t *); int linux32_sys_rename(struct lwp *, void *, register_t *); int linux32_sys_mkdir(struct lwp *, void *, register_t *); int linux32_sys_rmdir(struct lwp *, void *, register_t *); int netbsd32_dup(struct lwp *, void *, register_t *); int linux32_sys_pipe(struct lwp *, void *, register_t *); int linux32_sys_times(struct lwp *, void *, register_t *); int linux32_sys_brk(struct lwp *, void *, register_t *); int sys_setgid(struct lwp *, void *, register_t *); int sys_getgid(struct lwp *, void *, register_t *); int linux32_sys_signal(struct lwp *, void *, register_t *); int sys_geteuid(struct lwp *, void *, register_t *); int sys_getegid(struct lwp *, void *, register_t *); int netbsd32_acct(struct lwp *, void *, register_t *); int linux32_sys_ioctl(struct lwp *, void *, register_t *); int linux32_sys_fcntl(struct lwp *, void *, register_t *); int sys_setpgid(struct lwp *, void *, register_t *); int linux32_sys_oldolduname(struct lwp *, void *, register_t *); int sys_umask(struct lwp *, void *, register_t *); int netbsd32_chroot(struct lwp *, void *, register_t *); int netbsd32_dup2(struct lwp *, void *, register_t *); int linux_sys_getppid(struct lwp *, void *, register_t *); int sys_getpgrp(struct lwp *, void *, register_t *); int sys_setsid(struct lwp *, void *, register_t *); int linux_sys_setreuid16(struct lwp *, void *, register_t *); int linux_sys_setregid16(struct lwp *, void *, register_t *); int compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *); int linux32_sys_setrlimit(struct lwp *, void *, register_t *); int linux32_sys_getrlimit(struct lwp *, void *, register_t *); int netbsd32_getrusage(struct lwp *, void *, register_t *); int linux32_sys_gettimeofday(struct lwp *, void *, register_t *); int linux32_sys_settimeofday(struct lwp *, void *, register_t *); int linux32_sys_getgroups16(struct lwp *, void *, register_t *); int linux32_sys_setgroups16(struct lwp *, void *, register_t *); int linux32_sys_oldselect(struct lwp *, void *, register_t *); int linux32_sys_symlink(struct lwp *, void *, register_t *); int compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *); int linux32_sys_readlink(struct lwp *, void *, register_t *); int linux32_sys_swapon(struct lwp *, void *, register_t *); int linux32_sys_reboot(struct lwp *, void *, register_t *); int linux32_sys_old_mmap(struct lwp *, void *, register_t *); int netbsd32_munmap(struct lwp *, void *, register_t *); int linux32_sys_truncate(struct lwp *, void *, register_t *); int compat_43_sys_ftruncate(struct lwp *, void *, register_t *); int sys_fchmod(struct lwp *, void *, register_t *); int linux32_sys_fchown16(struct lwp *, void *, register_t *); int linux32_sys_getpriority(struct lwp *, void *, register_t *); int linux32_sys_setpriority(struct lwp *, void *, register_t *); int linux32_sys_socketcall(struct lwp *, void *, register_t *); int netbsd32_setitimer(struct lwp *, void *, register_t *); int netbsd32_getitimer(struct lwp *, void *, register_t *); int linux32_sys_wait4(struct lwp *, void *, register_t *); int linux32_sys_swapoff(struct lwp *, void *, register_t *); int sys_fsync(struct lwp *, void *, register_t *); int linux32_sys_sigreturn(struct lwp *, void *, register_t *); int linux32_sys_clone(struct lwp *, void *, register_t *); int linux32_sys_uname(struct lwp *, void *, register_t *); int linux32_sys_mprotect(struct lwp *, void *, register_t *); int sys_fchdir(struct lwp *, void *, register_t *); int linux32_sys_llseek(struct lwp *, void *, register_t *); int linux32_sys_getdents(struct lwp *, void *, register_t *); int linux32_sys_select(struct lwp *, void *, register_t *); int sys_flock(struct lwp *, void *, register_t *); int netbsd32_readv(struct lwp *, void *, register_t *); int netbsd32_writev(struct lwp *, void *, register_t *); int sys_getsid(struct lwp *, void *, register_t *); int linux32_sys___sysctl(struct lwp *, void *, register_t *); int sys_mlockall(struct lwp *, void *, register_t *); int sys_munlockall(struct lwp *, void *, register_t *); int linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *); int netbsd32_nanosleep(struct lwp *, void *, register_t *); int linux_sys_setresuid16(struct lwp *, void *, register_t *); int netbsd32_poll(struct lwp *, void *, register_t *); int linux_sys_setresgid16(struct lwp *, void *, register_t *); int linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *); int linux32_sys_rt_sigaction(struct lwp *, void *, register_t *); int linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *); int linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *); int netbsd32___getcwd(struct lwp *, void *, register_t *); int sys___vfork14(struct lwp *, void *, register_t *); int linux32_sys_ugetrlimit(struct lwp *, void *, register_t *); int linux32_sys_stat64(struct lwp *, void *, register_t *); int linux32_sys_lstat64(struct lwp *, void *, register_t *); int linux32_sys_fstat64(struct lwp *, void *, register_t *); int sys_setreuid(struct lwp *, void *, register_t *); int sys_setregid(struct lwp *, void *, register_t *); int netbsd32_getgroups(struct lwp *, void *, register_t *); int netbsd32_setgroups(struct lwp *, void *, register_t *); int sys___posix_fchown(struct lwp *, void *, register_t *); int linux_sys_setresuid(struct lwp *, void *, register_t *); int linux_sys_setresgid(struct lwp *, void *, register_t *); int linux32_sys_getdents64(struct lwp *, void *, register_t *); int linux32_sys_fcntl64(struct lwp *, void *, register_t *); int linux_sys_gettid(struct lwp *, void *, register_t *); int linux_sys_exit_group(struct lwp *, void *, register_t *); #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */