Debian Codegraph @

tandem/tanzip.h

raw
1 /*
2 Copyright (c) 1990-2002 Info-ZIP. All rights reserved.
3
4 See the accompanying file LICENSE, version 2000-Apr-09 or later
5 (the contents of which are also included in zip.h) for terms of use.
6 If, for some reason, all these files are missing, the Info-ZIP license
7 also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
8 */
9 #ifndef __tanzip_h /* prevent multiple inclusions */
10 #define __tanzip_h
11
12 # define fopen nskopen /* To allow us to set extent sizes */
13
14 # define USE_CASE_MAP
15
16 FILE *nskopen(const char *, const char *);
17 int zopen (const char *, int);
18 int zclose (int);
19 unsigned zread (int, char *, unsigned);
20 void nskformatopt(char *);
21
22 #define getpid zgetpid
23 unsigned zgetpid (void);
24
25 #define CBSZ 0x10000 /* Was used for both fcopy and file_read. */
26 /* Created separate define (SBSZ) for file_read */
27 /* fcopy param is type size_t (unsigned long) */
28 /* For Guardian we choose a multiple of 4K */
29
30 #define ZBSZ 0x10000 /* This is used in call to setvbuf, 64K seems to work */
31 /* in all memory models. Again it is an unsigned long */
32 /* For Guardian we choose a multiple of 4K */
33
34 #ifndef __INT32
35 #define SBSZ 0x0e000 /* Maximum of size unsigned (int). Only used in STORE */
36 /* method. We can use up to 56K bytes thanks to large */
37 /* transfer mode. Note WSIZE is limited to 32K, which */
38 /* limits the DEFLATE read size to same value. */
39 #else
40 #define SBSZ 0x10000 /* WIDE model so we can use 64K */
41 #endif /* __INT32 */
42
43 #endif /* !__tanzip_h */