NetBSD/sys/compat/irix/irix_syscallargs.h
manu 7839e13a9c On IRIX, the first 88 system calls are quite plain SVR4, and the 137
remaining are IRIX specific. We know use SVR4 emulation for the first 88
system calls.
2001-11-28 12:00:53 +00:00

234 lines
6.0 KiB
C

/* $NetBSD: irix_syscallargs.h,v 1.4 2001/11/28 12:00:53 manu Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.2 2001/11/26 21:36:25 manu Exp
*/
#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; \
struct { /* LINTED zero array dimension */ \
int8_t pad[ /* CONSTCOND */ \
(sizeof (register_t) < sizeof (x)) \
? 0 \
: sizeof (register_t) - sizeof (x)]; \
x datum; \
} be; \
}
struct svr4_sys_open_args {
syscallarg(const char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
};
struct svr4_sys_creat_args {
syscallarg(const char *) path;
syscallarg(int) mode;
};
struct svr4_sys_execv_args {
syscallarg(const char *) path;
syscallarg(char **) argp;
};
struct svr4_sys_time_args {
syscallarg(svr4_time_t *) t;
};
struct svr4_sys_break_args {
syscallarg(caddr_t) nsize;
};
struct svr4_sys_fstat_args {
syscallarg(int) fd;
syscallarg(struct svr4_stat *) sb;
};
struct svr4_sys_utime_args {
syscallarg(const char *) path;
syscallarg(struct svr4_utimbuf *) ubuf;
};
struct svr4_sys_access_args {
syscallarg(const char *) path;
syscallarg(int) flags;
};
struct svr4_sys_nice_args {
syscallarg(int) prio;
};
struct svr4_sys_kill_args {
syscallarg(int) pid;
syscallarg(int) signum;
};
struct svr4_sys_pgrpsys_args {
syscallarg(int) cmd;
syscallarg(int) pid;
syscallarg(int) pgid;
};
struct irix_sys_syssgi_args {
syscallarg(int) request;
syscallarg(void *) arg1;
syscallarg(void *) arg2;
syscallarg(void *) arg3;
syscallarg(void *) arg4;
syscallarg(void *) arg5;
};
struct svr4_sys_times_args {
syscallarg(struct tms *) tp;
};
struct svr4_sys_msgsys_args {
syscallarg(int) what;
syscallarg(int) a2;
syscallarg(int) a3;
syscallarg(int) a4;
syscallarg(int) a5;
};
struct svr4_sys_shmsys_args {
syscallarg(int) what;
syscallarg(int) a2;
syscallarg(int) a3;
syscallarg(int) a4;
};
struct svr4_sys_semsys_args {
syscallarg(int) what;
syscallarg(int) a2;
syscallarg(int) a3;
syscallarg(int) a4;
syscallarg(int) a5;
};
struct svr4_sys_ioctl_args {
syscallarg(int) fd;
syscallarg(u_long) com;
syscallarg(caddr_t) data;
};
struct svr4_sys_utssys_args {
syscallarg(void *) a1;
syscallarg(void *) a2;
syscallarg(int) sel;
syscallarg(void *) a3;
};
struct svr4_sys_execve_args {
syscallarg(const char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
};
struct svr4_sys_fcntl_args {
syscallarg(int) fd;
syscallarg(int) cmd;
syscallarg(char *) arg;
};
struct svr4_sys_ulimit_args {
syscallarg(int) cmd;
syscallarg(long) newlimit;
};
struct svr4_sys_getdents_args {
syscallarg(int) fd;
syscallarg(char *) buf;
syscallarg(int) nbytes;
};
struct svr4_sys_getmsg_args {
syscallarg(int) fd;
syscallarg(struct svr4_strbuf *) ctl;
syscallarg(struct svr4_strbuf *) dat;
syscallarg(int *) flags;
};
struct svr4_sys_putmsg_args {
syscallarg(int) fd;
syscallarg(struct svr4_strbuf *) ctl;
syscallarg(struct svr4_strbuf *) dat;
syscallarg(int) flags;
};
/*
* System call prototypes.
*/
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 *);
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 *);
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
int svr4_sys_ioctl(struct proc *, void *, register_t *);
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 *);
int sys_rmdir(struct proc *, void *, register_t *);
int sys_mkdir(struct proc *, void *, register_t *);
int svr4_sys_getdents(struct proc *, void *, register_t *);
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 *);
#endif /* _IRIX_SYS__SYSCALLARGS_H_ */