Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   capng_save_state    ( 3 )

получить внутреннее состояние библиотеки (get the internal library state)

Имя (Name)

capng_save_state - get the internal library state


Синопсис (Synopsis)

#include <cap-ng.h>

void *capng_save_state(void);


Описание (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.


Возвращаемое значение (Return value)

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


Примечание (Note)

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


Смотри также (See also)

capng_restore_state(3), capabilities(7)