3 //=============================================================================
5 * @file OS_NS_sys_mman.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...
11 //=============================================================================
13 #ifndef ACE_OS_NS_SYS_MMAN_H
14 # define ACE_OS_NS_SYS_MMAN_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-all.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/Global_Macros.h"
25 #include "ace/os_include/sys/os_types.h"
26 #include "ace/os_include/sys/os_mman.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 memory mapped files.
39 ACE_NAMESPACE_INLINE_FUNCTION
40 int madvise (caddr_t addr
,
44 ACE_NAMESPACE_INLINE_FUNCTION
45 void *mmap (void *addr
,
51 ACE_HANDLE
*file_mapping
= 0,
52 LPSECURITY_ATTRIBUTES sa
= 0,
53 const ACE_TCHAR
*file_mapping_name
= 0);
55 ACE_NAMESPACE_INLINE_FUNCTION
56 int mprotect (void *addr
,
60 ACE_NAMESPACE_INLINE_FUNCTION
61 int msync (void *addr
,
65 ACE_NAMESPACE_INLINE_FUNCTION
66 int munmap (void *addr
,
70 ACE_NAMESPACE_INLINE_FUNCTION
71 ACE_HANDLE
shm_open (const ACE_TCHAR
*filename
,
74 LPSECURITY_ATTRIBUTES sa
= 0);
76 ACE_NAMESPACE_INLINE_FUNCTION
77 int shm_unlink (const ACE_TCHAR
*path
);
78 } /* namespace ACE_OS */
80 ACE_END_VERSIONED_NAMESPACE_DECL
82 # if defined (ACE_HAS_INLINED_OSCALLS)
83 # if defined (ACE_INLINE)
85 # endif /* ACE_INLINE */
86 # define ACE_INLINE inline
87 # include "ace/OS_NS_sys_mman.inl"
88 # endif /* ACE_HAS_INLINED_OSCALLS */
90 # include /**/ "ace/post.h"
91 #endif /* ACE_OS_NS_SYS_MMAN_H */