/system/core/fs_mgr/ |
H A D | fs_mgr_format.c | 37 int fd, rc = 0; local 55 rc = make_ext4fs_internal(fd, NULL, NULL, fs_mnt_point, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); 56 if (rc) { 57 ERROR("make_ext4fs returned %d.\n", rc); 61 return rc; 68 int rc = 0; local 84 pid_t p = waitpid(pid, &rc, 0); 87 rc = -1; 90 if (WIFEXITED(rc)) { 91 rc 106 int rc = -EINVAL; local [all...] |
/system/core/logd/ |
H A D | libaudit.c | 41 int rc; local 49 rc = audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, MSG_PEEK); 50 if (rc < 0) { 51 return rc; 56 rc = ((struct nlmsgerr *)rep.data)->error; 57 if (rc) { 58 return -rc; 85 int rc; local 136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, 140 if (rc < 167 int rc; local 213 int rc = 0; local 269 int rc = close(fd); local [all...] |
H A D | LogAudit.cpp | 84 int rc = vasprintf(&str, fmt, args); local 87 if (rc < 0) { 88 return rc; 163 rc = -ENOMEM; 170 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 175 if (rc >= 0) { 213 rc = -ENOMEM; 220 rc = logbuf->log(LOG_ID_MAIN, now, uid, pid, tid, newstr, 224 if (rc >= 0) { 234 if (rc < 250 int rc; local [all...] |
/system/core/logwrapper/ |
H A D | logwrapper.c | 57 int rc; local 83 rc = android_fork_execvp_ext(argc, &argv[0], &status, true, 85 if (!rc) { 87 rc = WEXITSTATUS(status); 89 rc = -ECHILD; 97 return rc;
|
/system/core/libnetutils/ |
H A D | dhcptool.c | 35 int rc = do_dhcp(interface); local 36 if (rc) { 42 return rc ? EXIT_FAILURE : EXIT_SUCCESS;
|
/system/core/rootdir/ |
H A D | Android.mk | 4 # init.rc 5 # Only copy init.rc if the target doesn't have its own. 9 LOCAL_MODULE := init.rc 17 # init.environ.rc 21 LOCAL_MODULE := init.environ.rc 24 # Put it here instead of in init.rc module definition, 25 # because init.rc is conditionally included. 33 # Regenerate init.environ.rc if PRODUCT_BOOTCLASSPATH has changed. 39 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/init.environ.rc.in $(bcp_dep)
|
/system/core/libcutils/ |
H A D | iosched_policy.c | 45 int rc; local 47 if ((rc = syscall(SYS_ioprio_get, IOPRIO_WHO_PROCESS, pid)) < 0) { 51 *clazz = (rc >> IOPRIO_CLASS_SHIFT); 52 *ioprio = (rc & 0xff);
|
/system/extras/tests/pagingtest/ |
H A D | pagingtest.c | 19 ssize_t rc; local 51 rc = read(urandom, buf, size); 53 if (rc < 0) { 58 if (rc != size) { 73 rc = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED); 74 if (rc) { 138 int rc; local 160 rc = mmap_test(test_runs, alloc_size); 161 if (rc) { 162 return rc; [all...] |
H A D | pageinout_test.c | 19 int rc; local 62 rc = madvise((void *)buf, file_size, MADV_DONTNEED) || 65 if (rc) {
|
/system/vold/fs/ |
H A D | Vfat.cpp | 74 int rc = 0; local 83 rc = ForkExecvp(cmd, sFsckUntrustedContext); 85 if (rc < 0) { 91 switch(rc) { 112 SLOGE("Filesystem check failed (unknown exit code %d)", rc); 124 int rc; local 155 rc = mount(c_source, c_target, "vfat", flags, mountData); 157 if (rc && errno == EROFS) { 160 rc = mount(c_source, c_target, "vfat", flags, mountData); 163 if (rc 199 int rc = ForkExecvp(cmd); local [all...] |
/system/core/gatekeeperd/ |
H A D | IUserManager.cpp | 37 status_t rc = remote()->transact(GET_CREDENTIAL_OWNER_PROFILE, data, &reply, 0); local 38 if (rc != NO_ERROR) { 39 ALOGE("%s: failed (%d)\n", __func__, rc);
|
/system/core/toolbox/ |
H A D | prlimit.c | 50 int rc; local 69 rc = prlimit64(pid, resource, &rl, NULL); 70 if (rc < 0) {
|
/system/vold/ |
H A D | CryptCommandListener.cpp | 124 int rc = 0; local 132 rc = cryptfs_check_passwd(argv[2]); 139 rc = cryptfs_restart(); 146 rc = cryptfs_crypto_complete(); 165 rc = cryptfs_enable_default(argv[2], /*allow_reboot*/false); 167 rc = cryptfs_enable(argv[2], type, argv[4], 171 if (rc == 0) { 184 rc = cryptfs_enable_file(); 203 rc = cryptfs_changepw(type, password); 210 rc [all...] |
H A D | cryptfs.c | 107 int rc; local 110 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); 111 if (rc) { 123 rc = keymaster1_open(mod, keymaster1_dev); 126 rc = keymaster0_open(mod, keymaster0_dev); 129 if (rc) { 131 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); 140 return rc; 148 int rc = 0; local 152 rc 196 int rc = 0; local 278 int rc = 0; local 555 int rc = -1; local 611 int rc = -1; local 749 int rc = -1; local 1288 int rc; local 1332 int rc = 0; local 1507 int i, err, rc; local 1620 int rc = -1; local 1739 int rc; local 1830 int rc; local 2036 int rc; local 2062 int rc; local 2152 int rc = -1; local 2341 int rc = -1; local 2430 int rc; // Can't initialize without causing warning -Wclobbered local 2562 int rc = ENABLE_INPLACE_ERR_OTHER; local 2639 int rc = ENABLE_INPLACE_ERR_OTHER; local 2847 int rc = -1; local 2901 int rc=-1, i; local 3244 int rc; local 3281 int rc = update_hw_device_encryption_key(DEFAULT_PASSWORD, (char*) crypt_ftr.crypto_type_name); local 3286 int rc = update_hw_device_encryption_key(newpw, (char*) crypt_ftr.crypto_type_name); local 3474 int rc = CRYPTO_GETFIELD_ERROR_OTHER; local 3535 int rc = CRYPTO_SETFIELD_ERROR_OTHER; local 3729 int rc; local [all...] |
H A D | Loop.cpp | 48 int rc; local 61 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 63 if (rc < 0 && errno == ENXIO) { 67 if (rc < 0) { 92 int rc; local 105 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 107 if (rc < 0 && errno == ENXIO) { 111 if (rc < 0) { 136 int rc; local 149 rc [all...] |
H A D | vdc.c | 117 int rc = 0; local 125 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 129 } else if (!rc) { 135 if ((rc = read(sock, buffer, 4096)) <= 0) { 136 if (rc == 0) 141 if (rc == 0) 149 for (i = 0; i < rc; i++) {
|
H A D | CommandListener.cpp | 394 int rc = 0; local 412 rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal); 420 rc = vm->resizeAsec(argv[2], numSectors, argv[4]); 427 rc = vm->finalizeAsec(argv[2]); 442 rc = vm->fixupAsecPermissions(argv[2], gid, argv[4]); 453 rc = vm->destroyAsec(argv[2], force); 465 rc = vm->mountAsec(argv[2], argv[3], atoi(argv[4]), readOnly); 476 rc = vm->unmountAsec(argv[2], force); 484 rc = vm->renameAsec(argv[2], argv[3]); 493 if (!(rc 536 int rc = 0; local [all...] |
/system/netd/server/ |
H A D | CommandListener.cpp | 572 int rc = 0; local 580 rc = sTetherCtrl->stopTethering(); 634 rc = sTetherCtrl->startTethering(num_addrs, addrs); 638 rc = sTetherCtrl->tetherInterface(argv[3]); 640 rc = sTetherCtrl->untetherInterface(argv[3]); 654 rc = sTetherCtrl->setDnsForwarders(netId, &argv[4], argc - 4); 667 if (!rc) { 682 int rc = 0; local 693 rc = sNatCtrl->enableNat(argv[2], argv[3]); 694 if(!rc) { 722 int rc = 0; local 774 int rc = ResponseCode::SoftapStatusResult; local 819 int rc = 0; local 902 int rc = sBandwidthCtrl->enableBandwidthControl(true); local 908 int rc = sBandwidthCtrl->disableBandwidthControl(); local 918 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local 929 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local 949 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local 966 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local 971 int rc; local 993 int rc; local 1019 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local 1029 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local 1039 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local 1050 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local 1060 int rc = sBandwidthCtrl->enableHappyBox(); local 1066 int rc = sBandwidthCtrl->disableHappyBox(); local 1078 int rc = sBandwidthCtrl->addNiceApps(argc - 2, argv + 2); local 1087 int rc = sBandwidthCtrl->removeNiceApps(argc - 2, argv + 2); local 1096 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local 1106 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local 1116 int rc = sBandwidthCtrl->removeGlobalAlert(); local 1127 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local 1137 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local 1147 int rc = sBandwidthCtrl->removeSharedAlert(); local 1157 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local 1167 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local 1186 int rc = sBandwidthCtrl->getTetherStats(cli, tetherStats, extraProcessingInfo); local 1440 int rc = 0; local [all...] |
H A D | ndc.c | 126 int rc = 0; local 134 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 139 } else if (!rc) { 145 if ((rc = read(sock, buffer, 4096)) <= 0) { 147 if (rc == 0) 152 if (rc == 0) 160 for (i = 0; i < rc; i++) {
|
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 31 int rc = 0; local 39 rc = 1; 45 rc = 2; 50 rc = 3; 59 if (rc != 0) { 66 rc = 4; 70 return rc;
|
/system/extras/verity/ |
H A D | verify_boot_signature.c | 176 int rc = -1; local 213 rc = 0; 219 return rc; 234 int rc = -1; local 297 rc = 0; 312 return rc; 323 int rc = -1; local 352 rc = 0; 363 return rc; 374 int rc local [all...] |
/system/extras/ext4_utils/ |
H A D | ext4_crypt_init_extensions.cpp | 63 int rc = TEMP_FAILURE_RETRY(poll(&poll_sock, 1, vold_command_timeout_ms)); local 64 if (rc < 0) { 75 rc = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer))); 76 if (rc <= 0) { 77 if (rc == 0) { 90 return std::string(buffer, rc);
|
/system/bt/btif/src/ |
H A D | btif_debug_btsnoop.c | 76 bool rc = true; 90 rc = false; 100 return rc; 127 bool rc = btsnoop_compress(ringbuffer, buffer); local 128 if (rc == false) {
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 79 int rc = EXIT_SUCCESS; local 139 rc = EXIT_FAILURE; 156 rc = EXIT_FAILURE; 164 rc = EXIT_FAILURE; 171 rc = EXIT_FAILURE; 187 return rc; 204 int rc = 0; local 227 rc = -1; 273 rc = -1; 280 rc 445 int rc = 0; local [all...] |
/system/bt/utils/src/ |
H A D | bt_utils.c | 118 int rc = 0; local 128 rc = set_sched_policy(tid, SP_AUDIO_SYS); 133 if (rc) {
|