26 #if defined(__SVR4) && defined(__sun)
34 #define ENT_GET_AREF(ent, dst, attr_name, mandatory) \
36 if (((dst) = probe_ent_getattrval(ent, attr_name)) == NULL) { \
38 _F("Attribute `%s' is missing!\n", attr_name); \
44 #define ENT_GET_STRVAL(ent, dst, dstlen, zerolen_exp) \
48 if ((___r = probe_ent_getval(ent)) == NULL) { \
49 dW("entity has no value!\n"); \
52 if (!SEXP_stringp(___r)) { \
53 _F("invalid type\n"); \
57 if (SEXP_string_length(___r) == 0) { \
61 SEXP_string_cstr_r(___r, dst, dstlen); \
69 FTS *ofts_match_path_fts;
70 FTSENT *ofts_match_path_fts_ent;
72 FTS *ofts_recurse_path_fts;
73 int ofts_recurse_path_fts_opts;
74 int ofts_recurse_path_curdepth;
75 char *ofts_recurse_path_pthcpy;
76 char *ofts_recurse_path_curpth;
77 dev_t ofts_recurse_path_devid;
79 pcre *ofts_path_regex;
80 pcre_extra *ofts_path_regex_extra;
81 uint32_t ofts_path_op;
95 #define OVAL_RECURSE_DIRECTION_NONE 0
96 #define OVAL_RECURSE_DIRECTION_DOWN 1
97 #define OVAL_RECURSE_DIRECTION_UP 2
99 #define OVAL_RECURSE_FILES 0x01
100 #define OVAL_RECURSE_DIRS 0x02
101 #define OVAL_RECURSE_SYMLINKS 0x04
103 #define OVAL_RECURSE_SYMLINKS_AND_DIRS (OVAL_RECURSE_SYMLINKS|OVAL_RECURSE_DIRS)
104 #define OVAL_RECURSE_FILES_AND_DIRS (OVAL_RECURSE_FILES|OVAL_RECURSE_SYMLINKS)
106 #define OVAL_RECURSE_FS_LOCAL 0
107 #define OVAL_RECURSE_FS_DEFINED 1
108 #define OVAL_RECURSE_FS_ALL 2
115 unsigned int fts_info;