Deleted Added
full compact
ibcs2_ipc.c (83366) ibcs2_ipc.c (92761)
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 8 unchanged lines hidden (view full) ---

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 8 unchanged lines hidden (view full) ---

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_ipc.c 83366 2001-09-12 08:38:13Z julian $
25 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_ipc.c 92761 2002-03-20 05:48:58Z alfred $
26 */
27
28#include <sys/param.h>
29#include <sys/systm.h>
30#include <sys/msg.h>
31#include <sys/sem.h>
32#include <sys/shm.h>
33#include <sys/sysproto.h>

--- 6 unchanged lines hidden (view full) ---

40
41#define IBCS2_IPC_RMID 0
42#define IBCS2_IPC_SET 1
43#define IBCS2_IPC_STAT 2
44#define IBCS2_SETVAL 8
45
46
47
26 */
27
28#include <sys/param.h>
29#include <sys/systm.h>
30#include <sys/msg.h>
31#include <sys/sem.h>
32#include <sys/shm.h>
33#include <sys/sysproto.h>

--- 6 unchanged lines hidden (view full) ---

40
41#define IBCS2_IPC_RMID 0
42#define IBCS2_IPC_SET 1
43#define IBCS2_IPC_STAT 2
44#define IBCS2_SETVAL 8
45
46
47
48static void cvt_msqid2imsqid __P((struct msqid_ds *, struct ibcs2_msqid_ds *));
49static void cvt_imsqid2msqid __P((struct ibcs2_msqid_ds *, struct msqid_ds *));
48static void cvt_msqid2imsqid(struct msqid_ds *, struct ibcs2_msqid_ds *);
49static void cvt_imsqid2msqid(struct ibcs2_msqid_ds *, struct msqid_ds *);
50#ifdef unused
50#ifdef unused
51static void cvt_sem2isem __P((struct sem *, struct ibcs2_sem *));
52static void cvt_isem2sem __P((struct ibcs2_sem *, struct sem *));
51static void cvt_sem2isem(struct sem *, struct ibcs2_sem *);
52static void cvt_isem2sem(struct ibcs2_sem *, struct sem *);
53#endif
53#endif
54static void cvt_semid2isemid __P((struct semid_ds *, struct ibcs2_semid_ds *));
55static void cvt_isemid2semid __P((struct ibcs2_semid_ds *, struct semid_ds *));
56static void cvt_shmid2ishmid __P((struct shmid_ds *, struct ibcs2_shmid_ds *));
57static void cvt_ishmid2shmid __P((struct ibcs2_shmid_ds *, struct shmid_ds *));
58static void cvt_perm2iperm __P((struct ipc_perm *, struct ibcs2_ipc_perm *));
59static void cvt_iperm2perm __P((struct ibcs2_ipc_perm *, struct ipc_perm *));
54static void cvt_semid2isemid(struct semid_ds *, struct ibcs2_semid_ds *);
55static void cvt_isemid2semid(struct ibcs2_semid_ds *, struct semid_ds *);
56static void cvt_shmid2ishmid(struct shmid_ds *, struct ibcs2_shmid_ds *);
57static void cvt_ishmid2shmid(struct ibcs2_shmid_ds *, struct shmid_ds *);
58static void cvt_perm2iperm(struct ipc_perm *, struct ibcs2_ipc_perm *);
59static void cvt_iperm2perm(struct ibcs2_ipc_perm *, struct ipc_perm *);
60
61
62/*
63 * iBCS2 msgsys call
64 */
65
66static void
67cvt_msqid2imsqid(bp, ibp)

--- 340 unchanged lines hidden ---
60
61
62/*
63 * iBCS2 msgsys call
64 */
65
66static void
67cvt_msqid2imsqid(bp, ibp)

--- 340 unchanged lines hidden ---