17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5e3320f40Smarkfen * Common Development and Distribution License (the "License"). 6e3320f40Smarkfen * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22e3320f40Smarkfen * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 26*d362b749Svk #ifndef _ERRFP_H 27*d362b749Svk #define _ERRFP_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate /* 307c478bd9Sstevel@tonic-gate * Headers and definitions for support functions that are shared by 317c478bd9Sstevel@tonic-gate * the ipsec utilities ipseckey and ikeadm. 327c478bd9Sstevel@tonic-gate */ 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate #ifdef __cplusplus 357c478bd9Sstevel@tonic-gate extern "C" { 367c478bd9Sstevel@tonic-gate #endif 377c478bd9Sstevel@tonic-gate 38*d362b749Svk #include <stdio.h> 397c478bd9Sstevel@tonic-gate #include <stdarg.h> 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate /* 427c478bd9Sstevel@tonic-gate * Function Prototypes 437c478bd9Sstevel@tonic-gate */ 447c478bd9Sstevel@tonic-gate 45*d362b749Svk #ifdef __PRAGMA_REDEFINE_EXTNAME 46*d362b749Svk #pragma redefine_extname errfp _errfp 47*d362b749Svk #pragma redefine_extname verrfp _verrfp 48*d362b749Svk #pragma redefine_extname errxfp _errxfp 49*d362b749Svk #pragma redefine_extname verrxfp _verrxfp 50*d362b749Svk #pragma redefine_extname warnfp _warnfp 51*d362b749Svk #pragma redefine_extname vwarnfp _vwarnfp 52*d362b749Svk #pragma redefine_extname warnxfp _warnxfp 53*d362b749Svk #pragma redefine_extname vwarnxfp _vwarnxfp 54*d362b749Svk #else 55*d362b749Svk #define errfp _errfp 56*d362b749Svk #define verrfp _verrfp 57*d362b749Svk #define errxfp _errxfp 58*d362b749Svk #define verrxfp _verrxfp 59*d362b749Svk #define warnfp _warnfp 60*d362b749Svk #define vwarnfp _vwarnfp 61*d362b749Svk #define warnxfp _warnxfp 62*d362b749Svk #define vwarnxfp _vwarnxfp 63*d362b749Svk #endif 64*d362b749Svk 65*d362b749Svk /* Program exit and warning calls */ 66*d362b749Svk extern void errfp(FILE *, int, const char *, ...); 67*d362b749Svk extern void verrfp(FILE *, int, const char *, va_list); 68*d362b749Svk extern void errxfp(FILE *, int, const char *, ...); 69*d362b749Svk extern void verrxfp(FILE *, int, const char *, va_list); 70*d362b749Svk extern void warnfp(FILE *, const char *, ...); 71*d362b749Svk extern void vwarnfp(FILE *, const char *, va_list); 72*d362b749Svk extern void warnxfp(FILE *, const char *, ...); 73*d362b749Svk extern void vwarnxfp(FILE *, const char *, va_list); 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate #ifdef __cplusplus 767c478bd9Sstevel@tonic-gate } 777c478bd9Sstevel@tonic-gate #endif 787c478bd9Sstevel@tonic-gate 79*d362b749Svk #endif /* _ERRFP_H */ 80