10Sstevel@tonic-gate /* 2*11038SRao.Shoaib@Sun.COM * Copyright (C) 2004, 2005, 2008 Internet Systems Consortium, Inc. ("ISC") 3*11038SRao.Shoaib@Sun.COM * Copyright (C) 1995-2001, 2003 Internet Software Consortium. 40Sstevel@tonic-gate * 5*11038SRao.Shoaib@Sun.COM * Permission to use, copy, modify, and/or distribute this software for any 60Sstevel@tonic-gate * purpose with or without fee is hereby granted, provided that the above 70Sstevel@tonic-gate * copyright notice and this permission notice appear in all copies. 80Sstevel@tonic-gate * 9*11038SRao.Shoaib@Sun.COM * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10*11038SRao.Shoaib@Sun.COM * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11*11038SRao.Shoaib@Sun.COM * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12*11038SRao.Shoaib@Sun.COM * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13*11038SRao.Shoaib@Sun.COM * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14*11038SRao.Shoaib@Sun.COM * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15*11038SRao.Shoaib@Sun.COM * PERFORMANCE OF THIS SOFTWARE. 160Sstevel@tonic-gate */ 170Sstevel@tonic-gate 180Sstevel@tonic-gate /* 19*11038SRao.Shoaib@Sun.COM * $Id: misc.h,v 1.7 2008/11/14 02:36:51 marka Exp $ 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate 220Sstevel@tonic-gate #ifndef _ISC_MISC_H 230Sstevel@tonic-gate #define _ISC_MISC_H 240Sstevel@tonic-gate 25*11038SRao.Shoaib@Sun.COM /*! \file */ 26*11038SRao.Shoaib@Sun.COM 270Sstevel@tonic-gate #include <stdio.h> 28*11038SRao.Shoaib@Sun.COM #include <sys/types.h> 290Sstevel@tonic-gate 300Sstevel@tonic-gate #define bitncmp __bitncmp 31*11038SRao.Shoaib@Sun.COM /*#define isc_movefile __isc_movefile */ 320Sstevel@tonic-gate 33*11038SRao.Shoaib@Sun.COM extern int bitncmp(const void *, const void *, int); 34*11038SRao.Shoaib@Sun.COM extern int isc_movefile(const char *, const char *); 350Sstevel@tonic-gate 360Sstevel@tonic-gate extern int isc_gethexstring(unsigned char *, size_t, int, FILE *, 370Sstevel@tonic-gate int *); 380Sstevel@tonic-gate extern void isc_puthexstring(FILE *, const unsigned char *, size_t, 390Sstevel@tonic-gate size_t, size_t, const char *); 400Sstevel@tonic-gate extern void isc_tohex(const unsigned char *, size_t, char *); 410Sstevel@tonic-gate 420Sstevel@tonic-gate #endif /*_ISC_MISC_H*/ 43*11038SRao.Shoaib@Sun.COM 44*11038SRao.Shoaib@Sun.COM /*! \file */ 45