summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-28 23:49:46 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-28 23:49:46 +0000
commit41efb0f1f1339b22b55ef3d0c3bb0eb5516cf4a9 (patch)
treeba49a1ee325e43e4a7f07876c46c16285314d13f /sys/compat
parent374286eb73372734b7da883b72a75d9749938356 (diff)
sync
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/svr4/svr4_syscall.h10
-rw-r--r--sys/compat/svr4/svr4_syscallargs.h20
-rw-r--r--sys/compat/svr4/svr4_syscalls.c8
-rw-r--r--sys/compat/svr4/svr4_sysent.c12
4 files changed, 36 insertions, 14 deletions
diff --git a/sys/compat/svr4/svr4_syscall.h b/sys/compat/svr4/svr4_syscall.h
index 1e4eebcdf77..2c7bc486371 100644
--- a/sys/compat/svr4/svr4_syscall.h
+++ b/sys/compat/svr4/svr4_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscall.h,v 1.28 2000/06/24 21:02:46 fgsch Exp $ */
+/* $OpenBSD: svr4_syscall.h,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.28 2000/06/24 21:00:30 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -370,6 +370,9 @@
/* syscall: "getdents64" ret: "int" args: "int" "struct svr4_dirent64 *" "int" */
#define SVR4_SYS_getdents64 213
+/* syscall: "mmap64" ret: "int" args: "svr4_caddr_t" "svr4_size_t" "int" "int" "int" "svr4_off64_t" */
+#define SVR4_SYS_mmap64 214
+
/* syscall: "stat64" ret: "int" args: "const char *" "struct svr4_stat64 *" */
#define SVR4_SYS_stat64 215
@@ -382,6 +385,9 @@
/* syscall: "fstatvfs64" ret: "int" args: "int" "struct svr4_statvfs64 *" */
#define SVR4_SYS_fstatvfs64 219
+/* syscall: "creat64" ret: "int" args: "char *" "int" */
+#define SVR4_SYS_creat64 224
+
/* syscall: "open64" ret: "int" args: "char *" "int" "int" */
#define SVR4_SYS_open64 225
diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h
index 0749eb5c255..21081fb6ae1 100644
--- a/sys/compat/svr4/svr4_syscallargs.h
+++ b/sys/compat/svr4/svr4_syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscallargs.h,v 1.28 2000/06/24 21:02:46 fgsch Exp $ */
+/* $OpenBSD: svr4_syscallargs.h,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.28 2000/06/24 21:00:30 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -375,6 +375,15 @@ struct svr4_sys_getdents64_args {
syscallarg(int) nbytes;
};
+struct svr4_sys_mmap64_args {
+ syscallarg(svr4_caddr_t) addr;
+ syscallarg(svr4_size_t) len;
+ syscallarg(int) prot;
+ syscallarg(int) flags;
+ syscallarg(int) fd;
+ syscallarg(svr4_off64_t) pos;
+};
+
struct svr4_sys_stat64_args {
syscallarg(const char *) path;
syscallarg(struct svr4_stat64 *) sb;
@@ -395,6 +404,11 @@ struct svr4_sys_fstatvfs64_args {
syscallarg(struct svr4_statvfs64 *) fs;
};
+struct svr4_sys_creat64_args {
+ syscallarg(char *) path;
+ syscallarg(int) mode;
+};
+
struct svr4_sys_open64_args {
syscallarg(char *) path;
syscallarg(int) flags;
@@ -538,10 +552,12 @@ int svr4_sys_facl __P((struct proc *, void *, register_t *));
int compat_43_sys_setreuid __P((struct proc *, void *, register_t *));
int compat_43_sys_setregid __P((struct proc *, void *, register_t *));
int svr4_sys_getdents64 __P((struct proc *, void *, register_t *));
+int svr4_sys_mmap64 __P((struct proc *, void *, register_t *));
int svr4_sys_stat64 __P((struct proc *, void *, register_t *));
int svr4_sys_lstat64 __P((struct proc *, void *, register_t *));
int svr4_sys_fstat64 __P((struct proc *, void *, register_t *));
int svr4_sys_fstatvfs64 __P((struct proc *, void *, register_t *));
+int svr4_sys_creat64 __P((struct proc *, void *, register_t *));
int svr4_sys_open64 __P((struct proc *, void *, register_t *));
int svr4_sys_socket __P((struct proc *, void *, register_t *));
int sys_socketpair __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c
index 869fcc63bd7..87b346cde97 100644
--- a/sys/compat/svr4/svr4_syscalls.c
+++ b/sys/compat/svr4/svr4_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscalls.c,v 1.28 2000/06/24 21:02:46 fgsch Exp $ */
+/* $OpenBSD: svr4_syscalls.c,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.28 2000/06/24 21:00:30 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
*/
char *svr4_syscallnames[] = {
@@ -234,7 +234,7 @@ char *svr4_syscallnames[] = {
"#211 (unimplemented lwp_sigredirect)", /* 211 = unimplemented lwp_sigredirect */
"#212 (unimplemented lwp_alarm)", /* 212 = unimplemented lwp_alarm */
"getdents64", /* 213 = getdents64 */
- "#214 (unimplemented mmap64)", /* 214 = unimplemented mmap64 */
+ "mmap64", /* 214 = mmap64 */
"stat64", /* 215 = stat64 */
"lstat64", /* 216 = lstat64 */
"fstat64", /* 217 = fstat64 */
@@ -244,7 +244,7 @@ char *svr4_syscallnames[] = {
"#221 (unimplemented getrlimit64)", /* 221 = unimplemented getrlimit64 */
"#222 (unimplemented pread64)", /* 222 = unimplemented pread64 */
"#223 (unimplemented pwrite64)", /* 223 = unimplemented pwrite64 */
- "#224 (unimplemented creat64)", /* 224 = unimplemented creat64 */
+ "creat64", /* 224 = creat64 */
"open64", /* 225 = open64 */
"#226 (unimplemented rpcsys)", /* 226 = unimplemented rpcsys */
"#227 (unimplemented)", /* 227 = unimplemented */
diff --git a/sys/compat/svr4/svr4_sysent.c b/sys/compat/svr4/svr4_sysent.c
index 6fa303144de..3b2ff284ca0 100644
--- a/sys/compat/svr4/svr4_sysent.c
+++ b/sys/compat/svr4/svr4_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_sysent.c,v 1.28 2000/06/24 21:02:46 fgsch Exp $ */
+/* $OpenBSD: svr4_sysent.c,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.28 2000/06/24 21:00:30 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
*/
#include <sys/param.h>
@@ -484,8 +484,8 @@ struct sysent svr4_sysent[] = {
sys_nosys }, /* 212 = unimplemented lwp_alarm */
{ 3, s(struct svr4_sys_getdents64_args),
svr4_sys_getdents64 }, /* 213 = getdents64 */
- { 0, 0,
- sys_nosys }, /* 214 = unimplemented mmap64 */
+ { 6, s(struct svr4_sys_mmap64_args),
+ svr4_sys_mmap64 }, /* 214 = mmap64 */
{ 2, s(struct svr4_sys_stat64_args),
svr4_sys_stat64 }, /* 215 = stat64 */
{ 2, s(struct svr4_sys_lstat64_args),
@@ -504,8 +504,8 @@ struct sysent svr4_sysent[] = {
sys_nosys }, /* 222 = unimplemented pread64 */
{ 0, 0,
sys_nosys }, /* 223 = unimplemented pwrite64 */
- { 0, 0,
- sys_nosys }, /* 224 = unimplemented creat64 */
+ { 2, s(struct svr4_sys_creat64_args),
+ svr4_sys_creat64 }, /* 224 = creat64 */
{ 3, s(struct svr4_sys_open64_args),
svr4_sys_open64 }, /* 225 = open64 */
{ 0, 0,