xref: /titanic_52/usr/src/head/exacct_impl.h (revision 7fd791373689a6af05e27efec3b1ab556e02aa23)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/exacct.h>
33 #include <stdio.h>
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
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 */
42 } ea_file_depth_t;
43 
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 */
52 	void	*ef_lpad[1];
53 	offset_t ef_advance;		/* bytes to advance on next op */
54 	offset_t ef_opad[2];
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 */
60 	int	ef_ipad[1];
61 } ea_file_impl_t;
62 
63 #ifdef	__cplusplus
64 }
65 #endif
66 
67 #endif	/* _EXACCT_IMPL_H */
68