summaryrefslogtreecommitdiff
path: root/vms/zipup.h
blob: 8fe757fe9d4391fdc89a390e54f310afca6450cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
  Copyright (c) 1990-2005 Info-ZIP.  All rights reserved.

  See the accompanying file LICENSE, version 2005-Feb-10 or later
  (the contents of which are also included in zip.h) for terms of use.
  If, for some reason, all these files are missing, the Info-ZIP license
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
*/

#ifndef __zipup_h
#define __zipup_h 1

#ifndef NO_ZIPUP_H

#define fbad NULL
typedef void *ftype;
#define zopen(n,p)   (vms_native?vms_open(n)    :(ftype)fopen((n), p))
#define zread(f,b,n) (vms_native?vms_read(f,b,n):fread((b),1,(n),(FILE*)(f)))
#define zclose(f)    (vms_native?vms_close(f)   :fclose((FILE*)(f)))
#define zerr(f)      (vms_native?vms_error(f)   :ferror((FILE*)(f)))
#define zstdin stdin

ftype vms_open OF((char *));
unsigned int vms_read OF((ftype, char *, unsigned int));
int vms_close OF((ftype));
int vms_error OF((ftype));
#ifdef VMS_PK_EXTRA
int vms_get_attributes OF((ftype, struct zlist far *, iztimes *));
#endif

#endif /* !NO_ZIPUP_H */
#endif /* !__zipup_h */


#ifndef __zipup_cb_h
#define __zipup_cb_h 1

#ifdef __DECC

/* File open callback ID values.  (See also OSDEP.H.) */

#  define FHOW_ID 4

/* File open callback ID storage. */

extern int fhow_id;

#define fhow "r", "acc", acc_cb, &fhow_id

#else /* def __DECC */ /* (So, GNU C, VAX C, ...)*/

#define fhow "r", "mbc=60"

#endif /* def __DECC */

#endif /* ndef __zipup_cb_h */