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 (c) 1999-2001 by Sun Microsystems, Inc. 24 * All rights reserved. 25 */ 26 27 #ifndef _EXACCT_IMPL_H 28 #define _EXACCT_IMPL_H 29 30 #include <sys/exacct.h> 31 #include <stdio.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 typedef struct _ea_file_depth { 38 int efd_nobjs; /* number of objects in group */ 39 int efd_obj; /* index of curr object within group */ 40 } ea_file_depth_t; 41 42 typedef struct _ea_file_impl { 43 char *ef_filename; /* file name */ 44 char *ef_creator; /* file creator */ 45 char *ef_hostname; /* file hostname */ 46 FILE *ef_fp; /* file stream pointer */ 47 ea_file_depth_t *ef_depth; /* pointer to depth stack */ 48 char *ef_buf; /* pointer for buffer consumption */ 49 ssize_t ef_bufsize; /* remaining bytes in buffer */ 50 void *ef_lpad[1]; 51 offset_t ef_advance; /* bytes to advance on next op */ 52 offset_t ef_opad[2]; 53 mode_t ef_oflags; /* flags to open(2) */ 54 int ef_fd; /* file descriptor */ 55 int ef_version; /* exacct file version */ 56 int ef_ndeep; /* current depth in allocated stack */ 57 int ef_mxdeep; /* maximum depth of allocated stack */ 58 int ef_ipad[1]; 59 } ea_file_impl_t; 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif /* _EXACCT_IMPL_H */ 66