Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / contrib / bind-9.3 / 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.2.2.1.4.1 2004/03/09 08:33:31 marka Exp $
20  */
21
22 #ifndef _ISC_MISC_H
23 #define _ISC_MISC_H
24
25 #include <stdio.h>
26
27 #define bitncmp         __bitncmp
28 /*#define isc_movefile  __isc_movefile */
29
30 extern int              bitncmp(const void *, const void *, int);
31 extern int              isc_movefile(const char *, const char *);
32
33 extern int              isc_gethexstring(unsigned char *, size_t, int, FILE *,
34                                          int *);
35 extern void             isc_puthexstring(FILE *, const unsigned char *, size_t,
36                                          size_t, size_t, const char *);
37 extern void             isc_tohex(const unsigned char *, size_t, char *);
38
39 #endif /*_ISC_MISC_H*/