summaryrefslogtreecommitdiff
path: root/minigzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'minigzip.c')
-rw-r--r--minigzip.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/minigzip.c b/minigzip.c
index 4936d64..d3d2fe9 100644
--- a/minigzip.c
+++ b/minigzip.c
@@ -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
21extern void exit __P((int)); 21extern void exit __P((int));
22extern 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
39char *prog; 45char *prog;
40 46
47void error __P((char *msg));
48void gz_compress __P((FILE *in, gzFile out));
49void gz_uncompress __P((gzFile in, FILE *out));
50void file_compress __P((char *file));
51void file_uncompress __P((char *file));
52void main __P((int argc, char *argv[]));
53
41/* =========================================================================== 54/* ===========================================================================
42 * Display error message and exit 55 * Display error message and exit
43 */ 56 */