Debian Codegraph @

docs/capng_save_state.3

raw
1 .TH "CAPNG_SAVE_STATE" "3" "June 2009" "Red Hat" "Libcap-ng API"
2 .SH NAME
3 capng_save_state \- get the internal library state
4 .SH "SYNOPSIS"
5 .B #include <cap-ng.h>
6 .sp
7 void *capng_save_state(void);
8
9 .SH "DESCRIPTION"
10
11 capng_save_state is a function that returns a pointer to the internal state of the libcap-ng library. It should be considered opaque and not for alteration directly. This function should be used when you suspect a third party library may use libcap-ng also and want to make sure it doesn't alter something important. This function is not available in the python bindings.
12
13 .SH "RETURN VALUE"
14
15 This returns NULL on failure and a non-NULL pointer otherwise.
16
17 .SH NOTES
18
19 The structure returned by capng_save_state is malloc'd; it should be free'd if not used.
20
21 .SH "SEE ALSO"
22
23 .BR capng_restore_state (3),
24 .BR capabilities (7)
25
26 .SH AUTHOR
27 Steve Grubb