Searched refs:attrInfo (Results 1 - 25 of 42) sorted by relevance

12

/haiku/src/kits/shared/
H A DAttributeUtilities.cpp28 attr_info attrInfo; local
29 status_t status = source.GetAttrInfo(attrName, &attrInfo);
36 off_t bytesLeft = attrInfo.size;
46 ssize_t bytesRead = source.ReadAttr(attrName, attrInfo.type,
53 attrInfo.type, offset, buffer, bytesRead);
/haiku/src/tests/kits/storage/testapps/
H A Ddump_mime_types.cpp87 BMessage attrInfo; local
88 if (mimeType.GetAttrInfo(&attrInfo) == B_OK) {
97 attrInfo.FindString("attr:name", k, &name) == B_OK
98 && (attrInfo.FindString("attr:public_name", k,
100 && (attrInfo.FindInt32("attr:type", k, (int32*)&type) == B_OK
102 && (attrInfo.FindBool("attr:viewable", k, &isViewable) == B_OK
104 && (attrInfo.FindBool("attr:public", k, &isPublic) == B_OK
106 && (attrInfo.FindBool("attr:editable", k, &isEditable) == B_OK
/haiku/src/build/libbe/storage/
H A DNodeInfo.cpp137 attr_info attrInfo; local
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; local
255 error = fNode->GetAttrInfo(attribute, &attrInfo);
256 if (error == B_OK && attrInfo
404 attr_info attrInfo; local
494 attr_info attrInfo; local
[all...]
/haiku/src/kits/storage/
H A DNodeInfo.cpp95 attr_info attrInfo; local
97 result = fNode->GetAttrInfo(kNITypeAttribute, &attrInfo);
99 if (result == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
102 if (result == B_OK && attrInfo.size > B_MIME_TYPE_LENGTH)
107 ssize_t read = fNode->ReadAttr(kNITypeAttribute, attrInfo.type, 0,
108 type, attrInfo.size);
111 else if (read != attrInfo.size)
116 type[min_c(attrInfo.size, B_MIME_TYPE_LENGTH - 1)] = '\0';
251 attr_info attrInfo;
252 status_t result = fNode->GetAttrInfo(kNIIconAttribute, &attrInfo);
314 attr_info attrInfo; local
381 attr_info attrInfo; local
[all...]
H A DCopyEngine.cpp380 attr_info attrInfo; local
381 status_t error = source.GetAttrInfo(attrName, &attrInfo);
385 attrInfo.type = B_ANY_TYPE;
391 attrInfo.type)) {
401 error = _HandleAttributeError(sourcePath, attrName, attrInfo.type,
411 off_t bytesLeft = attrInfo.size;
420 ssize_t bytesRead = source.ReadAttr(attrName, attrInfo.type,
424 attrInfo.type, bytesRead, "Failed to read attribute \"%s\" "
437 attrInfo.type, offset, fBuffer, bytesRead);
440 attrInfo
[all...]
/haiku/src/bin/
H A Dresattr.cpp93 attr_info attrInfo; local
94 if (!overwrite && out.GetAttrInfo(name, &attrInfo) == B_OK)
133 attr_info attrInfo; local
134 status_t error = in.GetAttrInfo(name, &attrInfo);
142 char *data = new char[attrInfo.size];
143 ssize_t bytesRead = in.ReadAttr(name, attrInfo.type, 0LL, data,
144 attrInfo.size);
155 while (resources.GetResourceInfo(attrInfo.type, resID, &existingName,
161 error = resources.AddResource(attrInfo.type, resID++, data,
162 attrInfo
[all...]
H A Dlistattr.cpp270 attr_info attrInfo; local
272 status = node.GetAttrInfo(name, &attrInfo);
274 printf("%*s", kTypeWidth, get_type(attrInfo.type));
275 printf("% *" B_PRId64 " ", kSizeWidth, attrInfo.size);
284 show_attr_contents(node, name, attrInfo);
288 total += attrInfo.size;
H A Dcopyattr.cpp205 attr_info attrInfo; local
206 status_t error = source.GetAttrInfo(attrName, &attrInfo);
214 if (!parameters.attribute_filter.Filter(attrName, attrInfo.type))
220 off_t bytesLeft = attrInfo.size;
229 ssize_t bytesRead = source.ReadAttr(attrName, attrInfo.type,
240 attrInfo.type, offset, buffer, bytesRead);
/haiku/headers/os/kernel/
H A Dfs_attr.h29 struct attr_info *attrInfo);
/haiku/headers/private/fs_shell/
H A Dfssh_fs_attr.h31 struct fssh_attr_info *attrInfo);
/haiku/headers/build/os/kernel/
H A Dfs_attr.h30 struct attr_info *attrInfo);
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DShareAttrDir.cpp437 const AttributeInfo& attrInfo = attrInfos[i]; local
440 const void* data = attrInfo.data.GetData();
441 if (data && attrInfo.data.GetSize() != attrInfo.info.size)
443 error = Attribute::CreateAttribute(attrInfo.name.GetString(),
444 attrInfo.info, data, attributes + i);
/haiku/src/system/libroot/os/
H A Dfs_attr.cpp95 fs_stat_attr(int fd, const char* attribute, struct attr_info* attrInfo) argument
97 status_t status = _kern_stat_attr(fd, attribute, attrInfo);
/haiku/src/build/libroot/
H A Dfs_attr_haiku.cpp229 _haiku_build_fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo) argument
231 if (!attribute || !attrInfo) {
246 result = fs_stat_attr(fd, attribute, attrInfo);
249 result = fs_stat_attr(localFD.FD(), attribute, attrInfo);
H A Dfs_attr_generic.cpp629 fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo) argument
631 if (!attribute || !attrInfo) {
650 attrInfo->size = st.st_size;
657 ssize_t bytesRead = read(typeFD, &attrInfo->type, sizeof(attrInfo->type));
660 else if (bytesRead < (ssize_t)sizeof(attrInfo->type))
H A Dremapped_functions.h57 struct attr_info *attrInfo);
H A Dfs_attr_untyped.cpp613 fs_stat_attr(int fd, const char *_attribute, struct attr_info *attrInfo) argument
615 if (!_attribute || !attrInfo) {
657 attrInfo->size = bytesRead - sizeof(AttributeHeader);
658 attrInfo->type = ((AttributeHeader*)attributeBuffer)->type;
H A Dfunction_remapper.cpp382 fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo) argument
386 return _haiku_build_fs_stat_attr(fd, attribute, attrInfo);
/haiku/src/kits/tracker/
H A DThumbnails.cpp356 attr_info attrInfo; local
357 if (node->GetAttrInfo(kAttrThumbnail, &attrInfo) == B_OK) {
359 webpData.SetSize(attrInfo.size);
360 if (node->ReadAttr(kAttrThumbnail, attrInfo.type, 0,
361 (void*)webpData.Buffer(), attrInfo.size) == attrInfo.size) {
H A DQueryPoseView.cpp344 attr_info attrInfo; local
349 &attrInfo);
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A DBeOSKernelVolume.cpp647 beos_attr_info attrInfo; local
652 &attrInfo);
657 st->st_size = attrInfo.size;
658 st->st_type = attrInfo.type;
845 beos_attr_info attrInfo;
849 = (fFSOps->stat_attr(fVolumeCookie, node, name, &attrInfo) == B_OK);
861 type = attrInfo.type;
/haiku/src/system/kernel/device_manager/
H A Ddevice_manager.cpp508 struct device_attr_info attrInfo; local
513 if (user_memcpy(&attrInfo, buffer, sizeof(device_attr_info)) < B_OK)
516 device_node* node = (device_node*)attrInfo.node_cookie;
517 device_attr* last = (device_attr*)attrInfo.cookie;
528 attrInfo.cookie = 0;
533 attrInfo.cookie = (device_node_cookie)attr;
535 strlcpy(attrInfo.name, attr->name, 254);
537 attrInfo.name[0] = '\0';
538 attrInfo.type = attr->type;
539 switch (attrInfo
[all...]
/haiku/src/libs/icon/
H A DIconUtils.cpp397 attr_info attrInfo; local
398 result = node->GetAttrInfo(attrName, &attrInfo);
404 if (attrInfo.type != attrType)
408 if (attrInfo.size > 512 * 1024)
411 uint8* buffer = new(std::nothrow) uint8[attrInfo.size];
418 attrInfo.size);
419 if (bytesRead != attrInfo.size)
426 result = GetVectorIcon(buffer, attrInfo.size, icon);
564 attr_info attrInfo; local
566 result = node->GetAttrInfo(attribute, &attrInfo);
[all...]
/haiku/src/kits/package/hpkg/
H A DPackageWriterImpl.cpp1144 attr_info attrInfo; local
1145 if (fs_stat_attr(fd, entry->d_name, &attrInfo) < 0) {
1529 attr_info attrInfo; local
1530 if (fs_stat_attr(fd, entry->d_name, &attrInfo) < 0) {
1545 (uint32)attrInfo.type);
1548 BAttributeDataReader dataReader(fd, entry->d_name, attrInfo.type);
1549 status_t error = _AddData(dataReader, attrInfo.size);
/haiku/src/apps/icon-o-matic/
H A DMainWindow.cpp724 attr_info attrInfo; local
725 if (file.GetAttrInfo(kVectorAttrNodeName, &attrInfo) == B_OK) {
726 if (attrInfo.type != B_VECTOR_ICON_TYPE)
733 buffer = new(nothrow) uint8[attrInfo.size];
739 B_VECTOR_ICON_TYPE, 0, buffer, attrInfo.size);
740 if (bytesRead != (ssize_t)attrInfo.size) {
746 ret = flatImporter.Import(icon, buffer, attrInfo.size);

Completed in 126 milliseconds

12