1semanage_count(3)        Libsemanage API documentation       semanage_count(3)
2
3
4

NAME

6       SELinux Management API
7
8

SYNOPSIS

10       The following count function is supported for any semanage record.
11       Replace the function and object name as necessary.
12
13       extern int COUNT_FUNCTION (
14            semanage_handle_t *handle,
15            unsigned int* response);
16
17

DESCRIPTION

19       Behavior:
20              The  count function will return the number of all objects in the
21              selected location.
22
23
24       Parameters:
25              The handle is used to track  persistent  state  across  semanage
26              calls,  and  for  error reporting. The number of objects will be
27              stored at the location poined by response.
28
29
30       Requirements:
31              This function requires an semanage connection to be  established
32              (see semanage_connect(3) )
33
34

RETURN VALUE

36       In  case of failure, -1 is returned, and the semanage error callback is
37       invoked, describing the error.  Otherwise  a  non-negative  integer  is
38       returned  (a  commit  number).  The same number will be returned by all
39       other semanage object read calls until the next commit.
40
41

SEE ALSO

43       semanage_handle_create(3), semanage_connect(3),
44
45
46
47ivg2@cornell.edu                 16 March 2006               semanage_count(3)
Impressum