/*1* Copyright (c) 1994, 1995, 19962* The Regents of the University of California. All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12* 3. All advertising materials mentioning features or use of this software13* must display the following acknowledgement:14* This product includes software developed by the Computer Systems15* Engineering Group at Lawrence Berkeley Laboratory.16* 4. Neither the name of the University nor of the Laboratory may be used17* to endorse or promote products derived from this software without18* specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233#ifndef fmtutils_h34#define fmtutils_h3536#include <stdarg.h> /* we declare varargs functions */3738#include "pcap/funcattrs.h"3940#ifdef __cplusplus41extern "C" {42#endif4344void pcapint_fmt_set_encoding(unsigned int);4546void pcapint_fmt_errmsg_for_errno(char *, size_t, int,47PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);48void pcapint_vfmt_errmsg_for_errno(char *, size_t, int,49PCAP_FORMAT_STRING(const char *), va_list) PCAP_PRINTFLIKE(4, 0);5051#ifdef _WIN3252void pcapint_fmt_errmsg_for_win32_err(char *, size_t, DWORD,53PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);54void pcapint_vfmt_errmsg_for_win32_err(char *, size_t, DWORD,55PCAP_FORMAT_STRING(const char *), va_list) PCAP_PRINTFLIKE(4, 0);56#endif5758#ifdef __cplusplus59}60#endif6162#endif636465