diff options
Diffstat (limited to 'src/alloc/alloc_mmap/mmap_mem.cpp')
-rw-r--r-- | src/alloc/alloc_mmap/mmap_mem.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/alloc/alloc_mmap/mmap_mem.cpp b/src/alloc/alloc_mmap/mmap_mem.cpp index 8ecb5f4fe..546da7a81 100644 --- a/src/alloc/alloc_mmap/mmap_mem.cpp +++ b/src/alloc/alloc_mmap/mmap_mem.cpp @@ -1,7 +1,9 @@ -/************************************************* -* Memory Mapping Allocator Source File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* Memory Mapping Allocator +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/mmap_mem.h> #include <cstring> @@ -21,9 +23,9 @@ namespace Botan { namespace { -/************************************************* -* MemoryMapping_Allocator Exception * -*************************************************/ +/* +* MemoryMapping_Allocator Exception +*/ class MemoryMapping_Failed : public Exception { public: @@ -33,9 +35,9 @@ class MemoryMapping_Failed : public Exception } -/************************************************* -* Memory Map a File into Memory * -*************************************************/ +/* +* Memory Map a File into Memory +*/ void* MemoryMapping_Allocator::alloc_block(u32bit n) { class TemporaryFile @@ -96,9 +98,9 @@ void* MemoryMapping_Allocator::alloc_block(u32bit n) return ptr; } -/************************************************* -* Remove a Memory Mapping * -*************************************************/ +/* +* Remove a Memory Mapping +*/ void MemoryMapping_Allocator::dealloc_block(void* ptr, u32bit n) { if(ptr == 0) |