mirror of https://github.com/mkerrisk/man-pages
Add an ERRORS section.
This commit is contained in:
parent
490b25e1d4
commit
2b587e0933
|
@ -132,6 +132,20 @@ on failure, it returns NULL.
|
|||
|
||||
.BR utmpname ()
|
||||
returns 0 if the new name was successfully stored, or \-1 on failure.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
.B ENOMEM
|
||||
Out of memory.
|
||||
.TP
|
||||
.B ESRCH
|
||||
Record not found.
|
||||
.PP
|
||||
.BR setutent (),
|
||||
.BR pututent (),
|
||||
and the
|
||||
.B getut* ()
|
||||
functions can also fail for the reasons described in
|
||||
.BR open (2).
|
||||
.SH FILES
|
||||
/var/run/utmp database of currently logged-in users
|
||||
.br
|
||||
|
|
Loading…
Reference in New Issue