/************************************************* * Memory Locking Functions Source File * * (C) 1999-2006 The Botan Project * *************************************************/ #include #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199309 #endif #include #include namespace Botan { /************************************************* * Lock an area of memory into RAM * *************************************************/ void lock_mem(void* ptr, u32bit bytes) { mlock(ptr, bytes); } /************************************************* * Unlock a previously locked region of memory * *************************************************/ void unlock_mem(void* ptr, u32bit bytes) { munlock(ptr, bytes); } }