Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r20 r30  
    138138  SH_LEVEL_USER0       = 7,
    139139  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
    141144};
    142145
     
    290293/*@null@*/ extern sh_key_t  *skey;
    291294
     295/**************************************************
     296 *
     297 * macros
     298 *
     299 **************************************************/
     300
     301/* signal-safe log function
     302 */
     303int  safe_logger (int signal, int method, char * details);
     304void 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)
    292315
    293316#if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
Note: See TracChangeset for help on using the changeset viewer.