xref: /minix3/usr.bin/cksum/crc_extern.h (revision 280d8c668e345d10165c0bc44fab3c7d7657dd05)
1*280d8c66SLionel Sambuc /*	$NetBSD: crc_extern.h,v 1.1 2006/09/04 20:01:10 dsl Exp $	*/
2*280d8c66SLionel Sambuc 
3*280d8c66SLionel Sambuc /*-
4*280d8c66SLionel Sambuc  * Copyright (c) 1991, 1993
5*280d8c66SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
6*280d8c66SLionel Sambuc  *
7*280d8c66SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
8*280d8c66SLionel Sambuc  * modification, are permitted provided that the following conditions
9*280d8c66SLionel Sambuc  * are met:
10*280d8c66SLionel Sambuc  * 1. Redistributions of source code must retain the above copyright
11*280d8c66SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
12*280d8c66SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
13*280d8c66SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
14*280d8c66SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
15*280d8c66SLionel Sambuc  * 3. Neither the name of the University nor the names of its contributors
16*280d8c66SLionel Sambuc  *    may be used to endorse or promote products derived from this software
17*280d8c66SLionel Sambuc  *    without specific prior written permission.
18*280d8c66SLionel Sambuc  *
19*280d8c66SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20*280d8c66SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*280d8c66SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22*280d8c66SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23*280d8c66SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24*280d8c66SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25*280d8c66SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26*280d8c66SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27*280d8c66SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28*280d8c66SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29*280d8c66SLionel Sambuc  * SUCH DAMAGE.
30*280d8c66SLionel Sambuc  *
31*280d8c66SLionel Sambuc  *	@(#)extern.h	8.1 (Berkeley) 6/6/93
32*280d8c66SLionel Sambuc  */
33*280d8c66SLionel Sambuc 
34*280d8c66SLionel Sambuc __BEGIN_DECLS
35*280d8c66SLionel Sambuc int	 crc(int, u_int32_t *, off_t *);
36*280d8c66SLionel Sambuc uint32_t crc_buf(uint32_t, const void *, size_t);
37*280d8c66SLionel Sambuc uint32_t crc_byte(uint32_t, unsigned int);
38*280d8c66SLionel Sambuc __END_DECLS
39