linux_syscallargs.h revision 1.13
11.1Sfvdl/* 21.1Sfvdl * System call argument lists. 31.1Sfvdl * 41.1Sfvdl * DO NOT EDIT-- this file is automatically generated. 51.12Sfvdl * created from NetBSD: syscalls.master,v 1.12 1995/09/07 21:49:02 fvdl Exp 61.1Sfvdl */ 71.1Sfvdl 81.1Sfvdl#define syscallarg(x) union { x datum; register_t pad; } 91.1Sfvdl 101.1Sfvdlstruct linux_open_args { 111.1Sfvdl syscallarg(char *) path; 121.1Sfvdl syscallarg(int) flags; 131.1Sfvdl syscallarg(int) mode; 141.1Sfvdl}; 151.1Sfvdl 161.1Sfvdlstruct linux_waitpid_args { 171.1Sfvdl syscallarg(int) pid; 181.1Sfvdl syscallarg(int *) status; 191.1Sfvdl syscallarg(int) options; 201.1Sfvdl}; 211.1Sfvdl 221.1Sfvdlstruct linux_creat_args { 231.1Sfvdl syscallarg(char *) path; 241.1Sfvdl syscallarg(int) mode; 251.1Sfvdl}; 261.1Sfvdl 271.2Sfvdlstruct linux_unlink_args { 281.2Sfvdl syscallarg(char *) path; 291.2Sfvdl}; 301.2Sfvdl 311.1Sfvdlstruct linux_execve_args { 321.1Sfvdl syscallarg(char *) path; 331.1Sfvdl syscallarg(char **) argp; 341.1Sfvdl syscallarg(char **) envp; 351.1Sfvdl}; 361.1Sfvdl 371.2Sfvdlstruct linux_chdir_args { 381.2Sfvdl syscallarg(char *) path; 391.2Sfvdl}; 401.2Sfvdl 411.1Sfvdlstruct linux_time_args { 421.1Sfvdl syscallarg(linux_time_t *) t; 431.1Sfvdl}; 441.1Sfvdl 451.2Sfvdlstruct linux_mknod_args { 461.2Sfvdl syscallarg(char *) path; 471.2Sfvdl syscallarg(int) mode; 481.2Sfvdl syscallarg(int) dev; 491.2Sfvdl}; 501.2Sfvdl 511.2Sfvdlstruct linux_chmod_args { 521.2Sfvdl syscallarg(char *) path; 531.2Sfvdl syscallarg(int) mode; 541.2Sfvdl}; 551.2Sfvdl 561.2Sfvdlstruct linux_chown_args { 571.2Sfvdl syscallarg(char *) path; 581.2Sfvdl syscallarg(int) uid; 591.2Sfvdl syscallarg(int) gid; 601.2Sfvdl}; 611.2Sfvdl 621.1Sfvdlstruct linux_break_args { 631.1Sfvdl syscallarg(char *) nsize; 641.1Sfvdl}; 651.1Sfvdl 661.1Sfvdlstruct linux_alarm_args { 671.1Sfvdl syscallarg(unsigned int) secs; 681.1Sfvdl}; 691.1Sfvdl 701.1Sfvdlstruct linux_utime_args { 711.1Sfvdl syscallarg(char *) path; 721.1Sfvdl syscallarg(struct linux_utimbuf *) times; 731.1Sfvdl}; 741.1Sfvdl 751.1Sfvdlstruct linux_access_args { 761.1Sfvdl syscallarg(char *) path; 771.1Sfvdl syscallarg(int) flags; 781.1Sfvdl}; 791.1Sfvdl 801.1Sfvdlstruct linux_kill_args { 811.1Sfvdl syscallarg(int) pid; 821.1Sfvdl syscallarg(int) signum; 831.1Sfvdl}; 841.1Sfvdl 851.2Sfvdlstruct linux_rename_args { 861.2Sfvdl syscallarg(char *) from; 871.2Sfvdl syscallarg(char *) to; 881.2Sfvdl}; 891.2Sfvdl 901.2Sfvdlstruct linux_mkdir_args { 911.2Sfvdl syscallarg(char *) path; 921.7Sfvdl syscallarg(int) mode; 931.2Sfvdl}; 941.2Sfvdl 951.2Sfvdlstruct linux_rmdir_args { 961.2Sfvdl syscallarg(char *) path; 971.2Sfvdl}; 981.2Sfvdl 991.1Sfvdlstruct linux_pipe_args { 1001.1Sfvdl syscallarg(int *) pfds; 1011.1Sfvdl}; 1021.1Sfvdl 1031.1Sfvdlstruct linux_times_args { 1041.1Sfvdl syscallarg(struct times *) tms; 1051.1Sfvdl}; 1061.1Sfvdl 1071.1Sfvdlstruct linux_brk_args { 1081.1Sfvdl syscallarg(char *) nsize; 1091.1Sfvdl}; 1101.1Sfvdl 1111.1Sfvdlstruct linux_signal_args { 1121.1Sfvdl syscallarg(int) sig; 1131.1Sfvdl syscallarg(linux_handler_t) handler; 1141.1Sfvdl}; 1151.1Sfvdl 1161.1Sfvdlstruct linux_ioctl_args { 1171.1Sfvdl syscallarg(int) fd; 1181.1Sfvdl syscallarg(u_long) com; 1191.1Sfvdl syscallarg(caddr_t) data; 1201.1Sfvdl}; 1211.1Sfvdl 1221.1Sfvdlstruct linux_fcntl_args { 1231.1Sfvdl syscallarg(int) fd; 1241.1Sfvdl syscallarg(int) cmd; 1251.1Sfvdl syscallarg(void *) arg; 1261.1Sfvdl}; 1271.1Sfvdl 1281.9Smycroftstruct linux_oldolduname_args { 1291.9Smycroft syscallarg(struct linux_oldold_utsname *) up; 1301.9Smycroft}; 1311.9Smycroft 1321.1Sfvdlstruct linux_sigaction_args { 1331.1Sfvdl syscallarg(int) signum; 1341.1Sfvdl syscallarg(struct linux_sigaction *) nsa; 1351.1Sfvdl syscallarg(struct linux_sigaction *) osa; 1361.1Sfvdl}; 1371.1Sfvdl 1381.1Sfvdlstruct linux_sigsetmask_args { 1391.1Sfvdl syscallarg(linux_sigset_t) mask; 1401.1Sfvdl}; 1411.1Sfvdl 1421.12Sfvdlstruct linux_setreuid_args { 1431.12Sfvdl syscallarg(int) ruid; 1441.12Sfvdl syscallarg(int) euid; 1451.12Sfvdl}; 1461.12Sfvdl 1471.12Sfvdlstruct linux_setregid_args { 1481.12Sfvdl syscallarg(int) rgid; 1491.12Sfvdl syscallarg(int) egid; 1501.12Sfvdl}; 1511.12Sfvdl 1521.1Sfvdlstruct linux_sigsuspend_args { 1531.3Sfvdl syscallarg(caddr_t) restart; 1541.3Sfvdl syscallarg(int) oldmask; 1551.1Sfvdl syscallarg(int) mask; 1561.1Sfvdl}; 1571.1Sfvdl 1581.1Sfvdlstruct linux_sigpending_args { 1591.1Sfvdl syscallarg(linux_sigset_t *) mask; 1601.1Sfvdl}; 1611.1Sfvdl 1621.10Sfvdlstruct linux_oldselect_args { 1631.1Sfvdl syscallarg(struct linux_select *) lsp; 1641.1Sfvdl}; 1651.1Sfvdl 1661.2Sfvdlstruct linux_symlink_args { 1671.2Sfvdl syscallarg(char *) path; 1681.2Sfvdl syscallarg(char *) to; 1691.2Sfvdl}; 1701.2Sfvdl 1711.2Sfvdlstruct linux_readlink_args { 1721.2Sfvdl syscallarg(char *) name; 1731.2Sfvdl syscallarg(char *) buf; 1741.2Sfvdl syscallarg(int) count; 1751.2Sfvdl}; 1761.2Sfvdl 1771.1Sfvdlstruct linux_uselib_args { 1781.1Sfvdl syscallarg(char *) path; 1791.1Sfvdl}; 1801.1Sfvdl 1811.1Sfvdlstruct linux_readdir_args { 1821.1Sfvdl syscallarg(int) fd; 1831.1Sfvdl syscallarg(struct linux_dirent *) dent; 1841.1Sfvdl syscallarg(unsigned int) count; 1851.1Sfvdl}; 1861.1Sfvdl 1871.1Sfvdlstruct linux_mmap_args { 1881.1Sfvdl syscallarg(struct linux_mmap *) lmp; 1891.1Sfvdl}; 1901.1Sfvdl 1911.2Sfvdlstruct linux_truncate_args { 1921.2Sfvdl syscallarg(char *) path; 1931.2Sfvdl syscallarg(long) length; 1941.12Sfvdl}; 1951.12Sfvdl 1961.12Sfvdlstruct linux_fchown_args { 1971.12Sfvdl syscallarg(int) fd; 1981.12Sfvdl syscallarg(int) uid; 1991.12Sfvdl syscallarg(int) gid; 2001.2Sfvdl}; 2011.2Sfvdl 2021.1Sfvdlstruct linux_statfs_args { 2031.1Sfvdl syscallarg(char *) path; 2041.1Sfvdl syscallarg(struct linux_statfs *) sp; 2051.1Sfvdl}; 2061.1Sfvdl 2071.1Sfvdlstruct linux_fstatfs_args { 2081.2Sfvdl syscallarg(int) fd; 2091.1Sfvdl syscallarg(struct linux_statfs *) sp; 2101.1Sfvdl}; 2111.1Sfvdl 2121.11Sfvdlstruct linux_ioperm_args { 2131.11Sfvdl syscallarg(unsigned int) lo; 2141.11Sfvdl syscallarg(unsigned int) hi; 2151.11Sfvdl syscallarg(int) val; 2161.11Sfvdl}; 2171.11Sfvdl 2181.1Sfvdlstruct linux_socketcall_args { 2191.1Sfvdl syscallarg(int) what; 2201.1Sfvdl syscallarg(void *) args; 2211.1Sfvdl}; 2221.1Sfvdl 2231.1Sfvdlstruct linux_stat_args { 2241.1Sfvdl syscallarg(char *) path; 2251.1Sfvdl syscallarg(struct linux_stat *) sp; 2261.1Sfvdl}; 2271.1Sfvdl 2281.1Sfvdlstruct linux_lstat_args { 2291.1Sfvdl syscallarg(char *) path; 2301.1Sfvdl syscallarg(struct linux_stat *) sp; 2311.1Sfvdl}; 2321.1Sfvdl 2331.1Sfvdlstruct linux_fstat_args { 2341.1Sfvdl syscallarg(int) fd; 2351.1Sfvdl syscallarg(struct linux_stat *) sp; 2361.9Smycroft}; 2371.9Smycroft 2381.9Smycroftstruct linux_olduname_args { 2391.9Smycroft syscallarg(struct linux_old_utsname *) up; 2401.11Sfvdl}; 2411.11Sfvdl 2421.11Sfvdlstruct linux_iopl_args { 2431.11Sfvdl syscallarg(int) level; 2441.1Sfvdl}; 2451.1Sfvdl 2461.1Sfvdlstruct linux_wait4_args { 2471.1Sfvdl syscallarg(int) pid; 2481.1Sfvdl syscallarg(int *) status; 2491.1Sfvdl syscallarg(int) options; 2501.1Sfvdl syscallarg(struct rusage *) rusage; 2511.1Sfvdl}; 2521.1Sfvdl 2531.1Sfvdlstruct linux_ipc_args { 2541.1Sfvdl syscallarg(int) what; 2551.1Sfvdl syscallarg(int) a1; 2561.1Sfvdl syscallarg(int) a2; 2571.1Sfvdl syscallarg(int) a3; 2581.1Sfvdl syscallarg(caddr_t) ptr; 2591.4Sfvdl}; 2601.4Sfvdl 2611.4Sfvdlstruct linux_sigreturn_args { 2621.4Sfvdl syscallarg(struct linux_sigcontext *) scp; 2631.1Sfvdl}; 2641.1Sfvdl 2651.1Sfvdlstruct linux_uname_args { 2661.1Sfvdl syscallarg(struct linux_utsname *) up; 2671.1Sfvdl}; 2681.1Sfvdl 2691.5Smycroftstruct linux_modify_ldt_args { 2701.5Smycroft syscallarg(int) func; 2711.5Smycroft syscallarg(void *) ptr; 2721.5Smycroft syscallarg(size_t) bytecount; 2731.5Smycroft}; 2741.5Smycroft 2751.1Sfvdlstruct linux_sigprocmask_args { 2761.1Sfvdl syscallarg(int) how; 2771.1Sfvdl syscallarg(linux_sigset_t *) set; 2781.1Sfvdl syscallarg(linux_sigset_t *) oset; 2791.1Sfvdl}; 2801.1Sfvdl 2811.1Sfvdlstruct linux_getpgid_args { 2821.1Sfvdl syscallarg(int) pid; 2831.6Sfvdl}; 2841.6Sfvdl 2851.6Sfvdlstruct linux_personality_args { 2861.6Sfvdl syscallarg(int) per; 2871.2Sfvdl}; 2881.2Sfvdl 2891.2Sfvdlstruct linux_llseek_args { 2901.2Sfvdl syscallarg(int) fd; 2911.2Sfvdl syscallarg(u_int32_t) ohigh; 2921.2Sfvdl syscallarg(u_int32_t) olow; 2931.2Sfvdl syscallarg(caddr_t) res; 2941.2Sfvdl syscallarg(int) whence; 2951.10Sfvdl}; 2961.10Sfvdl 2971.10Sfvdlstruct linux_getdents_args { 2981.10Sfvdl syscallarg(int) fd; 2991.10Sfvdl syscallarg(void *) dirent; 3001.10Sfvdl syscallarg(unsigned) count; 3011.10Sfvdl}; 3021.10Sfvdl 3031.10Sfvdlstruct linux_select_args { 3041.10Sfvdl syscallarg(int) nfds; 3051.10Sfvdl syscallarg(fd_set *) readfds; 3061.10Sfvdl syscallarg(fd_set *) writefds; 3071.10Sfvdl syscallarg(fd_set *) exceptfds; 3081.10Sfvdl syscallarg(struct timeval *) timeout; 3091.1Sfvdl}; 3101.1Sfvdl 3111.1Sfvdl#undef syscallarg 3121.13Sthorpej 3131.13Sthorpej/* 3141.13Sthorpej * System call prototypes. 3151.13Sthorpej */ 3161.13Sthorpej 3171.13Sthorpejint nosys __P((struct proc *, void *, register_t *)); 3181.13Sthorpejint exit __P((struct proc *, void *, register_t *)); 3191.13Sthorpejint linux_fork __P((struct proc *, void *, register_t *)); 3201.13Sthorpejint read __P((struct proc *, void *, register_t *)); 3211.13Sthorpejint write __P((struct proc *, void *, register_t *)); 3221.13Sthorpejint linux_open __P((struct proc *, void *, register_t *)); 3231.13Sthorpejint close __P((struct proc *, void *, register_t *)); 3241.13Sthorpejint linux_waitpid __P((struct proc *, void *, register_t *)); 3251.13Sthorpejint linux_creat __P((struct proc *, void *, register_t *)); 3261.13Sthorpejint link __P((struct proc *, void *, register_t *)); 3271.13Sthorpejint linux_unlink __P((struct proc *, void *, register_t *)); 3281.13Sthorpejint linux_execve __P((struct proc *, void *, register_t *)); 3291.13Sthorpejint linux_chdir __P((struct proc *, void *, register_t *)); 3301.13Sthorpejint linux_time __P((struct proc *, void *, register_t *)); 3311.13Sthorpejint linux_mknod __P((struct proc *, void *, register_t *)); 3321.13Sthorpejint linux_chmod __P((struct proc *, void *, register_t *)); 3331.13Sthorpejint linux_chown __P((struct proc *, void *, register_t *)); 3341.13Sthorpejint linux_break __P((struct proc *, void *, register_t *)); 3351.13Sthorpejint compat_43_lseek __P((struct proc *, void *, register_t *)); 3361.13Sthorpejint getpid __P((struct proc *, void *, register_t *)); 3371.13Sthorpejint setuid __P((struct proc *, void *, register_t *)); 3381.13Sthorpejint getuid __P((struct proc *, void *, register_t *)); 3391.13Sthorpejint linux_alarm __P((struct proc *, void *, register_t *)); 3401.13Sthorpejint linux_pause __P((struct proc *, void *, register_t *)); 3411.13Sthorpejint linux_utime __P((struct proc *, void *, register_t *)); 3421.13Sthorpejint linux_access __P((struct proc *, void *, register_t *)); 3431.13Sthorpejint sync __P((struct proc *, void *, register_t *)); 3441.13Sthorpejint linux_kill __P((struct proc *, void *, register_t *)); 3451.13Sthorpejint linux_rename __P((struct proc *, void *, register_t *)); 3461.13Sthorpejint linux_mkdir __P((struct proc *, void *, register_t *)); 3471.13Sthorpejint linux_rmdir __P((struct proc *, void *, register_t *)); 3481.13Sthorpejint dup __P((struct proc *, void *, register_t *)); 3491.13Sthorpejint linux_pipe __P((struct proc *, void *, register_t *)); 3501.13Sthorpejint linux_times __P((struct proc *, void *, register_t *)); 3511.13Sthorpejint linux_brk __P((struct proc *, void *, register_t *)); 3521.13Sthorpejint setgid __P((struct proc *, void *, register_t *)); 3531.13Sthorpejint getgid __P((struct proc *, void *, register_t *)); 3541.13Sthorpejint linux_signal __P((struct proc *, void *, register_t *)); 3551.13Sthorpejint geteuid __P((struct proc *, void *, register_t *)); 3561.13Sthorpejint getegid __P((struct proc *, void *, register_t *)); 3571.13Sthorpejint acct __P((struct proc *, void *, register_t *)); 3581.13Sthorpejint linux_ioctl __P((struct proc *, void *, register_t *)); 3591.13Sthorpejint linux_fcntl __P((struct proc *, void *, register_t *)); 3601.13Sthorpejint setpgid __P((struct proc *, void *, register_t *)); 3611.13Sthorpejint linux_oldolduname __P((struct proc *, void *, register_t *)); 3621.13Sthorpejint umask __P((struct proc *, void *, register_t *)); 3631.13Sthorpejint chroot __P((struct proc *, void *, register_t *)); 3641.13Sthorpejint dup2 __P((struct proc *, void *, register_t *)); 3651.13Sthorpejint getppid __P((struct proc *, void *, register_t *)); 3661.13Sthorpejint getpgrp __P((struct proc *, void *, register_t *)); 3671.13Sthorpejint setsid __P((struct proc *, void *, register_t *)); 3681.13Sthorpejint linux_sigaction __P((struct proc *, void *, register_t *)); 3691.13Sthorpejint linux_siggetmask __P((struct proc *, void *, register_t *)); 3701.13Sthorpejint linux_sigsetmask __P((struct proc *, void *, register_t *)); 3711.13Sthorpejint linux_setreuid __P((struct proc *, void *, register_t *)); 3721.13Sthorpejint linux_setregid __P((struct proc *, void *, register_t *)); 3731.13Sthorpejint linux_sigsuspend __P((struct proc *, void *, register_t *)); 3741.13Sthorpejint linux_sigpending __P((struct proc *, void *, register_t *)); 3751.13Sthorpejint compat_43_sethostname __P((struct proc *, void *, register_t *)); 3761.13Sthorpejint compat_43_setrlimit __P((struct proc *, void *, register_t *)); 3771.13Sthorpejint compat_43_getrlimit __P((struct proc *, void *, register_t *)); 3781.13Sthorpejint getrusage __P((struct proc *, void *, register_t *)); 3791.13Sthorpejint gettimeofday __P((struct proc *, void *, register_t *)); 3801.13Sthorpejint settimeofday __P((struct proc *, void *, register_t *)); 3811.13Sthorpejint getgroups __P((struct proc *, void *, register_t *)); 3821.13Sthorpejint setgroups __P((struct proc *, void *, register_t *)); 3831.13Sthorpejint linux_oldselect __P((struct proc *, void *, register_t *)); 3841.13Sthorpejint linux_symlink __P((struct proc *, void *, register_t *)); 3851.13Sthorpejint compat_43_lstat __P((struct proc *, void *, register_t *)); 3861.13Sthorpejint linux_readlink __P((struct proc *, void *, register_t *)); 3871.13Sthorpejint linux_uselib __P((struct proc *, void *, register_t *)); 3881.13Sthorpejint swapon __P((struct proc *, void *, register_t *)); 3891.13Sthorpejint reboot __P((struct proc *, void *, register_t *)); 3901.13Sthorpejint linux_readdir __P((struct proc *, void *, register_t *)); 3911.13Sthorpejint linux_mmap __P((struct proc *, void *, register_t *)); 3921.13Sthorpejint munmap __P((struct proc *, void *, register_t *)); 3931.13Sthorpejint linux_truncate __P((struct proc *, void *, register_t *)); 3941.13Sthorpejint compat_43_ftruncate __P((struct proc *, void *, register_t *)); 3951.13Sthorpejint fchmod __P((struct proc *, void *, register_t *)); 3961.13Sthorpejint linux_fchown __P((struct proc *, void *, register_t *)); 3971.13Sthorpejint getpriority __P((struct proc *, void *, register_t *)); 3981.13Sthorpejint setpriority __P((struct proc *, void *, register_t *)); 3991.13Sthorpejint profil __P((struct proc *, void *, register_t *)); 4001.13Sthorpejint linux_statfs __P((struct proc *, void *, register_t *)); 4011.13Sthorpejint linux_fstatfs __P((struct proc *, void *, register_t *)); 4021.13Sthorpej#ifdef __i386__ 4031.13Sthorpejint linux_ioperm __P((struct proc *, void *, register_t *)); 4041.13Sthorpej#else 4051.13Sthorpej#endif 4061.13Sthorpejint linux_socketcall __P((struct proc *, void *, register_t *)); 4071.13Sthorpejint setitimer __P((struct proc *, void *, register_t *)); 4081.13Sthorpejint getitimer __P((struct proc *, void *, register_t *)); 4091.13Sthorpejint linux_stat __P((struct proc *, void *, register_t *)); 4101.13Sthorpejint linux_lstat __P((struct proc *, void *, register_t *)); 4111.13Sthorpejint linux_fstat __P((struct proc *, void *, register_t *)); 4121.13Sthorpejint linux_olduname __P((struct proc *, void *, register_t *)); 4131.13Sthorpej#ifdef __i386__ 4141.13Sthorpejint linux_iopl __P((struct proc *, void *, register_t *)); 4151.13Sthorpej#else 4161.13Sthorpej#endif 4171.13Sthorpejint linux_wait4 __P((struct proc *, void *, register_t *)); 4181.13Sthorpejint linux_ipc __P((struct proc *, void *, register_t *)); 4191.13Sthorpejint fsync __P((struct proc *, void *, register_t *)); 4201.13Sthorpejint linux_sigreturn __P((struct proc *, void *, register_t *)); 4211.13Sthorpejint compat_09_setdomainname __P((struct proc *, void *, register_t *)); 4221.13Sthorpejint linux_uname __P((struct proc *, void *, register_t *)); 4231.13Sthorpej#ifdef __i386__ 4241.13Sthorpejint linux_modify_ldt __P((struct proc *, void *, register_t *)); 4251.13Sthorpej#else 4261.13Sthorpej#endif 4271.13Sthorpejint mprotect __P((struct proc *, void *, register_t *)); 4281.13Sthorpejint linux_sigprocmask __P((struct proc *, void *, register_t *)); 4291.13Sthorpejint linux_getpgid __P((struct proc *, void *, register_t *)); 4301.13Sthorpejint fchdir __P((struct proc *, void *, register_t *)); 4311.13Sthorpejint linux_personality __P((struct proc *, void *, register_t *)); 4321.13Sthorpejint linux_llseek __P((struct proc *, void *, register_t *)); 4331.13Sthorpejint linux_getdents __P((struct proc *, void *, register_t *)); 4341.13Sthorpejint linux_select __P((struct proc *, void *, register_t *)); 4351.13Sthorpejint flock __P((struct proc *, void *, register_t *)); 436