diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:47:14 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:47:14 +0000 |
commit | 3eaf4237194e25804f221af93c269d3d97e2809d (patch) | |
tree | cdedf3fc954b0727b0b34aa9b0b211cc18f854eb /include/inn/mmap.h | |
download | smartcardauth-3eaf4237194e25804f221af93c269d3d97e2809d.tar.gz smartcardauth-3eaf4237194e25804f221af93c269d3d97e2809d.zip |
Added my SmartCard login/session lock/unlock utility
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1097604 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'include/inn/mmap.h')
-rw-r--r-- | include/inn/mmap.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/inn/mmap.h b/include/inn/mmap.h new file mode 100644 index 0000000..3769d51 --- /dev/null +++ b/include/inn/mmap.h @@ -0,0 +1,33 @@ +/* $Id: mmap.h 7598 2007-02-09 02:40:51Z eagle $ +** +** MMap manipulation routines +** +** Written by Alex Kiernan ([email protected]) +** +** These routines work with mmap()ed memory +*/ + +#ifndef INN_MMAP_H +#define INN_MMAP_H 1 + +#include <inn/defines.h> + +BEGIN_DECLS + +/* Figure out what page an address is in and flush those pages. This is the + internal function, which we wrap with a define below. */ +void inn__mapcntl(void *, size_t, int); + +/* Some platforms only support two arguments to msync. On those platforms, + make the third argument to mapcntl always be zero, getting rid of whatever + the caller tried to pass. This avoids undefined symbols for MS_ASYNC and + friends on platforms with two-argument msync functions. */ +#ifdef INN_HAVE_MSYNC_3_ARG +# define inn_mapcntl inn__mapcntl +#else +# define inn_mapcntl(p, l, f) inn__mapcntl((p), (l), 0) +#endif + +END_DECLS + +#endif /* INN_MMAP_H */ |