Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / ElectricFence / efence.h
blob23f0ae963bbe4c7ed3592ed09a8833f7a0474e2f
1 /* $NetBSD$ */
3 #include <sys/types.h>
4 #include <sys/param.h>
6 /*
7 * ef_number is the largest unsigned integer we'll need. On systems that
8 * support 64-bit pointers, this may be "unsigned long long".
9 */
10 #if defined(USE_LONG_LONG)
11 typedef unsigned long long ef_number;
12 #else
13 typedef unsigned long ef_number;
14 #endif
17 * NBBY is the number of bits per byte. Some systems define it in
18 * <sys/param.h> .
20 #ifndef NBBY
21 #define NBBY 8
22 #endif
25 * This is used to declare functions with "C" linkage if we are compiling
26 * with C++ .
28 #ifdef __cplusplus
29 #define C_LINKAGE "C"
30 #else
31 #define C_LINKAGE
32 #endif
34 void Page_AllowAccess(void * address, size_t size);
35 void * Page_Create(size_t size);
36 void Page_Delete(void * address, size_t size);
37 void Page_DenyAccess(void * address, size_t size);
38 size_t Page_Size(void);
40 void EF_Abort(const char * message, ...);
41 void EF_Exit(const char * message, ...);
42 void EF_Print(const char * message, ...);
43 void EF_Lock();
44 void EF_UnLock();