int audit_request_rule_list(int fd) { if (audit_request_rules_list_data(fd) > 0) { list_requested = 1; get_reply(); return 1; } return 0; }
static int count_rules(void) { int fd, total, rc; fd = audit_open(); if (fd < 0) return -1; rc = audit_request_rules_list_data(fd); if (rc > 0) total = count_em(fd); else total = -1; close(fd); return total; }