Deleted Added
full compact
linux_ipc.h (68247) linux_ipc.h (83221)
1/*-
2 * Copyright (c) 2000 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/compat/linux/linux_ipc.h 68247 2000-11-02 15:04:19Z gallatin $
28 * $FreeBSD: head/sys/compat/linux/linux_ipc.h 83221 2001-09-08 19:07:04Z marcel $
29 */
30
31#ifndef _LINUX_IPC_H_
32#define _LINUX_IPC_H_
33
29 */
30
31#ifndef _LINUX_IPC_H_
32#define _LINUX_IPC_H_
33
34#ifndef __alpha__
34#ifdef __i386__
35
35
36#define linux_msgctl_args linux_ipc_args
37#define linux_msgget_args linux_ipc_args
38#define linux_msgrcv_args linux_ipc_args
39#define linux_msgsnd_args linux_ipc_args
36struct linux_msgctl_args
37{
38 l_int msqid;
39 l_int cmd;
40 struct l_msqid_ds *buf;
41};
40
42
41#define linux_semctl_args linux_ipc_args
42#define linux_semget_args linux_ipc_args
43#define linux_semop_args linux_ipc_args
43struct linux_msgget_args
44{
45 l_key_t key;
46 l_int msgflg;
47};
44
48
45#define linux_shmat_args linux_ipc_args
46#define linux_shmctl_args linux_ipc_args
47#define linux_shmdt_args linux_ipc_args
48#define linux_shmget_args linux_ipc_args
49struct linux_msgrcv_args
50{
51 l_int msqid;
52 struct l_msgbuf *msgp;
53 l_size_t msgsz;
54 l_long msgtyp;
55 l_int msgflg;
56};
49
57
58struct linux_msgsnd_args
59{
60 l_int msqid;
61 struct l_msgbuf *msgp;
62 l_size_t msgsz;
63 l_int msgflg;
64};
65
66struct linux_semctl_args
67{
68 l_int semid;
69 l_int semnum;
70 l_int cmd;
71 union l_semun arg;
72};
73
74struct linux_semget_args
75{
76 l_key_t key;
77 l_int nsems;
78 l_int semflg;
79};
80
81struct linux_semop_args
82{
83 l_int semid;
84 struct l_sembuf *tsops;
85 l_uint nsops;
86};
87
88struct linux_shmat_args
89{
90 l_int shmid;
91 char *shmaddr;
92 l_int shmflg;
93 l_ulong *raddr;
94};
95
96struct linux_shmctl_args
97{
98 l_int shmid;
99 l_int cmd;
100 struct l_shmid_ds *buf;
101};
102
103struct linux_shmdt_args
104{
105 char *shmaddr;
106};
107
108struct linux_shmget_args
109{
110 l_key_t key;
111 l_size_t size;
112 l_int shmflg;
113};
114
50int linux_msgctl __P((struct proc *, struct linux_msgctl_args *));
51int linux_msgget __P((struct proc *, struct linux_msgget_args *));
52int linux_msgrcv __P((struct proc *, struct linux_msgrcv_args *));
53int linux_msgsnd __P((struct proc *, struct linux_msgsnd_args *));
54
55int linux_semctl __P((struct proc *, struct linux_semctl_args *));
56int linux_semget __P((struct proc *, struct linux_semget_args *));
57int linux_semop __P((struct proc *, struct linux_semop_args *));
58
59int linux_shmat __P((struct proc *, struct linux_shmat_args *));
60int linux_shmctl __P((struct proc *, struct linux_shmctl_args *));
61int linux_shmdt __P((struct proc *, struct linux_shmdt_args *));
62int linux_shmget __P((struct proc *, struct linux_shmget_args *));
115int linux_msgctl __P((struct proc *, struct linux_msgctl_args *));
116int linux_msgget __P((struct proc *, struct linux_msgget_args *));
117int linux_msgrcv __P((struct proc *, struct linux_msgrcv_args *));
118int linux_msgsnd __P((struct proc *, struct linux_msgsnd_args *));
119
120int linux_semctl __P((struct proc *, struct linux_semctl_args *));
121int linux_semget __P((struct proc *, struct linux_semget_args *));
122int linux_semop __P((struct proc *, struct linux_semop_args *));
123
124int linux_shmat __P((struct proc *, struct linux_shmat_args *));
125int linux_shmctl __P((struct proc *, struct linux_shmctl_args *));
126int linux_shmdt __P((struct proc *, struct linux_shmdt_args *));
127int linux_shmget __P((struct proc *, struct linux_shmget_args *));
63#endif /*!__alpha__*/
64
128
129#endif /* __i386__ */
130
65#endif /* _LINUX_IPC_H_ */
131#endif /* _LINUX_IPC_H_ */