2
#ifndef util_class_psi3_libpsio_psio_gbl_
3
#define util_class_psi3_libpsio_psio_gbl_
10
#define PSIO_MAXUNIT 300
11
#define PSIO_MAXSTR 512
12
#define PSIO_PAGELEN 65536
14
typedef unsigned long int ULI; /* For convenience */
17
ULI page; /* First page of entry */
18
ULI offset; /* Starting byte offset on fpage */
22
char key[PSIO_KEYLEN];
25
struct psio_entry *next;
26
struct psio_entry *last;
29
typedef struct psio_entry psio_tocentry;
38
psio_vol vol[PSIO_MAXVOL];
39
psio_address tocaddress;
44
extern psio_ud *psio_unit;
46
#define PSIO_ERROR_INIT 1
47
#define PSIO_ERROR_DONE 2
48
#define PSIO_ERROR_MAXVOL 3
49
#define PSIO_ERROR_NOVOLPATH 4
50
#define PSIO_ERROR_OPEN 5
51
#define PSIO_ERROR_REOPEN 6
52
#define PSIO_ERROR_CLOSE 7
53
#define PSIO_ERROR_RECLOSE 8
54
#define PSIO_ERROR_OSTAT 9
55
#define PSIO_ERROR_LSEEK 10
56
#define PSIO_ERROR_READ 11
57
#define PSIO_ERROR_WRITE 12
58
#define PSIO_ERROR_NOTOCENT 13
59
#define PSIO_ERROR_TOCENTSZ 14
60
#define PSIO_ERROR_KEYLEN 15
61
#define PSIO_ERROR_BLKSIZ 16
62
#define PSIO_ERROR_BLKSTART 17
63
#define PSIO_ERROR_BLKEND 18
64
#define PSIO_ERROR_IDENTVOLPATH 19
66
#define PSIO_OPEN_NEW 0
67
#define PSIO_OPEN_OLD 1
72
#endif /* #ifndef PSIO_GBL */