1169Sohair/*	$NetBSD$	*/
22362Sohair
30Sduke/*
40Sduke * Copyright (C) 2004, 2005, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
50Sduke * Copyright (C) 2001  Internet Software Consortium.
60Sduke *
70Sduke * Permission to use, copy, modify, and/or distribute this software for any
80Sduke * purpose with or without fee is hereby granted, provided that the above
90Sduke * copyright notice and this permission notice appear in all copies.
100Sduke *
110Sduke * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
120Sduke * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
130Sduke * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
140Sduke * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
150Sduke * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
160Sduke * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
170Sduke * PERFORMANCE OF THIS SOFTWARE.
180Sduke */
192362Sohair
202362Sohair/* Id: strerror.h,v 1.8.332.2 2009/02/16 23:47:15 tbox Exp */
212362Sohair
220Sduke#ifndef ISC_STRERROR_H
230Sduke#define ISC_STRERROR_H
240Sduke
250Sduke/*! \file */
260Sduke
270Sduke#include <sys/types.h>
280Sduke
290Sduke#include <isc/lang.h>
300Sduke
310SdukeISC_LANG_BEGINDECLS
320Sduke
330Sduke/*% String Error Size */
340Sduke#define ISC_STRERRORSIZE 128
35169Sohair
360Sduke/*%
37169Sohair * Provide a thread safe wrapper to strerror().
380Sduke *
390Sduke * Requires:
400Sduke * 	'buf' to be non NULL.
41169Sohair */
420Sdukevoid
43169Sohairisc__strerror(int num, char *buf, size_t bufsize);
440Sduke
450SdukeISC_LANG_ENDDECLS
460Sduke
47169Sohair#endif /* ISC_STRERROR_H */
480Sduke