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

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



   audit_get_session    ( 3 )

получить значение идентификатора сеанса входа в программу (Get a program's login session id value)

Имя (Name)

audit_get_session - Get a program's login session id value


Синопсис (Synopsis)

#include <libaudit.h>

uin32_t audit_get_session(void);


Описание (Description)

This function returns the task's session id attribute.


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

This function returns the session id value if it was set. It will return a -1 if the session id is unset. However, since uint32_t is an unsigned type, you will see the converted value instead of -1.


Ошибки (Error)

This function returns -2 on failure. Additionally, in the event of a real error, errno would be set. The function can set errno based on failures of open, read, or strtoul.


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

audit_getloginuid(3).