summaryrefslogtreecommitdiff
path: root/share/man/man5/utmp.5
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-02-29 04:48:40 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-02-29 04:48:40 +0000
commit5d3f36a2784372401ae7572a40f9f47769b7d577 (patch)
tree3d21a8e36286e47e2c219612db793934fcc75946 /share/man/man5/utmp.5
parent632d71ab86f825e017ee5b912dbbc9006fdf81a7 (diff)
Various cleanup.
Diffstat (limited to 'share/man/man5/utmp.5')
-rw-r--r--share/man/man5/utmp.539
1 files changed, 15 insertions, 24 deletions
diff --git a/share/man/man5/utmp.5 b/share/man/man5/utmp.5
index 76151c89184..14fafb7d8cb 100644
--- a/share/man/man5/utmp.5
+++ b/share/man/man5/utmp.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: utmp.5,v 1.12 2000/01/18 21:49:00 aaron Exp $
+.\" $OpenBSD: utmp.5,v 1.13 2000/02/29 04:48:39 aaron Exp $
.\" $NetBSD: utmp.5,v 1.5 1994/11/30 19:31:35 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -43,17 +43,17 @@
.Sh SYNOPSIS
.Fd #include <utmp.h>
.Sh DESCRIPTION
-The file
+The
.Aq Pa utmp.h
-declares the structures used to record information about current
+file declares the structures used to record information about current
users in the
-.Nm
+.Nm utmp
file, logins and logouts in the
.Nm wtmp
file, and last logins in the
.Nm lastlog
file.
-The time stamps of date changes, shutdowns and reboots are also logged in
+The time stamps of date changes, shutdowns, and reboots are also logged in
the
.Nm wtmp
file.
@@ -91,12 +91,13 @@ Each time a user logs in, the
.Xr login
program looks up the user's
.Tn UID
-in the file
-.Nm lastlog .
+in the
+.Nm lastlog
+file.
If it is found, the timestamp of the last time the user logged
-in, the terminal line and the hostname
+in, the terminal line, and the hostname
are written to the standard output (provided the login is not
-.Dq quiet ,
+.Dq quiet ;
see
.Xr login 1 ) .
The
@@ -112,14 +113,13 @@ record is written,
.\" .Xr libutil 3
.\" routine
the
-.Nm
+.Nm utmp
file is opened and the
.Fa utmp
-record for the user inserted.
-This record remains there until
-the user logs out at which time it is deleted.
+record for the user is inserted.
+This record remains until the user logs out at which time it is deleted.
The
-.Nm
+.Nm utmp
file is used by the programs
.Xr rwho 1 ,
.Xr users 1 ,
@@ -198,17 +198,8 @@ strings are thus not guaranteed to be null terminated.
.Sh FILES
.Bl -tag -width /var/log/lastlog -compact
.It Pa /var/run/utmp
-the
-.Nm
-file
.It Pa /var/log/wtmp
-the
-.Nm wtmp
-file
.It Pa /var/log/lastlog
-the
-.Nm lastlog
-file
.El
.Sh SEE ALSO
.Xr last 1 ,
@@ -218,7 +209,7 @@ file
.Xr init 8
.Sh HISTORY
A
-.Nm
+.Nm utmp
and
.Nm wtmp
file format appeared in