diff options
Diffstat (limited to 'minigzip.c')
-rw-r--r-- | minigzip.c | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -13,15 +13,21 @@ | |||
13 | * or in pipe mode. | 13 | * or in pipe mode. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* $Id: minigzip.c,v 1.2 1995/04/14 20:03:12 jloup Exp $ */ | 16 | /* $Id: minigzip.c,v 1.3 1995/04/29 14:27:21 jloup Exp $ */ |
17 | 17 | ||
18 | #include <stdio.h> | 18 | #include <stdio.h> |
19 | #include "zlib.h" | 19 | #include "zlib.h" |
20 | 20 | ||
21 | extern void exit __P((int)); | 21 | extern void exit __P((int)); |
22 | extern int unlink __P((const char *)); | ||
23 | |||
24 | #ifdef STDC | ||
25 | # include <string.h> | ||
26 | #endif | ||
22 | 27 | ||
23 | #ifdef MSDOS | 28 | #ifdef MSDOS |
24 | # include <fcntl.h> /* ??? find where setmode declared */ | 29 | # include <fcntl.h> |
30 | # include <io.h> | ||
25 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) | 31 | # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |
26 | #else | 32 | #else |
27 | # define SET_BINARY_MODE(file) | 33 | # define SET_BINARY_MODE(file) |
@@ -38,6 +44,13 @@ extern void exit __P((int)); | |||
38 | 44 | ||
39 | char *prog; | 45 | char *prog; |
40 | 46 | ||
47 | void error __P((char *msg)); | ||
48 | void gz_compress __P((FILE *in, gzFile out)); | ||
49 | void gz_uncompress __P((gzFile in, FILE *out)); | ||
50 | void file_compress __P((char *file)); | ||
51 | void file_uncompress __P((char *file)); | ||
52 | void main __P((int argc, char *argv[])); | ||
53 | |||
41 | /* =========================================================================== | 54 | /* =========================================================================== |
42 | * Display error message and exit | 55 | * Display error message and exit |
43 | */ | 56 | */ |