Changes in trunk/include/samhain.h [30:20]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r30 r20 138 138 SH_LEVEL_USER0 = 7, 139 139 SH_LEVEL_USER1 = 8, 140 SH_LEVEL_USER2 = 9, 141 SH_LEVEL_USER3 = 10, 142 SH_LEVEL_USER4 = 11, 143 SH_LEVEL_PRELINK = 12 140 SH_LEVEL_PRELINK = 9 144 141 }; 145 142 … … 293 290 /*@null@*/ extern sh_key_t *skey; 294 291 295 /**************************************************296 *297 * macros298 *299 **************************************************/300 301 /* signal-safe log function302 */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)315 292 316 293 #if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
Note:
See TracChangeset
for help on using the changeset viewer.