Lines Matching defs:result

468 	status_t result = destNode->WriteAttr(kAttrPoseInfo, B_RAW_TYPE, 0,
471 if (result == sizeof(poseInfo))
474 return result;
482 status_t result = node.InitCheck();
483 if (result != B_OK)
484 return result;
487 result = entry->GetParent(&parent);
488 if (result != B_OK)
489 return result;
492 result = parent.GetNodeRef(&destNodeRef);
493 if (result != B_OK)
494 return result;
770 status_t result = entry.InitCheck();
771 if (result != B_OK)
772 return result;
778 result = B_NOT_ALLOWED;
786 result = entry.Rename(name);
787 if (result != B_OK)
792 result = volume.InitCheck();
793 if (result == B_OK && volume.IsReadOnly())
794 result = B_READ_ONLY_DEVICE;
795 if (result == B_OK) {
797 result = volume.SetName(name);
798 if (result != B_OK)
803 result = volume.InitCheck();
804 if (result == B_OK && volume.IsReadOnly())
805 result = B_READ_ONLY_DEVICE;
806 if (result == B_OK)
807 result = ShouldEditRefName(model->EntryRef(), name, length);
808 if (result == B_OK) {
810 result = entry.Rename(name);
811 if (result != B_OK)
816 return result;
1084 status_t result = InitCopy(&loopControl, moveMode, srcList,
1090 if (result == B_OK) {
1142 result = MoveEntryToTrash(&sourceEntry, loc, undo);
1143 if (result != B_OK) {
1147 error.ReplaceFirst("%error", strerror(result));
1190 result = MoveItem(&sourceEntry, &destDir, loc, moveMode, NULL,
1192 if (result != B_OK)
1495 ssize_t result = destFile.Write(buffer, (size_t)bytes);
1496 if (result != bytes) {
1497 if (result < 0)
1498 throw (status_t)result;
1502 result = destFile.Sync();
1503 if (result != B_OK)
1504 throw (status_t)result;
2043 status_t result = entry->GetRef(&ref);
2044 if (result != B_OK)
2045 return result;
2048 result = entry->GetNodeRef(&nodeRef);
2049 if (result != B_OK)
2050 return result;
2053 result = entry->GetStat(&statbuf);
2055 return result;
2087 result = FSGetTrashDir(&trash_dir, nodeRef.device);
2088 if (result != B_OK)
2089 return result;
2117 result = FSGetTrashDir(&trash_dir, nodeRef.device);
2118 if (result != B_OK)
2119 return result;
2653 status_t result = FSRecursiveCalcSize(NULL, loopControl, &dir,
2655 if (result != B_OK)
2656 return result;
2675 status_t result = volume.InitCheck();
2676 if (result != B_OK)
2677 return result;
2680 result = find_directory(B_TRASH_DIRECTORY, &path, false, &volume);
2681 if (result != B_OK)
2682 return result;
2684 result = trashDir->SetTo(path.Path());
2685 if (result != B_OK) {
2687 result = create_directory(path.Path(), 0755);
2688 if (result != B_OK)
2689 return result;
2691 result = trashDir->SetTo(path.Path());
2692 if (result != B_OK)
2693 return result;
2740 status_t result = find_directory(B_DESKTOP_DIRECTORY, &path, true);
2741 if (result != B_OK)
2742 return result;
2744 result = deskDir->SetTo(path.Path());
2745 if (result != B_OK)
2746 return result;
2782 status_t result = find_directory(B_DESKTOP_DIRECTORY, &path, true,
2784 if (result != B_OK)
2785 return result;
2833 status_t result = find_directory(B_DESKTOP_DIRECTORY, &path, true);
2834 if (result != B_OK)
2937 status_t result = find_directory(B_USER_SETTINGS_DIRECTORY, path,
2939 if (result != B_OK)
2940 return result;
3223 status_t result = dir.InitCheck();
3224 if (result != B_OK)
3225 return result;
3232 result = dir.CreateDirectory(name.String(), &newDir);
3233 if (result != B_OK)
3234 return result;
3239 return result;
3248 status_t result = dir.InitCheck();
3249 if (result == B_OK) {
3264 result = dir.CreateDirectory(name, &newDir);
3265 if (result == B_OK) {
3286 return result;
3542 status_t result = appEntry.GetPath(&path);
3543 if (result != B_OK)
3544 return result;
3557 result = __flatten_process_args((const char**)argv, 1,
3559 if (result != B_OK)
3560 return result;
3562 result = _kern_load_image(flatArgs, flatArgsSize, 1, envCount,
3564 if (result == B_OK) {
3598 result = message.Unflatten((const char*)buffer);
3601 if (result != B_OK)
3602 return result;
3605 result = message.FindInt32("error", &errorCode);
3606 if (result != B_OK)
3607 return result;
3922 status_t result = B_ERROR;
3926 result = TrackerOpenWith(listOfRefs);
3930 return result;
3966 status_t result = TrackerLaunch(appRef, refs, async, true);
3969 return result;
3982 FSGetOriginalPath(BEntry* entry, BPath* result)
3998 err = result->SetTo(originalPath.String());
4029 err = result->SetTo(originalPath.String());
4042 result->Append(path.Path() + strlen(pathParent.Path()) + 1);
4054 const WellKnownEntry* result = MatchEntry(node);
4055 if (result != NULL)
4056 return result->which;