Lines Matching defs:attrInfo
137 attr_info attrInfo;
139 error = fNode->GetAttrInfo(kNITypeAttribute, &attrInfo);
140 if (error == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
142 if (error == B_OK && attrInfo.size > B_MIME_TYPE_LENGTH)
146 ssize_t read = fNode->ReadAttr(kNITypeAttribute, attrInfo.type, 0,
147 type, attrInfo.size);
150 else if (read != attrInfo.size)
253 attr_info attrInfo;
255 error = fNode->GetAttrInfo(attribute, &attrInfo);
256 if (error == B_OK && attrInfo.type != attrType)
258 if (error == B_OK && attrInfo.size != (off_t)attrSize)
281 else if (read != attrInfo.size)
404 attr_info attrInfo;
406 error = fNode->GetAttrInfo(kNIPreferredAppAttribute, &attrInfo);
407 if (error == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
409 if (error == B_OK && attrInfo.size > B_MIME_TYPE_LENGTH)
413 ssize_t read = fNode->ReadAttr(kNIPreferredAppAttribute, attrInfo.type,
414 0, signature, attrInfo.size);
417 else if (read != attrInfo.size)
494 attr_info attrInfo;
496 error = fNode->GetAttrInfo(kNIAppHintAttribute, &attrInfo);
499 if (error == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
501 if (error == B_OK && attrInfo.size > B_PATH_NAME_LENGTH)
506 ssize_t read = fNode->ReadAttr(kNIAppHintAttribute, attrInfo.type, 0,
507 path, attrInfo.size);
510 else if (read != attrInfo.size)