diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/OS_NS_sys_msg.inl | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/OS_NS_sys_msg.inl')
-rw-r--r-- | ACE/ace/OS_NS_sys_msg.inl | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_sys_msg.inl b/ACE/ace/OS_NS_sys_msg.inl new file mode 100644 index 00000000000..129b4c389c1 --- /dev/null +++ b/ACE/ace/OS_NS_sys_msg.inl @@ -0,0 +1,78 @@ +// -*- C++ -*- +// +// $Id$ + +#include "ace/OS_NS_errno.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE int +ACE_OS::msgctl (int msqid, int cmd, struct msqid_ds *val) +{ + ACE_OS_TRACE ("ACE_OS::msgctl"); +#if defined (ACE_HAS_SYSV_IPC) + ACE_OSCALL_RETURN (::msgctl (msqid, cmd, val), int, -1); +#else + ACE_UNUSED_ARG (msqid); + ACE_UNUSED_ARG (cmd); + ACE_UNUSED_ARG (val); + + ACE_NOTSUP_RETURN (-1); +#endif /* ACE_HAS_SYSV_IPC */ +} + +ACE_INLINE int +ACE_OS::msgget (key_t key, int msgflg) +{ + ACE_OS_TRACE ("ACE_OS::msgget"); +#if defined (ACE_HAS_SYSV_IPC) + ACE_OSCALL_RETURN (::msgget (key, msgflg), int, -1); +#else + ACE_UNUSED_ARG (key); + ACE_UNUSED_ARG (msgflg); + + ACE_NOTSUP_RETURN (-1); +#endif /* ACE_HAS_SYSV_IPC */ +} + +ACE_INLINE ssize_t +ACE_OS::msgrcv (int int_id, void *buf, size_t len, + long type, int flags) +{ + ACE_OS_TRACE ("ACE_OS::msgrcv"); +#if defined (ACE_HAS_SYSV_IPC) + ACE_OSCALL_RETURN (::msgrcv (int_id, buf, len, type, flags), + int, -1); +#else + ACE_UNUSED_ARG (int_id); + ACE_UNUSED_ARG (buf); + ACE_UNUSED_ARG (len); + ACE_UNUSED_ARG (type); + ACE_UNUSED_ARG (flags); + + ACE_NOTSUP_RETURN (-1); +#endif /* ACE_HAS_SYSV_IPC */ +} + +ACE_INLINE int +ACE_OS::msgsnd (int int_id, const void *buf, size_t len, int flags) +{ + ACE_OS_TRACE ("ACE_OS::msgsnd"); +#if defined (ACE_HAS_SYSV_IPC) +# if defined (ACE_HAS_NONCONST_MSGSND) + ACE_OSCALL_RETURN (::msgsnd (int_id, + const_cast<void *> (buf), len, flags), int, -1); +# else + ACE_OSCALL_RETURN (::msgsnd (int_id, buf, len, flags), int, -1); +# endif /* ACE_HAS_NONCONST_MSGSND */ +#else + ACE_UNUSED_ARG (int_id); + ACE_UNUSED_ARG (buf); + ACE_UNUSED_ARG (len); + ACE_UNUSED_ARG (flags); + + ACE_NOTSUP_RETURN (-1); +#endif /* ACE_HAS_SYSV_IPC */ +} + +ACE_END_VERSIONED_NAMESPACE_DECL |