|
#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 | LIBVER_MAJOR 4 |
|
#define | LIBVER_MINOR 2 |
|
#define | LIBVER_RELEASE 6 |
|
#define | LIBVER_SUBRELEASE "" /* For pre-releases like snap0 */ |
|
#define | LIBVER_STRING "HDF Version 4.2 Release 6, June 14, 2011" |
|
#define | LIBVSTR_LEN 80 /* length of version string */ |
|
#define | LIBVER_LEN 92 /* 4+4+4+80 = 92 */ |
|
#define | FILELIB UNIXBUFIO /* UNIX buffered I/O is the default */ |
|
#define | HI_OPEN(p, a) |
|
#define | HI_CREATE(p) (fopen((p), "wb+")) |
|
#define | HI_READ(f, b, n) |
|
#define | HI_WRITE(f, b, n) |
|
#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) |
|
|
HDFLIBAPI accrec_t * | HIget_access_rec (void) |
|
HDFLIBAPI void | HIrelease_accrec_node (accrec_t *acc) |
|
HDFLIBAPI void * | HIgetspinfo (accrec_t *access_rec) |
|
HDFLIBAPI intn | HPcompare_filerec_path (const void *obj, const void *key) |
|
HDFLIBAPI intn | HPcompare_accrec_tagref (const void *rec1, const void *rec2) |
|
HDFLIBAPI int32 | HPgetdiskblock (filerec_t *file_rec, int32 block_size, intn moveto) |
|
HDFLIBAPI intn | HPfreediskblock (filerec_t *file_rec, int32 block_offset, int32 block_size) |
|
HDFLIBAPI intn | HPisfile_in_use (const char *path) |
|
HDFLIBAPI int32 | HDcheck_empty (int32 file_id, uint16 tag, uint16 ref, intn *emptySDS) |
|
HDFLIBAPI int32 | HDget_special_info (int32 access_id, sp_info_block_t *info_block) |
|
HDFLIBAPI intn | HDgetspecinfo (intn file_id, uint16 tag, uint16 ref, sp_info_block_t *info) |
|
HDFLIBAPI int32 | HDset_special_info (int32 access_id, sp_info_block_t *info_block) |
|
HDFLIBAPI intn | HP_read (filerec_t *file_rec, void *buf, int32 bytes) |
|
HDFLIBAPI intn | HPseek (filerec_t *file_rec, int32 offset) |
|
HDFLIBAPI intn | HP_write (filerec_t *file_rec, const void *buf, int32 bytes) |
|
HDFLIBAPI int32 | HPread_drec (int32 file_id, atom_t data_id, uint8 **drec_buf) |
|
HDFLIBAPI intn | tagcompare (void *k1, void *k2, intn cmparg) |
|
HDFLIBAPI VOID | tagdestroynode (void *n) |
|
HDFLIBAPI int32 | HLPstread (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HLPstwrite (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HLPseek (accrec_t *access_rec, int32 offset, int origin) |
|
HDFLIBAPI int32 | HLPread (accrec_t *access_rec, int32 length, void *data) |
|
HDFLIBAPI int32 | HLPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
HDFLIBAPI int32 | HLPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
HDFLIBAPI intn | HLPendaccess (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HLPcloseAID (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HLPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
HDFLIBAPI int32 | HXPstread (accrec_t *rec) |
|
HDFLIBAPI int32 | HXPstwrite (accrec_t *rec) |
|
HDFLIBAPI int32 | HXPseek (accrec_t *access_rec, int32 offset, int origin) |
|
HDFLIBAPI int32 | HXPread (accrec_t *access_rec, int32 length, void *data) |
|
HDFLIBAPI int32 | HXPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
HDFLIBAPI int32 | HXPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
HDFLIBAPI intn | HXPendaccess (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HXPcloseAID (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HXPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
HDFLIBAPI int32 | HXPreset (accrec_t *access_rec, sp_info_block_t *info_block) |
|
HDFLIBAPI intn | HXPsetaccesstype (accrec_t *access_rec) |
|
HDFLIBAPI intn | HXPshutdown (void) |
|
HDFLIBAPI int32 | HCPstread (accrec_t *rec) |
|
HDFLIBAPI int32 | HCPstwrite (accrec_t *rec) |
|
HDFLIBAPI int32 | HCPseek (accrec_t *access_rec, int32 offset, int origin) |
|
HDFLIBAPI int32 | HCPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
HDFLIBAPI int32 | HCPread (accrec_t *access_rec, int32 length, void *data) |
|
HDFLIBAPI int32 | HCPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
HDFLIBAPI intn | HCPendaccess (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HCPcloseAID (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HCPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
HDFLIBAPI int32 | get_comp_len (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HBPstread (accrec_t *rec) |
|
HDFLIBAPI int32 | HBPstwrite (accrec_t *rec) |
|
HDFLIBAPI int32 | HBPseek (accrec_t *access_rec, int32 offset, int origin) |
|
HDFLIBAPI int32 | HBPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
HDFLIBAPI int32 | HBPread (accrec_t *access_rec, int32 length, void *data) |
|
HDFLIBAPI int32 | HBPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
HDFLIBAPI intn | HBPendaccess (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HBPcloseAID (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HBPinfo (accrec_t *access_rec, sp_info_block_t *info_block) |
|
HDFLIBAPI int32 | HRPstread (accrec_t *rec) |
|
HDFLIBAPI int32 | HRPstwrite (accrec_t *rec) |
|
HDFLIBAPI int32 | HRPseek (accrec_t *access_rec, int32 offset, int origin) |
|
HDFLIBAPI int32 | HRPinquire (accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial) |
|
HDFLIBAPI int32 | HRPread (accrec_t *access_rec, int32 length, void *data) |
|
HDFLIBAPI int32 | HRPwrite (accrec_t *access_rec, int32 length, const void *data) |
|
HDFLIBAPI intn | HRPendaccess (accrec_t *access_rec) |
|
HDFLIBAPI int32 | HRPcloseAID (accrec_t *access_rec) |
|
HDFLIBAPI 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) |
|