3 //=============================================================================
5 * @file OS_NS_sys_shm.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
13 //=============================================================================
15 #ifndef ACE_OS_NS_SYS_SHM_H
16 # define ACE_OS_NS_SYS_SHM_H
18 # include /**/ "ace/pre.h"
20 # include "ace/config-all.h"
22 # if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # endif /* ACE_LACKS_PRAGMA_ONCE */
26 #include "ace/os_include/sys/os_shm.h"
27 #include /**/ "ace/ACE_export.h"
29 #if defined (ACE_EXPORT_MACRO)
30 # undef ACE_EXPORT_MACRO
32 #define ACE_EXPORT_MACRO ACE_Export
34 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
38 //@{ @name A set of wrappers for System V shared memory.
39 ACE_NAMESPACE_INLINE_FUNCTION
40 void *shmat (int int_id
,
44 ACE_NAMESPACE_INLINE_FUNCTION
45 int shmctl (int int_id
,
47 struct shmid_ds
*buf
);
49 ACE_NAMESPACE_INLINE_FUNCTION
50 int shmdt (const void *shmaddr
);
52 ACE_NAMESPACE_INLINE_FUNCTION
53 int shmget (key_t key
,
57 } /* namespace ACE_OS */
59 ACE_END_VERSIONED_NAMESPACE_DECL
61 # if defined (ACE_HAS_INLINED_OSCALLS)
62 # if defined (ACE_INLINE)
64 # endif /* ACE_INLINE */
65 # define ACE_INLINE inline
66 # include "ace/OS_NS_sys_shm.inl"
67 # endif /* ACE_HAS_INLINED_OSCALLS */
69 # include /**/ "ace/post.h"
70 #endif /* ACE_OS_NS_SYS_SHM_H */