xref: /haiku/headers/private/kernel/posix/xsi_message_queue.h (revision c90684742e7361651849be4116d0e5de3a817194)
1 /*
2  * Copyright 2008, Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef KERNEL_XSI_MESSAGE_QUEUE_H
6 #define KERNEL_XSI_MESSAGE_QUEUE_H
7 
8 #include <sys/msg.h>
9 #include <sys/cdefs.h>
10 
11 #include <OS.h>
12 
13 #include <kernel.h>
14 
15 
16 __BEGIN_DECLS
17 
18 extern void xsi_msg_init();
19 
20 /* user calls */
21 int _user_xsi_msgctl(int messageQueueID, int command, struct msqid_ds *buffer);
22 int _user_xsi_msgget(key_t key, int messageQueueFlags);
23 ssize_t _user_xsi_msgrcv(int messageQueueID, void *messagePointer,
24 	size_t messageSize, long messageType, int messageFlags);
25 int _user_xsi_msgsnd(int messageQueueID, const void *messagePointer,
26 	size_t messageSize, int messageFlags);
27 
28 __END_DECLS
29 
30 #endif	/* KERNEL_XSI_MESSAGE_QUEUE_H */
31