[BACK]Return to compress.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / compress

Annotation of src/usr.bin/compress/compress.h, Revision 1.4

1.4     ! mickey      1: /*     $OpenBSD: compress.h,v 1.3 2002/12/08 16:07:54 mickey Exp $     */
1.1       mickey      2:
                      3: /*
                      4:  * Copyright (c) 1997 Michael Shalayeff
                      5:  * All rights reserved.
                      6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
                     15:  *
1.3       mickey     16:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     17:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1.1       mickey     18:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     19:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     20:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     21:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     22:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     23:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     24:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     25:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     26:  * SUCH DAMAGE.
                     27:  *
                     28:  */
                     29:
1.3       mickey     30: /*
                     31:  * making it any bigger does not affect perfomance very much.
                     32:  * actually this value is just a little bit better than 8192.
                     33:  */
1.1       mickey     34: #define Z_BUFSIZE 16384
                     35:
1.3       mickey     36: extern const char main_rcsid[], z_rcsid[], gz_rcsid[], pkzip_rcsid[],
                     37:     pack_rcsid[], lzh_rcsid[];
                     38:
1.2       millert    39: extern int z_check_header(int, struct stat *, const char *);
                     40: extern void *z_open(int, const char *, int);
                     41: extern FILE *zopen(const char *, const char *,int);
                     42: extern int zread(void *, char *, int);
                     43: extern int zwrite(void *, const char *, int);
                     44: extern int zclose(void *);
1.3       mickey     45:
1.2       millert    46: extern int gz_check_header(int, struct stat *, const char *);
                     47: extern void *gz_open(int, const char *, int);
                     48: extern int gz_read(void *, char *, int);
                     49: extern int gz_write(void *, const char *, int);
                     50: extern int gz_close(void *);
                     51: extern int gz_flush(void *, int);
1.3       mickey     52:
                     53: extern int lzh_check_header(int, struct stat *, const char *);
                     54: extern void *lzh_open(int, const char *, int);
                     55: extern int lzh_read(void *, char *, int);
                     56: extern int lzh_write(void *, const char *, int);
                     57: extern int lzh_close(void *);
                     58: extern int lzh_flush(void *, int);