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
9 * notice, this list of conditions and the following disclaimer
10 * in this position and unchanged.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
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$
29 */
30
31 #ifndef _LINUX_IPC_H_
32 #define _LINUX_IPC_H_
33
34 #ifdef __i386__
35
36 struct linux_msgctl_args
37 {
38 l_int msqid;
39 l_int cmd;
40 struct l_msqid_ds *buf;
41 };
42
43 struct linux_msgget_args
44 {
45 l_key_t key;
46 l_int msgflg;
47 };
48
49 struct 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 };
57
58 struct linux_msgsnd_args
59 {
60 l_int msqid;
61 struct l_msgbuf *msgp;
62 l_size_t msgsz;
63 l_int msgflg;
64 };
65
66 struct linux_semctl_args
67 {
68 l_int semid;
69 l_int semnum;
70 l_int cmd;
71 union l_semun arg;
72 };
73
74 struct linux_semget_args
75 {
76 l_key_t key;
77 l_int nsems;
78 l_int semflg;
79 };
80
81 struct linux_semop_args
82 {
83 l_int semid;
84 struct l_sembuf *tsops;
85 l_uint nsops;
86 };
87
88 struct linux_shmat_args
89 {
90 l_int shmid;
91 char *shmaddr;
92 l_int shmflg;
93 l_ulong *raddr;
94 };
95
96 struct linux_shmctl_args
97 {
98 l_int shmid;
99 l_int cmd;
100 struct l_shmid_ds *buf;
101 };
102
103 struct linux_shmdt_args
104 {
105 char *shmaddr;
106 };
107
108 struct linux_shmget_args
109 {
110 l_key_t key;
111 l_size_t size;
112 l_int shmflg;
113 };
114
115 int linux_msgctl __P((struct proc *, struct linux_msgctl_args *));
116 int linux_msgget __P((struct proc *, struct linux_msgget_args *));
117 int linux_msgrcv __P((struct proc *, struct linux_msgrcv_args *));
118 int linux_msgsnd __P((struct proc *, struct linux_msgsnd_args *));
119
120 int linux_semctl __P((struct proc *, struct linux_semctl_args *));
121 int linux_semget __P((struct proc *, struct linux_semget_args *));
122 int linux_semop __P((struct proc *, struct linux_semop_args *));
123
124 int linux_shmat __P((struct proc *, struct linux_shmat_args *));
125 int linux_shmctl __P((struct proc *, struct linux_shmctl_args *));
126 int linux_shmdt __P((struct proc *, struct linux_shmdt_args *));
127 int linux_shmget __P((struct proc *, struct linux_shmget_args *));
128
129 #endif /* __i386__ */
130
131 #endif /* _LINUX_IPC_H_ */
Cache object: ca61a682900d800522350dfe4b7fa89f
|