summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getutxent.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getutxent.3')
-rw-r--r--lib/libc/gen/getutxent.327
1 files changed, 22 insertions, 5 deletions
diff --git a/lib/libc/gen/getutxent.3 b/lib/libc/gen/getutxent.3
index 7337853..c60d42f 100644
--- a/lib/libc/gen/getutxent.3
+++ b/lib/libc/gen/getutxent.3
@@ -367,16 +367,15 @@ It returns
.Dv NULL
when the provided
.Vt utmpx
-is invalid.
-This may be because
-.Fa ut_type
-is invalid or
+is invalid, or
.Fa ut_type
has a value of
.Dv DEAD_PROCESS
and an entry with an identifier with a value equal to the field
.Fa ut_id
-was not found.
+was not found; the global variable
+.Va errno
+is set to indicate the error.
.Pp
The
.Fn setutxdb
@@ -387,6 +386,24 @@ Otherwise, -1 is returned and the global variable
is set to indicate the error.
.Sh ERRORS
In addition to the error conditions described in
+.Xr fdopen 3 ,
+.Xr fopen 3 ,
+.Xr fseek 3 ,
+.Xr open 3 ,
+the
+.Fn pututxline
+function can generate the following errors:
+.Bl -tag -width Er
+.It Bq Er ESRCH
+The value of
+.Fa ut_type
+is DEAD_PROCESS, and the process entry could not be found.
+.It Bq Er EINVAL
+The value of
+.Fa ut_type
+is not supported by this implementation.
+.El
+In addition to the error conditions described in
.Xr fopen 3 ,
the
.Fn setutxdb
OpenPOWER on IntegriCloud