summaryrefslogtreecommitdiff
path: root/ace/Mem_Map.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-19 17:17:30 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-19 17:17:30 +0000
commitbeecb1b180671efd5b965603deb89cf79471e9b2 (patch)
tree075fcc457ade749344052f3b7d95808191cf2159 /ace/Mem_Map.h
parent4145561dccdd8d8130f65175f16a62f57ba470d7 (diff)
downloadATCD-beecb1b180671efd5b965603deb89cf79471e9b2.tar.gz
default share value to ACE_MAP_PRIVATE instead of MAP_PRIVATE, to allow easy overriding in config files
Diffstat (limited to 'ace/Mem_Map.h')
-rw-r--r--ace/Mem_Map.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/ace/Mem_Map.h b/ace/Mem_Map.h
index 48900f59f80..b7de66a77fc 100644
--- a/ace/Mem_Map.h
+++ b/ace/Mem_Map.h
@@ -34,52 +34,52 @@ public:
// Default constructor.
ACE_Mem_Map (ACE_HANDLE handle,
- int length = -1,
- int prot = PROT_RDWR,
- int share = MAP_PRIVATE,
- void *addr = 0,
- off_t pos = 0,
+ int length = -1,
+ int prot = PROT_RDWR,
+ int share = ACE_MAP_PRIVATE,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// Map a file from an open file descriptor <handle>. This function
// will lookup the length of the file if it is not given.
ACE_Mem_Map (LPCTSTR filename,
- int len = -1,
- int flags = O_RDWR | O_CREAT,
- int mode = ACE_DEFAULT_FILE_PERMS,
- int prot = PROT_RDWR,
- int share = MAP_PRIVATE,
- void *addr = 0,
- off_t pos = 0,
+ int len = -1,
+ int flags = O_RDWR | O_CREAT,
+ int mode = ACE_DEFAULT_FILE_PERMS,
+ int prot = PROT_RDWR,
+ int share = ACE_MAP_PRIVATE,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// Map a file specified by <file_name>.
int map (ACE_HANDLE handle,
- int length = -1,
- int prot = PROT_RDWR,
- int share = MAP_PRIVATE,
- void *addr = 0,
- off_t pos = 0,
+ int length = -1,
+ int prot = PROT_RDWR,
+ int share = ACE_MAP_PRIVATE,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// Map a file from an open file descriptor <handle>. This function
// will lookup the length of the file if it is not given.
int map (int length = -1,
- int prot = PROT_RDWR,
- int share = MAP_PRIVATE,
- void *addr = 0,
- off_t pos = 0,
+ int prot = PROT_RDWR,
+ int share = ACE_MAP_PRIVATE,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// Remap the file associated with <handle_>.
int map (LPCTSTR filename,
- int len = -1,
- int flags = O_RDWR | O_CREAT,
- int mode = ACE_DEFAULT_FILE_PERMS,
- int prot = PROT_RDWR,
- int share = MAP_PRIVATE,
- void *addr = 0,
- off_t pos = 0,
+ int len = -1,
+ int flags = O_RDWR | O_CREAT,
+ int mode = ACE_DEFAULT_FILE_PERMS,
+ int prot = PROT_RDWR,
+ int share = ACE_MAP_PRIVATE,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// Map a file specified by <filename>.
@@ -87,8 +87,8 @@ public:
// Destructor.
int open (LPCTSTR filename,
- int flags = O_RDWR | O_CREAT,
- int mode = ACE_DEFAULT_FILE_PERMS,
+ int flags = O_RDWR | O_CREAT,
+ int mode = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
// Open the file without mapping it.
@@ -101,7 +101,7 @@ public:
int close_filemapping_handle (void);
// Close down the internal <file_mapping_> if necessary. This is
// mostly necessary on Win32, that has a different handle for
- // file-mapping kernal object.
+ // file-mapping kernel object.
int operator () (void *&addr);
// This operator passes back the starting address of the mapped
@@ -177,11 +177,11 @@ private:
// if we opened the file.
int map_it (ACE_HANDLE handle,
- int len = -1,
- int prot = PROT_RDWR,
- int share = MAP_SHARED,
- void *addr = 0,
- off_t pos = 0,
+ int len = -1,
+ int prot = PROT_RDWR,
+ int share = MAP_SHARED,
+ void *addr = 0,
+ off_t pos = 0,
LPSECURITY_ATTRIBUTES sa = 0);
// This method does the dirty work of actually calling ::mmap to map
// the file into memory.