bsde_get_rule_count3
File system firewall statistics
Usage
#include <ugidfw.h>
int
bsde_get_rule_count(size_t errlen, char *errstr);
int
bsde_get_rule_slots(size_t errlen, char *errstr);
Library
library “libugidfw”
Overview
The bsde_get_rule_count() and bsde_get_rule_slots() functions return the total number of enforced rules and the total number of used rule slots, respectively. If an error occurs, *errstr is filled in with the error string (up to errlen characters, including the terminating NUL).
Return values
The bsde_get_rule_count() and bsde_get_rule_slots() functions return the number of enforced rules and rule slots (respectively) if successful; otherwise the value -1 is returned and the value of *errstr is filled in as documented in DESCRIPTION.
Releases
56 releases since FreeBSD 5.0-RELEASE; the text changed 35 times.