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

audit_getloginuid - Get a program's loginuid value

Author

Steve Grubb Red Hat Oct 2006 AUDIT_GETLOGINUID(3)

Description

This function returns the task attribute loginuid.

Errors

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

Name

audit_getloginuid - Get a program's loginuid value

Return Value

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

See Also

audit_setloginuid(3).

Synopsis

#include<libaudit.h> uid_t audit_getloginuid(void);

See Also