1 1.1 deraadt /* 2 1.1 deraadt * System call argument lists. 3 1.1 deraadt * 4 1.1 deraadt * DO NOT EDIT-- this file is automatically generated. 5 1.9 christos * created from NetBSD: syscalls.master,v 1.26 1995/04/22 23:45:33 christos Exp 6 1.1 deraadt */ 7 1.1 deraadt 8 1.1 deraadt #define syscallarg(x) union { x datum; register_t pad; } 9 1.1 deraadt 10 1.1 deraadt struct sunos_open_args { 11 1.1 deraadt syscallarg(char *) path; 12 1.1 deraadt syscallarg(int) flags; 13 1.1 deraadt syscallarg(int) mode; 14 1.1 deraadt }; 15 1.1 deraadt 16 1.1 deraadt struct sunos_wait4_args { 17 1.1 deraadt syscallarg(int) pid; 18 1.1 deraadt syscallarg(int *) status; 19 1.1 deraadt syscallarg(int) options; 20 1.1 deraadt syscallarg(struct rusage *) rusage; 21 1.1 deraadt }; 22 1.1 deraadt 23 1.1 deraadt struct sunos_creat_args { 24 1.1 deraadt syscallarg(char *) path; 25 1.1 deraadt syscallarg(int) mode; 26 1.1 deraadt }; 27 1.1 deraadt 28 1.1 deraadt struct sunos_execv_args { 29 1.1 deraadt syscallarg(char *) path; 30 1.4 deraadt syscallarg(char **) argp; 31 1.1 deraadt }; 32 1.1 deraadt 33 1.1 deraadt struct sunos_mknod_args { 34 1.1 deraadt syscallarg(char *) path; 35 1.1 deraadt syscallarg(int) mode; 36 1.1 deraadt syscallarg(int) dev; 37 1.1 deraadt }; 38 1.1 deraadt 39 1.5 deraadt struct sunos_ptrace_args { 40 1.5 deraadt syscallarg(int) req; 41 1.5 deraadt syscallarg(int) pid; 42 1.5 deraadt syscallarg(char *) addr; 43 1.5 deraadt syscallarg(int) data; 44 1.5 deraadt syscallarg(char *) addr2; 45 1.5 deraadt }; 46 1.5 deraadt 47 1.10 pk struct sunos_access_args { 48 1.10 pk syscallarg(char *) path; 49 1.10 pk syscallarg(int) flags; 50 1.10 pk }; 51 1.10 pk 52 1.10 pk struct sunos_stat_args { 53 1.10 pk syscallarg(char *) path; 54 1.10 pk syscallarg(struct ostat *) ub; 55 1.10 pk }; 56 1.10 pk 57 1.10 pk struct sunos_lstat_args { 58 1.10 pk syscallarg(char *) path; 59 1.10 pk syscallarg(struct ostat *) ub; 60 1.10 pk }; 61 1.10 pk 62 1.1 deraadt struct sunos_mctl_args { 63 1.1 deraadt syscallarg(caddr_t) addr; 64 1.1 deraadt syscallarg(int) len; 65 1.1 deraadt syscallarg(int) func; 66 1.1 deraadt syscallarg(void *) arg; 67 1.1 deraadt }; 68 1.1 deraadt 69 1.1 deraadt struct sunos_ioctl_args { 70 1.1 deraadt syscallarg(int) fd; 71 1.1 deraadt syscallarg(u_long) com; 72 1.1 deraadt syscallarg(caddr_t) data; 73 1.9 christos }; 74 1.9 christos 75 1.9 christos struct sunos_reboot_args { 76 1.9 christos syscallarg(int) howto; 77 1.9 christos syscallarg(char *) bootstr; 78 1.1 deraadt }; 79 1.1 deraadt 80 1.1 deraadt struct sunos_omsync_args { 81 1.1 deraadt syscallarg(caddr_t) addr; 82 1.1 deraadt syscallarg(int) len; 83 1.1 deraadt syscallarg(int) flags; 84 1.1 deraadt }; 85 1.1 deraadt 86 1.1 deraadt struct sunos_mmap_args { 87 1.1 deraadt syscallarg(caddr_t) addr; 88 1.1 deraadt syscallarg(int) len; 89 1.1 deraadt syscallarg(int) prot; 90 1.4 deraadt syscallarg(u_int) flags; 91 1.1 deraadt syscallarg(int) fd; 92 1.1 deraadt syscallarg(long) pos; 93 1.1 deraadt }; 94 1.1 deraadt 95 1.1 deraadt struct sunos_setpgid_args { 96 1.1 deraadt syscallarg(int) pid; 97 1.1 deraadt syscallarg(int) pgid; 98 1.1 deraadt }; 99 1.1 deraadt 100 1.1 deraadt struct sunos_setsockopt_args { 101 1.1 deraadt syscallarg(int) s; 102 1.1 deraadt syscallarg(int) level; 103 1.1 deraadt syscallarg(int) name; 104 1.1 deraadt syscallarg(caddr_t) val; 105 1.1 deraadt syscallarg(int) valsize; 106 1.1 deraadt }; 107 1.1 deraadt 108 1.8 christos struct sunos_sigreturn_args { 109 1.8 christos syscallarg(struct sigcontext *) sigcntxp; 110 1.8 christos }; 111 1.8 christos 112 1.1 deraadt struct sunos_getrlimit_args { 113 1.1 deraadt syscallarg(u_int) which; 114 1.1 deraadt syscallarg(struct orlimit *) rlp; 115 1.1 deraadt }; 116 1.1 deraadt 117 1.1 deraadt struct sunos_setrlimit_args { 118 1.1 deraadt syscallarg(u_int) which; 119 1.1 deraadt syscallarg(struct orlimit *) rlp; 120 1.5 deraadt }; 121 1.5 deraadt 122 1.5 deraadt struct sunos_poll_args { 123 1.5 deraadt syscallarg(struct sunos_pollfd *) fds; 124 1.5 deraadt syscallarg(long) nfds; 125 1.5 deraadt syscallarg(int) timeout; 126 1.1 deraadt }; 127 1.1 deraadt 128 1.1 deraadt struct sunos_nfssvc_args { 129 1.1 deraadt syscallarg(int) fd; 130 1.1 deraadt }; 131 1.1 deraadt 132 1.1 deraadt struct sunos_statfs_args { 133 1.1 deraadt syscallarg(char *) path; 134 1.1 deraadt syscallarg(struct sunos_statfs *) buf; 135 1.1 deraadt }; 136 1.1 deraadt 137 1.1 deraadt struct sunos_fstatfs_args { 138 1.1 deraadt syscallarg(int) fd; 139 1.1 deraadt syscallarg(struct sunos_statfs *) buf; 140 1.1 deraadt }; 141 1.1 deraadt 142 1.1 deraadt struct sunos_unmount_args { 143 1.1 deraadt syscallarg(char *) path; 144 1.1 deraadt syscallarg(int) flags; 145 1.1 deraadt }; 146 1.1 deraadt 147 1.1 deraadt struct sunos_quotactl_args { 148 1.1 deraadt syscallarg(int) cmd; 149 1.1 deraadt syscallarg(char *) special; 150 1.1 deraadt syscallarg(int) uid; 151 1.1 deraadt syscallarg(caddr_t) addr; 152 1.1 deraadt }; 153 1.1 deraadt 154 1.1 deraadt struct sunos_exportfs_args { 155 1.1 deraadt syscallarg(char *) path; 156 1.1 deraadt syscallarg(char *) ex; 157 1.1 deraadt }; 158 1.1 deraadt 159 1.1 deraadt struct sunos_mount_args { 160 1.1 deraadt syscallarg(char *) type; 161 1.1 deraadt syscallarg(char *) dir; 162 1.1 deraadt syscallarg(int) flags; 163 1.1 deraadt syscallarg(caddr_t) data; 164 1.1 deraadt }; 165 1.1 deraadt 166 1.1 deraadt struct sunos_ustat_args { 167 1.1 deraadt syscallarg(int) dev; 168 1.1 deraadt syscallarg(struct sunos_ustat *) buf; 169 1.1 deraadt }; 170 1.1 deraadt 171 1.1 deraadt struct sunos_auditsys_args { 172 1.1 deraadt syscallarg(char *) record; 173 1.1 deraadt }; 174 1.1 deraadt 175 1.1 deraadt struct sunos_getdents_args { 176 1.1 deraadt syscallarg(int) fd; 177 1.1 deraadt syscallarg(char *) buf; 178 1.1 deraadt syscallarg(int) nbytes; 179 1.1 deraadt }; 180 1.1 deraadt 181 1.1 deraadt struct sunos_fchroot_args { 182 1.1 deraadt syscallarg(int) fd; 183 1.1 deraadt }; 184 1.1 deraadt 185 1.1 deraadt struct sunos_sigpending_args { 186 1.1 deraadt syscallarg(int *) mask; 187 1.1 deraadt }; 188 1.1 deraadt 189 1.1 deraadt struct sunos_sysconf_args { 190 1.1 deraadt syscallarg(int) name; 191 1.1 deraadt }; 192 1.1 deraadt 193 1.1 deraadt struct sunos_uname_args { 194 1.1 deraadt syscallarg(struct sunos_utsname *) name; 195 1.1 deraadt }; 196 1.1 deraadt 197 1.1 deraadt #undef syscallarg 198