Lines Matching defs:tnf
35 tnf_get_file_header(TNF *tnf)
37 return (DATUM(tnf->file_header_info, (caddr_t)tnf->file_header));
45 tnf_get_block_count(TNF *tnf)
47 return (tnf->block_count);
51 tnf_get_block_absolute(TNF *tnf, unsigned index)
53 if (index >= tnf->block_count)
64 return (DATUM(tnf->block_header_info,
65 (caddr_t)_GET_INDEX_BLOCK(tnf, index)));
71 TNF *tnf;
77 tnf = DATUM_TNF(datum);
78 bhdr = _GET_BLOCK(tnf, DATUM_VAL(datum));
79 index = _GET_BLOCK_INDEX(tnf, bhdr);
81 return (tnf_get_block_absolute(tnf, index + adjust));
95 bhdr = _GET_BLOCK(info->tnf, val);
98 (info == info->tnf->block_header_info));
104 TNF *tnf;
109 tnf = DATUM_TNF(datum);
114 return (DATUM(tnf->block_header_info, (caddr_t)_GET_BLOCK(tnf, val)));
124 TNF *tnf;
131 tnf = DATUM_TNF(datum);
138 if (nval < tnf->data_start)
139 return (tnf_get_block_absolute(tnf, 0));
140 else if (nval >= tnf->file_end)
146 bhdr = _GET_BLOCK(tnf, nval);
148 bytes = _GET_BLOCK_BYTES_VALID(tnf, bhdr);
156 ref32 = _GET_INT32(tnf, cell);
163 _tnf_error(tnf, TNF_ERR_BADTNF);
166 return (RECORD_DATUM(tnf, cell));
173 while ((bval += tnf->block_size) < tnf->file_end)
178 return (RECORD_DATUM(tnf, (tnf_ref32_t *)bval));