The length of the username, including the terminating null byte (\(aq\\0\(aq),
is larger than
.IR bufsize .
-.LP
+.PP
Linux/glibc also has
.TP
.B ENOENT
was included in the 1988 version of POSIX,
but removed from the 1990 version.
It was present in SUSv2, but removed in POSIX.1-2001.
-.LP
+.PP
OpenBSD has
.BR getlogin ()
and
Avoid
.BR getlogin ()
for security-related purposes.
-.LP
+.PP
Note that glibc does not follow the POSIX specification and uses
.I stdin
instead of
all return the login name also when
.I stdin
is redirected.)
-.LP
+.PP
Nobody knows precisely what
.BR cuserid ()
does; avoid it in portable programs.