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 ACE_OSCALL_RETURN (::shmat (int_id, static_cast <char*> (const_cast <void *>(shmaddr)), shmflg), void *, (void *) -1);
14 ACE_OSCALL_RETURN (::shmat (int_id, shmaddr, shmflg), void *, (void *) -1);
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 ACE_OSCALL_RETURN (::shmctl (int_id, cmd, buf), int, -1);
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 ACE_OSCALL_RETURN (::shmdt (
47 static_cast <char*> (const_cast <void *>(shmaddr))), int, -1);
49 ACE_OSCALL_RETURN (::shmdt (shmaddr), int, -1);
50 # endif /* ACE_HAS_CHARPTR_SHMDT */
52 ACE_UNUSED_ARG (shmaddr);
54 ACE_NOTSUP_RETURN (-1);
55 #endif /* ACE_HAS_SYSV_IPC */
59 ACE_OS::shmget (key_t key, size_t size, int flags)
61 ACE_OS_TRACE ("ACE_OS::shmget");
62 #if defined (ACE_HAS_SYSV_IPC)
63 ACE_OSCALL_RETURN (::shmget (key, size, flags), int, -1);
65 ACE_UNUSED_ARG (flags);
66 ACE_UNUSED_ARG (size);
69 ACE_NOTSUP_RETURN (-1);
70 #endif /* ACE_HAS_SYSV_IPC */
73 ACE_END_VERSIONED_NAMESPACE_DECL