xref: /titanic_51/usr/src/lib/libresolv2/include/isc/misc.h (revision 4df55fde49134f9735f84011f23a767c75e393c7)
1 /*
2  * Copyright (C) 2004, 2005, 2008  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 1995-2001, 2003  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and/or 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 WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 /*
19  * $Id: misc.h,v 1.7 2008/11/14 02:36:51 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 */
45