Changes in trunk/include/samhain.h [20:30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r20 r30 138 138 SH_LEVEL_USER0 = 7, 139 139 SH_LEVEL_USER1 = 8, 140 SH_LEVEL_PRELINK = 9 140 SH_LEVEL_USER2 = 9, 141 SH_LEVEL_USER3 = 10, 142 SH_LEVEL_USER4 = 11, 143 SH_LEVEL_PRELINK = 12 141 144 }; 142 145 … … 290 293 /*@null@*/ extern sh_key_t *skey; 291 294 295 /************************************************** 296 * 297 * macros 298 * 299 **************************************************/ 300 301 /* signal-safe log function 302 */ 303 int safe_logger (int signal, int method, char * details); 304 void safe_fatal (int signal, int method, char * details, char *f, int l); 305 306 #define SH_VALIDATE_EQ(a,b) \ 307 do { \ 308 if ((a) != (b)) safe_fatal(0, 0, #a " != " #b, FIL__, __LINE__);\ 309 } while (0) 310 311 #define SH_VALIDATE_NE(a,b) \ 312 do { \ 313 if ((a) == (b)) safe_fatal(0, 0, #a " == " #b, FIL__, __LINE__);\ 314 } while (0) 292 315 293 316 #if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
Note:
See TracChangeset
for help on using the changeset viewer.