extern.h revision 330897
180183Sjkh/*- 280183Sjkh * SPDX-License-Identifier: BSD-3-Clause 380183Sjkh * 480183Sjkh * Copyright (c) 1991, 1993 580183Sjkh * The Regents of the University of California. All rights reserved. 680183Sjkh * 780183Sjkh * Redistribution and use in source and binary forms, with or without 880183Sjkh * modification, are permitted provided that the following conditions 980183Sjkh * are met: 1080183Sjkh * 1. Redistributions of source code must retain the above copyright 1180183Sjkh * notice, this list of conditions and the following disclaimer. 1280183Sjkh * 2. Redistributions in binary form must reproduce the above copyright 1380183Sjkh * notice, this list of conditions and the following disclaimer in the 1480183Sjkh * documentation and/or other materials provided with the distribution. 1580183Sjkh * 4. Neither the name of the University nor the names of its contributors 1680183Sjkh * may be used to endorse or promote products derived from this software 17138275Sjhb * without specific prior written permission. 1880183Sjkh * 19138275Sjhb * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2080183Sjkh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2180183Sjkh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2280183Sjkh * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2380183Sjkh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2480183Sjkh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2580183Sjkh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2680183Sjkh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27221466Snwhitehorn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28221466Snwhitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2980183Sjkh * SUCH DAMAGE. 3080183Sjkh * 3180183Sjkh * @(#)extern.h 8.1 (Berkeley) 6/6/93 3280183Sjkh * $FreeBSD: stable/11/usr.bin/cksum/extern.h 330897 2018-03-14 03:19:51Z eadler $ 3380183Sjkh */ 3480183Sjkh 35221466Snwhitehorn#include <sys/cdefs.h> 3680183Sjkh 3780183Sjkhextern uint32_t crc_total; 3880183Sjkhextern uint32_t crc32_total; 39245177Shrs 4080183Sjkh__BEGIN_DECLS 4180183Sjkhint crc(int, uint32_t *, off_t *); 42246283Shrsvoid pcrc(char *, uint32_t, off_t); 43245177Shrsvoid psum1(char *, uint32_t, off_t); 44246283Shrsvoid psum2(char *, uint32_t, off_t); 45219856Snwhitehornint csum1(int, uint32_t *, off_t *); 46int csum2(int, uint32_t *, off_t *); 47int crc32(int, uint32_t *, off_t *); 48__END_DECLS 49