143 #include <sys/types.h>
144 #include <sys/mman.h>
149 #define PAGESIZE sysconf(_SC_PAGESIZE)
154 #define mlock(a, b) \
155 mlock(((void*)(((size_t)(a)) & (~((PAGESIZE)-1)))), \
156 (((((size_t)(a)) + (b)-1) | ((PAGESIZE)-1)) + 1) - \
157 (((size_t)(a)) & (~((PAGESIZE)-1))))
158 #define munlock(a, b) \
159 munlock(((void*)(((size_t)(a)) & (~((PAGESIZE)-1)))), \
160 (((((size_t)(a)) + (b)-1) | ((PAGESIZE)-1)) + 1) - \
161 (((size_t)(a)) & (~((PAGESIZE)-1))))
169 otErr <<
"OTCallback::~OTCallback: (This should only happen ONCE ONLY -- "
170 "as the application is closing.)\n";
179 OT_FAIL_MSG(
"OTCallback::runOne: ASSERT (The child class was supposed to "
180 "override this method.)\n");
189 OT_FAIL_MSG(
"OTCallback::runTwo: ASSERT (The child class was supposed to "
190 "override this method.)\n");
virtual EXPORT ~OTCallback()
virtual EXPORT void runOne(const char *szDisplay, OTPassword &theOutput) const
OTLOG_IMPORT OTLogStream otErr
virtual EXPORT void runTwo(const char *szDisplay, OTPassword &theOutput) const