/system/core/include/cutils/ |
H A D | atomic-mips.h | 75 int32_t prev, status; local 79 " li %[status], 1\n" 81 " move %[status], %[new_value]\n" 82 " sc %[status], (%[ptr])\n" 84 : [prev] "=&r" (prev), [status] "=&r" (status) 87 } while (__builtin_expect(status == 0, 0)); 96 int status = android_atomic_cas(old_value, new_value, ptr); local 98 return status; 114 int32_t prev, status; local 143 int32_t prev, status; local 160 int32_t prev, status; local [all...] |
H A D | atomic-mips64.h | 68 int32_t prev, status; local 72 " li %[status], 1\n" 74 " move %[status], %[new_value]\n" 75 " sc %[status], (%[ptr])\n" 77 : [prev] "=&r" (prev), [status] "=&r" (status) 80 } while (__builtin_expect(status == 0, 0)); 89 int status = android_atomic_cas(old_value, new_value, ptr); local 91 return status; 106 int32_t prev, status; local 135 int32_t prev, status; local 152 int32_t prev, status; local [all...] |
H A D | atomic-arm.h | 73 int32_t prev, status; local 82 : "=&r" (prev), "=&r" (status), "+m"(*ptr) 85 } while (__builtin_expect(status != 0, 0)); 93 int status = android_atomic_cas(old_value, new_value, ptr); local 95 return status; 109 int32_t prev, tmp, status; local 116 "=&r" (status), "+m" (*ptr) 119 } while (__builtin_expect(status != 0, 0)); 136 int32_t prev, tmp, status; local 143 "=&r" (status), " 153 int32_t prev, tmp, status; local [all...] |
H A D | atomic-arm64.h | 95 int status = android_atomic_cas(old_value, new_value, ptr); local 97 return status; 111 int32_t prev, status; local 115 status = android_atomic_cas(prev, prev + increment, ptr); 116 } while (__builtin_expect(status != 0, 0)); 135 int32_t prev, status; local 139 status = android_atomic_cas(prev, prev & value, ptr); 140 } while (__builtin_expect(status != 0, 0)); 147 int32_t prev, status; local 151 status [all...] |
H A D | atomic-x86.h | 126 int32_t prev, status; local 129 status = android_atomic_cas(prev, prev & value, ptr); 130 } while (__builtin_expect(status != 0, 0)); 137 int32_t prev, status; local 140 status = android_atomic_cas(prev, prev | value, ptr); 141 } while (__builtin_expect(status != 0, 0));
|
H A D | atomic-x86_64.h | 132 int32_t prev, status; local 135 status = android_atomic_cas(prev, prev & value, ptr); 136 } while (__builtin_expect(status != 0, 0)); 143 int32_t prev, status; local 146 status = android_atomic_cas(prev, prev | value, ptr); 147 } while (__builtin_expect(status != 0, 0));
|
/system/core/logwrapper/include/logwrap/ |
H A D | logwrap.h | 39 * status: the equivalent child status as populated by wait(status). This 58 * 0 when logwrap successfully run the child process and captured its status 60 * -ECHILD if status is NULL and the child didn't exit properly 61 * the return value of the child if it exited properly and status is NULL 71 int android_fork_execvp_ext(int argc, char* argv[], int *status, bool ignore_int_quit, 78 static inline int android_fork_execvp(int argc, char* argv[], int *status, argument 81 return android_fork_execvp_ext(argc, argv, status, ignore_int_quit,
|
/system/vold/ |
H A D | Ext4.cpp | 75 int status; local 86 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, 95 if (!WIFEXITED(status)) { 101 status = WEXITSTATUS(status); 103 if (status == 0) { 107 SLOGE("Resize (ext4) failed (unknown exit code %d)", status); 118 int status; local 131 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, true); 134 rc = android_fork_execvp(5, (char **)args, &status, fals [all...] |
H A D | Fat.cpp | 63 int status; local 69 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, 77 if (!WIFEXITED(status)) { 83 status = WEXITSTATUS(status); 85 switch(status) { 106 SLOGE("Filesystem check failed (unknown exit code %d)", status); 176 int status; local 198 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, 202 rc = android_fork_execvp(9, (char **)args, &status, fals [all...] |
H A D | CheckBattery.cpp | 71 status_t status = interface local 73 if (status == NO_ERROR) {
|
H A D | NetlinkManager.cpp | 95 int status = 0; local 99 status = -1; 107 return status;
|
/system/core/logwrapper/ |
H A D | logwrapper.c | 46 " fault address is set to the status of wait()\n" 56 int status = 0xAAAA; local 83 rc = android_fork_execvp_ext(argc, &argv[0], &status, true, 86 if (WIFEXITED(status)) 87 rc = WEXITSTATUS(status); 93 uintptr_t fault_address = (uintptr_t) status; 94 *(int *) fault_address = 0; // causes SIGSEGV with fault_address = status
|
/system/core/fastboot/ |
H A D | engine.c | 76 int (*func)(Action *a, int status, char *resp); 112 int status; local 117 status = fb_getvar(usb, fs_type, "partition-type:%s", partition); 118 if (status) { 124 static int cb_default(Action *a, int status, char *resp) argument 126 if (status) { 133 return status; 225 static int cb_check(Action *a, int status, char *resp, int invert) argument 232 if (status) { 234 return status; 268 cb_require(Action *a, int status, char *resp) argument 273 cb_reject(Action *a, int status, char *resp) argument 291 cb_display(Action *a, int status, char *resp) argument 310 cb_save(Action *a, int status, char *resp) argument 371 int status = 0; local [all...] |
H A D | protocol.c | 52 unsigned char status[65]; local 56 r = usb_read(usb, status, 64); 58 sprintf(ERROR, "status read failed (%s)", strerror(errno)); 62 status[r] = 0; 65 sprintf(ERROR, "status malformed (%d bytes)", r); 70 if(!memcmp(status, "INFO", 4)) { 71 fprintf(stderr,"(bootloader) %s\n", status + 4); 75 if(!memcmp(status, "OKAY", 4)) { 77 strcpy(response, (char*) status + 4); 82 if(!memcmp(status, "FAI [all...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_executable_destructor.c | 60 int status; local 91 if (wait(&status) < 0) { 95 if (!WIFSIGNALED(status)) {
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 31 int32_t status; member in struct:sync_fence_info_data 39 int32_t status; member in struct:sync_pt_info
|
/system/security/keystore/ |
H A D | IKeystoreService.cpp | 60 status_t status = remote()->transact(BnKeystoreService::TEST, data, &reply); local 61 if (status != NO_ERROR) { 62 ALOGD("test() could not contact remote: %d\n", status); 79 status_t status = remote()->transact(BnKeystoreService::GET, data, &reply); local 80 if (status != NO_ERROR) { 81 ALOGD("get() could not contact remote: %d\n", status); 118 status_t status = remote()->transact(BnKeystoreService::INSERT, data, &reply); local 119 if (status != NO_ERROR) { 120 ALOGD("import() could not contact remote: %d\n", status); 138 status_t status local 158 status_t status = remote()->transact(BnKeystoreService::EXIST, data, &reply); local 178 status_t status = remote()->transact(BnKeystoreService::SAW, data, &reply); local 200 status_t status = remote()->transact(BnKeystoreService::RESET, data, &reply); local 219 status_t status = remote()->transact(BnKeystoreService::PASSWORD, data, &reply); local 237 status_t status = remote()->transact(BnKeystoreService::LOCK, data, &reply); local 256 status_t status = remote()->transact(BnKeystoreService::UNLOCK, data, &reply); local 274 status_t status = remote()->transact(BnKeystoreService::ZERO, data, &reply); local 306 status_t status = remote()->transact(BnKeystoreService::GENERATE, data, &reply); local 331 status_t status = remote()->transact(BnKeystoreService::IMPORT, data, &reply); local 354 status_t status = remote()->transact(BnKeystoreService::SIGN, data, &reply); local 396 status_t status = remote()->transact(BnKeystoreService::VERIFY, data, &reply); local 415 status_t status = remote()->transact(BnKeystoreService::GET_PUBKEY, data, &reply); local 449 status_t status = remote()->transact(BnKeystoreService::DEL_KEY, data, &reply); local 469 status_t status = remote()->transact(BnKeystoreService::GRANT, data, &reply); local 489 status_t status = remote()->transact(BnKeystoreService::UNGRANT, data, &reply); local 508 status_t status = remote()->transact(BnKeystoreService::GETMTIME, data, &reply); local 531 status_t status = remote()->transact(BnKeystoreService::DUPLICATE, data, &reply); local 550 status_t status = remote()->transact(BnKeystoreService::IS_HARDWARE_BACKED, data, &reply); local 569 status_t status = remote()->transact(BnKeystoreService::CLEAR_UID, data, &reply); local 587 status_t status = remote()->transact(BnKeystoreService::RESET_UID, data, &reply); local 608 status_t status = remote()->transact(BnKeystoreService::SYNC_UID, data, &reply); local 628 status_t status = remote()->transact(BnKeystoreService::PASSWORD_UID, data, &reply); local [all...] |
/system/core/init/ |
H A D | signal_handler.c | 47 int status; local 54 while ( (pid = waitpid(-1, &status, block ? 0 : WNOHANG)) == -1 && errno == EINTR ); 56 INFO("waitpid returned pid %d, status = %08x\n", pid, status); 60 if (WIFEXITED(status)) { 61 ERROR("untracked pid %d exited with status %d\n", pid, WEXITSTATUS(status)); 62 } else if (WIFSIGNALED(status)) { 63 ERROR("untracked pid %d killed by signal %d\n", pid, WTERMSIG(status)); 64 } else if (WIFSTOPPED(status)) { [all...] |
/system/core/healthd/ |
H A D | BatteryMonitor.h | 53 int getBatteryStatus(const char* status); 54 int getBatteryHealth(const char* status);
|
/system/netd/server/ |
H A D | NetlinkManager.cpp | 124 int status = 0; local 128 status = -1; 139 status = -1; 151 status = -1; 161 return status;
|
/system/core/libutils/ |
H A D | PropertyMap.cpp | 122 status_t status = Tokenizer::open(filename, &tokenizer); local 123 if (status) { 124 ALOGE("Error %d opening property file %s.", status, filename.string()); 129 status = NO_MEMORY; 135 status = parser.parse(); 142 if (status) { 150 return status;
|
/system/core/logd/ |
H A D | libaudit.c | 169 struct audit_status status; local 171 memset(&status, 0, sizeof(status)); 175 * socket with the pid field of the status struct set to our current pid, 178 status.pid = pid; 179 status.mask = AUDIT_STATUS_PID; 182 rc = audit_send(fd, AUDIT_SET, &status, sizeof(status));
|
/system/core/debuggerd/ |
H A D | debuggerd.cpp | 101 snprintf(path, sizeof(path), "/proc/%d/status", tid); 130 int status = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); local 131 if (status != 0) { 143 status = TEMP_FAILURE_RETRY(poll(pollfds, 1, 3000)); 144 if (status != 1) { 151 status = TEMP_FAILURE_RETRY(read(fd, &msg, sizeof(msg))); 152 if (status < 0) { 156 if (status != sizeof(debugger_msg_t)) { 157 ALOGE("invalid crash request of size %d (from pid=%d uid=%d)\n", status, cr.pid, cr.uid); 183 status 211 int status = read_request(fd, &request); local [all...] |
H A D | utility.cpp | 96 int status; local 97 pid_t n = waitpid(tid, &status, __WALL | WNOHANG); 104 ALOGV("waitpid: n=%d status=%08x\n", n, status); 105 if (WIFSTOPPED(status)) { 106 return WSTOPSIG(status); 108 ALOGE("unexpected waitpid response: n=%d, status=%08x\n", n, status);
|
/system/core/toolbox/upstream-netbsd/bin/mv/ |
H A D | mv.c | 347 int status; local 354 if (waitpid(pid, &status, 0) == -1) { 358 if (!WIFEXITED(status)) { 362 if (WEXITSTATUS(status)) { 363 warnx("%s: terminated with %d (non-zero) status", 364 _PATH_CP, WEXITSTATUS(status)); 372 if (waitpid(pid, &status, 0) == -1) { 376 if (!WIFEXITED(status)) { 380 if (WEXITSTATUS(status)) { 381 warnx("%s: terminated with %d (non-zero) status", [all...] |