diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-20 18:33:11 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-20 18:33:11 +0000 |
commit | 8616de7e2c6251faef4a9b88cb4b3ec3eabd4bb1 (patch) | |
tree | 27270cb30bc40f06521f1755284179c868581ca7 /ace/Mem_Map.h | |
parent | bbb149d818f5cfe70fd4379701b85a5b9b5881d5 (diff) | |
download | ATCD-8616de7e2c6251faef4a9b88cb4b3ec3eabd4bb1.tar.gz |
Added LPSECURITY_ATTRIBUTES to a bunch of methods.
Diffstat (limited to 'ace/Mem_Map.h')
-rw-r--r-- | ace/Mem_Map.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/ace/Mem_Map.h b/ace/Mem_Map.h index 511351800f2..aa5bdd71029 100644 --- a/ace/Mem_Map.h +++ b/ace/Mem_Map.h @@ -34,7 +34,8 @@ public: int prot = PROT_RDWR, int share = MAP_PRIVATE, void *addr = 0, - off_t pos = 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. @@ -45,7 +46,8 @@ public: int prot = PROT_RDWR, int share = MAP_PRIVATE, void *addr = 0, - off_t pos = 0); + off_t pos = 0, + LPSECURITY_ATTRIBUTES sa = 0); // Map a file specified by <file_name>. int map (ACE_HANDLE handle, @@ -53,7 +55,8 @@ public: int prot = PROT_RDWR, int share = MAP_PRIVATE, void *addr = 0, - off_t pos = 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. @@ -61,7 +64,8 @@ public: int prot = PROT_RDWR, int share = MAP_PRIVATE, void *addr = 0, - off_t pos = 0); + off_t pos = 0, + LPSECURITY_ATTRIBUTES sa = 0); // Remap the file associated with <handle_>. int map (LPCTSTR filename, @@ -71,7 +75,8 @@ public: int prot = PROT_RDWR, int share = MAP_PRIVATE, void *addr = 0, - off_t pos = 0); + off_t pos = 0, + LPSECURITY_ATTRIBUTES sa = 0); // Map a file specified by <filename>. ~ACE_Mem_Map (void); @@ -79,7 +84,8 @@ public: int open (LPCTSTR filename, int flags = O_RDWR | O_CREAT, - int mode = ACE_DEFAULT_FILE_PERMS); + int mode = ACE_DEFAULT_FILE_PERMS, + LPSECURITY_ATTRIBUTES sa = 0); // Open the file without mapping it. int close (void); @@ -163,7 +169,8 @@ private: int prot = PROT_RDWR, int share = MAP_SHARED, void *addr = 0, - off_t pos = 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. |