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

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



   capng_capability_to_name    ( 3 )

преобразовать целое число возможностей в текст (convert capability integer to text)

Имя (Name)

capng_capability_to_name - convert capability integer to text


Синопсис (Synopsis)

#include <cap-ng.h>

const char *capng_capability_to_name(unsigned int capability);


Описание (Description)

capng_capability_to_name will take the integer being passed and look it up to see what its text string representation would be. The integer being input must be in the valid range defined in linux/capabiliy.h. The string that is output is the same as the define text from linux/capabiliy.h with the CAP_ prefix removed and lower case. This is useful for taking integer representation and converting it to something more user friendly for display.


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

This returns a NULL pointer on failure and the correct string otherwise.


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

capng_name_to_capability(3), capabilities(7)