2002-03-05 01:19:02 +03:00
|
|
|
/* $NetBSD: irix_syscallargs.h,v 1.27 2002/03/04 22:19:02 manu Exp $ */
|
2001-09-22 22:51:35 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* System call argument lists.
|
|
|
|
*
|
|
|
|
* DO NOT EDIT-- this file is automatically generated.
|
2002-03-05 01:19:02 +03:00
|
|
|
* created from NetBSD: syscalls.master,v 1.25 2002/03/03 20:12:17 manu Exp
|
2001-09-22 22:51:35 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IRIX_SYS__SYSCALLARGS_H_
|
|
|
|
#define _IRIX_SYS__SYSCALLARGS_H_
|
|
|
|
|
|
|
|
#ifdef syscallarg
|
|
|
|
#undef syscallarg
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define syscallarg(x) \
|
|
|
|
union { \
|
|
|
|
register_t pad; \
|
|
|
|
struct { x datum; } le; \
|
2001-11-13 05:07:52 +03:00
|
|
|
struct { /* LINTED zero array dimension */ \
|
|
|
|
int8_t pad[ /* CONSTCOND */ \
|
|
|
|
(sizeof (register_t) < sizeof (x)) \
|
2001-09-22 22:51:35 +04:00
|
|
|
? 0 \
|
|
|
|
: sizeof (register_t) - sizeof (x)]; \
|
|
|
|
x datum; \
|
|
|
|
} be; \
|
|
|
|
}
|
|
|
|
|
2001-11-28 15:00:53 +03:00
|
|
|
struct irix_sys_syssgi_args {
|
|
|
|
syscallarg(int) request;
|
|
|
|
syscallarg(void *) arg1;
|
|
|
|
syscallarg(void *) arg2;
|
|
|
|
syscallarg(void *) arg3;
|
|
|
|
syscallarg(void *) arg4;
|
|
|
|
syscallarg(void *) arg5;
|
|
|
|
};
|
|
|
|
|
2002-03-03 23:12:17 +03:00
|
|
|
struct irix_sys_ioctl_args {
|
|
|
|
syscallarg(int) fd;
|
|
|
|
syscallarg(u_long) com;
|
|
|
|
syscallarg(caddr_t) data;
|
|
|
|
};
|
|
|
|
|
2001-12-02 11:30:10 +03:00
|
|
|
struct irix_sys_sysmp_args {
|
|
|
|
syscallarg(int) cmd;
|
|
|
|
syscallarg(void *) arg1;
|
|
|
|
syscallarg(void *) arg2;
|
|
|
|
syscallarg(void *) arg3;
|
|
|
|
syscallarg(void *) arg4;
|
|
|
|
};
|
|
|
|
|
2001-12-25 19:40:48 +03:00
|
|
|
struct irix_sys_lseek64_args {
|
|
|
|
syscallarg(int) fd;
|
|
|
|
syscallarg(int) pad1;
|
|
|
|
syscallarg(irix_off64_t) offset;
|
|
|
|
syscallarg(int) whence;
|
|
|
|
syscallarg(int) pad2;
|
|
|
|
syscallarg(int) pad3;
|
|
|
|
syscallarg(int) pad4;
|
|
|
|
};
|
|
|
|
|
2001-12-23 23:15:03 +03:00
|
|
|
struct irix_sys_getdents_args {
|
|
|
|
syscallarg(int) fildes;
|
|
|
|
syscallarg(irix_dirent_t *) buf;
|
2001-11-28 15:00:53 +03:00
|
|
|
syscallarg(int) nbytes;
|
|
|
|
};
|
|
|
|
|
2001-12-08 14:17:37 +03:00
|
|
|
struct irix_sys_sginap_args {
|
|
|
|
syscallarg(long) ticks;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct irix_sys_sigreturn_args {
|
2002-02-17 23:50:06 +03:00
|
|
|
syscallarg(struct irix_sigreturna) isr;
|
2001-12-08 14:17:37 +03:00
|
|
|
};
|
|
|
|
|
2001-12-02 12:23:58 +03:00
|
|
|
struct irix_sys_prctl_args {
|
|
|
|
syscallarg(unsigned int) option;
|
|
|
|
syscallarg(void *) arg1;
|
|
|
|
};
|
|
|
|
|
2002-02-18 01:49:53 +03:00
|
|
|
struct irix_sys_systeminfo_args {
|
|
|
|
syscallarg(int) what;
|
|
|
|
syscallarg(char *) buf;
|
|
|
|
syscallarg(long) len;
|
2001-12-02 11:47:17 +03:00
|
|
|
};
|
|
|
|
|
2001-12-08 21:08:04 +03:00
|
|
|
struct irix_sys_xstat_args {
|
|
|
|
syscallarg(const int) version;
|
|
|
|
syscallarg(const char *) path;
|
|
|
|
syscallarg(struct stat *) buf;
|
|
|
|
};
|
|
|
|
|
2001-12-22 15:09:20 +03:00
|
|
|
struct irix_sys_lxstat_args {
|
|
|
|
syscallarg(const int) version;
|
|
|
|
syscallarg(const char *) path;
|
|
|
|
syscallarg(struct stat *) buf;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct irix_sys_fxstat_args {
|
|
|
|
syscallarg(const int) version;
|
|
|
|
syscallarg(const int) fd;
|
|
|
|
syscallarg(struct stat *) buf;
|
|
|
|
};
|
|
|
|
|
2001-12-25 22:04:18 +03:00
|
|
|
struct irix_sys_getcontext_args {
|
|
|
|
syscallarg(irix_ucontext_t *) ucp;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct irix_sys_setcontext_args {
|
|
|
|
syscallarg(const irix_ucontext_t *) ucp;
|
|
|
|
};
|
|
|
|
|
2001-12-26 14:04:20 +03:00
|
|
|
struct irix_sys_waitsys_args {
|
|
|
|
syscallarg(int) type;
|
|
|
|
syscallarg(int) pid;
|
|
|
|
syscallarg(struct irix_irix5_siginfo *) info;
|
|
|
|
syscallarg(int) options;
|
|
|
|
syscallarg(struct rusage *) ru;
|
|
|
|
};
|
|
|
|
|
2001-12-22 17:43:43 +03:00
|
|
|
struct irix_sys_getmountid_args {
|
|
|
|
syscallarg(const char *) path;
|
|
|
|
syscallarg(irix_mountid_t *) buf;
|
|
|
|
};
|
|
|
|
|
2002-02-04 23:26:34 +03:00
|
|
|
struct irix_sys_getdents64_args {
|
|
|
|
syscallarg(int) fildes;
|
|
|
|
syscallarg(irix_dirent64_t *) buf;
|
|
|
|
syscallarg(int) nbytes;
|
|
|
|
};
|
|
|
|
|
2001-12-23 23:15:03 +03:00
|
|
|
struct irix_sys_ngetdents_args {
|
|
|
|
syscallarg(int) fildes;
|
|
|
|
syscallarg(irix_dirent_t *) buf;
|
|
|
|
syscallarg(unsigned short) nbyte;
|
|
|
|
syscallarg(int *) eof;
|
|
|
|
};
|
|
|
|
|
2002-02-04 23:26:34 +03:00
|
|
|
struct irix_sys_ngetdents64_args {
|
|
|
|
syscallarg(int) fildes;
|
|
|
|
syscallarg(irix_dirent64_t *) buf;
|
|
|
|
syscallarg(unsigned short) nbyte;
|
|
|
|
syscallarg(int *) eof;
|
|
|
|
};
|
|
|
|
|
2001-09-22 22:51:35 +04:00
|
|
|
/*
|
|
|
|
* System call prototypes.
|
|
|
|
*/
|
|
|
|
|
2001-11-27 00:36:24 +03:00
|
|
|
int sys_nosys(struct proc *, void *, register_t *);
|
|
|
|
int sys_exit(struct proc *, void *, register_t *);
|
|
|
|
int sys_fork(struct proc *, void *, register_t *);
|
|
|
|
int sys_read(struct proc *, void *, register_t *);
|
|
|
|
int sys_write(struct proc *, void *, register_t *);
|
2001-11-28 15:00:53 +03:00
|
|
|
int svr4_sys_open(struct proc *, void *, register_t *);
|
|
|
|
int sys_close(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_creat(struct proc *, void *, register_t *);
|
|
|
|
int sys_link(struct proc *, void *, register_t *);
|
|
|
|
int sys_unlink(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_execv(struct proc *, void *, register_t *);
|
|
|
|
int sys_chdir(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_time(struct proc *, void *, register_t *);
|
|
|
|
int sys_chmod(struct proc *, void *, register_t *);
|
|
|
|
int sys___posix_chown(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_break(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_lseek(struct proc *, void *, register_t *);
|
|
|
|
int sys_getpid(struct proc *, void *, register_t *);
|
|
|
|
int sys_setuid(struct proc *, void *, register_t *);
|
|
|
|
int sys_getuid_with_euid(struct proc *, void *, register_t *);
|
2002-02-03 04:21:47 +03:00
|
|
|
int svr4_sys_alarm(struct proc *, void *, register_t *);
|
2001-11-28 15:00:53 +03:00
|
|
|
int svr4_sys_fstat(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_pause(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_utime(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_access(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_nice(struct proc *, void *, register_t *);
|
|
|
|
int sys_sync(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_kill(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_pgrpsys(struct proc *, void *, register_t *);
|
|
|
|
int irix_sys_syssgi(struct proc *, void *, register_t *);
|
|
|
|
int sys_dup(struct proc *, void *, register_t *);
|
|
|
|
int sys_pipe(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_times(struct proc *, void *, register_t *);
|
|
|
|
int sys_setgid(struct proc *, void *, register_t *);
|
|
|
|
int sys_getgid_with_egid(struct proc *, void *, register_t *);
|
|
|
|
#ifdef SYSVMSG
|
|
|
|
int svr4_sys_msgsys(struct proc *, void *, register_t *);
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVSHM
|
|
|
|
int svr4_sys_shmsys(struct proc *, void *, register_t *);
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#ifdef SYSVSEM
|
|
|
|
int svr4_sys_semsys(struct proc *, void *, register_t *);
|
|
|
|
#else
|
|
|
|
#endif
|
2002-03-03 23:12:17 +03:00
|
|
|
int irix_sys_ioctl(struct proc *, void *, register_t *);
|
2001-12-02 11:30:10 +03:00
|
|
|
int irix_sys_sysmp(struct proc *, void *, register_t *);
|
2001-11-28 15:00:53 +03:00
|
|
|
int svr4_sys_utssys(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_execve(struct proc *, void *, register_t *);
|
|
|
|
int sys_umask(struct proc *, void *, register_t *);
|
|
|
|
int sys_chroot(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_fcntl(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_ulimit(struct proc *, void *, register_t *);
|
2001-12-25 19:40:48 +03:00
|
|
|
int irix_sys_lseek64(struct proc *, void *, register_t *);
|
2001-11-28 15:00:53 +03:00
|
|
|
int sys_rmdir(struct proc *, void *, register_t *);
|
|
|
|
int sys_mkdir(struct proc *, void *, register_t *);
|
2001-12-23 23:15:03 +03:00
|
|
|
int irix_sys_getdents(struct proc *, void *, register_t *);
|
2001-12-08 14:17:37 +03:00
|
|
|
int irix_sys_sginap(struct proc *, void *, register_t *);
|
2001-11-28 15:00:53 +03:00
|
|
|
int svr4_sys_getmsg(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_putmsg(struct proc *, void *, register_t *);
|
|
|
|
int sys_poll(struct proc *, void *, register_t *);
|
2001-12-08 14:17:37 +03:00
|
|
|
int irix_sys_sigreturn(struct proc *, void *, register_t *);
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
int compat_43_sys_accept(struct proc *, void *, register_t *);
|
|
|
|
int sys_bind(struct proc *, void *, register_t *);
|
|
|
|
int sys_connect(struct proc *, void *, register_t *);
|
2002-02-21 14:09:43 +03:00
|
|
|
int compat_43_sys_gethostid(struct proc *, void *, register_t *);
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
int compat_43_sys_getpeername(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_getsockname(struct proc *, void *, register_t *);
|
|
|
|
int sys_getsockopt(struct proc *, void *, register_t *);
|
|
|
|
int sys_listen(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_recv(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_recvmsg(struct proc *, void *, register_t *);
|
|
|
|
int sys_select(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_send(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_sendmsg(struct proc *, void *, register_t *);
|
|
|
|
int sys_sendto(struct proc *, void *, register_t *);
|
2002-02-21 14:09:43 +03:00
|
|
|
int compat_43_sys_sethostid(struct proc *, void *, register_t *);
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
int sys_setsockopt(struct proc *, void *, register_t *);
|
|
|
|
int sys_shutdown(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_socket(struct proc *, void *, register_t *);
|
2002-02-03 04:21:47 +03:00
|
|
|
int compat_43_sys_gethostname(struct proc *, void *, register_t *);
|
|
|
|
int compat_43_sys_sethostname(struct proc *, void *, register_t *);
|
|
|
|
int compat_09_sys_getdomainname(struct proc *, void *, register_t *);
|
|
|
|
int compat_09_sys_setdomainname(struct proc *, void *, register_t *);
|
2001-12-27 14:07:23 +03:00
|
|
|
int sys_rename(struct proc *, void *, register_t *);
|
|
|
|
int sys_symlink(struct proc *, void *, register_t *);
|
|
|
|
int sys_readlink(struct proc *, void *, register_t *);
|
2002-03-05 01:19:02 +03:00
|
|
|
int sys_setregid(struct proc *, void *, register_t *);
|
|
|
|
int sys_setreuid(struct proc *, void *, register_t *);
|
2002-02-03 20:39:54 +03:00
|
|
|
int sys_getitimer(struct proc *, void *, register_t *);
|
|
|
|
int sys_setitimer(struct proc *, void *, register_t *);
|
|
|
|
int sys_adjtime(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_gettimeofday(struct proc *, void *, register_t *);
|
2001-12-02 12:23:58 +03:00
|
|
|
int irix_sys_prctl(struct proc *, void *, register_t *);
|
2001-12-02 11:47:17 +03:00
|
|
|
int svr4_sys_mmap(struct proc *, void *, register_t *);
|
2002-02-22 01:15:28 +03:00
|
|
|
int sys_munmap(struct proc *, void *, register_t *);
|
|
|
|
int sys_mprotect(struct proc *, void *, register_t *);
|
2002-02-18 01:49:53 +03:00
|
|
|
int irix_sys_systeminfo(struct proc *, void *, register_t *);
|
2001-12-08 21:08:04 +03:00
|
|
|
int irix_sys_xstat(struct proc *, void *, register_t *);
|
2001-12-22 15:09:20 +03:00
|
|
|
int irix_sys_lxstat(struct proc *, void *, register_t *);
|
|
|
|
int irix_sys_fxstat(struct proc *, void *, register_t *);
|
2001-12-08 14:17:37 +03:00
|
|
|
int svr4_sys_sigaction(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_sigpending(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_sigprocmask(struct proc *, void *, register_t *);
|
|
|
|
int svr4_sys_sigsuspend(struct proc *, void *, register_t *);
|
2001-12-25 22:04:18 +03:00
|
|
|
int irix_sys_getcontext(struct proc *, void *, register_t *);
|
|
|
|
int irix_sys_setcontext(struct proc *, void *, register_t *);
|
2001-12-26 14:04:20 +03:00
|
|
|
int irix_sys_waitsys(struct proc *, void *, register_t *);
|
Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-26 00:32:30 +03:00
|
|
|
int sys_readv(struct proc *, void *, register_t *);
|
|
|
|
int sys_writev(struct proc *, void *, register_t *);
|
2001-12-22 17:43:43 +03:00
|
|
|
int irix_sys_getmountid(struct proc *, void *, register_t *);
|
2002-02-04 23:26:34 +03:00
|
|
|
int irix_sys_getdents64(struct proc *, void *, register_t *);
|
2001-12-23 23:15:03 +03:00
|
|
|
int irix_sys_ngetdents(struct proc *, void *, register_t *);
|
2002-02-04 23:26:34 +03:00
|
|
|
int irix_sys_ngetdents64(struct proc *, void *, register_t *);
|
2001-09-22 22:51:35 +04:00
|
|
|
#endif /* _IRIX_SYS__SYSCALLARGS_H_ */
|