2 #include "ace/OS_NS_errno.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_OS::shmat (int int_id, const void *shmaddr, int shmflg)
9 ACE_OS_TRACE ("ACE_OS::shmat");
10 #if defined (ACE_HAS_SYSV_IPC)
11 # if defined (ACE_HAS_CHARPTR_SHMAT)
12 return ::shmat (int_id, static_cast <char*> (const_cast <void *>(shmaddr)), shmflg);
14 return ::shmat (int_id, shmaddr, shmflg);
15 # endif /* ACE_HAS_CHARPTR_SHMAT */
17 ACE_UNUSED_ARG (int_id);
18 ACE_UNUSED_ARG (shmaddr);
19 ACE_UNUSED_ARG (shmflg);
21 ACE_NOTSUP_RETURN ((void *) -1);
22 #endif /* ACE_HAS_SYSV_IPC */
26 ACE_OS::shmctl (int int_id, int cmd, struct shmid_ds *buf)
28 ACE_OS_TRACE ("ACE_OS::shmctl");
29 #if defined (ACE_HAS_SYSV_IPC)
30 return ::shmctl (int_id, cmd, buf);
34 ACE_UNUSED_ARG (int_id);
36 ACE_NOTSUP_RETURN (-1);
37 #endif /* ACE_HAS_SYSV_IPC */
41 ACE_OS::shmdt (const void *shmaddr)
43 ACE_OS_TRACE ("ACE_OS::shmdt");
44 #if defined (ACE_HAS_SYSV_IPC)
45 # if defined (ACE_HAS_CHARPTR_SHMDT)
46 return ::shmdt (static_cast <char*> (const_cast <void *>(shmaddr)));
48 return ::shmdt (shmaddr);
49 # endif /* ACE_HAS_CHARPTR_SHMDT */
51 ACE_UNUSED_ARG (shmaddr);
53 ACE_NOTSUP_RETURN (-1);
54 #endif /* ACE_HAS_SYSV_IPC */
58 ACE_OS::shmget (key_t key, size_t size, int flags)
60 ACE_OS_TRACE ("ACE_OS::shmget");
61 #if defined (ACE_HAS_SYSV_IPC)
62 return ::shmget (key, size, flags);
64 ACE_UNUSED_ARG (flags);
65 ACE_UNUSED_ARG (size);
68 ACE_NOTSUP_RETURN (-1);
69 #endif /* ACE_HAS_SYSV_IPC */
72 ACE_END_VERSIONED_NAMESPACE_DECL