Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / isc / strerror.h
blobe1c9baca7da625fd9753e1a7aed4252f4d530e59
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2001 Internet Software Consortium.
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
11 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
12 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
13 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
15 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
17 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 /* Id: strerror.h,v 1.3 2001/11/20 01:45:47 gson Exp */
22 #ifndef ISC_STRERROR_H
23 #define ISC_STRERROR_H
25 #include <sys/types.h>
27 #include <isc/lang.h>
29 ISC_LANG_BEGINDECLS
31 #define ISC_STRERRORSIZE 128
34 * Provide a thread safe wrapper to strerrror().
36 * Requires:
37 * 'buf' to be non NULL.
39 void
40 isc__strerror(int num, char *buf, size_t bufsize);
42 ISC_LANG_ENDDECLS
44 #endif /* ISC_STRERROR_H */