6253 F_GETLK doesn't always return lock owner
[illumos-gate.git] / usr / src / man / man1m / fwtmp.1m
blob7a11b7fb9a382110e073d521157aca59ee24646e
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1999 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH FWTMP 1M "Feb 22, 1999"
7 .SH NAME
8 fwtmp, wtmpfix \- manipulate connect accounting records
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/lib/acct/fwtmp\fR [\fB-ic\fR]
13 .fi
15 .LP
16 .nf
17 \fB/usr/lib/acct/wtmpfix\fR [\fIfile\fR]...
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
23 \fBfwtmp\fR reads from the standard input and writes to the standard output,
24 converting binary records of the type found in \fB/var/adm/wtmpx\fR to
25 formatted ASCII records. The ASCII version is useful when it is necessary to
26 edit  bad records.
27 .sp
28 .LP
29 \fBwtmpfix\fR examines the standard input or named files in \fButmpx\fR format,
30 corrects the time/date stamps to make the entries consistent, and writes to the
31 standard output. A hyphen (\fB\(mi\fR) can be used in place of \fIfile\fR to
32 indicate the standard input. If time/date corrections are not performed,
33 \fBacctcon\fR(1M) will fault when it encounters certain date-change records.
34 .sp
35 .LP
36 Each time the date is set, a pair of date change records are written to
37 \fB/var/adm/wtmpx\fR. The first record is the old date denoted by the string
38 "\fBold time\fR" placed in the \fBline\fR field and the flag
39 \fB\fR\fBOLD_TIME\fR\fB\fR placed in the \fBtype\fR field of the \fButmpx\fR
40 structure. The second record specifies the new date and is denoted by the
41 string \fBnew time\fR placed in the \fBline\fR field and the flag
42 \fB\fR\fBNEW_TIME\fR\fB\fR placed in the \fBtype\fR field. \fBwtmpfix\fR uses
43 these records to synchronize all time stamps in the file.
44 .sp
45 .LP
46 In addition to correcting time/date stamps, \fBwtmpfix\fR will check the
47 validity of the \fBname\fR field to ensure that it consists solely of
48 alphanumeric characters or spaces. If it encounters a name that is considered
49 invalid, it will change the login name to \fB\fR\fBINVALID\fR\fB\fR and write a
50 diagnostic to the standard error. In this way, \fBwtmpfix\fR reduces the chance
51 that \fBacctcon\fR will fail when processing connect accounting records.
52 .SH OPTIONS
53 .sp
54 .ne 2
55 .na
56 \fB\fB-ic\fR\fR
57 .ad
58 .RS 7n
59 Denotes that input is in ASCII form, and output is to be written in binary
60 form.
61 .RE
63 .SH FILES
64 .sp
65 .ne 2
66 .na
67 \fB\fB/var/adm/wtmpx\fR\fR
68 .ad
69 .RS 18n
70 history of user access and administration information
71 .RE
73 .SH SEE ALSO
74 .sp
75 .LP
76 \fBacctcom\fR(1), \fBed\fR(1), \fBacct\fR(1M), \fBacctcms\fR(1M),
77 \fBacctcon\fR(1M), \fBacctmerg\fR(1M), \fBacctprc\fR(1M), \fBacctsh\fR(1M),
78 \fBrunacct\fR(1M), \fBacct\fR(2), \fBacct.h\fR(3HEAD), \fButmpx\fR(4),
79 \fBattributes\fR(5)
80 .sp
81 .LP
82 \fI\fR