6
#define PSIO_OPEN_NEW 0
7
#define PSIO_OPEN_OLD 1
11
#define PSIO_MAXUNIT 300
12
#define PSIO_MAXSTR 512
13
#define PSIO_PAGELEN 65536
15
typedef unsigned long int ULI; /* For convenience */
18
ULI page; /* First page of entry */
19
ULI offset; /* Starting byte offset on fpage */
7
22
/* A convenient address initialization struct */
8
23
extern psio_address PSIO_ZERO;
26
char key[PSIO_KEYLEN];
29
struct psio_entry *next;
30
struct psio_entry *last;
33
typedef struct psio_entry psio_tocentry;
42
psio_vol vol[PSIO_MAXVOL];
47
extern psio_ud *psio_unit;
49
#define PSIO_ERROR_INIT 1
50
#define PSIO_ERROR_DONE 2
51
#define PSIO_ERROR_MAXVOL 3
52
#define PSIO_ERROR_NOVOLPATH 4
53
#define PSIO_ERROR_OPEN 5
54
#define PSIO_ERROR_REOPEN 6
55
#define PSIO_ERROR_CLOSE 7
56
#define PSIO_ERROR_RECLOSE 8
57
#define PSIO_ERROR_OSTAT 9
58
#define PSIO_ERROR_LSEEK 10
59
#define PSIO_ERROR_READ 11
60
#define PSIO_ERROR_WRITE 12
61
#define PSIO_ERROR_NOTOCENT 13
62
#define PSIO_ERROR_TOCENTSZ 14
63
#define PSIO_ERROR_KEYLEN 15
64
#define PSIO_ERROR_BLKSIZ 16
65
#define PSIO_ERROR_BLKSTART 17
66
#define PSIO_ERROR_BLKEND 18
67
#define PSIO_ERROR_IDENTVOLPATH 19
68
#define PSIO_ERROR_MAXUNIT 20
11
71
extern ULI *psio_readlen;
12
72
extern ULI *psio_writlen;
57
117
int psio_open_check(unsigned int unit);
119
ULI psio_rd_toclen(unsigned int unit);
120
void psio_wt_toclen(unsigned int unit, ULI toclen);
60
122
#endif /* #ifndef PSIO_H */