acctdef.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <utmpx.h>
#ifdef uts
#define CSIZE 10001
#define MAXUSERS 5003
#else
#define CSIZE 5001
#define MAXUSERS 3001
#endif
#define USIZE1 100
#define MAXIGN 10
#define UNUSED -1
#define FAIL -1
#define SUCCEED 0
#define TRUE 1
#define FALSE 0
#define PRIME 0
#define NONPRIME 1
#define MEANSIZE 01
#define KCOREMIN 02
#define HOGFACTOR 04
#define SEPTIME 010
#define CPUFACTOR 020
#define IORW 040
#define ROOT 0
#define ERR (-1)
#define OK 0
#define NOGOOD 1
#define VALID 0
#define INVALID 1
/*
* The size of LSZ is based on MAX_SRCH_DEPTH because of the
* implementation of devtolin()
*/
#define MAX_SRCH_DEPTH 4
/*
* These exist for backward compatibility. Until we can change the
* output formats, we need to keep the field widths the same as
* they always have been.
*/
#define OUTPUT_NSZ 8
#define OUTPUT_LSZ 12
#define DATE_FMT "%a %b %e %H:%M:%S %Y\n"
#define DATE_FMT1 " %H:%M:%S"
#define SECSINDAY 86400L
#include <unistd.h>
#if UTS
#else
#endif
/*
* total accounting (for acct period), also for day
*/
struct tacct {
float ta_du; /* cum. disk usage */
long ta_pc; /* count of processes */
unsigned short ta_sc; /* count of login sessions */
unsigned short ta_dc; /* count of disk samples */
unsigned short ta_fee; /* fee for special services */
};
/*
* connect time record
*/
struct ctmp {
};
/*
* per process temporary data
*/
struct ptmp {
unsigned pt_mem; /* avg. memory size (64byte clicks) */
};