btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / kernel / posix / xsi_message_queue.h
blob2221b78dd285e75781c568d078af02bb87351e8d
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
8 #include <sys/msg.h>
9 #include <sys/cdefs.h>
11 #include <OS.h>
13 #include <kernel.h>
16 __BEGIN_DECLS
18 extern void xsi_msg_init();
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);
28 __END_DECLS
30 #endif /* KERNEL_XSI_MESSAGE_QUEUE_H */