4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 Copyright 2002 Sun Microsystems, Inc. All rights reserved.
24 Use is subject to license terms.
26 #ident "%Z%%M% %I% %E% SMI"
30 This directory contains source code for the "exdump" utility that uses
31 libexacct to print the content of extended accounting files produced by
34 This utility demonstrates how developers can use the libexacct
35 programming API to extract extended accounting data. libexacct(3LIB) is
36 the only interface for reading and writing files in variable length
37 general-purpose accounting file format used by the kernel to store
38 various types of accounting data.
42 Exdump can be compiled as either a 32-bit or 64-bit application; because
43 exacct is endian-neutral, exdump can read exacct files from either SPARC
44 or Intel sources on SPARC or Intel platforms. exdump prints one line for
45 each record it encounters in the exacct file.
47 The Makefile contained in this directory is set up to use the C compiler
48 (cc) and lint utility found in your $PATH. If you wish to change the
49 configuration, edit the CC and LINT macro definitions in Makefile to
50 point to the appropriate pathnames.
54 The Makefile in this directory supports the following targets:
56 make all (default) - build exdump executable
57 make lint - run lint against exdump
58 make clean - remove object files
59 make clobber - remove objects, and lint files
61 To build the exdump, execute "make" in this directory. This will
62 execute the default "make all" target.
66 Exacct files: /var/adm/exacct/proc, /var/adm/exacct/task
67 Man pages: acctadm(1M), libexacct(3LIB)
68 Documentation: "System Administration Guide:
69 Resource Management and Network Services"
70 "System Administration Guide: IP Services"