Debian Codegraph @

upstream/debian-trixie/man3/audit_getloginuid.3

raw
1 .TH "AUDIT_GETLOGINUID" "3" "Oct 2006" "Red Hat" "Linux Audit API"
2 .SH NAME
3 audit_getloginuid \- Get a program's loginuid value
4 .SH SYNOPSIS
5 .B #include <libaudit.h>
6 .sp
7 uid_t audit_getloginuid(void);
8
9 .SH DESCRIPTION
10 This function returns the task attribute loginuid.
11
12 .SH "RETURN VALUE"
13
14 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.
15
16 .SH "ERRORS"
17
18 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.
19
20 .SH "SEE ALSO"
21
22 .BR audit_setloginuid (3).
23
24 .SH AUTHOR
25 Steve Grubb