aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/mlock.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cast the first argument to msync, munmap, mlock, and munlock to char*lloyd2010-09-071-2/+2
| | | | | to fix compilation on Solaris. Everybody else, including POSIX.1, uses void* here, but as usual Solaris likes to be special.
* At startup, test if lock_mem() at least seems to work. If it doesn't,lloyd2010-03-131-0/+9
| | | | | immediately fall back the the plain malloc-based allocator, which is typically quite a bit faster.
* Call global functions with :: prefixlloyd2010-02-141-4/+4
|
* Make many more headers internal-only.lloyd2009-12-161-1/+1
| | | | | | | | | | | | | Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
* Move memory locking function decls to mlock.hlloyd2009-09-171-1/+1
| | | | Inline round_up and round_down
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-10/+12
| | | | | | | | | | | | | | | up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
* Merge the 3 mlocks (ml_unix, ml_win32, stub mlock.cpp) into a single mlock.cpplloyd2008-09-291-2/+21
| | | | | | in utils. Support OS feature macros, eg BOTAN_TARGET_OS_HAS_POSIX_MLOCK (how very autoconf)
* Move mlock to utils, as decled in util.hlloyd2008-09-291-0/+24