Changeset 19 for trunk/include


Ignore:
Timestamp:
Feb 12, 2006, 10:49:56 PM (19 years ago)
Author:
rainer
Message:

Rewrite of test suite, checksum for growing logs, fix for minor bug with dead client detection.

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r18 r19  
    292292      if ((skey != NULL) && skey->mlock_failed == SL_FALSE){ \
    293293        (void) sl_set_suid(); \
    294         if (sh_unix_mlock( a, b) < 0) skey->mlock_failed = SL_TRUE; \
     294        if (sh_unix_mlock(FIL__, __LINE__, a, b) < 0) skey->mlock_failed = SL_TRUE; \
    295295        (void) sl_unset_suid(); }
    296296#else
  • trunk/include/sh_tiger.h

    r1 r19  
    1818 */
    1919/*@owned@*/ char * sh_tiger_hash (char * filename, TigerType what,
    20                                   unsigned long Length);
     20                                  UINT64 Length);
    2121
    2222/* NEW Thu Oct 18 19:59:08 CEST 2001
     
    2424int sh_tiger_hashtype (char * c);
    2525char * sh_tiger_generic_hash (char * filename, TigerType what,
    26                               unsigned long Length, int timeout);
     26                              UINT64 Length, int timeout);
    2727
    2828UINT32 * sh_tiger_hash_uint32 (char * filename,
    2929                               TigerType what,
    30                                unsigned long Length);
     30                               UINT64 Length);
    3131
    3232/* get the type of hash function used
     
    3838 */
    3939/*@owned@*/ char * sh_tiger_hash_gpg (char * filename, TigerType what,
    40                           unsigned long Length);
     40                                      UINT64 Length);
    4141#endif
  • trunk/include/sh_unix.h

    r10 r19  
    7979/* device num   */
    8080#define MODI_RDEV (1 << 11)
     81/* size may grow   */
     82#define MODI_SGROW (1 << 12)
     83/* use prelink     */
     84#define MODI_PREL (1 << 13)
    8185
    8286#define MASK_ALLIGNORE_  0
     
    8690#define MASK_LOGFILES_   (MASK_ATTRIBUTES_|MODI_HLN|MODI_LNK|MODI_INO)
    8791extern  unsigned long mask_LOGFILES;
    88 #define MASK_LOGGROW_    (MASK_LOGFILES_|MODI_SIZ)
     92#define MASK_LOGGROW_    (MASK_LOGFILES_|MODI_SIZ|MODI_SGROW|MODI_CHK)
    8993extern  unsigned long mask_LOGGROW;
    9094#define MASK_READONLY_   (MASK_LOGFILES_|MODI_CHK|MODI_SIZ|MODI_MTM|MODI_CTM)
     
    9599extern  unsigned long mask_USER0;
    96100extern  unsigned long mask_USER1;
    97 /* like READONLY, but without MTM,CTM,SIZ,INO)
    98  */
    99 #define MASK_PRELINK_   (MASK_ATTRIBUTES_|MODI_HLN|MODI_LNK|MODI_CHK)
     101/* like READONLY, but without MTM,CTM,SIZ,INO, abd with PREL)
     102 */
     103#define MASK_PRELINK_   (MASK_ATTRIBUTES_|MODI_HLN|MODI_LNK|MODI_CHK|MODI_PREL)
    100104extern  unsigned long mask_PRELINK;
    101105
     
    134138/* mlock utilities
    135139 */
    136 int sh_unix_mlock(void * addr, size_t len);
     140int sh_unix_mlock(char * file, int line, void * addr, size_t len);
    137141int sh_unix_munlock(void * addr, size_t len);
    138142int sh_unix_count_mlock();
Note: See TracChangeset for help on using the changeset viewer.