Fixed newline characters throughout the code
[com/gs-lite.git] / src / lib / gscphost / include / gscpmsgq.h
1 /* ------------------------------------------------
2  Copyright 2014 AT&T Intellectual Property
3  Licensed under the Apache License, Version 2.0 (the "License");
4  you may not use this file except in compliance with the License.
5  You may obtain a copy of the License at
6  
7  http://www.apache.org/licenses/LICENSE-2.0
8  
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14  ------------------------------------------- */
15 /* gscpmsgq.h defines the interface to a socket based message
16  * queue implementation for MacOSX which does not provide
17  * a System V message queueu but shared memory.
18  */
19
20 #ifndef GSCPMSGQ_H
21 #define GSCPMSGQ_H
22 #ifdef NOMSGQ
23
24 #include <sys/types.h>
25 #include <sys/ipc.h>
26
27 struct gscp_msgbuf {
28     long mtype;     /* message type, must be > 0 */
29     char mtext[1];  /* message data */
30 };
31
32
33 int gscp_msgget(key_t key, int msgflg);
34 ssize_t gscp_msgrcv(int msqid, struct gscp_msgbuf *msgp, size_t msgsz, long msgtyp, int msgflg);
35 int gscp_msgsnd(int msqid, struct gscp_msgbuf *msgp, size_t msgsz, int msgflg);
36
37
38 #endif
39 #endif