/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* $Id$ $Date$ */ /* * PCR support for BSD-style shared memory. * * Host Dependent. */ #ifndef __PCR_ShmBSD_h #define __PCR_ShmBSD_h 1 #include #include #if (PCR_OS_MMAP) # define PCR_ShmBSD_IMPL 1 #else # define PCR_ShmBSD_IMPL 0 #endif #include #if defined(PCR_OS_SUNOS4) || defined(PCR_OS_SUNOS5) # include # include #endif #if (PCR_ShmBSD_IMPL) extern PCR_ERes PCR_ShmBSD_GetPageSize(void); extern PCR_ERes PCR_ShmBSD_MMap( caddr_t addr, size_t len, int prot, int flags, int fd, off_t off, caddr_t *where ); extern PCR_ERes PCR_ShmBSD_MUnmap( caddr_t addr, size_t len ); extern PCR_ERes PCR_ShmBSD_MProtect( caddr_t addr, size_t len, int prot ); #elif defined(PCR_NO_HOSTDEP_ERR) /* ... */ #else # error ShmBSD unimplemented for this host / os #endif #endif /* !__PCR_ShmBSD_h */ /* $Log$ */