xref: /netbsd-src/external/bsd/libbind/dist/include/isc/misc.h (revision 5bbd2a12505d72a8177929a37b5cee489d0a1cfd)
1 /*	$NetBSD: misc.h,v 1.1.1.2 2012/09/09 16:07:49 christos Exp $	*/
2 
3 /*
4  * Copyright (C) 2004, 2005, 2008  Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (C) 1995-2001, 2003  Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /*
21  * Id: misc.h,v 1.7 2008/11/14 02:36:51 marka Exp
22  */
23 
24 #ifndef _ISC_MISC_H
25 #define _ISC_MISC_H
26 
27 /*! \file */
28 
29 #include <stdio.h>
30 #include <sys/types.h>
31 
32 #define	bitncmp		__bitncmp
33 /*#define isc_movefile	__isc_movefile */
34 
35 extern int		bitncmp(const void *, const void *, int);
36 extern int		isc_movefile(const char *, const char *);
37 
38 extern int		isc_gethexstring(unsigned char *, size_t, int, FILE *,
39 					 int *);
40 extern void		isc_puthexstring(FILE *, const unsigned char *, size_t,
41 					 size_t, size_t, const char *);
42 extern void		isc_tohex(const unsigned char *, size_t, char *);
43 
44 #endif /*_ISC_MISC_H*/
45 
46 /*! \file */
47