/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | ServerVolume.cpp | 106 status_t error = _AddShare(shareInfo); local 107 if (error != B_OK) { 109 "share `%s': %s\n", shareName, strerror(error)); 119 status_t error = VirtualVolume::Init(name); local 120 if (error != B_OK) 121 return error; 130 error = fConnectionProvider->Init(); 131 if (error != B_OK) { 133 return error; 141 error 236 status_t error = queryManager->AddIterator(iterator); local 285 status_t error = SendRequest( local 323 status_t error = SendRequest(connection, &request, &reply); local [all...] |
H A D | VolumeManager.cpp | 76 status_t error; local 78 error = acquire_sem(fCounterSem); 79 } while (error == B_INTERRUPTED); 80 if (error != B_OK) 146 status_t error = fQueryManager->Init(); 147 if (error != B_OK) 148 return error; 154 error = fVolumes->InitCheck(); 155 if (error != B_OK) 156 return error; 363 status_t error = fNodeIDs2Volumes->Put(nodeID, volume); local [all...] |
H A D | ExtendedServerInfo.cpp | 111 status_t error = fAddress.GetString(&addressString, false); local 112 if (error != B_OK) 113 return error; 124 status_t error = _AddShare(&shareInfo); local 125 if (error != B_OK) 126 return error; 152 status_t error = extendedInfo->SetTo(info); 153 if (error != B_OK) { 155 return error; 157 error [all...] |
/haiku/src/kits/storage/disk_device/ |
H A D | DiskDeviceRoster.cpp | 83 - another error code 102 \return \c B_OK, if everything went fine, another error code otherwise. 118 status_t error = _kern_get_next_disk_system_info(&fDiskSystemCookie, local 120 if (error == B_OK) 121 error = system->_SetTo(&info); 122 return error; 390 - other error codes 415 - other error codes 425 status_t error = device->_SetTo(id, false, 0); 426 if (error ! [all...] |
/haiku/src/bin/ |
H A D | diskimage.cpp | 38 print_usage_and_exit(bool error) argument 40 fprintf(error ? stderr : stdout, kUsage, kCommandName, kCommandName, 42 exit(error ? 1 : 0); 82 status_t error = errno; local 84 strerror(error)); 85 return error; 128 status_t error = roster.UnregisterFileDevice(id); local 129 if (error != B_OK) { 131 "with ID %" B_PRId32 ": %s\n", id, strerror(error)); 132 return error; 147 status_t error = errno; local 173 status_t error = roster.UnregisterFileDevice(device.ID()); local 225 status_t error = B_OK; local [all...] |
/haiku/src/libs/compat/openbsd_network/compat/machine/ |
H A D | bus.h | 38 int error = bus_dma_tag_create(tag, 1, boundary, local 42 if (error != 0) 43 return error; 45 error = bus_dmamap_create((*dmamp)->_dmat, flags, &(*dmamp)->_dmamp); 46 return error; 62 bus_dmamap_load_obsd_callback(void* arg, bus_dma_segment_t* segs, int nseg, int error) argument 65 dmam->_error = error; 73 int error = bus_dmamap_load(dmam->_dmat, dmam->_dmamp, buf, buflen, local 75 if (error != 0) 76 return error; 123 int error = bus_dma_tag_create(tag, alignment, boundary, local [all...] |
/haiku/src/servers/registrar/ |
H A D | TRoster.cpp | 90 status_t error = find_directory(B_USER_SETTINGS_DIRECTORY, &path); local 91 if (error == B_OK) 92 error = path.Append("system/registrar"); 93 if (error == B_OK && createDirectory) 94 error = create_directory(path.Path(), 0777); 95 if (error == B_OK) 96 error = path.Append("RosterSettings"); 163 status_t error = B_OK; local 175 SET_ERROR(error, B_BAD_VALUE); 191 error 314 status_t error = B_OK; local 378 status_t error = B_OK; local 448 status_t error = B_OK; local 486 status_t error = B_OK; local 524 status_t error = B_OK; local 620 status_t error = B_OK; local 684 status_t error = B_OK; local 768 status_t error = B_OK; local 807 status_t error = B_OK; local 876 status_t error = B_OK; local 919 status_t error = B_OK; local 993 status_t error = request->FindInt32("max count", &maxCount); local 1022 status_t error = request->FindRef("ref", &ref); local 1053 status_t error = request->FindRef("ref", &ref); local 1083 status_t error = request->FindString("app sig", &appSig); local 1108 status_t error = request->FindString("filename", &filename); local 1133 status_t error = request->FindString("filename", &filename); local 1239 status_t error = get_app_ref(&ref); local 1271 status_t error = (info ? B_OK : B_BAD_VALUE); local 1411 status_t error = B_OK; local 1490 status_t error = B_NO_MEMORY; local 1651 status_t error = B_OK; local 1777 status_t error = request->FindInt32("max count", &maxCount); local 1893 status_t error; local [all...] |
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/ |
H A D | PackagesDirectory.cpp | 64 status_t error; local 66 error = vfs_get_vnode_from_path(path, calledFromKernel, &vnode); 69 error = vfs_entry_ref_to_vnode(mountPointDeviceID, mountPointNodeID, 72 if (error != B_OK) { 73 ERROR("Failed to open packages directory \"%s\"\n", strerror(error)); 74 RETURN_ERROR(error); 89 status_t error = vfs_entry_ref_to_vnode(adminDirDeviceID, adminDirNodeID, local 91 if (error != B_OK) { 92 ERROR("Failed to open old state directory \"%s\"\n", strerror(error)); 93 RETURN_ERROR(error); 127 status_t error = vfs_entry_ref_to_path(fNodeRef.device, fNodeRef.node, NULL, local [all...] |
H A D | PackageFSRoot.cpp | 71 status_t error = fPackageLinksDirectory->Init(NULL, 73 if (error != B_OK) 74 RETURN_ERROR(error); 76 error = fResolvables.Init(); 77 if (error != B_OK) 78 RETURN_ERROR(error); 80 error = fDependencies.Init(); 81 if (error != B_OK) 82 RETURN_ERROR(error); 110 status_t error local 150 status_t error = root->Init(); local 180 status_t error = _AddPackage(package); local 295 status_t error = fPackageLinksDirectory->AddPackage(package); local 423 status_t error = root->Init(); local [all...] |
/haiku/src/kits/package/hpkg/ |
H A D | RepositoryReaderImpl.cpp | 66 status_t error = _NotifyPackageDone(); local 67 if (error != B_OK) 68 return error; 72 error = fContentHandler->HandlePackage(value.string); 73 if (error != B_OK) 74 return error; 113 status_t error = fContentHandler->HandlePackageDone(fPackageName); 115 return error; 217 status_t error = inherited::Init<hpkg_repo_header, B_HPKG_REPO_MAGIC, local 220 if (error ! [all...] |
/haiku/src/build/libroot/ |
H A D | fs_attr_generic.cpp | 31 # error No attribute support for this host platform! 147 status_t error = B_OK; local 149 error = errno; 152 if (error != B_OK) 153 return error; 156 error = B_ERROR; 188 status_t error = errno; local 191 return error; 220 status_t error = get_id_attribute(path, fd, id); local 221 if (error ! 236 status_t error = get_id_attribute(path, fd, id); local 285 status_t error = init_attribute_dir_base_dir(); local 320 status_t error = ensure_attribute_dir_exists(ref, path, fd); local 363 status_t error = _kern_read_stat(fd, NULL, false, &st, sizeof(st)); local 424 status_t error = _kern_read_stat(fd, NULL, false, &st, local 487 status_t error = get_attribute_path(fd, attribute, attrPath, typePath); local 552 status_t error = errno; local 587 status_t error = errno; local 612 status_t error = get_attribute_path(fd, attribute, attrPath, typePath); local 639 status_t error = get_attribute_path(fd, attribute, attrPath, typePath); local 684 status_t error = _kern_read_stat(fd, path, false, &st, local 722 status_t error = get_attribute_path_virtual_fd(fromFile, fromName, local 760 status_t error = get_attribute_path_virtual_fd(fd, name, attrPath, local [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | SecurityContext.cpp | 70 status_t error = B_OK; 71 if (error == B_OK && fName.GetLength() > 0) 72 error = archive->AddString("name", fName.GetString()); 74 if (error == B_OK && fPassword.GetLength() > 0) 75 error = archive->AddString("password", fPassword.GetString()); 76 return error; 179 status_t error = B_OK; 180 if (error == B_OK && fName.GetLength() > 0) 181 error = archive->AddString("name", fName.GetString()); 183 if (error 208 status_t error = localPath.SetTo(&entryRef); local 618 status_t error = user->Init(name, password); local 653 status_t error = RemoveUser(user); local 755 status_t error = users->AddString("users", user->GetName()); local 782 status_t error = share->Init(name, ref); local 818 status_t error = share->Init(name, path); local 853 status_t error = RemoveShare(share); local 919 status_t error = shares->AddString("shares", share->GetName()); local 946 status_t error = _AddNodePath(ref, &path); local 975 status_t error = _AddNodePath(ref, &path); local 1014 status_t error = _AddNodePath(ref, &path); local 1069 status_t error = get_node_ref_for_path(path, &ref); local 1088 status_t error = path.SetTo(&entryRef); local 1104 status_t error = fNode2Path->Put(ref, path); local [all...] |
/haiku/src/tests/system/kernel/file_corruption/fs/ |
H A D | Volume.cpp | 148 status_t error = fBlockAllocator->Init(superBlock->BlockBitmap(), local 150 if (error != B_OK) 151 RETURN_ERROR(error); 155 error = ReadNode(superBlock->RootDirectory(), rootNode); 156 if (error != B_OK) 157 RETURN_ERROR(error); 165 error = PublishNode(fRootDirectory, 0); 166 if (error != B_OK) { 169 return error; 179 status_t error local 195 status_t error = transaction.Start(); local 340 status_t error = _CreateNode(directory, transaction); local 354 status_t error = _CreateNode(file, transaction); local 369 status_t error = _CreateNode(symLink, transaction); local 388 status_t error = transaction.Start(); local 428 status_t error = transaction.Start(); local 493 status_t error = allocatedBlock.Allocate(); local [all...] |
/haiku/src/servers/package/ |
H A D | CommitTransactionHandler.cpp | 77 TransactionIssueBuilder& SetSystemError(status_t error) argument 79 fSystemError = error; 142 // Delete Package objects we created in case of error (on success 185 status_t error; local 187 BActivationTransaction transaction(request, &error); 188 if (error == B_OK) 189 error = transaction.InitCheck(); 190 if (error != B_OK) { 191 if (error == B_NO_MEMORY) 232 status_t error local 338 status_t error = _OpenPackagesSubDirectory(directoryPath, false, directory); local 482 status_t error = _OpenPackagesSubDirectory( local 560 status_t error = entry.SetTo(&entryRef); local 602 status_t error local 735 int error = getgrnam_r(groupName, &groupBuffer, buffer, sizeof(buffer), local 763 int error = getpwnam_r(user.Name(), &passwdBuffer, buffer, local 845 status_t error = rootDirectory.SetTo(&fVolume->RootDirectoryRef()); local 903 status_t error = stackSourceDirectory.SetTo( local 928 status_t error = FSUtils::OpenSubDirectory(rootDirectory, local 971 status_t error = BCopyEngine(BCopyEngine::COPY_RECURSIVELY) local 994 status_t error = sourceDirectory.GetStatFor(relativeSourcePath.Leaf(), local 1262 status_t error = transactionDirectory.SetTo(&fTransactionDirectoryRef); local 1317 status_t error local 1335 status_t error = entry.SetTo(&fOldStateDirectory, local 1426 status_t error = scriptPath.InitCheck(); local 1470 status_t error = _OpenPackagesSubDirectory( local 1493 status_t error = scriptPath.InitCheck(); local 1521 status_t error = targetEntry.SetTo(&targetDirectory, targetName); local 1637 status_t error = directory.SetTo(&fVolume->PackagesDirectoryRef()); local 1655 status_t error = _OpenPackagesSubDirectory(subDirectoryPath, local 1664 status_t error = directory.SetTo(&fVolume->PackagesDirectoryRef()); local 1674 status_t error = entry.SetTo(&directory, fileName); local 1697 status_t error = _WriteTextFile(directoryPath, fileName, local 1750 status_t error = _OpenPackagesFile(directoryPath, local 1796 status_t error = activationFileEntry.Rename(kActivationFileName, true); local 1949 status_t error = directory.GetStatFor(entry->d_name, &st); local [all...] |
/haiku/src/kits/locale/ |
H A D | TextEncoding.cpp | 32 UErrorCode error = U_ZERO_ERROR; local 34 UCharsetDetector* detector = ucsdet_open(&error); 35 ucsdet_setText(detector, data, length, &error); 36 const UCharsetMatch* encoding = ucsdet_detect(detector, &error); 38 fName = ucsdet_getName(encoding, &error); 79 UErrorCode error = U_ZERO_ERROR; local 82 fUtf8Converter = ucnv_open("UTF-8", &error); 85 fConverter = ucnv_open(fName.String(), &error); 89 &error); 96 if (!U_SUCCESS(error)) 119 UErrorCode error = U_ZERO_ERROR; local [all...] |
/haiku/src/kits/network/libnetservices/ |
H A D | FileRequest.cpp | 61 status_t error = file.InitCheck(); local 62 if (error != B_OK) 63 return error; 77 error = file.GetSize(&size); 78 if (error != B_OK) 79 return error; 92 error = fOutput->WriteExactly(chunk, chunkSize, &written); 95 if (error != B_OK) 96 return error; 106 // Return error i 119 status_t error = node.GetNodeRef(&ref); local [all...] |
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | File.cpp | 27 status_t error = DataContainer::ReadAt(offset, buffer, size, bytesRead); local 29 return error; 38 status_t error = DataContainer::WriteAt(offset, buffer, size, local 49 return error; 56 status_t error = B_OK; local 59 error = DataContainer::Resize(newSize); 65 return error;
|
/haiku/src/kits/package/manager/ |
H A D | RepositoryBuilder.cpp | 46 fErrors << BString().SetToFormat("%s: parse error in line %d:%d: %s\n", 80 status_t error = fRepository.SetTo(name); local 81 if (error != B_OK) 82 DIE(error, "failed to init %s repository", fErrorName.String()); 93 status_t error = fRepository.SetTo(config); local 94 if (error != B_OK) 95 DIE(error, "failed to init %s repository", fErrorName.String()); 106 status_t error = fRepository.SetTo(cache); local 107 if (error != B_OK) 108 DIE(error, "faile 125 status_t error = fRepository.AddPackage(info, _package); local 144 status_t error; local 198 status_t error = fRepository.AddPackages(location); local 224 status_t error = entryPath.SetTo(path, name); local 247 status_t error = solver->AddRepository(&fRepository); local [all...] |
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | kernel_interface.cpp | 121 status_t error = B_OK; local 126 error = B_NO_MEMORY; 127 if (error == B_OK) 128 error = volume->Mount(_volume, device); 131 if (error == B_OK) { 138 if (error != B_OK && volume) 140 RETURN_ERROR(error); 150 status_t error = volume->Unmount(); local 151 if (error == B_OK) 153 RETURN_ERROR(error); 189 status_t error = B_OK; local 244 status_t error = B_OK; local 273 status_t error = B_OK; local 294 status_t error = B_OK; local 333 status_t error = B_OK; local 362 status_t error = B_OK; local 425 status_t error = B_OK; local 483 status_t error = (node->IsDir() ? B_OK : B_NOT_A_DIRECTORY); local 554 status_t error = iterator->Resume(); local 653 status_t error = iterator->Rewind(); // no need to Resume() local [all...] |
/haiku/src/bin/debug/profile/ |
H A D | SummaryProfileResult.cpp | 58 status_t error = ProfileResult::Init(entity); local 59 if (error != B_OK) 60 return error; 62 error = fImages.Init(); 63 if (error != B_OK) 64 return error; 109 status_t error = fResult->GetImageProfileResult(image, fNextImageID++, local 111 if (error != B_OK) 112 return error;
|
/haiku/src/bin/debug/strace/ |
H A D | MemoryReader.cpp | 63 status_t error = _Read(address, buffer, toRead, actuallyRead); local 66 if (error != B_OK) { 69 return error; 93 status_t error = write_port(fNubPort, B_DEBUG_MESSAGE_READ_MEMORY, local 95 if (error == B_OK) 97 if (error != B_INTERRUPTED) 98 return error; 112 if (reply.error != B_OK) 113 return reply.error;
|
/haiku/src/tools/restest/ |
H A D | OffsetFile.cpp | 101 status_t error = GetSize(&size); local 105 result = error; 133 status_t error = (size >= 0 ? B_OK : B_BAD_VALUE ); local 134 if (error == B_OK) 135 error = fFile.SetSize(size + fOffset); 136 return error; 143 status_t error = fFile.GetSize(size); local 144 if (error == B_OK) 146 return error;
|
/haiku/src/kits/network/libnetapi/ |
H A D | SocketMessenger.cpp | 164 status_t error = fSocket.Connect(address, timeout); 165 if (error != B_OK) { 167 return error; 195 status_t error = _SendMessage(temp); local 196 if (error != B_OK) 197 return error; 208 status_t error = SendMessage(message, reply, timeout); local 209 if (error != B_OK) 210 return error; 232 status_t error local 287 status_t error = acquire_sem_etc(fPrivateData->fMessageWaiters, 1, local 316 status_t error = message.Flatten(messageBuffer, flatSize); local 331 status_t error = fSocket.WaitForReadable(B_INFINITE_TIMEOUT); local 366 status_t error = B_OK; local 391 status_t error = B_OK; local [all...] |
/haiku/src/apps/debugger/user_interface/gui/value/value_handlers/ |
H A D | FloatValueHandler.cpp | 65 status_t error = GetValueFormatter(value, formatter); local 66 if (error != B_OK) 67 return error; 90 status_t error = GetValueFormatter(value, formatter); local 91 if (error != B_OK) 92 return error; 101 error = editor->Init(); 102 if (error != B_OK) 103 return error;
|
/haiku/src/tools/fs_shell/ |
H A D | stat.cpp | 43 status_t error = _kern_read_stat(-1, path, true, &st, sizeof(st)); 44 if (error < 0) { 45 fssh_set_errno(error); 67 status_t error = _kern_read_stat(fd, NULL, false, &st, sizeof(st)); 68 if (error < 0) { 69 fssh_set_errno(error); 91 status_t error = _kern_read_stat(-1, path, false, &st, sizeof(st)); 92 if (error < 0) { 93 fssh_set_errno(error);
|