Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 emulate shm*(), but only so far as to return...
details: https://anonhg.NetBSD.org/src/rev/ed91bd9d09ee
branches: trunk
changeset: 472654:ed91bd9d09ee
user: cgd <cgd%NetBSD.org@localhost>
date: Tue May 04 04:59:21 1999 +0000
description:
emulate shm*(), but only so far as to return ENOSYS for now (until
they're really needed). put them in their own file because when we
need to emulate them, they'll need a bunch of code.
diffstat:
sys/compat/osf1/files.osf1 | 3 +-
sys/compat/osf1/osf1_sysv_ipc.c | 83 +++++++++++++++++++++++++++++++++++++++++
sys/compat/osf1/syscalls.master | 14 ++++--
3 files changed, 94 insertions(+), 6 deletions(-)
diffs (137 lines):
diff -r 8f360aa75d6a -r ed91bd9d09ee sys/compat/osf1/files.osf1
--- a/sys/compat/osf1/files.osf1 Tue May 04 04:56:44 1999 +0000
+++ b/sys/compat/osf1/files.osf1 Tue May 04 04:59:21 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.osf1,v 1.15 1999/05/01 05:49:01 cgd Exp $
+# $NetBSD: files.osf1,v 1.16 1999/05/04 04:59:21 cgd Exp $
#
# Config file description for machine-independent OSF/1 compat code.
# Included by ports that need it.
@@ -30,4 +30,5 @@
file compat/osf1/osf1_resource.c compat_osf1
file compat/osf1/osf1_signal.c compat_osf1
file compat/osf1/osf1_socket.c compat_osf1
+file compat/osf1/osf1_sysv_ipc.c compat_osf1
file compat/osf1/osf1_time.c compat_osf1
diff -r 8f360aa75d6a -r ed91bd9d09ee sys/compat/osf1/osf1_sysv_ipc.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/osf1/osf1_sysv_ipc.c Tue May 04 04:59:21 1999 +0000
@@ -0,0 +1,83 @@
+/* $NetBSD: osf1_sysv_ipc.c,v 1.1 1999/05/04 04:59:21 cgd Exp $ */
+
+/*
+ * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christopher G. Demetriou
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/namei.h>
+#include <sys/proc.h>
+#include <sys/file.h>
+#include <sys/mount.h>
+#include <sys/syscallargs.h>
+
+#include <compat/osf1/osf1.h>
+#include <compat/osf1/osf1_syscallargs.h>
+#include <compat/osf1/osf1_cvt.h>
+
+int
+osf1_sys_shmat(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+
+ return (ENOSYS);
+}
+
+int
+osf1_sys_shmctl(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+
+ return (ENOSYS);
+}
+
+int
+osf1_sys_shmdt(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+
+ return (ENOSYS);
+}
+
+int
+osf1_sys_shmget(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+
+ return (ENOSYS);
+}
diff -r 8f360aa75d6a -r ed91bd9d09ee sys/compat/osf1/syscalls.master
--- a/sys/compat/osf1/syscalls.master Tue May 04 04:56:44 1999 +0000
+++ b/sys/compat/osf1/syscalls.master Tue May 04 04:59:21 1999 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.24 1999/05/04 02:12:15 cgd Exp $
+ $NetBSD: syscalls.master,v 1.25 1999/05/04 04:59:21 cgd Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -40,6 +40,7 @@
#include <sys/poll.h>
#include <sys/syscallargs.h>
+#include <compat/osf1/osf1.h>
#include <compat/osf1/osf1_syscallargs.h>
0 NOARGS { int sys_nosys(void); } syscall
@@ -312,10 +313,13 @@
207 STD { int osf1_sys_uname(struct osf1_uname *name); }
208 NOARGS { int sys___posix_lchown(const char *path, int uid, \
int gid); }
-209 UNIMPL shmat
-210 UNIMPL shmctl
-211 UNIMPL shmdt
-212 UNIMPL shmget
+209 STD { void *osf1_sys_shmat(int shmid, \
+ const void *shmaddr, int shmflg); }
+210 STD { int osf1_sys_shmctl(int shmid, int cmd, \
+ struct osf1_shmid_ds *buf); }
+211 STD { int osf1_sys_shmdt(const void *shmaddr); }
+212 STD { int osf1_sys_shmget(osf1_key_t key, size_t size, \
+ int flags); }
213 UNIMPL mvalid
214 UNIMPL getaddressconf
215 UNIMPL msleep
Home |
Main Index |
Thread Index |
Old Index