summaryrefslogtreecommitdiff
path: root/sys/compat/ibcs2
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-07 07:18:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-07 07:18:38 +0000
commit184f5b3edd634fae3b8558b4669ced57cb900d02 (patch)
tree227f7061b9d18ed5b086dadd96ba7d260f369a7f /sys/compat/ibcs2
parent4e96377228ca04c54bdc4aec8116d85f74e15834 (diff)
sync
Diffstat (limited to 'sys/compat/ibcs2')
-rw-r--r--sys/compat/ibcs2/ibcs2_syscall.h172
-rw-r--r--sys/compat/ibcs2/ibcs2_syscallargs.h6
-rw-r--r--sys/compat/ibcs2/ibcs2_syscalls.c6
-rw-r--r--sys/compat/ibcs2/ibcs2_sysent.c6
4 files changed, 182 insertions, 8 deletions
diff --git a/sys/compat/ibcs2/ibcs2_syscall.h b/sys/compat/ibcs2/ibcs2_syscall.h
index a6026714475..396b0628f6a 100644
--- a/sys/compat/ibcs2/ibcs2_syscall.h
+++ b/sys/compat/ibcs2/ibcs2_syscall.h
@@ -1,66 +1,180 @@
+/* $OpenBSD: ibcs2_syscall.h,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.5 1996/08/02 21:55:17 niklas Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:47 deraadt Exp
*/
+/* syscall: "syscall" ret: "int" args: */
#define IBCS2_SYS_syscall 0
+
+/* syscall: "exit" ret: "int" args: "int" */
#define IBCS2_SYS_exit 1
+
+/* syscall: "fork" ret: "int" args: */
#define IBCS2_SYS_fork 2
+
+/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
#define IBCS2_SYS_read 3
+
+/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
#define IBCS2_SYS_write 4
+
+/* syscall: "open" ret: "int" args: "char *" "int" "int" */
#define IBCS2_SYS_open 5
+
+/* syscall: "close" ret: "int" args: "int" */
#define IBCS2_SYS_close 6
+
+/* syscall: "waitsys" ret: "int" args: "int" "int" "int" */
#define IBCS2_SYS_waitsys 7
+
+/* syscall: "creat" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_creat 8
+
+/* syscall: "link" ret: "int" args: "char *" "char *" */
#define IBCS2_SYS_link 9
+
+/* syscall: "unlink" ret: "int" args: "char *" */
#define IBCS2_SYS_unlink 10
+
+/* syscall: "execv" ret: "int" args: "char *" "char **" */
#define IBCS2_SYS_execv 11
+
+/* syscall: "chdir" ret: "int" args: "char *" */
#define IBCS2_SYS_chdir 12
+
+/* syscall: "time" ret: "int" args: "ibcs2_time_t *" */
#define IBCS2_SYS_time 13
+
+/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
#define IBCS2_SYS_mknod 14
+
+/* syscall: "chmod" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_chmod 15
+
+/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
#define IBCS2_SYS_chown 16
+
+/* syscall: "obreak" ret: "int" args: "caddr_t" */
#define IBCS2_SYS_obreak 17
+
+/* syscall: "stat" ret: "int" args: "char *" "struct ibcs2_stat *" */
#define IBCS2_SYS_stat 18
+
+/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
#define IBCS2_SYS_lseek 19
+
+/* syscall: "getpid" ret: "pid_t" args: */
#define IBCS2_SYS_getpid 20
+
+/* syscall: "mount" ret: "int" args: "char *" "char *" "int" "int" "char *" "int" */
#define IBCS2_SYS_mount 21
+
+/* syscall: "umount" ret: "int" args: "char *" */
#define IBCS2_SYS_umount 22
+
+/* syscall: "setuid" ret: "int" args: "int" */
#define IBCS2_SYS_setuid 23
+
+/* syscall: "getuid" ret: "uid_t" args: */
#define IBCS2_SYS_getuid 24
+
+/* syscall: "stime" ret: "int" args: "long *" */
#define IBCS2_SYS_stime 25
+
+/* syscall: "alarm" ret: "int" args: "unsigned" */
#define IBCS2_SYS_alarm 27
+
+/* syscall: "fstat" ret: "int" args: "int" "struct ibcs2_stat *" */
#define IBCS2_SYS_fstat 28
+
+/* syscall: "pause" ret: "int" args: */
#define IBCS2_SYS_pause 29
+
+/* syscall: "utime" ret: "int" args: "char *" "struct ibcs2_utimbuf *" */
#define IBCS2_SYS_utime 30
+
+/* syscall: "access" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_access 33
+
+/* syscall: "nice" ret: "int" args: "int" */
#define IBCS2_SYS_nice 34
+
+/* syscall: "statfs" ret: "int" args: "char *" "struct ibcs2_statfs *" "int" "int" */
#define IBCS2_SYS_statfs 35
+
+/* syscall: "sync" ret: "int" args: */
#define IBCS2_SYS_sync 36
+
+/* syscall: "kill" ret: "int" args: "int" "int" */
#define IBCS2_SYS_kill 37
+
+/* syscall: "fstatfs" ret: "int" args: "int" "struct ibcs2_statfs *" "int" "int" */
#define IBCS2_SYS_fstatfs 38
+
+/* syscall: "pgrpsys" ret: "int" args: "int" "caddr_t" "int" "int" */
#define IBCS2_SYS_pgrpsys 39
+
+/* syscall: "dup" ret: "int" args: "u_int" */
#define IBCS2_SYS_dup 41
-#define IBCS2_SYS_pipe 42
+
+/* syscall: "opipe" ret: "int" args: */
+#define IBCS2_SYS_opipe 42
+
+/* syscall: "times" ret: "int" args: "struct tms *" */
#define IBCS2_SYS_times 43
+
+/* syscall: "plock" ret: "int" args: "int" */
#define IBCS2_SYS_plock 45
+
+/* syscall: "setgid" ret: "int" args: "int" */
#define IBCS2_SYS_setgid 46
+
+/* syscall: "getgid" ret: "gid_t" args: */
#define IBCS2_SYS_getgid 47
+
+/* syscall: "sigsys" ret: "int" args: "int" "ibcs2_sig_t" */
#define IBCS2_SYS_sigsys 48
+
+/* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
#define IBCS2_SYS_msgsys 49
+
+/* syscall: "sysi86" ret: "int" args: "int" "int" */
#define IBCS2_SYS_sysi86 50
+
+/* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
#define IBCS2_SYS_shmsys 52
+
+/* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
#define IBCS2_SYS_semsys 53
+
+/* syscall: "ioctl" ret: "int" args: "int" "int" "caddr_t" */
#define IBCS2_SYS_ioctl 54
+
+/* syscall: "uadmin" ret: "int" args: "int" "int" "caddr_t" */
#define IBCS2_SYS_uadmin 55
+
+/* syscall: "utssys" ret: "int" args: "int" "int" "int" */
#define IBCS2_SYS_utssys 57
+
+/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
#define IBCS2_SYS_execve 59
+
+/* syscall: "umask" ret: "int" args: "int" */
#define IBCS2_SYS_umask 60
+
+/* syscall: "chroot" ret: "int" args: "char *" */
#define IBCS2_SYS_chroot 61
+
+/* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */
#define IBCS2_SYS_fcntl 62
+
+/* syscall: "ulimit" ret: "long" args: "int" "int" */
#define IBCS2_SYS_ulimit 63
+
/* 70 is obsolete rfs_advfs */
/* 71 is obsolete rfs_unadvfs */
/* 72 is obsolete rfs_rmount */
@@ -69,31 +183,85 @@
/* 75 is obsolete rfs_sigret */
/* 76 is obsolete rfs_rdebug */
/* 77 is obsolete rfs_rfstop */
+/* syscall: "rmdir" ret: "int" args: "char *" */
#define IBCS2_SYS_rmdir 79
+
+/* syscall: "mkdir" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_mkdir 80
+
+/* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
#define IBCS2_SYS_getdents 81
+
+/* syscall: "sysfs" ret: "int" args: "int" "caddr_t" "char *" */
#define IBCS2_SYS_sysfs 84
+
+/* syscall: "getmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int *" */
#define IBCS2_SYS_getmsg 85
+
+/* syscall: "putmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int" */
#define IBCS2_SYS_putmsg 86
+
+/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_long" "int" */
#define IBCS2_SYS_poll 87
+
+/* syscall: "symlink" ret: "int" args: "char *" "char *" */
#define IBCS2_SYS_symlink 90
+
+/* syscall: "lstat" ret: "int" args: "char *" "struct ibcs2_stat *" */
#define IBCS2_SYS_lstat 91
+
+/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
#define IBCS2_SYS_readlink 92
+
+/* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
#define IBCS2_SYS_sigreturn 103
+
+/* syscall: "rdchk" ret: "int" args: "int" */
#define IBCS2_SYS_rdchk 135
+
+/* syscall: "chsize" ret: "int" args: "int" "long" */
#define IBCS2_SYS_chsize 138
+
+/* syscall: "ftime" ret: "int" args: "struct xenix_timeb *" */
#define IBCS2_SYS_ftime 139
+
+/* syscall: "nap" ret: "int" args: "int" */
#define IBCS2_SYS_nap 140
+
+/* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
#define IBCS2_SYS_select 164
+
+/* syscall: "eaccess" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_eaccess 165
+
+/* syscall: "sigaction" ret: "int" args: "int" "struct ibcs2_sigaction *" "struct ibcs2_sigaction *" */
#define IBCS2_SYS_sigaction 167
+
+/* syscall: "sigprocmask" ret: "int" args: "int" "ibcs2_sigset_t *" "ibcs2_sigset_t *" */
#define IBCS2_SYS_sigprocmask 168
+
+/* syscall: "sigpending" ret: "int" args: "ibcs2_sigset_t *" */
#define IBCS2_SYS_sigpending 169
+
+/* syscall: "sigsuspend" ret: "int" args: "ibcs2_sigset_t *" */
#define IBCS2_SYS_sigsuspend 170
+
+/* syscall: "getgroups" ret: "int" args: "int" "ibcs2_gid_t *" */
#define IBCS2_SYS_getgroups 171
+
+/* syscall: "setgroups" ret: "int" args: "int" "ibcs2_gid_t *" */
#define IBCS2_SYS_setgroups 172
+
+/* syscall: "sysconf" ret: "int" args: "int" */
#define IBCS2_SYS_sysconf 173
+
+/* syscall: "pathconf" ret: "int" args: "char *" "int" */
#define IBCS2_SYS_pathconf 174
+
+/* syscall: "fpathconf" ret: "int" args: "int" "int" */
#define IBCS2_SYS_fpathconf 175
+
+/* syscall: "rename" ret: "int" args: "char *" "char *" */
#define IBCS2_SYS_rename 176
+
#define IBCS2_SYS_MAXSYSCALL 177
diff --git a/sys/compat/ibcs2/ibcs2_syscallargs.h b/sys/compat/ibcs2/ibcs2_syscallargs.h
index a704ee2a6e4..1446b718d1c 100644
--- a/sys/compat/ibcs2/ibcs2_syscallargs.h
+++ b/sys/compat/ibcs2/ibcs2_syscallargs.h
@@ -1,8 +1,10 @@
+/* $OpenBSD: ibcs2_syscallargs.h,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.5 1996/08/02 21:55:17 niklas Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:47 deraadt Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -384,7 +386,7 @@ int ibcs2_sys_kill __P((struct proc *, void *, register_t *));
int ibcs2_sys_fstatfs __P((struct proc *, void *, register_t *));
int ibcs2_sys_pgrpsys __P((struct proc *, void *, register_t *));
int sys_dup __P((struct proc *, void *, register_t *));
-int sys_pipe __P((struct proc *, void *, register_t *));
+int sys_opipe __P((struct proc *, void *, register_t *));
int ibcs2_sys_times __P((struct proc *, void *, register_t *));
int ibcs2_sys_plock __P((struct proc *, void *, register_t *));
int ibcs2_sys_setgid __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/ibcs2/ibcs2_syscalls.c b/sys/compat/ibcs2/ibcs2_syscalls.c
index 9f6ed193239..9b441f58616 100644
--- a/sys/compat/ibcs2/ibcs2_syscalls.c
+++ b/sys/compat/ibcs2/ibcs2_syscalls.c
@@ -1,8 +1,10 @@
+/* $OpenBSD: ibcs2_syscalls.c,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.5 1996/08/02 21:55:17 niklas Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:47 deraadt Exp
*/
char *ibcs2_syscallnames[] = {
@@ -48,7 +50,7 @@ char *ibcs2_syscallnames[] = {
"pgrpsys", /* 39 = pgrpsys */
"#40 (unimplemented ibcs2_xenix)", /* 40 = unimplemented ibcs2_xenix */
"dup", /* 41 = dup */
- "pipe", /* 42 = pipe */
+ "opipe", /* 42 = opipe */
"times", /* 43 = times */
"#44 (unimplemented profil)", /* 44 = unimplemented profil */
"plock", /* 45 = plock */
diff --git a/sys/compat/ibcs2/ibcs2_sysent.c b/sys/compat/ibcs2/ibcs2_sysent.c
index 3dc93315898..9858231d986 100644
--- a/sys/compat/ibcs2/ibcs2_sysent.c
+++ b/sys/compat/ibcs2/ibcs2_sysent.c
@@ -1,8 +1,10 @@
+/* $OpenBSD: ibcs2_sysent.c,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.5 1996/08/02 21:55:17 niklas Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:47 deraadt Exp
*/
#include <sys/param.h>
@@ -122,7 +124,7 @@ struct sysent ibcs2_sysent[] = {
{ 1, s(struct sys_dup_args),
sys_dup }, /* 41 = dup */
{ 0, 0,
- sys_pipe }, /* 42 = pipe */
+ sys_opipe }, /* 42 = opipe */
{ 1, s(struct ibcs2_sys_times_args),
ibcs2_sys_times }, /* 43 = times */
{ 0, 0,