Home | History | Annotate | only in /onnv/onnv-gate/usr/src/lib/libexacct/demo
Up to higher level directory
NameDateSize
exdump.c08-Dec-200813K
Makefile30-Jul-20091.5K
Makefile.demo08-Dec-20081.3K
README08-Dec-20082.5K

README

      1 #
      2 # CDDL HEADER START
      3 #
      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
      7 # with the License.
      8 #
      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.
     13 #
     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]
     19 #
     20 # CDDL HEADER END
     21 #
     22 
     23 Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
     24 Use is subject to license terms.
     25 
     26 #ident	"%Z%%M%	%I%	%E% SMI"
     27 
     28 1. Introduction
     29 
     30 This directory contains  source code for the "exdump"  utility that uses
     31 libexacct to print the content  of extended accounting files produced by
     32 the kernel.
     33 
     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.
     39 
     40 2. Configuration
     41 
     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.  
     46 
     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.
     51 
     52 3. Targets
     53 
     54 The Makefile in this directory supports the following targets:
     55 
     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
     60 
     61 To  build the  exdump,  execute  "make" in  this  directory.  This  will
     62 execute the default "make all" target.
     63 
     64 4. References
     65 
     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"
     71