Lines Matching defs:fid

648 	struct fileid_desc *fid;
679 fid = (struct fileid_desc*)&ds->data[ds->off];
682 * Check to see if the fid is fragmented. The first test
687 ds->off + le16toh(fid->l_iu) + fid->l_fi + UDF_FID_SIZE > ds->size){
688 /* Copy what we have of the fid into a buffer */
702 bcopy(fid, ds->buf, frag_size);
705 fid = (struct fileid_desc*)ds->buf;
729 * Now that we have enough of the fid to work with,
730 * copy in the rest of the fid from the new
733 total_fid_size = UDF_FID_SIZE + le16toh(fid->l_iu) + fid->l_fi;
744 total_fid_size = le16toh(fid->l_iu) + fid->l_fi + UDF_FID_SIZE;
758 return (fid);
782 struct fileid_desc *fid;
817 while ((fid = udf_getfid(ds)) != NULL) {
818 /* XXX Should we return an error on a bad fid? */
819 if (udf_checktag(&fid->tag, TAGID_FID)) {
821 hexdump(fid, UDF_FID_SIZE, NULL, 0);
827 if (fid->file_char & UDF_FILE_CHAR_DEL)
830 if ((fid->l_fi == 0) && (fid->file_char & UDF_FILE_CHAR_PAR)) {
847 dir.d_fileno = udf_getid(&fid->icb);
858 dir.d_namlen = udf_transname(&fid->data[fid->l_iu],
859 &dir.d_name[0], fid->l_fi, udfmp);
860 dir.d_fileno = udf_getid(&fid->icb);
861 dir.d_type = (fid->file_char & UDF_FILE_CHAR_DIR) ?
1117 struct fileid_desc *fid = NULL;
1155 while ((fid = udf_getfid(ds)) != NULL) {
1156 /* XXX Should we return an error on a bad fid? */
1157 if (udf_checktag(&fid->tag, TAGID_FID)) {
1164 if (fid->file_char & UDF_FILE_CHAR_DEL)
1167 if ((fid->l_fi == 0) && (fid->file_char & UDF_FILE_CHAR_PAR)) {
1169 id = udf_getid(&fid->icb);
1173 if (!(udf_cmpname(&fid->data[fid->l_iu],
1174 nameptr, fid->l_fi, namelen, udfmp))) {
1175 id = udf_getid(&fid->icb);
1277 _Static_assert(sizeof(struct ifid) <= sizeof(struct fid),
1278 "struct ifid cannot be larger than struct fid");