/haiku/src/tests/kits/interface/ |
H A D | ScreenTest.cpp | 18 status_t status = screen.GetMode(&oldMode); local 19 if (status < B_OK) 20 printf("%s\n", strerror(status)); 35 status = screen.SetMode(&newMode); 36 if (status < B_OK) 37 printf("FAILED (%s)\n", strerror(status)); 40 status_t status = screen.GetMode(&newMode); local 41 if (status < B_OK) 42 printf("%s\n", strerror(status)); 57 status [all...] |
/haiku/src/servers/launch/ |
H A D | InitTemporaryDirectoryJob.cpp | 29 status_t status = find_directory(B_SYSTEM_TEMP_DIRECTORY, &path, true); local 30 if (status == B_OK) 33 return status;
|
/haiku/src/bin/ |
H A D | quit.cpp | 12 status_t status; local 26 if ((status = messenger.SendMessage(B_QUIT_REQUESTED)) != B_OK) { 27 printf("could not send message, %s\n", strerror(status));
|
H A D | checkfs.cpp | 81 status_t status = roster.GetPartitionForPath(path, &device, local 83 if (status != B_OK) { 86 status = roster.FindPartitionByMountPoint(path, &device, &partition) 92 if (status != B_OK) { 94 "%s\n", kProgramName, path, strerror(status)); 101 status = device.PrepareModifications(); 102 if (status != B_OK) { 104 "%s\n", kProgramName, strerror(status)); 130 status = partition->GetDiskSystem(&diskSystem); 131 if (status ! [all...] |
/haiku/src/apps/icon-o-matic/generic/command/ |
H A D | CompoundCommand.cpp | 38 status_t status = fCommands && fCount > 0 ? B_OK : B_BAD_VALUE; local 39 return status; 46 status_t status = InitCheck(); local 47 if (status >= B_OK) { 51 status = fCommands[i]->Perform(); 52 if (status < B_OK) 55 /* if (status < B_OK) { 64 return status; 71 status_t status = InitCheck(); local 72 if (status > [all...] |
/haiku/src/add-ons/kernel/busses/scsi/usb/ |
H A D | proto_bulk.c | 54 uint8 status; member in struct:_usb_mass_CSW 93 PTRACE(udi, "CSW:{'%s'; tag:%d; residue:%d; status:0x%02x}\n", 94 buf, csw->tag, csw->data_residue, csw->status); 109 status_t status = B_OK; local 113 if(B_OK != (status = (*udi->usb_m->send_request)(udi->device, 118 if(status == B_DEV_STALLED){ 123 "Assuming single LUN available.\n", udi->dev_num, status); 126 status = B_OK; 129 return status; 137 \return: status o 145 status_t status = B_OK; local 217 status_t status = B_ERROR; local 265 status_t status = B_OK; local 281 status_t status = B_ERROR; local 323 status_t status = B_OK; local [all...] |
/haiku/src/apps/haikudepot/edits_generic/ |
H A D | CompoundEdit.cpp | 35 status_t status = B_OK; local 40 status = fEdits[i]->Perform(context); 41 if (status != B_OK) 45 if (status != B_OK) { 53 return status; 60 status_t status = B_OK; local 65 status = fEdits[i]->Undo(context); 66 if (status != B_OK) 70 if (status != B_OK) { 78 return status; 85 status_t status = B_OK; local [all...] |
/haiku/headers/private/shared/ |
H A D | OpenWithTracker.h | 19 status_t status; local 24 status = tracker.SendMessage(&message); 25 return status; 32 status_t status; local 34 status = get_ref_for_path(path, &ref); 35 if (status != B_OK) 36 return status; 46 status_t status; local 59 status = entry.GetRef(&ref); 60 if (status ! [all...] |
/haiku/src/tests/system/kernel/cache/ |
H A D | cache_control.cpp | 32 status_t status = _kern_generic_syscall(CACHE_SYSCALLS, B_SYSCALL_INFO, &version, sizeof(version)); local 33 if (status != B_OK) { 42 status = _kern_generic_syscall(CACHE_SYSCALLS, CACHE_CLEAR, NULL, 0); 43 if (status != B_OK) 44 fprintf(stderr, "%s: clearing the cache failed: %s\n", __progname, strerror(status)); 46 status = _kern_generic_syscall(CACHE_SYSCALLS, CACHE_SET_MODULE, NULL, 0); 47 if (status != B_OK) 48 fprintf(stderr, "%s: unsetting the cache module failed: %s\n", __progname, strerror(status)); 50 status = _kern_generic_syscall(CACHE_SYSCALLS, CACHE_SET_MODULE, argv[2], strlen(argv[2])); 51 if (status ! [all...] |
/haiku/src/tests/system/network/ |
H A D | udp_server.c | 24 long status;
local 27 status = recvfrom(sockFD, buf, MAXLEN-1, 0, NULL, NULL);
28 if (status < 0) {
29 printf("recvfrom(): %lx (%s)\n", status, strerror(status));
32 buf[status] = 0;
41 long status;
local 56 status = bind(sockFD, (struct sockaddr *)&localAddr, sizeof(struct sockaddr_in));
57 if (status < 0) {
58 printf("bind(): %lx (%s)\n", status, strerro [all...] |
/haiku/src/system/libroot/posix/unistd/ |
H A D | link.c | 26 status_t status = _kern_read_link(fd, path, buffer, &linkLen); local 27 if (status < B_OK) { 28 __set_errno(status); 49 int status = _kern_create_symlink(-1, symlinkPath, toPath, 0); local 51 RETURN_AND_SET_ERRNO(status); 65 int status = _kern_unlink(-1, path); local 67 RETURN_AND_SET_ERRNO(status); 84 int status = _kern_create_link(-1, linkPath, -1, toPath, true); local 86 if (status == B_UNSUPPORTED) 87 status [all...] |
/haiku/src/tests/add-ons/kernel/drivers/hpet/ |
H A D | main.cpp | 27 status_t status; local 30 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); 31 printf("%s.\n", strerror(status)); 35 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); 36 printf("%s.\n", strerror(status)); 40 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); 41 printf("%s.\n", strerror(status));
|
/haiku/src/add-ons/kernel/file_systems/udf/ |
H A D | SparablePartition.cpp | 26 status_t status = (0 < TableCount() && TableCount() <= kMaxSparingTableCount) local 28 if (status != B_OK) 53 status_t status = InitCheck(); local 55 if (status != B_OK) 56 return status; 66 status = B_ERROR; 68 return status; 72 /*! Returns the initialization status of the object. */
|
/haiku/src/system/runtime_loader/arch/ppc/ |
H A D | arch_relocate.cpp | 37 status_t status = B_NO_ERROR; local 41 status = relocate_rel(rootImage, image, image->rel, image->rel_len, 43 if (status < B_OK) 44 return status; 48 status = relocate_rel(rootImage, image, image->pltrel, 50 if (status < B_OK) 51 return status;
|
/haiku/src/tests/system/libroot/posix/ |
H A D | posix_spawn_test.cpp | 23 int status; local 24 pid_t waitpid_res = waitpid(pid, &status, 0); 29 WIFEXITED(status), WEXITSTATUS(status)); 38 waitpid_res = waitpid(pid, &status, 0); 42 WIFEXITED(status), WEXITSTATUS(status));
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | FileSystemVisitor.cpp | 46 status_t status; local 62 status = vnode.Get(&inode); 68 if (status != B_OK) { 72 status = OpenInodeFailed(status, fVolume->ToBlock(fCurrent), 74 if (status == B_OK) 76 return status; 83 status = OpenBPlusTreeFailed(inode); 84 if (status == B_OK) 86 return status; 104 status_t status = fIterator->GetNextEntry(treeName, &length, local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/ |
H A D | glue_de.c | 29 uint32_t status; local 34 status = TULIP_CSR_READ(sc, csr_status); 35 if (status == 0xffffffff) { 40 if (status != 0 && (status & sc->tulip_intrmask) == 0) { 41 TULIP_CSR_WRITE(sc, csr_status, status); 46 if ((status & sc->tulip_intrmask) == 0) {
|
/haiku/src/add-ons/kernel/drivers/network/ether/rtl8139/ |
H A D | glue.c | 19 uint16_t status; local 21 status = CSR_READ_2(sc, RL_ISR); 22 if (status == 0xffff) 24 if (status != 0 && (status & RL_INTRS) == 0) { 25 CSR_WRITE_2(sc, RL_ISR, status); 28 if ((status & RL_INTRS) == 0)
|
/haiku/src/add-ons/kernel/busses/scsi/usb/freecom/ |
H A D | freecom.c | 48 #define FCMT_STATUS 0x20 /* request for status */ 56 #define FCMR_CMD 0x16 /* status-command register */ 73 uint8 status; member in struct:__anon1420 105 if(!(st->status & (1 << i))) 124 status_t status = B_OK; local 129 if(B_OK != (status = (*udi->usb_m->send_request)(udi->device, 134 PTRACE_ALWAYS(udi, "FCM:init[%d]: init failed: %08x\n", udi->dev_num, status); 140 if(B_OK != (status = (*udi->usb_m->send_request)(udi->device, 144 PTRACE_ALWAYS(udi, "FCM:init[%d]: reset on failed:%08x\n", udi->dev_num, status); 149 if(B_OK != (status 170 status_t status = B_OK; local 185 usb_callback(void *cookie, uint32 status, void *data, uint32 actual_len) argument 218 status_t status = B_OK; local 239 status_t status = B_OK; local 272 status_t status = B_OK; local 310 status_t status = B_OK; local 351 status_t status = B_OK; local 403 status_t status = B_OK; local [all...] |
/haiku/src/add-ons/kernel/drivers/audio/generic/ |
H A D | multi.c | 14 status_t status; local 31 status = get_description(cookie, &description); 32 if (status != B_OK) 33 return status; 57 status = get_enabled_channels(cookie, &enable); 58 if (status != B_OK) 59 return status; 79 status = get_global_format(cookie, &info); 80 if (status != B_OK) 90 status [all...] |
/haiku/src/preferences/datatranslations/ |
H A D | DataTranslations.cpp | 48 DataTranslationsApplication::_InstallError(const char* name, status_t status) argument 52 B_TRANSLATE("Could not install %s:\n%s"), name, strerror(status)); 69 status_t status = entry.MoveTo(&target, NULL, true); local 70 if (status == B_OK) 99 status_t status = find_directory(B_USER_NONPACKAGED_ADDONS_DIRECTORY, local 101 if (status != B_OK) { 102 _InstallError("translator", status); 107 status = target.SetTo(path.Path()); 108 if (status == B_OK) { 110 status [all...] |
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_atomic.cpp | 30 cpu_status status; 32 status = disable_interrupts(); 37 restore_interrupts(status); 44 cpu_status status; 46 status = disable_interrupts(); 52 restore_interrupts(status); 59 cpu_status status; 61 status = disable_interrupts(); 66 restore_interrupts(status); 73 cpu_status status; [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/pci/ |
H A D | r92ce_rx.c | 63 uint32_t status; local 67 status = rtwn_read_4(sc, R92C_HISR); 69 __func__, status, rtwn_read_2(sc, R92C_HISRE)); 70 if (status == 0 || status == 0xffffffff) 77 rtwn_write_4(sc, R92C_HISR, status); 79 if (status & R92C_IMR_BDOK) 81 if (status & R92C_IMR_HIGHDOK) 83 if (status & R92C_IMR_MGNTDOK) 85 if (status [all...] |
/haiku/src/kits/support/ |
H A D | Beep.cpp | 27 status_t status = messenger.SendMessage(&msg, &reply); local 28 if (status != B_OK || reply.FindInt32("error", &status) != B_OK) 29 status = B_BAD_REPLY; 31 return status; 54 status_t status = messenger.SendMessage(&msg, &reply); local 55 if (status != B_OK || reply.FindInt32("error", &status) != B_OK) 56 status = B_BAD_REPLY; 58 return status; [all...] |
/haiku/src/kits/interface/ |
H A D | PictureDataWriter.cpp | 68 } catch (status_t& status) { 69 return status; 88 } catch (status_t& status) { 89 return status; 103 } catch (status_t& status) { 104 return status; 118 } catch (status_t& status) { 119 return status; 133 } catch (status_t& status) { 134 return status; [all...] |