summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_syscall.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-26 20:23:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-26 20:23:43 +0000
commit1761d011b4a83a9818c0a207dae66dbcbf764e69 (patch)
tree1fd597a50c1a17327c0c3581a4b8a38b15b30ea9 /sys/compat/ultrix/ultrix_syscall.h
parent9d7e2bf74d251f8245c717a45d446a0da7f6639b (diff)
from netbsd:
Add emulation of Ultrix select: before calling native sys_select(), limit the number of FDs to select on to the maximum supported by NetBSD -- which is as many FDs as the emul_ultrix process can have open, anyway. Add emulation of Ultrix getmnt(2) in ultrix_fs.c Add partial emulation of Ultrix tty ioctl()s in ultrix_ioctl.c, derived from compat/sunos/sunos_ioctl.c. Ultrix libc's ``isatty()'' now works in compat_emul processes. Fix ultrix_sys_select() entry. Add emulation of ultrix mount(2). Sufficient to NFS-mount filesystems using a NetBSD kernel in an ultrix root filesystem. Move wait emulation to the old (v7) wait syscall number, as that's what the Ultrix ufs_mount binary uses.
Diffstat (limited to 'sys/compat/ultrix/ultrix_syscall.h')
-rw-r--r--sys/compat/ultrix/ultrix_syscall.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/ultrix/ultrix_syscall.h b/sys/compat/ultrix/ultrix_syscall.h
index 3ac40c25b31..ecf9d58658a 100644
--- a/sys/compat/ultrix/ultrix_syscall.h
+++ b/sys/compat/ultrix/ultrix_syscall.h
@@ -12,6 +12,7 @@
#define ULTRIX_SYS_write 4
#define ULTRIX_SYS_open 5
#define ULTRIX_SYS_close 6
+#define ULTRIX_SYS_owait 7
#define ULTRIX_SYS_creat 8
#define ULTRIX_SYS_link 9
#define ULTRIX_SYS_unlink 10
@@ -25,7 +26,7 @@
/* 18 is obsolete stat */
#define ULTRIX_SYS_lseek 19
#define ULTRIX_SYS_getpid 20
- /* 21 is obsolete mount */
+#define ULTRIX_SYS_mount 21
/* 22 is obsolete sysV_unmount */
#define ULTRIX_SYS_setuid 23
#define ULTRIX_SYS_getuid 24
@@ -148,6 +149,7 @@
#define ULTRIX_SYS_exportfs 169
#define ULTRIX_SYS_uname 179
#define ULTRIX_SYS_ustat 183
+#define ULTRIX_SYS_getmnt 184
#define ULTRIX_SYS_sigpending 187
#define ULTRIX_SYS_setsid 188
#define ULTRIX_SYS_waitpid 189