haiku/headers/private/kernel/posix/xsi_message_queue.h
Salvatore Benedetto 9309ec8635 Start implementing POSIX message queue IPC
* Implemented _kern_msgget()

Work in progress, some stuff may be removed.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-31 15:31:08 +00:00

29 lines
720 B
C

/*
* 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
/* 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 */