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.
This commit is contained in:
cgd 1999-05-04 04:59:21 +00:00
parent 2165378111
commit ab7cdebda6
3 changed files with 94 additions and 6 deletions

View File

@ -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_prot.c compat_osf1
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

View File

@ -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);
}

View File

@ -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