2 #include "ace/OS_NS_errno.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_OS::msgctl (int msqid, int cmd, struct msqid_ds *val)
9 ACE_OS_TRACE ("ACE_OS::msgctl");
10 #if defined (ACE_HAS_SYSV_IPC)
11 return ::msgctl (msqid, cmd, val);
13 ACE_UNUSED_ARG (msqid);
17 ACE_NOTSUP_RETURN (-1);
18 #endif /* ACE_HAS_SYSV_IPC */
22 ACE_OS::msgget (key_t key, int msgflg)
24 ACE_OS_TRACE ("ACE_OS::msgget");
25 #if defined (ACE_HAS_SYSV_IPC)
26 return ::msgget (key, msgflg);
29 ACE_UNUSED_ARG (msgflg);
31 ACE_NOTSUP_RETURN (-1);
32 #endif /* ACE_HAS_SYSV_IPC */
36 ACE_OS::msgrcv (int int_id, void *buf, size_t len,
39 ACE_OS_TRACE ("ACE_OS::msgrcv");
40 #if defined (ACE_HAS_SYSV_IPC)
41 return ::msgrcv (int_id, buf, len, type, flags);
43 ACE_UNUSED_ARG (int_id);
46 ACE_UNUSED_ARG (type);
47 ACE_UNUSED_ARG (flags);
49 ACE_NOTSUP_RETURN (-1);
50 #endif /* ACE_HAS_SYSV_IPC */
54 ACE_OS::msgsnd (int int_id, const void *buf, size_t len, int flags)
56 ACE_OS_TRACE ("ACE_OS::msgsnd");
57 #if defined (ACE_HAS_SYSV_IPC)
58 # if defined (ACE_HAS_NONCONST_MSGSND)
59 return ::msgsnd (int_id, const_cast<void *> (buf), len, flags);
61 return ::msgsnd (int_id, buf, len, flags);
62 # endif /* ACE_HAS_NONCONST_MSGSND */
64 ACE_UNUSED_ARG (int_id);
67 ACE_UNUSED_ARG (flags);
69 ACE_NOTSUP_RETURN (-1);
70 #endif /* ACE_HAS_SYSV_IPC */
73 ACE_END_VERSIONED_NAMESPACE_DECL