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.7 deraadt * created from NetBSD: syscalls.master,v 1.24 1994/12/06 00:17:06 deraadt 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.1 deraadt struct sunos_mctl_args { 48 1.1 deraadt syscallarg(caddr_t) addr; 49 1.1 deraadt syscallarg(int) len; 50 1.1 deraadt syscallarg(int) func; 51 1.1 deraadt syscallarg(void *) arg; 52 1.1 deraadt }; 53 1.1 deraadt 54 1.1 deraadt struct sunos_ioctl_args { 55 1.1 deraadt syscallarg(int) fd; 56 1.1 deraadt syscallarg(u_long) com; 57 1.1 deraadt syscallarg(caddr_t) data; 58 1.1 deraadt }; 59 1.1 deraadt 60 1.1 deraadt struct sunos_omsync_args { 61 1.1 deraadt syscallarg(caddr_t) addr; 62 1.1 deraadt syscallarg(int) len; 63 1.1 deraadt syscallarg(int) flags; 64 1.1 deraadt }; 65 1.1 deraadt 66 1.1 deraadt struct sunos_mmap_args { 67 1.1 deraadt syscallarg(caddr_t) addr; 68 1.1 deraadt syscallarg(int) len; 69 1.1 deraadt syscallarg(int) prot; 70 1.4 deraadt syscallarg(u_int) flags; 71 1.1 deraadt syscallarg(int) fd; 72 1.1 deraadt syscallarg(long) pos; 73 1.1 deraadt }; 74 1.1 deraadt 75 1.1 deraadt struct sunos_setpgid_args { 76 1.1 deraadt syscallarg(int) pid; 77 1.1 deraadt syscallarg(int) pgid; 78 1.1 deraadt }; 79 1.1 deraadt 80 1.1 deraadt struct sunos_setsockopt_args { 81 1.1 deraadt syscallarg(int) s; 82 1.1 deraadt syscallarg(int) level; 83 1.1 deraadt syscallarg(int) name; 84 1.1 deraadt syscallarg(caddr_t) val; 85 1.1 deraadt syscallarg(int) valsize; 86 1.1 deraadt }; 87 1.1 deraadt 88 1.8 christos struct sunos_sigreturn_args { 89 1.8 christos syscallarg(struct sigcontext *) sigcntxp; 90 1.8 christos }; 91 1.8 christos 92 1.1 deraadt struct sunos_getrlimit_args { 93 1.1 deraadt syscallarg(u_int) which; 94 1.1 deraadt syscallarg(struct orlimit *) rlp; 95 1.1 deraadt }; 96 1.1 deraadt 97 1.1 deraadt struct sunos_setrlimit_args { 98 1.1 deraadt syscallarg(u_int) which; 99 1.1 deraadt syscallarg(struct orlimit *) rlp; 100 1.5 deraadt }; 101 1.5 deraadt 102 1.5 deraadt struct sunos_poll_args { 103 1.5 deraadt syscallarg(struct sunos_pollfd *) fds; 104 1.5 deraadt syscallarg(long) nfds; 105 1.5 deraadt syscallarg(int) timeout; 106 1.1 deraadt }; 107 1.1 deraadt 108 1.1 deraadt struct sunos_nfssvc_args { 109 1.1 deraadt syscallarg(int) fd; 110 1.1 deraadt }; 111 1.1 deraadt 112 1.1 deraadt struct sunos_statfs_args { 113 1.1 deraadt syscallarg(char *) path; 114 1.1 deraadt syscallarg(struct sunos_statfs *) buf; 115 1.1 deraadt }; 116 1.1 deraadt 117 1.1 deraadt struct sunos_fstatfs_args { 118 1.1 deraadt syscallarg(int) fd; 119 1.1 deraadt syscallarg(struct sunos_statfs *) buf; 120 1.1 deraadt }; 121 1.1 deraadt 122 1.1 deraadt struct sunos_unmount_args { 123 1.1 deraadt syscallarg(char *) path; 124 1.1 deraadt syscallarg(int) flags; 125 1.1 deraadt }; 126 1.1 deraadt 127 1.1 deraadt struct sunos_quotactl_args { 128 1.1 deraadt syscallarg(int) cmd; 129 1.1 deraadt syscallarg(char *) special; 130 1.1 deraadt syscallarg(int) uid; 131 1.1 deraadt syscallarg(caddr_t) addr; 132 1.1 deraadt }; 133 1.1 deraadt 134 1.1 deraadt struct sunos_exportfs_args { 135 1.1 deraadt syscallarg(char *) path; 136 1.1 deraadt syscallarg(char *) ex; 137 1.1 deraadt }; 138 1.1 deraadt 139 1.1 deraadt struct sunos_mount_args { 140 1.1 deraadt syscallarg(char *) type; 141 1.1 deraadt syscallarg(char *) dir; 142 1.1 deraadt syscallarg(int) flags; 143 1.1 deraadt syscallarg(caddr_t) data; 144 1.1 deraadt }; 145 1.1 deraadt 146 1.1 deraadt struct sunos_ustat_args { 147 1.1 deraadt syscallarg(int) dev; 148 1.1 deraadt syscallarg(struct sunos_ustat *) buf; 149 1.1 deraadt }; 150 1.1 deraadt 151 1.1 deraadt struct sunos_auditsys_args { 152 1.1 deraadt syscallarg(char *) record; 153 1.1 deraadt }; 154 1.1 deraadt 155 1.1 deraadt struct sunos_getdents_args { 156 1.1 deraadt syscallarg(int) fd; 157 1.1 deraadt syscallarg(char *) buf; 158 1.1 deraadt syscallarg(int) nbytes; 159 1.1 deraadt }; 160 1.1 deraadt 161 1.1 deraadt struct sunos_fchroot_args { 162 1.1 deraadt syscallarg(int) fd; 163 1.1 deraadt }; 164 1.1 deraadt 165 1.1 deraadt struct sunos_sigpending_args { 166 1.1 deraadt syscallarg(int *) mask; 167 1.1 deraadt }; 168 1.1 deraadt 169 1.1 deraadt struct sunos_sysconf_args { 170 1.1 deraadt syscallarg(int) name; 171 1.1 deraadt }; 172 1.1 deraadt 173 1.1 deraadt struct sunos_uname_args { 174 1.1 deraadt syscallarg(struct sunos_utsname *) name; 175 1.1 deraadt }; 176 1.1 deraadt 177 1.1 deraadt #undef syscallarg 178