Home | History | Annotate | Line # | Download | only in sunos
sunos_syscallargs.h revision 1.16
      1 /*
      2  * System call argument lists.
      3  *
      4  * DO NOT EDIT-- this file is automatically generated.
      5  * created from	NetBSD: syscalls.master,v 1.32 1995/10/07 06:27:35 mycroft Exp
      6  */
      7 
      8 #define	syscallarg(x)	union { x datum; register_t pad; }
      9 
     10 struct sunos_sys_open_args {
     11 	syscallarg(char *) path;
     12 	syscallarg(int) flags;
     13 	syscallarg(int) mode;
     14 };
     15 
     16 struct sunos_sys_wait4_args {
     17 	syscallarg(int) pid;
     18 	syscallarg(int *) status;
     19 	syscallarg(int) options;
     20 	syscallarg(struct rusage *) rusage;
     21 };
     22 
     23 struct sunos_sys_creat_args {
     24 	syscallarg(char *) path;
     25 	syscallarg(int) mode;
     26 };
     27 
     28 struct sunos_sys_execv_args {
     29 	syscallarg(char *) path;
     30 	syscallarg(char **) argp;
     31 };
     32 
     33 struct sunos_sys_mknod_args {
     34 	syscallarg(char *) path;
     35 	syscallarg(int) mode;
     36 	syscallarg(int) dev;
     37 };
     38 
     39 struct sunos_sys_ptrace_args {
     40 	syscallarg(int) req;
     41 	syscallarg(pid_t) pid;
     42 	syscallarg(caddr_t) addr;
     43 	syscallarg(int) data;
     44 	syscallarg(char *) addr2;
     45 };
     46 
     47 struct sunos_sys_access_args {
     48 	syscallarg(char *) path;
     49 	syscallarg(int) flags;
     50 };
     51 
     52 struct sunos_sys_stat_args {
     53 	syscallarg(char *) path;
     54 	syscallarg(struct ostat *) ub;
     55 };
     56 
     57 struct sunos_sys_lstat_args {
     58 	syscallarg(char *) path;
     59 	syscallarg(struct ostat *) ub;
     60 };
     61 
     62 struct sunos_sys_mctl_args {
     63 	syscallarg(caddr_t) addr;
     64 	syscallarg(int) len;
     65 	syscallarg(int) func;
     66 	syscallarg(void *) arg;
     67 };
     68 
     69 struct sunos_sys_ioctl_args {
     70 	syscallarg(int) fd;
     71 	syscallarg(u_long) com;
     72 	syscallarg(caddr_t) data;
     73 };
     74 
     75 struct sunos_sys_reboot_args {
     76 	syscallarg(int) howto;
     77 	syscallarg(char *) bootstr;
     78 };
     79 
     80 struct sunos_sys_omsync_args {
     81 	syscallarg(caddr_t) addr;
     82 	syscallarg(size_t) len;
     83 	syscallarg(int) flags;
     84 };
     85 
     86 struct sunos_sys_mmap_args {
     87 	syscallarg(caddr_t) addr;
     88 	syscallarg(size_t) len;
     89 	syscallarg(int) prot;
     90 	syscallarg(int) flags;
     91 	syscallarg(int) fd;
     92 	syscallarg(long) pos;
     93 };
     94 
     95 struct sunos_sys_setpgrp_args {
     96 	syscallarg(int) pid;
     97 	syscallarg(int) pgid;
     98 };
     99 
    100 struct sunos_sys_setsockopt_args {
    101 	syscallarg(int) s;
    102 	syscallarg(int) level;
    103 	syscallarg(int) name;
    104 	syscallarg(caddr_t) val;
    105 	syscallarg(int) valsize;
    106 };
    107 
    108 struct sunos_sys_sigvec_args {
    109 	syscallarg(int) signum;
    110 	syscallarg(struct sigvec *) nsv;
    111 	syscallarg(struct sigvec *) osv;
    112 };
    113 
    114 struct sunos_sys_sigreturn_args {
    115 	syscallarg(struct sigcontext *) sigcntxp;
    116 };
    117 
    118 struct sunos_sys_getrlimit_args {
    119 	syscallarg(u_int) which;
    120 	syscallarg(struct orlimit *) rlp;
    121 };
    122 
    123 struct sunos_sys_setrlimit_args {
    124 	syscallarg(u_int) which;
    125 	syscallarg(struct orlimit *) rlp;
    126 };
    127 
    128 struct sunos_sys_poll_args {
    129 	syscallarg(struct sunos_pollfd *) fds;
    130 	syscallarg(long) nfds;
    131 	syscallarg(int) timeout;
    132 };
    133 
    134 struct sunos_sys_nfssvc_args {
    135 	syscallarg(int) fd;
    136 };
    137 
    138 struct sunos_sys_statfs_args {
    139 	syscallarg(char *) path;
    140 	syscallarg(struct sunos_statfs *) buf;
    141 };
    142 
    143 struct sunos_sys_fstatfs_args {
    144 	syscallarg(int) fd;
    145 	syscallarg(struct sunos_statfs *) buf;
    146 };
    147 
    148 struct sunos_sys_unmount_args {
    149 	syscallarg(char *) path;
    150 };
    151 
    152 struct sunos_sys_quotactl_args {
    153 	syscallarg(int) cmd;
    154 	syscallarg(char *) special;
    155 	syscallarg(int) uid;
    156 	syscallarg(caddr_t) addr;
    157 };
    158 
    159 struct sunos_sys_exportfs_args {
    160 	syscallarg(char *) path;
    161 	syscallarg(char *) ex;
    162 };
    163 
    164 struct sunos_sys_mount_args {
    165 	syscallarg(char *) type;
    166 	syscallarg(char *) dir;
    167 	syscallarg(int) flags;
    168 	syscallarg(caddr_t) data;
    169 };
    170 
    171 struct sunos_sys_ustat_args {
    172 	syscallarg(int) dev;
    173 	syscallarg(struct sunos_ustat *) buf;
    174 };
    175 
    176 struct sunos_sys_auditsys_args {
    177 	syscallarg(char *) record;
    178 };
    179 
    180 struct sunos_sys_getdents_args {
    181 	syscallarg(int) fd;
    182 	syscallarg(char *) buf;
    183 	syscallarg(int) nbytes;
    184 };
    185 
    186 struct sunos_sys_fchroot_args {
    187 	syscallarg(int) fd;
    188 };
    189 
    190 struct sunos_sys_sigpending_args {
    191 	syscallarg(int *) mask;
    192 };
    193 
    194 struct sunos_sys_sysconf_args {
    195 	syscallarg(int) name;
    196 };
    197 
    198 struct sunos_sys_uname_args {
    199 	syscallarg(struct sunos_utsname *) name;
    200 };
    201 
    202 /*
    203  * System call prototypes.
    204  */
    205 
    206 int	sys_nosys	__P((struct proc *, void *, register_t *));
    207 int	sys_exit	__P((struct proc *, void *, register_t *));
    208 int	sys_fork	__P((struct proc *, void *, register_t *));
    209 int	sys_read	__P((struct proc *, void *, register_t *));
    210 int	sys_write	__P((struct proc *, void *, register_t *));
    211 int	sunos_sys_open	__P((struct proc *, void *, register_t *));
    212 int	sys_close	__P((struct proc *, void *, register_t *));
    213 int	sunos_sys_wait4	__P((struct proc *, void *, register_t *));
    214 int	sunos_sys_creat	__P((struct proc *, void *, register_t *));
    215 int	sys_link	__P((struct proc *, void *, register_t *));
    216 int	sys_unlink	__P((struct proc *, void *, register_t *));
    217 int	sunos_sys_execv	__P((struct proc *, void *, register_t *));
    218 int	sys_chdir	__P((struct proc *, void *, register_t *));
    219 int	sunos_sys_mknod	__P((struct proc *, void *, register_t *));
    220 int	sys_chmod	__P((struct proc *, void *, register_t *));
    221 int	sys_chown	__P((struct proc *, void *, register_t *));
    222 int	sys_obreak	__P((struct proc *, void *, register_t *));
    223 int	compat_43_sys_lseek	__P((struct proc *, void *, register_t *));
    224 int	sys_getpid	__P((struct proc *, void *, register_t *));
    225 int	sys_setuid	__P((struct proc *, void *, register_t *));
    226 int	sys_getuid	__P((struct proc *, void *, register_t *));
    227 int	sunos_sys_ptrace	__P((struct proc *, void *, register_t *));
    228 int	sunos_sys_access	__P((struct proc *, void *, register_t *));
    229 int	sys_sync	__P((struct proc *, void *, register_t *));
    230 int	sys_kill	__P((struct proc *, void *, register_t *));
    231 int	sunos_sys_stat	__P((struct proc *, void *, register_t *));
    232 int	sunos_sys_lstat	__P((struct proc *, void *, register_t *));
    233 int	sys_dup	__P((struct proc *, void *, register_t *));
    234 int	sys_pipe	__P((struct proc *, void *, register_t *));
    235 int	sys_profil	__P((struct proc *, void *, register_t *));
    236 int	sys_setgid	__P((struct proc *, void *, register_t *));
    237 int	sys_getgid	__P((struct proc *, void *, register_t *));
    238 int	sys_acct	__P((struct proc *, void *, register_t *));
    239 int	sunos_sys_mctl	__P((struct proc *, void *, register_t *));
    240 int	sunos_sys_ioctl	__P((struct proc *, void *, register_t *));
    241 int	sunos_sys_reboot	__P((struct proc *, void *, register_t *));
    242 int	sys_symlink	__P((struct proc *, void *, register_t *));
    243 int	sys_readlink	__P((struct proc *, void *, register_t *));
    244 int	sys_execve	__P((struct proc *, void *, register_t *));
    245 int	sys_umask	__P((struct proc *, void *, register_t *));
    246 int	sys_chroot	__P((struct proc *, void *, register_t *));
    247 int	compat_43_sys_fstat	__P((struct proc *, void *, register_t *));
    248 int	compat_43_sys_getpagesize	__P((struct proc *, void *, register_t *));
    249 int	sunos_sys_omsync	__P((struct proc *, void *, register_t *));
    250 int	sys_vfork	__P((struct proc *, void *, register_t *));
    251 int	sys_sbrk	__P((struct proc *, void *, register_t *));
    252 int	sys_sstk	__P((struct proc *, void *, register_t *));
    253 int	sunos_sys_mmap	__P((struct proc *, void *, register_t *));
    254 int	sys_ovadvise	__P((struct proc *, void *, register_t *));
    255 int	sys_munmap	__P((struct proc *, void *, register_t *));
    256 int	sys_mprotect	__P((struct proc *, void *, register_t *));
    257 int	sys_madvise	__P((struct proc *, void *, register_t *));
    258 int	sunos_sys_vhangup	__P((struct proc *, void *, register_t *));
    259 int	sys_mincore	__P((struct proc *, void *, register_t *));
    260 int	sys_getgroups	__P((struct proc *, void *, register_t *));
    261 int	sys_setgroups	__P((struct proc *, void *, register_t *));
    262 int	sys_getpgrp	__P((struct proc *, void *, register_t *));
    263 int	sunos_sys_setpgrp	__P((struct proc *, void *, register_t *));
    264 int	sys_setitimer	__P((struct proc *, void *, register_t *));
    265 int	sys_swapon	__P((struct proc *, void *, register_t *));
    266 int	sys_getitimer	__P((struct proc *, void *, register_t *));
    267 int	compat_43_sys_gethostname	__P((struct proc *, void *, register_t *));
    268 int	compat_43_sys_sethostname	__P((struct proc *, void *, register_t *));
    269 int	compat_43_sys_getdtablesize	__P((struct proc *, void *, register_t *));
    270 int	sys_dup2	__P((struct proc *, void *, register_t *));
    271 int	sys_fcntl	__P((struct proc *, void *, register_t *));
    272 int	sys_select	__P((struct proc *, void *, register_t *));
    273 int	sys_fsync	__P((struct proc *, void *, register_t *));
    274 int	sys_setpriority	__P((struct proc *, void *, register_t *));
    275 int	sys_socket	__P((struct proc *, void *, register_t *));
    276 int	sys_connect	__P((struct proc *, void *, register_t *));
    277 int	compat_43_sys_accept	__P((struct proc *, void *, register_t *));
    278 int	sys_getpriority	__P((struct proc *, void *, register_t *));
    279 int	compat_43_sys_send	__P((struct proc *, void *, register_t *));
    280 int	compat_43_sys_recv	__P((struct proc *, void *, register_t *));
    281 int	sys_bind	__P((struct proc *, void *, register_t *));
    282 int	sunos_sys_setsockopt	__P((struct proc *, void *, register_t *));
    283 int	sys_listen	__P((struct proc *, void *, register_t *));
    284 int	sunos_sys_sigvec	__P((struct proc *, void *, register_t *));
    285 int	compat_43_sys_sigblock	__P((struct proc *, void *, register_t *));
    286 int	compat_43_sys_sigsetmask	__P((struct proc *, void *, register_t *));
    287 int	sys_sigsuspend	__P((struct proc *, void *, register_t *));
    288 int	compat_43_sys_sigstack	__P((struct proc *, void *, register_t *));
    289 int	compat_43_sys_recvmsg	__P((struct proc *, void *, register_t *));
    290 int	compat_43_sys_sendmsg	__P((struct proc *, void *, register_t *));
    291 int	sys_gettimeofday	__P((struct proc *, void *, register_t *));
    292 int	sys_getrusage	__P((struct proc *, void *, register_t *));
    293 int	sys_getsockopt	__P((struct proc *, void *, register_t *));
    294 int	sys_readv	__P((struct proc *, void *, register_t *));
    295 int	sys_writev	__P((struct proc *, void *, register_t *));
    296 int	sys_settimeofday	__P((struct proc *, void *, register_t *));
    297 int	sys_fchown	__P((struct proc *, void *, register_t *));
    298 int	sys_fchmod	__P((struct proc *, void *, register_t *));
    299 int	compat_43_sys_recvfrom	__P((struct proc *, void *, register_t *));
    300 int	compat_43_sys_setreuid	__P((struct proc *, void *, register_t *));
    301 int	compat_43_sys_setregid	__P((struct proc *, void *, register_t *));
    302 int	sys_rename	__P((struct proc *, void *, register_t *));
    303 int	compat_43_sys_truncate	__P((struct proc *, void *, register_t *));
    304 int	compat_43_sys_ftruncate	__P((struct proc *, void *, register_t *));
    305 int	sys_flock	__P((struct proc *, void *, register_t *));
    306 int	sys_sendto	__P((struct proc *, void *, register_t *));
    307 int	sys_shutdown	__P((struct proc *, void *, register_t *));
    308 int	sys_socketpair	__P((struct proc *, void *, register_t *));
    309 int	sys_mkdir	__P((struct proc *, void *, register_t *));
    310 int	sys_rmdir	__P((struct proc *, void *, register_t *));
    311 int	sys_utimes	__P((struct proc *, void *, register_t *));
    312 int	sunos_sys_sigreturn	__P((struct proc *, void *, register_t *));
    313 int	sys_adjtime	__P((struct proc *, void *, register_t *));
    314 int	compat_43_sys_getpeername	__P((struct proc *, void *, register_t *));
    315 int	compat_43_sys_gethostid	__P((struct proc *, void *, register_t *));
    316 int	sunos_sys_getrlimit	__P((struct proc *, void *, register_t *));
    317 int	sunos_sys_setrlimit	__P((struct proc *, void *, register_t *));
    318 int	compat_43_sys_killpg	__P((struct proc *, void *, register_t *));
    319 int	compat_43_sys_getsockname	__P((struct proc *, void *, register_t *));
    320 int	sunos_sys_poll	__P((struct proc *, void *, register_t *));
    321 #ifdef NFSSERVER
    322 int	sunos_sys_nfssvc	__P((struct proc *, void *, register_t *));
    323 #else
    324 #endif
    325 int	sys_getdirentries	__P((struct proc *, void *, register_t *));
    326 int	sunos_sys_statfs	__P((struct proc *, void *, register_t *));
    327 int	sunos_sys_fstatfs	__P((struct proc *, void *, register_t *));
    328 int	sunos_sys_unmount	__P((struct proc *, void *, register_t *));
    329 #ifdef NFSCLIENT
    330 int	async_daemon	__P((struct proc *, void *, register_t *));
    331 int	sys_getfh	__P((struct proc *, void *, register_t *));
    332 #else
    333 #endif
    334 int	compat_09_sys_getdomainname	__P((struct proc *, void *, register_t *));
    335 int	compat_09_sys_setdomainname	__P((struct proc *, void *, register_t *));
    336 int	sunos_sys_quotactl	__P((struct proc *, void *, register_t *));
    337 int	sunos_sys_exportfs	__P((struct proc *, void *, register_t *));
    338 int	sunos_sys_mount	__P((struct proc *, void *, register_t *));
    339 int	sunos_sys_ustat	__P((struct proc *, void *, register_t *));
    340 #ifdef SYSVSEM
    341 int	compat_10_sys_semsys	__P((struct proc *, void *, register_t *));
    342 #else
    343 #endif
    344 #ifdef SYSVMSG
    345 int	compat_10_sys_msgsys	__P((struct proc *, void *, register_t *));
    346 #else
    347 #endif
    348 #ifdef SYSVSHM
    349 int	compat_10_sys_shmsys	__P((struct proc *, void *, register_t *));
    350 #else
    351 #endif
    352 int	sunos_sys_auditsys	__P((struct proc *, void *, register_t *));
    353 int	sunos_sys_getdents	__P((struct proc *, void *, register_t *));
    354 int	sys_setsid	__P((struct proc *, void *, register_t *));
    355 int	sys_fchdir	__P((struct proc *, void *, register_t *));
    356 int	sunos_sys_fchroot	__P((struct proc *, void *, register_t *));
    357 int	sunos_sys_sigpending	__P((struct proc *, void *, register_t *));
    358 int	sys_setpgid	__P((struct proc *, void *, register_t *));
    359 int	sys_pathconf	__P((struct proc *, void *, register_t *));
    360 int	sys_fpathconf	__P((struct proc *, void *, register_t *));
    361 int	sunos_sys_sysconf	__P((struct proc *, void *, register_t *));
    362 int	sunos_sys_uname	__P((struct proc *, void *, register_t *));
    363