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