1
#ifndef _psi_src_lib_libpsio_config_h_
2
#define _psi_src_lib_libpsio_config_h_
4
#define PSIO_OPEN_NEW 0
5
#define PSIO_OPEN_OLD 1
9
#define PSIO_MAXUNIT 300
10
#define PSIO_PAGELEN 65536
12
#define PSIO_ERROR_INIT 1
13
#define PSIO_ERROR_DONE 2
14
#define PSIO_ERROR_MAXVOL 3
15
#define PSIO_ERROR_NOVOLPATH 4
16
#define PSIO_ERROR_OPEN 5
17
#define PSIO_ERROR_REOPEN 6
18
#define PSIO_ERROR_CLOSE 7
19
#define PSIO_ERROR_RECLOSE 8
20
#define PSIO_ERROR_OSTAT 9
21
#define PSIO_ERROR_LSEEK 10
22
#define PSIO_ERROR_READ 11
23
#define PSIO_ERROR_WRITE 12
24
#define PSIO_ERROR_NOTOCENT 13
25
#define PSIO_ERROR_TOCENTSZ 14
26
#define PSIO_ERROR_KEYLEN 15
27
#define PSIO_ERROR_BLKSIZ 16
28
#define PSIO_ERROR_BLKSTART 17
29
#define PSIO_ERROR_BLKEND 18
30
#define PSIO_ERROR_IDENTVOLPATH 19
31
#define PSIO_ERROR_MAXUNIT 20
33
typedef unsigned long int ULI; /* For convenience */
36
ULI page; /* First page of entry */
37
ULI offset; /* Starting byte offset on fpage */
45
typedef struct psio_entry {
46
char key[PSIO_KEYLEN];
49
struct psio_entry *next;
50
struct psio_entry *last;
55
psio_vol vol[PSIO_MAXVOL];
60
/** A convenient address initialization struct */
61
extern psio_address PSIO_ZERO;
63
#endif /* header guard */