Debian Codegraph @

libsemanage/man/man3/semanage_count.3

raw
1 .TH semanage_count 3 "16 March 2006" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_count \- SELinux Management API
5
6 .SH "SYNOPSIS"
7 The following count function is supported for any semanage record.
8 .br
9 Replace the function and object name as necessary.
10
11 .B extern int COUNT_FUNCTION (
12 .br
13 .BI " semanage_handle_t *" handle ","
14 .br
15 .BI " unsigned int* " response ");"
16
17 .SH "DESCRIPTION"
18 .TP
19 .B Behavior:
20 The count function will return the number of all objects in the selected location.
21
22 .TP
23 .B Parameters:
24 The
25 .I handle
26 is used to track persistent state across semanage calls, and for error reporting. The number of objects will be stored at the location pointed by
27 .I response.
28
29 .TP
30 .B Requirements:
31 This function requires an semanage connection to be established (see
32 .BR semanage_connect "(3)"
33 )
34
35 .SH "RETURN VALUE"
36 In case of failure, \-1 is returned, and the semanage error callback is invoked, describing the error.
37 Otherwise a non-negative integer is returned (a commit number). The same number will be returned by all other semanage object read calls until the next commit.
38
39 .SH "SEE ALSO"
40 .BR semanage_handle_create "(3), " semanage_connect "(3), "