Import bind 9.5.2 vendor sources.
[dragonfly.git] / contrib / bind-9.5.2 / lib / bind / include / isc / misc.h
1 /*
2  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (c) 1995-1999 by Internet Software Consortium
4  *
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.
8  *
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.
16  */
17
18 /*
19  * $Id: misc.h,v 1.5.672.1 2008/02/18 04:10:16 marka Exp $
20  */
21
22 #ifndef _ISC_MISC_H
23 #define _ISC_MISC_H
24
25 /*! \file */
26
27 #include <stdio.h>
28 #include <sys/types.h>
29
30 #define bitncmp         __bitncmp
31 /*#define isc_movefile  __isc_movefile */
32
33 extern int              bitncmp(const void *, const void *, int);
34 extern int              isc_movefile(const char *, const char *);
35
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 *);
41
42 #endif /*_ISC_MISC_H*/
43
44 /*! \file */