Changeset 25 for trunk/include


Ignore:
Timestamp:
Mar 14, 2006, 10:27:38 PM (19 years ago)
Author:
rainer
Message:

More tests; fix for update+schedule issue.

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r22 r25  
    301301int safe_fatal  (int signal, int method, char * details, char *f, int l);
    302302
    303 #define SH_VAL_EQ(a,b) \
     303#define SH_VALIDATE_EQ(a,b) \
    304304     do { \
    305305         if ((a) != (b)) safe_fatal(0, 0, #a " != " #b, FIL__, __LINE__);\
    306306     } while (0)
    307307
     308#define SH_VALIDATE_NE(a,b) \
     309     do { \
     310         if ((a) == (b)) safe_fatal(0, 0, #a " == " #b, FIL__, __LINE__);\
     311     } while (0)
    308312
    309313#if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
  • trunk/include/sh_unix.h

    r22 r25  
    141141int sh_unix_munlock(void * addr, size_t len);
    142142int sh_unix_count_mlock();
     143/* public for unit tests */
     144int sh_unix_pagesize();
     145unsigned long sh_unix_lookup_page(void * in_addr, size_t len, int * num_pages);
    143146
    144147/* chroot directory
Note: See TracChangeset for help on using the changeset viewer.