/haiku/src/system/libroot/posix/unistd/ |
H A D | _exit.c | 15 _exit(int status) argument 20 // exit with status code 21 _kern_exit_team(status); 26 _Exit(int status) argument 28 _exit(status);
|
H A D | truncate.c | 22 status_t status; local 25 status = _kern_write_stat(-1, path, true, &stat, sizeof(struct stat), 28 RETURN_AND_SET_ERRNO(status); 36 status_t status; local 39 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat), 42 RETURN_AND_SET_ERRNO(status);
|
H A D | access.c | 18 status_t status = _kern_access(-1, path, accessMode, false); local 20 RETURN_AND_SET_ERRNO(status); 27 status_t status = _kern_access(fd, path, accessMode, local 30 RETURN_AND_SET_ERRNO(status);
|
/haiku/src/system/libroot/posix/stdio/ |
H A D | remove.c | 19 int status = _kern_unlink(-1, path); local 20 if (status == B_IS_A_DIRECTORY) 21 status = _kern_remove_dir(-1, path); 23 if (status != B_OK) { 24 __set_errno(status); 28 return status;
|
/haiku/src/system/libroot/posix/signal/ |
H A D | kill.c | 19 status_t status; local 26 status = _kern_send_signal(pid, sig, NULL, 0); 27 if (status != B_OK) { 29 if (status == B_BAD_THREAD_ID || status == B_BAD_TEAM_ID) 30 status = ESRCH; 32 __set_errno(status);
|
H A D | set_signal_stack.c | 19 status_t status; local 25 status = _kern_set_signal_stack(&alternateStack, NULL); 26 if (status < B_OK) 27 __set_errno(status);
|
H A D | sigaltstack.c | 17 status_t status =_kern_set_signal_stack(alternateStack, oldAlternateStack); local 18 if (status < B_OK) { 19 __set_errno(status);
|
/haiku/src/system/libroot/posix/stdlib/ |
H A D | atfork.c | 23 status_t status = __register_atfork(NULL, NULL, function); local 24 if (status < B_OK) { 25 __set_errno(status);
|
/haiku/src/tests/add-ons/kernel/busses/usb/ |
H A D | uhci_decode.cpp | 34 uhci_td_control_status status; 35 memcpy(&status, &value, sizeof(status)); 38 printf("actual_length: %ld\n", status.actual_length); 39 printf("reserved_1: %ld\n", status.reserved_1); 40 printf("bitstuff_error: %ld\n", status.bitstuff_error); 41 printf("crc_timeout: %ld\n", status.crc_timeout); 42 printf("nak_received: %ld\n", status.nak_received); 43 printf("babble_detected: %ld\n", status.babble_detected); 44 printf("data_buffer_error: %ld\n", status [all...] |
/haiku/src/system/libroot/posix/glibc/include/bits/ |
H A D | waitstatus.h | 1 /* Definitions of status bits for `wait' et al. 28 /* If WIFEXITED(STATUS), the low-order 8 bits of the status. */ 29 #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) 32 #define __WTERMSIG(status) ((status) & 0x7f) 35 #define __WSTOPSIG(status) __WEXITSTATUS(status) 38 #define __WIFEXITED(status) (__WTERMSIG(status) [all...] |
/haiku/src/tests/system/network/ |
H A D | udp_client.c | 24 long status;
local 27 status = fread(sendbuf, 1, MAXLEN, stdin);
28 if (status < 0) {
29 printf("fread(): %lx (%s)\n", status, strerror(status));
32 printf("trying to send %ld bytes...\n", status);
33 status = sendto(sockFD, sendbuf, status, 0,
35 if (status < 0) {
36 printf("sendto(): %lx (%s)\n", status, strerro 46 long status; local [all...] |
/haiku/src/system/libroot/posix/time/ |
H A D | stime.c | 16 status_t status; local 23 status = _kern_set_real_time_clock((bigtime_t)*tp * 1000000); 24 if (status < B_OK) { 25 __set_errno(status);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | rlimit.c | 18 int status = _kern_getrlimit(resource, rlimit); local 20 RETURN_AND_SET_ERRNO(status); 27 int status = _kern_setrlimit(resource, rlimit); local 29 RETURN_AND_SET_ERRNO(status);
|
H A D | chmod.c | 21 status_t status; local 24 status = _kern_write_stat(-1, path, true, &stat, sizeof(struct stat), 27 RETURN_AND_SET_ERRNO(status); 35 status_t status; local 38 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat), 41 RETURN_AND_SET_ERRNO(status); 49 status_t status; local 52 status = _kern_write_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0, &stat, 55 RETURN_AND_SET_ERRNO(status);
|
H A D | flock.c | 19 status_t status = _kern_flock(fd, op); local 23 if (status < B_OK) { 24 __set_errno(status);
|
/haiku/src/libs/bsd/ |
H A D | getentropy.c | 16 status_t status; local 21 status = _kern_generic_syscall(RANDOM_SYSCALLS, RANDOM_GET_ENTROPY, 24 status = EIO; 26 if (status < 0) { 27 __set_errno(status);
|
/haiku/src/apps/icon-o-matic/shape/commands/ |
H A D | AddPointCommand.cpp | 49 status_t status = InitCheck(); local 50 if (status < B_OK) 51 return status; 56 status = B_NO_INIT; 58 return status; 65 status_t status = InitCheck(); local 66 if (status < B_OK) 67 return status; 74 status = B_ERROR; 77 return status; 84 status_t status = InitCheck(); local [all...] |
/haiku/src/add-ons/media/media-add-ons/dvb/ |
H A D | MediaFormat.cpp | 70 status_t status; local 79 status = formats.InitCheck(); 80 if (status) { 81 printf("formats.InitCheck failed, error %lu\n", status); 82 return status; 85 status = formats.GetFormatFor(desc, out_format); 86 if (status) { 87 printf("formats.GetFormatFor failed, error %lu\n", status); 88 return status; 125 status_t status; local 159 status_t status; local 188 status_t status; local [all...] |
/haiku/src/kits/app/ |
H A D | LaunchRoster.cpp | 43 status_t status = request.AddInt32("user", getuid()); local 44 if (status == B_OK) 45 status = request.AddMessenger("daemon", daemon); 46 if (status != B_OK) 47 return status; 51 status = fRoster->fMessenger.SendMessage(&request, &result); 54 if (status == B_OK) 55 status = result.what; 57 return status; 99 status_t status local 123 status_t status = GetData(signature, data); local 155 status_t status = request.AddInt32("user", getuid()); local 176 status_t status = request.AddInt32("user", getuid()); local 195 status_t status = request.AddInt32("user", getuid()); local 212 status_t status = request.AddInt32("user", getuid()); local 231 status_t status = request.AddInt32("user", getuid()); local 250 status_t status = request.AddInt32("user", getuid()); local 293 status_t status = request.AddInt32("user", getuid()); local 318 status_t status = request.AddInt32("user", getuid()); local 384 status_t status = fMessenger.SendMessage(&request, &result); local 400 status_t status = request.AddInt32("user", getuid()); local 423 status_t status = request.AddInt32("user", getuid()); local 437 status_t status = request.AddInt32("user", getuid()); local [all...] |
/haiku/src/tests/system/kernel/ |
H A D | lock_node_test.cpp | 16 status_t status = node.SetTo(argv[1]); local 17 if (status != B_OK) { 18 fprintf(stderr, "lock_node: could not open \"%s\": %s\n", argv[1], strerror(status)); 22 status = node.Lock(); 23 if (status != B_OK) { 24 fprintf(stderr, "lock_node: could not lock \"%s\": %s\n", argv[1], strerror(status));
|
/haiku/src/system/boot/platform/efi/ |
H A D | quirks.cpp | 27 efi_status status = kSystemTable->BootServices->LocateProtocol( local 31 if (status != EFI_SUCCESS || set_os == NULL) { 38 status = set_os->SetOSVersion((char*)APPLE_FAKE_OS_VERSION); 39 if (status != EFI_SUCCESS) { 45 status = set_os->SetOSVendor((char*)APPLE_FAKE_OS_VENDOR); 46 if (status != EFI_SUCCESS) {
|
/haiku/src/bin/ |
H A D | resizefs.cpp | 42 status_t status = roster.GetPartitionForPath(argv[1], &device, local 44 if (status != B_OK) { 47 status = roster.FindPartitionByMountPoint(argv[1], &device, 53 if (status != B_OK) { 55 "%s\n", kProgramName, argv[1], strerror(status)); 62 status = device.PrepareModifications(); 63 if (status != B_OK) { 65 "%s\n", kProgramName, strerror(status)); 94 status = partition->ValidateResize(&validatedSize); 95 if (status ! [all...] |
/haiku/src/bin/keymap/ |
H A D | main.cpp | 48 keymap_error(status_t status) argument 50 if (status == KEYMAP_ERROR_UNKNOWN_VERSION) 53 return strerror(status); 60 status_t status; local 63 status = keymap.LoadSource(name); 65 status = keymap.LoadSource(stdin); 68 status = keymap.SetTo(name); 71 status = keymap.SetTo(fileIO); 75 if (status != B_OK) { 77 keymap_error(status)); 167 status_t status = keymap.SaveAsCurrent(); local 181 status_t status = keymap.SetToCurrent(); local 208 status_t status = keymap.Save(output); local 224 status_t status = keymap.SaveAsCppHeader(output, input); local [all...] |
/haiku/src/apps/screenshot/ |
H A D | ScreenshotApp.cpp | 42 status_t status = B_OK; local 47 status = message->FindMessage("wholeScreen", &bitmap); 48 if (status != B_OK) 53 status = message->FindMessage("cursorBitmap", &bitmap); 54 if (status != B_OK) 59 status = message->FindMessage("cursorAreaBitmap", &bitmap); 60 if (status != B_OK) 65 status = message->FindPoint("cursorPosition", 67 if (status != B_OK) 70 status [all...] |
/haiku/src/tools/bfs_shell/ |
H A D | command_resizefs.cpp | 37 status_t status = _kern_ioctl(rootDir, BFS_IOCTL_RESIZE, local 42 if (status != B_OK) { 43 fssh_dprintf("Resizing failed, status: %s\n", fssh_strerror(status)); 44 return status;
|