fmd_log.h revision 7ee93e3bbce920c0d0742deb6632b0939e30b783
/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _FMD_LOG_H
#define _FMD_LOG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <pthread.h>
#include <exacct.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <fmd_api.h>
typedef struct fmd_log {
char *log_name; /* file pathname */
char *log_tag; /* file content tag */
int log_fd; /* file descriptor */
int log_flags; /* file flags (see below) */
char *log_uuid; /* uuid string for this log file */
} fmd_log_t;
extern fmd_log_t *fmd_log_tryopen(const char *, const char *, const char *);
extern fmd_log_t *fmd_log_open(const char *, const char *, const char *);
extern void fmd_log_close(fmd_log_t *);
extern void fmd_log_hold_pending(fmd_log_t *);
extern void fmd_log_hold(fmd_log_t *);
extern void fmd_log_rele(fmd_log_t *);
extern void fmd_log_update(fmd_log_t *);
#ifdef __cplusplus
}
#endif
#endif /* _FMD_LOG_H */