Import bind 9.5.2 vendor sources.
[dragonfly.git] / contrib / bind-9.5.2 / lib / bind / include / isc / misc.h
blob8736bf91eddb9d3c10c682817f0e079708d293ed
1 /*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1995-1999 by Internet Software Consortium
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 * $Id: misc.h,v 1.5.672.1 2008/02/18 04:10:16 marka Exp $
22 #ifndef _ISC_MISC_H
23 #define _ISC_MISC_H
25 /*! \file */
27 #include <stdio.h>
28 #include <sys/types.h>
30 #define bitncmp __bitncmp
31 /*#define isc_movefile __isc_movefile */
33 extern int bitncmp(const void *, const void *, int);
34 extern int isc_movefile(const char *, const char *);
36 extern int isc_gethexstring(unsigned char *, size_t, int, FILE *,
37 int *);
38 extern void isc_puthexstring(FILE *, const unsigned char *, size_t,
39 size_t, size_t, const char *);
40 extern void isc_tohex(const unsigned char *, size_t, char *);
42 #endif /*_ISC_MISC_H*/
44 /*! \file */