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 (c) 1999-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _EXACCT_IMPL_H
28 #define _EXACCT_IMPL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/exacct.h>
39 typedef struct _ea_file_depth
{
40 int efd_nobjs
; /* number of objects in group */
41 int efd_obj
; /* index of curr object within group */
44 typedef struct _ea_file_impl
{
45 char *ef_filename
; /* file name */
46 char *ef_creator
; /* file creator */
47 char *ef_hostname
; /* file hostname */
48 FILE *ef_fp
; /* file stream pointer */
49 ea_file_depth_t
*ef_depth
; /* pointer to depth stack */
50 char *ef_buf
; /* pointer for buffer consumption */
51 ssize_t ef_bufsize
; /* remaining bytes in buffer */
53 offset_t ef_advance
; /* bytes to advance on next op */
55 mode_t ef_oflags
; /* flags to open(2) */
56 int ef_fd
; /* file descriptor */
57 int ef_version
; /* exacct file version */
58 int ef_ndeep
; /* current depth in allocated stack */
59 int ef_mxdeep
; /* maximum depth of allocated stack */
67 #endif /* _EXACCT_IMPL_H */