Debian Codegraph @

vms/zipup.h

raw
1 /*
2 Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
3
4 See the accompanying file LICENSE, version 2005-Feb-10 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
10 #ifndef __zipup_h
11 #define __zipup_h 1
12
13 #ifndef NO_ZIPUP_H
14
15 #define fbad NULL
16 typedef void *ftype;
17 #define zopen(n,p) (vms_native?vms_open(n) :(ftype)fopen((n), p))
18 #define zread(f,b,n) (vms_native?vms_read(f,b,n):fread((b),1,(n),(FILE*)(f)))
19 #define zclose(f) (vms_native?vms_close(f) :fclose((FILE*)(f)))
20 #define zerr(f) (vms_native?vms_error(f) :ferror((FILE*)(f)))
21 #define zstdin stdin
22
23 ftype vms_open OF((char *));
24 unsigned int vms_read OF((ftype, char *, unsigned int));
25 int vms_close OF((ftype));
26 int vms_error OF((ftype));
27 #ifdef VMS_PK_EXTRA
28 int vms_get_attributes OF((ftype, struct zlist far *, iztimes *));
29 #endif
30
31 #endif /* !NO_ZIPUP_H */
32 #endif /* !__zipup_h */
33
34
35 #ifndef __zipup_cb_h
36 #define __zipup_cb_h 1
37
38 #ifdef __DECC
39
40 /* File open callback ID values. (See also OSDEP.H.) */
41
42 # define FHOW_ID 4
43
44 /* File open callback ID storage. */
45
46 extern int fhow_id;
47
48 #define fhow "r", "acc", acc_cb, &fhow_id
49
50 #else /* def __DECC */ /* (So, GNU C, VAX C, ...)*/
51
52 #define fhow "r", "mbc=60"
53
54 #endif /* def __DECC */
55
56 #endif /* ndef __zipup_cb_h */