logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

capng_save_state - get the internal library state

Author

Steve Grubb Red Hat June 2009 CAPNG_SAVE_STATE(3)

Description

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.

Name

capng_save_state - get the internal library state

Notes

The structure returned by capng_save_state is malloc'd; it should be free'd if not used.

Return Value

This returns NULL on failure and a non-NULL pointer otherwise.

See Also

capng_restore_state(3), capabilities(7)

Synopsis

#include<cap-ng.h> void *capng_save_state(void);

See Also