ipc.h (33807) | ipc.h (46116) |
---|---|
1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * (c) UNIX System Laboratories, Inc. 6 * All or some portions of this file are derived from material licensed 7 * to the University of California by American Telephone and Telegraph 8 * Co. or Unix System Laboratories, Inc. and are reproduced herein with --- 27 unchanged lines hidden (view full) --- 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 39 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 40 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 41 * SUCH DAMAGE. 42 * 43 * @(#)ipc.h 8.4 (Berkeley) 2/19/95 | 1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * (c) UNIX System Laboratories, Inc. 6 * All or some portions of this file are derived from material licensed 7 * to the University of California by American Telephone and Telegraph 8 * Co. or Unix System Laboratories, Inc. and are reproduced herein with --- 27 unchanged lines hidden (view full) --- 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 39 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 40 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 41 * SUCH DAMAGE. 42 * 43 * @(#)ipc.h 8.4 (Berkeley) 2/19/95 |
44 * $Id: ipc.h,v 1.11 1998/02/01 20:08:37 bde Exp $ | 44 * $Id: ipc.h,v 1.12 1998/02/25 02:17:46 bde Exp $ |
45 */ 46 47/* 48 * SVID compatible ipc.h file 49 */ 50#ifndef _SYS_IPC_H_ 51#define _SYS_IPC_H_ 52 --- 24 unchanged lines hidden (view full) --- 77#define IPC_STAT 2 /* get options */ 78 79#ifdef KERNEL 80/* Macros to convert between ipc ids and array indices or sequence ids */ 81#define IPCID_TO_IX(id) ((id) & 0xffff) 82#define IPCID_TO_SEQ(id) (((id) >> 16) & 0xffff) 83#define IXSEQ_TO_IPCID(ix,perm) (((perm.seq) << 16) | (ix & 0xffff)) 84 | 45 */ 46 47/* 48 * SVID compatible ipc.h file 49 */ 50#ifndef _SYS_IPC_H_ 51#define _SYS_IPC_H_ 52 --- 24 unchanged lines hidden (view full) --- 77#define IPC_STAT 2 /* get options */ 78 79#ifdef KERNEL 80/* Macros to convert between ipc ids and array indices or sequence ids */ 81#define IPCID_TO_IX(id) ((id) & 0xffff) 82#define IPCID_TO_SEQ(id) (((id) >> 16) & 0xffff) 83#define IXSEQ_TO_IPCID(ix,perm) (((perm.seq) << 16) | (ix & 0xffff)) 84 |
85struct ucred; | 85struct proc; |
86 | 86 |
87int ipcperm __P((struct ucred *, struct ipc_perm *, int)); | 87int ipcperm __P((struct proc *, struct ipc_perm *, int)); |
88#else /* ! KERNEL */ 89 90/* XXX doesn't really belong here, but has been historical practice in SysV. */ 91 92#include <sys/cdefs.h> 93 94__BEGIN_DECLS 95key_t ftok __P((const char *, int)); 96__END_DECLS 97 98#endif /* KERNEL */ 99 100#endif /* !_SYS_IPC_H_ */ | 88#else /* ! KERNEL */ 89 90/* XXX doesn't really belong here, but has been historical practice in SysV. */ 91 92#include <sys/cdefs.h> 93 94__BEGIN_DECLS 95key_t ftok __P((const char *, int)); 96__END_DECLS 97 98#endif /* KERNEL */ 99 100#endif /* !_SYS_IPC_H_ */ |