|
#define | MAGICLEN 4 /* length */ |
|
#define | HDFMAGIC "\016\003\023\001" /* ^N^C^S^A */ |
|
#define | DD_SZ 12 /* 2+2+4+4 */ |
|
#define | NDDS_SZ 2 |
|
#define | OFFSET_SZ 4 |
|
#define | INVALID_OFFSET -1 |
|
#define | INVALID_LENGTH -1 |
|
#define | HI_OPEN(p, a) (((a)&DFACC_WRITE) ? fopen((p), "rb+") : fopen((p), "rb")) |
|
#define | HI_CREATE(p) (fopen((p), "wb+")) |
|
#define | HI_READ(f, b, n) (((size_t)(n) == (size_t)fread((b), 1, (size_t)(n), (f))) ? SUCCEED : FAIL) |
|
#define | HI_WRITE(f, b, n) (((size_t)(n) == (size_t)fwrite((b), 1, (size_t)(n), (f))) ? SUCCEED : FAIL) |
|
#define | HI_CLOSE(f) (((f = ((fclose(f) == 0) ? NULL : f)) == NULL) ? SUCCEED : FAIL) |
|
#define | HI_FLUSH(f) (fflush(f) == 0 ? SUCCEED : FAIL) |
|
#define | HI_SEEK(f, o) (fseek((f), (long)(o), SEEK_SET) == 0 ? SUCCEED : FAIL) |
|
#define | HI_SEEK_CUR(f, o) (fseek((f), (long)(o), SEEK_CUR) == 0 ? SUCCEED : FAIL) |
|
#define | HI_SEEKEND(f) (fseek((f), (long)0, SEEK_END) == 0 ? SUCCEED : FAIL) |
|
#define | HI_TELL(f) (ftell(f)) |
|
#define | OPENERR(f) ((f) == (FILE *)NULL) |
|
#define | DDLIST_DIRTY 0x01 /* mark whether to flush dirty DD blocks */ |
|
#define | FILE_END_DIRTY 0x02 /* indicate that the file needs to be extended */ |
|
#define | FIDTYPE 1 |
|
#define | AIDTYPE 2 |
|
#define | GROUPTYPE 3 |
|
#define | SDSTYPE 4 |
|
#define | DIMTYPE 5 |
|
#define | CDFTYPE 6 |
|
#define | VGIDTYPE 8 /* also defined in vg.h for Vgroups */ |
|
#define | VSIDTYPE 9 /* also defined in vg.h for Vsets */ |
|
#define | BITTYPE 10 /* For bit-accesses */ |
|
#define | GRIDTYPE 11 /* for GR access */ |
|
#define | RIIDTYPE 12 /* for RI access */ |
|
#define | BADFREC(r) ((r) == NULL || (r)->refcount == 0) |
|
#define | BASETAG(t) (uint16)((~(t)&0x8000) ? ((t) & ~0x4000) : (t)) |
|
#define | SPECIALTAG(t) (uint16)((~(t)&0x8000) && ((t)&0x4000)) |
|
#define | MKSPECIALTAG(t) (uint16)((~(t)&0x8000) ? ((t) | 0x4000) : DFTAG_NULL) |
|
|
accrec_t * | HIget_access_rec (void) |
|
void | HIrelease_accrec_node (accrec_t *acc) |
|
void * | HIgetspinfo (accrec_t *access_rec) |
|
intn | HPcompare_filerec_path (const void *obj, const void *key) |
|
intn | HPcompare_accrec_tagref (const void *rec1, const void *rec2) |
|
int32 | HPgetdiskblock (filerec_t *file_rec, int32 block_size, intn moveto) |
|
intn | HPfreediskblock (filerec_t *file_rec, int32 block_offset, int32 block_size) |
|
intn | HPisfile_in_use (const char *path) |
|
int32 | HDcheck_empty (int32 file_id, uint16 tag, uint16 ref, intn *emptySDS) |
|
int32 | HDget_special_info (int32 access_id, sp_info_block_t *info_block) |
|
int32 | HDset_special_info (int32 access_id, sp_info_block_t *info_block) |
|
intn | HP_read (filerec_t *file_rec, void *buf, int32 bytes) |
|
intn | HPseek (filerec_t *file_rec, int32 offset) |
|
intn | HP_write (filerec_t *file_rec, const void *buf, int32 bytes) |
|
int32 | HPread_drec (int32 file_id, atom_t data_id, uint8 **drec_buf) |
|
intn | tagcompare (void *k1, void *k2, intn cmparg) |
|
void | tagdestroynode (void *n) |
|
int32 | HLPstread (accrec_t *access_rec) |
|
int32 | HLPstwrite (accrec_t *access_rec) |
|
int32 | HLPseek (accrec_t *access_rec, int32 offset, int origin) |
|
int32 | HLPread (accrec_t *access_rec, int32 length, void *data) |
|
int32 | HLPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
int32 | HLPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
intn | HLPendaccess (accrec_t *access_rec) |
|
int32 | HLPcloseAID (accrec_t *access_rec) |
|
int32 | HLPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
int32 | HXPstread (accrec_t *rec) |
|
int32 | HXPstwrite (accrec_t *rec) |
|
int32 | HXPseek (accrec_t *access_rec, int32 offset, int origin) |
|
int32 | HXPread (accrec_t *access_rec, int32 length, void *data) |
|
int32 | HXPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
int32 | HXPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
intn | HXPendaccess (accrec_t *access_rec) |
|
int32 | HXPcloseAID (accrec_t *access_rec) |
|
int32 | HXPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
int32 | HXPreset (accrec_t *access_rec, sp_info_block_t *info_block) |
|
intn | HXPsetaccesstype (accrec_t *access_rec) |
|
intn | HXPshutdown (void) |
|
int32 | HCPstread (accrec_t *rec) |
|
int32 | HCPstwrite (accrec_t *rec) |
|
int32 | HCPseek (accrec_t *access_rec, int32 offset, int origin) |
|
int32 | HCPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
int32 | HCPread (accrec_t *access_rec, int32 length, void *data) |
|
int32 | HCPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
intn | HCPendaccess (accrec_t *access_rec) |
|
int32 | HCPcloseAID (accrec_t *access_rec) |
|
int32 | HCPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
int32 | get_comp_len (accrec_t *access_rec) |
|
int32 | HBPstread (accrec_t *rec) |
|
int32 | HBPstwrite (accrec_t *rec) |
|
int32 | HBPseek (accrec_t *access_rec, int32 offset, int origin) |
|
int32 | HBPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
int32 | HBPread (accrec_t *access_rec, int32 length, void *data) |
|
int32 | HBPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
intn | HBPendaccess (accrec_t *access_rec) |
|
int32 | HBPcloseAID (accrec_t *access_rec) |
|
int32 | HBPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
int32 | HRPstread (accrec_t *rec) |
|
int32 | HRPstwrite (accrec_t *rec) |
|
int32 | HRPseek (accrec_t *access_rec, int32 offset, int origin) |
|
int32 | HRPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
int32 | HRPread (accrec_t *access_rec, int32 length, void *data) |
|
int32 | HRPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
intn | HRPendaccess (accrec_t *access_rec) |
|
int32 | HRPcloseAID (accrec_t *access_rec) |
|
int32 | HRPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
intn | HTPstart (filerec_t *file_rec) |
|
intn | HTPinit (filerec_t *file_rec, int16 ndds) |
|
intn | HTPsync (filerec_t *file_rec) |
|
intn | HTPend (filerec_t *file_rec) |
|
atom_t | HTPcreate (filerec_t *file_rec, uint16 tag, uint16 ref) |
|
atom_t | HTPselect (filerec_t *file_rec, uint16 tag, uint16 ref) |
|
intn | HTPendaccess (atom_t ddid) |
|
intn | HTPdelete (atom_t ddid) |
|
intn | HTPupdate (atom_t ddid, int32 new_off, int32 new_len) |
|
intn | HTPinquire (atom_t ddid, uint16 *tag, uint16 *ref, int32 *off, int32 *len) |
|
intn | HTPis_special (atom_t ddid) |
|
intn | HTPdump_dds (int32 file_id, FILE *fout) |
|