mega_sas: suppress set but not used warnings
[unleashed.git] / include / exacct_impl.h
blob8ade514ea065a7a242224d2e8e4c6f2fa01cfb41
1 /*
2 * CDDL HEADER START
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.
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]
20 * CDDL HEADER END
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>
33 #include <stdio.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
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;
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;
63 #ifdef __cplusplus
65 #endif
67 #endif /* _EXACCT_IMPL_H */