2008-08-31 19:31:08 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2008, Haiku Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef KERNEL_XSI_MESSAGE_QUEUE_H
|
|
|
|
#define KERNEL_XSI_MESSAGE_QUEUE_H
|
|
|
|
|
|
|
|
#include <sys/msg.h>
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
|
|
|
#include <kernel.h>
|
|
|
|
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2008-09-11 19:03:01 +04:00
|
|
|
extern void xsi_msg_init();
|
|
|
|
|
2008-08-31 19:31:08 +04:00
|
|
|
/* user calls */
|
|
|
|
int _user_xsi_msgctl(int messageQueueID, int command, struct msqid_ds *buffer);
|
|
|
|
int _user_xsi_msgget(key_t key, int messageQueueFlags);
|
|
|
|
ssize_t _user_xsi_msgrcv(int messageQueueID, void *messagePointer,
|
|
|
|
size_t messageSize, long messageType, int messageFlags);
|
|
|
|
int _user_xsi_msgsnd(int messageQueueID, const void *messagePointer,
|
|
|
|
size_t messageSize, int messageFlags);
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* KERNEL_XSI_MESSAGE_QUEUE_H */
|