summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-11 17:57:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-11 17:57:32 +0000
commite6f720e21dc645551f2989cf1f6e2a87bbd5b0e6 (patch)
tree8e45664ee11be51c9f3852175bd5ce301ef129a8 /sys/compat
parent8936c57c4ca9f5fcd985e694bb30fa2abb005df7 (diff)
implement mincore syscall, just like sunos & ultrix compat do.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/svr4/svr4_syscall.h1
-rw-r--r--sys/compat/svr4/svr4_syscallargs.h1
-rw-r--r--sys/compat/svr4/svr4_syscalls.c2
-rw-r--r--sys/compat/svr4/svr4_sysent.c4
-rw-r--r--sys/compat/svr4/syscalls.master4
5 files changed, 7 insertions, 5 deletions
diff --git a/sys/compat/svr4/svr4_syscall.h b/sys/compat/svr4/svr4_syscall.h
index 0e239f3bcc8..d192b724d33 100644
--- a/sys/compat/svr4/svr4_syscall.h
+++ b/sys/compat/svr4/svr4_syscall.h
@@ -88,6 +88,7 @@
#define SVR4_SYS_waitsys 107
#define SVR4_SYS_hrtsys 109
#define SVR4_SYS_pathconf 113
+#define SVR4_SYS_mincore 114
#define SVR4_SYS_mmap 115
#define SVR4_SYS_mprotect 116
#define SVR4_SYS_munmap 117
diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h
index 1a7e60ee543..035c258fbb0 100644
--- a/sys/compat/svr4/svr4_syscallargs.h
+++ b/sys/compat/svr4/svr4_syscallargs.h
@@ -395,6 +395,7 @@ int svr4_sys_fstatvfs __P((struct proc *, void *, register_t *));
int svr4_sys_waitsys __P((struct proc *, void *, register_t *));
int svr4_sys_hrtsys __P((struct proc *, void *, register_t *));
int svr4_sys_pathconf __P((struct proc *, void *, register_t *));
+int sys_mincore __P((struct proc *, void *, register_t *));
int svr4_sys_mmap __P((struct proc *, void *, register_t *));
int sys_mprotect __P((struct proc *, void *, register_t *));
int sys_munmap __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c
index b90c9fae92e..5cf7d8c9e0f 100644
--- a/sys/compat/svr4/svr4_syscalls.c
+++ b/sys/compat/svr4/svr4_syscalls.c
@@ -136,7 +136,7 @@ char *svr4_syscallnames[] = {
"#111 (unimplemented async)", /* 111 = unimplemented async */
"#112 (unimplemented priocntlsys)", /* 112 = unimplemented priocntlsys */
"pathconf", /* 113 = pathconf */
- "#114 (unimplemented mincore)", /* 114 = unimplemented mincore */
+ "mincore", /* 114 = mincore */
"mmap", /* 115 = mmap */
"mprotect", /* 116 = mprotect */
"munmap", /* 117 = munmap */
diff --git a/sys/compat/svr4/svr4_sysent.c b/sys/compat/svr4/svr4_sysent.c
index 6ac4d87c146..8a9844b18a7 100644
--- a/sys/compat/svr4/svr4_sysent.c
+++ b/sys/compat/svr4/svr4_sysent.c
@@ -286,8 +286,8 @@ struct sysent svr4_sysent[] = {
sys_nosys }, /* 112 = unimplemented priocntlsys */
{ 2, s(struct svr4_sys_pathconf_args),
svr4_sys_pathconf }, /* 113 = pathconf */
- { 0, 0,
- sys_nosys }, /* 114 = unimplemented mincore */
+ { 3, s(struct sys_mincore_args),
+ sys_mincore }, /* 114 = mincore */
{ 6, s(struct svr4_sys_mmap_args),
svr4_sys_mmap }, /* 115 = mmap */
{ 3, s(struct sys_mprotect_args),
diff --git a/sys/compat/svr4/syscalls.master b/sys/compat/svr4/syscalls.master
index 1582ba37e02..66dc8ec53db 100644
--- a/sys/compat/svr4/syscalls.master
+++ b/sys/compat/svr4/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.8 1996/08/02 21:55:24 niklas Exp $
+ $OpenBSD: syscalls.master,v 1.9 1997/01/11 17:57:31 mickey Exp $
; $NetBSD: syscalls.master,v 1.17 1996/02/10 17:12:51 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -196,7 +196,7 @@
111 UNIMPL async
112 UNIMPL priocntlsys
113 STD { int svr4_sys_pathconf(char *path, int name); }
-114 UNIMPL mincore
+114 NOARGS { int sys_mincore(caddr_t addr, int len, char *vec); }
115 STD { int svr4_sys_mmap(svr4_caddr_t addr, \
svr4_size_t len, int prot, int flags, int fd, \
svr4_off_t pos); }