Debian Codegraph @

docs/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 .nf
6 .B #include <libaudit.h>
7 .PP
8 .BI "uid_t audit_getloginuid(void);"
9 .fi
10
11 .SH DESCRIPTION
12 This function returns the task attribute loginuid.
13
14 .SH "RETURN VALUE"
15
16 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.
17
18 .SH "ERRORS"
19
20 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.
21
22 .SH "SEE ALSO"
23
24 .BR audit_setloginuid (3).
25
26 .SH AUTHOR
27 Steve Grubb