00001 #ifndef atrdef_h 00002 #define atrdef_h 00003 00004 #define ATR_C_UCHAR 3 00005 #define ATR_C_RECATTR 4 00006 #define ATR_C_FILNAM 5 00007 #define ATR_C_FILTYP 6 00008 #define ATR_C_FILVER 7 00009 #define ATR_C_EXPDAT 8 00010 #define ATR_C_STATBLK 9 00011 #define ATR_C_HEADER 10 00012 #define ATR_C_BLOCKSIZE 11 00013 #define ATR_C_USERLABEL 12 00014 #define ATR_C_ASCDATES 13 00015 #define ATR_C_ALCONTROL 14 00016 #define ATR_C_ENDLBLAST 15 00017 #define ATR_C_ASCNAME 16 00018 #define ATR_C_CREDATE 17 00019 #define ATR_C_REVDATE 18 00020 #define ATR_C_EXPDATE 19 00021 #define ATR_C_BAKDATE 20 00022 #define ATR_C_UIC 21 00023 #define ATR_C_FPRO 22 00024 #define ATR_C_RPRO 23 00025 #define ATR_C_ACLEVEL 24 00026 #define ATR_C_SEMASK 25 00027 #define ATR_C_UIC_RO 26 00028 #define ATR_C_DIRSEQ 27 00029 #define ATR_C_BACKLINK 28 00030 #define ATR_C_JOURNAL 29 00031 #define ATR_C_HDR1_ACC 30 00032 00033 #define ATR_C_ADDACLENT 31 00034 #define ATR_C_DELACLENT 32 00035 #define ATR_C_MODACLENT 33 00036 #define ATR_C_FNDACLENT 34 00037 #define ATR_C_FNDACLTYP 35 00038 #define ATR_C_DELETEACL 36 00039 #define ATR_C_READACL 37 00040 #define ATR_C_ACLLENGTH 38 00041 #define ATR_C_READACE 39 00042 #define ATR_C_RESERVED 40 00043 #define ATR_C_HIGHWATER 41 00044 #define ATR_C_DUMMY_0 42 00045 #define ATR_C_PRIVS_USED 43 00046 #define ATR_C_MATCHING_ACE 44 00047 #define ATR_C_ACCESS_MODE 45 00048 #define ATR_C_FILE_SPEC 46 00049 #define ATR_C_CLASS_MASK 47 00050 #define ATR_C_BUFFER_OFFSET 48 00051 #define ATR_C_RU_ACTIVE 49 00052 00053 #define ATR_C_GRANT_ACE 50 00054 #define ATR_C_NEXT_ACE 51 00055 #define ATR_C_DELETE_ALL 52 00056 #define ATR_C_BACKUP_DONE 53 00057 00058 #define ATR_C_EFFDATE 54 00059 #define ATR_C_RCDDATE 55 00060 #define ATR_C_VD 56 00061 #define ATR_C_PVD 57 00062 #define ATR_C_SVD 58 00063 #define ATR_C_VPD 59 00064 #define ATR_C_VDST 60 00065 #define ATR_C_BOOT 61 00066 #define ATR_C_PTR 62 00067 #define ATR_C_DIR 63 00068 #define ATR_C_XAR 64 00069 00070 #define ATR_C_VOLUME_ID 65 00071 #define ATR_C_VOLUME_FLAGS 66 00072 #define ATR_C_ESCAPE_SEQUENCES 67 00073 #define ATR_C_VOLUME_SET_ID 68 00074 #define ATR_C_COPYRIGHT_FID 69 00075 #define ATR_C_ABSTRACT_FID 70 00076 #define ATR_C_BIBLIOGRAPHIC_FID 71 00077 #define ATR_C_CACHE_SEQ 72 00078 #define ATR_C_FILE_SYSTEM_INFO 73 00079 #define ATR_C_FILE_ATTR_CACHING_POLICY 74 00080 #define ATR_C_FILE_DATA_CACHING_POLICY 75 00081 #define ATR_C_CACHING_OPTIONS 76 00082 #define ATR_C_POSIX_DATA 77 00083 #define ATR_C_ACCDATE 78 00084 #define ATR_C_ATTDATE 79 00085 #define ATR_C_LENGTH_HINT 80 00086 #define ATR_C_EX_RECATTR 81 00087 00088 #define ATR_C_EXTFLAGS 82 00089 00090 00091 #define ATR_C_MAX_PLUS1 83 00092 #define ATR_C_MAX_CODE 82 00093 #define ATR_C_FNDACETYP 35 00094 00095 #define ATR_C_CACHE_POLICY_WRITETHRU 1 00096 #define ATR_C_CACHE_POLICY_WRITEBACK 2 00097 #define ATR_C_CACHE_POLICY_DEFAULT 3 00098 00099 #define ATR_S_UCHAR 4 00100 #define ATR_S_RECATTR 32 00101 #define ATR_S_FILNAM 6 00102 #define ATR_S_FILTYP 2 00103 #define ATR_S_FILVER 2 00104 #define ATR_S_EXPDAT 7 00105 #define ATR_S_STATBLK 32 00106 #define ATR_S_HEADER 512 00107 #define ATR_S_BLOCKSIZE 2 00108 #define ATR_S_USERLABEL 80 00109 #define ATR_S_ASCDATES 35 00110 #define ATR_S_ALCONTROL 14 00111 #define ATR_S_ENDLBLAST 4 00112 #define ATR_S_ASCNAME 252 00113 #define ATR_S_CREDATE 8 00114 #define ATR_S_REVDATE 8 00115 #define ATR_S_EXPDATE 8 00116 #define ATR_S_BAKDATE 8 00117 #define ATR_S_UIC 4 00118 #define ATR_S_FPRO 2 00119 #define ATR_S_RPRO 2 00120 #define ATR_S_ACLEVEL 1 00121 #define ATR_S_SEMASK 8 00122 #define ATR_S_UIC_RO 4 00123 #define ATR_S_DIRSEQ 2 00124 #define ATR_S_BACKLINK 6 00125 #define ATR_S_JOURNAL 1 00126 #define ATR_S_HDR1_ACC 1 00127 00128 #define ATR_S_ADDACLENT 255 00129 #define ATR_S_DELACLENT 255 00130 #define ATR_S_MODACLENT 255 00131 #define ATR_S_FNDACLENT 255 00132 #define ATR_S_FNDACLTYP 255 00133 #define ATR_S_FNDACETYP 255 00134 #define ATR_S_DELETEACL 255 00135 #define ATR_S_READACL 512 00136 #define ATR_S_ACLLENGTH 4 00137 #define ATR_S_READACE 255 00138 #define ATR_S_RESERVED 380 00139 #define ATR_S_HIGHWATER 4 00140 #define ATR_S_DUMMY_0 4 00141 #define ATR_S_PRIVS_USED 4 00142 #define ATR_S_MATCHING_ACE 255 00143 #define ATR_S_ACCESS_MODE 1 00144 #define ATR_S_FILE_SPEC 4098 00145 #define ATR_S_CLASS_MASK 20 00146 #define ATR_S_BUFFER_OFFSET 2 00147 #define ATR_S_RU_ACTIVE 1 00148 #define ATR_S_GRANT_ACE 255 00149 #define ATR_S_NEXT_ACE 4 00150 #define ATR_S_DELETE_ALL 255 00151 #define ATR_S_BACKUP_DONE 1 00152 00153 #define ATR_S_EFFDATE 8 00154 #define ATR_S_RCDDATE 8 00155 #define ATR_S_VD 7 00156 #define ATR_S_PVD 1395 00157 #define ATR_S_SVD 1395 00158 #define ATR_S_VPD 88 00159 #define ATR_S_VDST 7 00160 #define ATR_S_BOOT 71 00161 #define ATR_S_PTR 45 00162 #define ATR_S_DIR 512 00163 #define ATR_S_XAR 512 00164 00165 #define ATR_S_VOLUME_ID 32 00166 #define ATR_S_VOLUME_FLAGS 1 00167 #define ATR_S_ESCAPE_SEQUENCES 32 00168 #define ATR_S_VOLUME_SET_ID 128 00169 #define ATR_S_COPYRIGHT_FID 37 00170 #define ATR_S_ABSTRACT_FID 37 00171 #define ATR_S_BIBLIOGRAPHIC_FID 37 00172 #define ATR_S_CACHE_SEQ 8 00173 #define ATR_S_FILE_SYSTEM_INFO 2 00174 #define ATR_S_FILE_ATTR_CACHING_POLICY 1 00175 #define ATR_S_FILE_DATA_CACHING_POLICY 1 00176 #define ATR_S_POSIX_DATA 64 00177 #define ATR_S_CACHING_OPTIONS 4 00178 #define ATR_S_ACCDATE 8 00179 #define ATR_S_ATTDATE 8 00180 #define ATR_S_LENGTH_HINT 16 00181 #define ATR_S_EX_RECATTR 8 00182 #define ATR_S_EXTFLAGS 2 00183 00184 struct _atrdef { 00185 unsigned short int atr_w_size; 00186 unsigned short int atr_w_type; 00187 void *atr_l_addr; 00188 }; 00189 00190 #define ATR_M_FILE_ATTRIBUTES 0xF 00191 #define ATR_M_FILE_CONTENTS 0xF0 00192 #define ATR_C_DEFAULT 0 00193 #define ATR_C_WRITETHROUGH 1 00194 #define ATR_C_WRITEBEHIND 2 00195 #define ATR_C_NOCACHING 3 00196 #define ATR_M_FLUSH_ON_CLOSE 0xF00 00197 #define ATR_C_FLUSH 1 00198 #define ATR_C_NOFLUSH 2 00199 #define ATR_M_CACHING_OPTIONS_MBZ 0xFFFFF000 00200 00201 struct _atr_caching_options_flags { 00202 unsigned atr_v_file_attributes : 4; 00203 unsigned atr_v_file_contents : 4; 00204 unsigned atr_v_flush_on_close : 4; 00205 unsigned atr_v_caching_options_mbz : 20; 00206 }; 00207 00208 #define ATR_C_ODS1 1 00209 #define ATR_C_ODS2 2 00210 #define ATR_C_ODS64 64 00211 00212 struct _atr_filesystem_info_fields { 00213 unsigned char atr_b_strucver; 00214 unsigned char atr_b_struclev; 00215 }; 00216 00217 #endif 00218 00219