Changeset 458 for trunk/include


Ignore:
Timestamp:
Aug 5, 2014, 12:26:42 PM (10 years ago)
Author:
katerina
Message:

Fix for ticket #358 (repetitive lstat warning) and #359 (reporting of added/deleted top level directories).

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r444 r458  
    188188#define SH_FFLAG_REPORTED  (1<<3)
    189189#define SH_FFLAG_SUIDCHK   (1<<4)
     190#define SH_FFLAG_ENOENT    (1<<5)
    190191
    191192#define SH_FFLAG_ALLIGNORE_SET(a)   (((a) & SH_FFLAG_ALLIGNORE) != 0)
     
    208209#define SET_SH_FFLAG_SUIDCHK(a)     ((a) |= SH_FFLAG_SUIDCHK)
    209210#define CLEAR_SH_FFLAG_SUIDCHK(a)   ((a) &= ~SH_FFLAG_SUIDCHK)
     211
     212#define SH_FFLAG_ENOENT_SET(a)      (((a) & SH_FFLAG_ENOENT) != 0)
     213#define SET_SH_FFLAG_ENOENT(a)      ((a) |= SH_FFLAG_ENOENT)
     214#define CLEAR_SH_FFLAG_ENOENT(a)    ((a) &= ~SH_FFLAG_ENOENT)
    210215
    211216/* Flags for inotify
  • trunk/include/sh_hash.h

    r356 r458  
    111111/* Set a file flag in in-memory database
    112112 */
    113 void sh_hash_addflag  (char * filename, int flag);
     113void sh_hash_set_flag  (char * filename, int flag);
     114
     115/* Unset a file flag in in-memory database
     116 */
     117void sh_hash_clear_flag (char * filename, int flag_to_set);
    114118
    115119/* Compare a file with its status in the database.
  • trunk/include/zAVLTree.h

    r457 r458  
    7878extern int zAVL_string_set (zAVLTree ** tree, const char * key);
    7979extern void zAVL_string_reset (zAVLTree * tree);
     80extern void zAVL_string_del (zAVLTree * tree, const char * key);
    8081
    8182#endif
Note: See TracChangeset for help on using the changeset viewer.