diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-19 18:23:06 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-19 18:23:06 +0000 |
commit | c46ec3541aa0b6b0e060780d49d741e473125c6c (patch) | |
tree | 6d14734748eeb79585eed21b64a583e5f84e0d18 /ace/Shared_Memory_MM.h | |
parent | 7ce0983e17e6c2c47be6f2f933a74631cae02004 (diff) | |
download | ATCD-c46ec3541aa0b6b0e060780d49d741e473125c6c.tar.gz |
replace MAP_PRIVATE with ACE_MAP_PRIVATE
Diffstat (limited to 'ace/Shared_Memory_MM.h')
-rw-r--r-- | ace/Shared_Memory_MM.h | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/ace/Shared_Memory_MM.h b/ace/Shared_Memory_MM.h index f6f58376e96..ec58b44a2d6 100644 --- a/ace/Shared_Memory_MM.h +++ b/ace/Shared_Memory_MM.h @@ -1,18 +1,17 @@ /* -*- C++ -*- */ // $Id$ - // ============================================================================ // // = LIBRARY // ace -// +// // = FILENAME // Shared_Memory_MM.h // // = AUTHOR -// Doug Schmidt -// +// Doug Schmidt +// // ============================================================================ #if !defined (ACE_SHARED_MALLOC_MM_H) @@ -30,42 +29,42 @@ public: ACE_Shared_Memory_MM (void); // Default constructor. - ACE_Shared_Memory_MM (ACE_HANDLE handle, - int length = -1, - int prot = PROT_RDWR, - int share = MAP_PRIVATE, - char *addr = 0, - off_t pos = 0); + ACE_Shared_Memory_MM (ACE_HANDLE handle, + int length = -1, + int prot = PROT_RDWR, + int share = ACE_MAP_PRIVATE, + char *addr = 0, + off_t pos = 0); // Constructor. - ACE_Shared_Memory_MM (LPTSTR file_name, - int len = -1, - int flags = O_RDWR | O_CREAT, - int mode = ACE_DEFAULT_FILE_PERMS, - int prot = PROT_RDWR, - int share = MAP_SHARED, - char *addr = 0, off_t pos = 0); + ACE_Shared_Memory_MM (LPTSTR file_name, + int len = -1, + int flags = O_RDWR | O_CREAT, + int mode = ACE_DEFAULT_FILE_PERMS, + int prot = PROT_RDWR, + int share = ACE_MAP_SHARED, + char *addr = 0, off_t pos = 0); // Constructor. - int open (ACE_HANDLE handle, - int length = -1, - int prot = PROT_RDWR, - int share = MAP_PRIVATE, - char *addr = 0, - off_t pos = 0); + int open (ACE_HANDLE handle, + int length = -1, + int prot = PROT_RDWR, + int share = ACE_MAP_PRIVATE, + char *addr = 0, + off_t pos = 0); // Open method. - int open (LPTSTR file_name, - int len = -1, - int flags = O_RDWR | O_CREAT, - int mode = ACE_DEFAULT_FILE_PERMS, - int prot = PROT_RDWR, - int share = MAP_SHARED, - char *addr = 0, - off_t pos = 0); + int open (LPTSTR file_name, + int len = -1, + int flags = O_RDWR | O_CREAT, + int mode = ACE_DEFAULT_FILE_PERMS, + int prot = PROT_RDWR, + int share = ACE_MAP_SHARED, + char *addr = 0, + off_t pos = 0); // Open method. - const TCHAR *filename (void) const; + const TCHAR *filename (void) const; // Return the name of file that is mapped (if any). virtual int close (void); @@ -81,10 +80,10 @@ public: virtual int free (void *p); // Free a chuck of memory allocated by // <ACE_Shared_Memory_MM::malloc>. - + virtual int get_segment_size (void) const; // Return the size of the shared memory segment. - + virtual ACE_HANDLE get_id (void) const; // Return the ID of the shared memory segment (i.e., an ACE_HANDLE). |