3 //=============================================================================
5 * @file OS_NS_sys_mman.h
7 * $Id: OS_NS_sys_mman.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
15 //=============================================================================
17 #ifndef ACE_OS_NS_SYS_MMAN_H
18 # define ACE_OS_NS_SYS_MMAN_H
20 # include /**/ "ace/pre.h"
22 # include "ace/config-all.h"
24 # if !defined (ACE_LACKS_PRAGMA_ONCE)
26 # endif /* ACE_LACKS_PRAGMA_ONCE */
28 #include "ace/Global_Macros.h"
29 #include "ace/os_include/sys/os_types.h"
30 #include "ace/os_include/sys/os_mman.h"
31 #include /**/ "ace/ACE_export.h"
33 #if defined (ACE_EXPORT_MACRO)
34 # undef ACE_EXPORT_MACRO
36 #define ACE_EXPORT_MACRO ACE_Export
38 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
43 //@{ @name A set of wrappers for memory mapped files.
44 ACE_NAMESPACE_INLINE_FUNCTION
45 int madvise (caddr_t addr
,
49 ACE_NAMESPACE_INLINE_FUNCTION
50 void *mmap (void *addr
,
56 ACE_HANDLE
*file_mapping
= 0,
57 LPSECURITY_ATTRIBUTES sa
= 0,
58 const ACE_TCHAR
*file_mapping_name
= 0);
60 ACE_NAMESPACE_INLINE_FUNCTION
61 int mprotect (void *addr
,
65 ACE_NAMESPACE_INLINE_FUNCTION
66 int msync (void *addr
,
70 ACE_NAMESPACE_INLINE_FUNCTION
71 int munmap (void *addr
,
75 ACE_NAMESPACE_INLINE_FUNCTION
76 ACE_HANDLE
shm_open (const ACE_TCHAR
*filename
,
79 LPSECURITY_ATTRIBUTES sa
= 0);
81 ACE_NAMESPACE_INLINE_FUNCTION
82 int shm_unlink (const ACE_TCHAR
*path
);
84 } /* namespace ACE_OS */
86 ACE_END_VERSIONED_NAMESPACE_DECL
88 # if defined (ACE_HAS_INLINED_OSCALLS)
89 # if defined (ACE_INLINE)
91 # endif /* ACE_INLINE */
92 # define ACE_INLINE inline
93 # include "ace/OS_NS_sys_mman.inl"
94 # endif /* ACE_HAS_INLINED_OSCALLS */
96 # include /**/ "ace/post.h"
97 #endif /* ACE_OS_NS_SYS_MMAN_H */