Use override/default for RTPortableServer
[ACE_TAO.git] / ACE / ace / OS_NS_sys_mman.h
blobfd155fa2b2bb5f1b08ca70245b799bb411a50173
1 // -*- C++ -*-
3 //=============================================================================
4 /**
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)
21 # 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
31 #endif
32 #define ACE_EXPORT_MACRO ACE_Export
34 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
36 namespace ACE_OS
38 //@{ @name A set of wrappers for memory mapped files.
39 ACE_NAMESPACE_INLINE_FUNCTION
40 int madvise (caddr_t addr,
41 size_t len,
42 int map_advice);
44 ACE_NAMESPACE_INLINE_FUNCTION
45 void *mmap (void *addr,
46 size_t len,
47 int prot,
48 int flags,
49 ACE_HANDLE handle,
50 ACE_OFF_T off = 0,
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,
57 size_t len,
58 int prot);
60 ACE_NAMESPACE_INLINE_FUNCTION
61 int msync (void *addr,
62 size_t len,
63 int sync);
65 ACE_NAMESPACE_INLINE_FUNCTION
66 int munmap (void *addr,
67 size_t len);
68 //@}
70 ACE_NAMESPACE_INLINE_FUNCTION
71 ACE_HANDLE shm_open (const ACE_TCHAR *filename,
72 int mode,
73 mode_t perms = 0,
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)
84 # undef 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 */