/usr/include/hdf/hdf.h is in libhdf4-alt-dev 4.2r4-12build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF. The full HDF copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at *
* http://hdfgroup.org/products/hdf4/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* $Id: hdf.h 4932 2007-09-07 17:17:23Z bmribler $ */
#ifndef HDF_H
#define HDF_H
#include "h4config.h"
#include "hdfi.h"
#include "hlimits.h"
/* Internal DF structure */
typedef struct
{
uint16 tag; /* tag of element */
uint16 ref; /* ref of element */
}
DFdi;
/* For annotations */
/* enumerated types of the varous annotation types */
typedef enum
{
AN_UNDEF = -1,
AN_DATA_LABEL = 0, /* Data label */
AN_DATA_DESC, /* Data description */
AN_FILE_LABEL, /* File label */
AN_FILE_DESC /* File description */
} ann_type;
/* internal file access codes */
#define DFACC_READ 1
#define DFACC_WRITE 2
#define DFACC_CREATE 4
#define DFACC_ALL 7
#define DFACC_RDONLY 1
#define DFACC_RDWR 3
#define DFACC_CLOBBER 4
/* New file access codes (for Hstartaccess only, currently) */
#define DFACC_BUFFER 8 /* buffer the access to this AID */
#define DFACC_APPENDABLE 0x10 /* make this AID appendable */
#define DFACC_CURRENT 0x20 /* start looking for a tag/ref from the current */
/* location in the DD list (useful for continued */
/* searching ala findfirst/findnext) */
/* External Element File access mode */
/* #define DFACC_CREATE 4 is for creating new external element file */
#define DFACC_OLD 1 /* for accessing existing ext. element file */
/* The magic cookie for Hcache to cache all files */
#define CACHE_ALL_FILES (-2)
/* File access modes */
/* 001--007 for different serial modes */
/* 011--017 for different parallel modes */
#define DFACC_DEFAULT 000
#define DFACC_SERIAL 001
#define DFACC_PARALLEL 011
/* used by Hnextread to determine where to start searching for the
next tag/ref to read */
#define DF_START 0
#define DF_CURRENT 1
#define DF_END 2
/* Used by Hfind to determine the direction to search for tag/ref's in the */
/* file. */
#define DF_FORWARD 1
#define DF_BACKWARD 2
/* return code - since some unix/c routines use 0 and -1 as their return
code, and some assumption had been made in the code about that, it is
important to keep these constants the same values. For explicitly
boolean functions, use TRUE and FALSE */
#define SUCCEED 0
#define FAIL (-1)
/* boolean values, reminder: NEVER compare with numeric values */
#ifndef FALSE
# define FALSE 0
#endif
#ifndef TRUE
# define TRUE (!FALSE)
#endif
/* macros */
#define STREQ(s, t) (HDstrcmp((s), (t)) == 0)
#define NSTREQ(s, t, n) (HDstrncmp((s), (t), (n)) == 0)
/*
* Macros used for variable and function scoping in code.....
*/
#ifndef EXPORT
#define EXPORT
#endif
#ifndef PRIVATE
#define PRIVATE static
#endif
/* Include the Number-type definitions */
#include "hntdefs.h"
/* Include the Tag definitions */
#include "htags.h"
/*
* interlacing supported by the vset.
*/
#define FULL_INTERLACE 0
#define NO_INTERLACE 1
/* type for File ID to send to Hlevel from Vxx interface */
typedef int32 HFILEID;
typedef intn (*hdf_termfunc_t)(void); /* termination function typedef */
/* .................................................................. */
/* Publically accessible functions declarations. This includes all the
functions that are used by application programs. */
#include "hbitio.h"
#include "hcomp.h"
#include "herr.h"
#include "hproto.h"
#include "vg.h" /* Add the Vgroup/Vdata header so the users don't have to */
#include "mfgr.h" /* Add the GR header so the users don't have to */
/* these may eventaully evolve into real-life functions but not yet */
#define HDFopen(f,a,d) Hopen((f), (a), (d))
#define HDFclose(f) Hclose((f))
#define Vstart(f) Vinitialize((f))
#define Vend(f) Vfinish((f))
/* Misc. macros for backward compability */
#define HDgettagname(tag) HDgettagdesc(tag)
/* This is also defined in fmpio.h */
#define MP_PAGEALL 0x01 /* page the whole file i.e. no limit on 'maxcache'*/
#endif /* HDF_H */
|