subpack-glpk
Line | |
---|
1 | /* gzguts.h (zlib internal header definitions for gz* operations) */ |
---|
2 | |
---|
3 | /* Modified by Andrew Makhorin <mao@gnu.org>, April 2011 */ |
---|
4 | |
---|
5 | /* Copyright (C) 2004, 2005, 2010 Mark Adler |
---|
6 | * For conditions of distribution and use, see copyright notice in |
---|
7 | * zlib.h */ |
---|
8 | |
---|
9 | /* WARNING: this file should *not* be used by applications. It is |
---|
10 | part of the implementation of the compression library and is |
---|
11 | subject to change. Applications should only use zlib.h. */ |
---|
12 | |
---|
13 | #ifndef GZGUTS_H |
---|
14 | #define GZGUTS_H |
---|
15 | |
---|
16 | #define ZLIB_INTERNAL |
---|
17 | |
---|
18 | #include <errno.h> |
---|
19 | #include <limits.h> |
---|
20 | #include <stdio.h> |
---|
21 | #include <stdlib.h> |
---|
22 | #include <string.h> |
---|
23 | #include "zio.h" |
---|
24 | #include "zlib.h" |
---|
25 | |
---|
26 | #define local static |
---|
27 | |
---|
28 | #define zstrerror() strerror(errno) |
---|
29 | |
---|
30 | #define GZBUFSIZE 8192 |
---|
31 | |
---|
32 | #define GZ_NONE 0 |
---|
33 | #define GZ_READ 7247 |
---|
34 | #define GZ_WRITE 31153 |
---|
35 | #define GZ_APPEND 1 |
---|
36 | |
---|
37 | #define LOOK 0 |
---|
38 | #define COPY 1 |
---|
39 | #define GZIP 2 |
---|
40 | |
---|
41 | typedef struct |
---|
42 | { int mode; |
---|
43 | int fd; |
---|
44 | char *path; |
---|
45 | z_off64_t pos; |
---|
46 | unsigned size; |
---|
47 | unsigned want; |
---|
48 | unsigned char *in; |
---|
49 | unsigned char *out; |
---|
50 | unsigned char *next; |
---|
51 | unsigned have; |
---|
52 | int eof; |
---|
53 | z_off64_t start; |
---|
54 | z_off64_t raw; |
---|
55 | int how; |
---|
56 | int direct; |
---|
57 | int level; |
---|
58 | int strategy; |
---|
59 | z_off64_t skip; |
---|
60 | int seek; |
---|
61 | int err; |
---|
62 | char *msg; |
---|
63 | z_stream strm; |
---|
64 | } gz_state; |
---|
65 | |
---|
66 | typedef gz_state *gz_statep; |
---|
67 | |
---|
68 | void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *)); |
---|
69 | |
---|
70 | #define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) |
---|
71 | |
---|
72 | #endif |
---|
73 | |
---|
74 | /* eof */ |
---|
Note: See
TracBrowser
for help on using the repository browser.