2 * Copyright 2008, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Salvatore Benedetto <salvatore.benedetto@gmail.com>
18 #include <errno_private.h>
19 #include <syscall_utils.h>
24 msgctl(int messageQueueID
, int command
, struct msqid_ds
*buffer
)
26 RETURN_AND_SET_ERRNO(_kern_xsi_msgctl(messageQueueID
, command
, buffer
));
31 msgget(key_t key
, int messageQueueFlags
)
33 RETURN_AND_SET_ERRNO(_kern_xsi_msgget(key
, messageQueueFlags
));
38 msgrcv(int messageQueueID
, void *messagePointer
, size_t messageSize
,
39 long messageType
, int messageFlags
)
41 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_xsi_msgrcv(messageQueueID
,
42 messagePointer
, messageSize
, messageType
, messageFlags
));
47 msgsnd(int messageQueueID
, const void *messagePointer
, size_t messageSize
,
50 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_xsi_msgsnd(messageQueueID
,
51 messagePointer
, messageSize
, messageFlags
));