/system/core/toolbox/ |
H A D | getenforce.c | 9 int rc; local 11 rc = is_selinux_enabled(); 12 if (rc <= 0) { 17 rc = security_getenforce(); 18 if (rc < 0) { 24 if (rc)
|
H A D | chcon.c | 9 int rc, i; local 17 rc = setfilecon(argv[i], argv[1]); 18 if (rc < 0) {
|
H A D | setenforce.c | 19 int rc = 0; local 29 rc = security_setenforce(atoi(argv[1])); 32 rc = security_setenforce(1); 34 rc = security_setenforce(0); 38 if (rc < 0) {
|
H A D | runcon.c | 10 int rc; local 17 rc = setexeccon(argv[1]); 18 if (rc < 0) {
|
H A D | restorecon.c | 18 int ch, i, rc; local 55 rc = selinux_android_restorecon(argv[i], flags); 56 if (rc < 0)
|
H A D | getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local 31 rc = security_get_boolean_names(&names, &len); 32 if (rc) { 79 rc = -1; 86 rc = -1; 103 return rc;
|
H A D | load_policy.c | 13 int fd, rc; local 41 rc = security_load_policy(map, sb.st_size); 42 if (rc < 0) {
|
/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 215 int rc = 0; local 271 int rc = close(fd); local [all...] |
H A D | LogAudit.cpp | 66 int rc = vasprintf(&str, fmt, args); local 69 if (rc < 0) { 70 return rc; 128 rc = -ENOMEM; 176 rc = -ENOMEM; 199 return rc; 211 int rc = klogctl(KLOG_READ_ALL, buf, len); local 215 for(char *tok = buf; (rc >= 0) && ((tok = strtok(tok, "\r\n"))); tok = NULL) { 225 rc = logPrint("%s %s", type, audit); 227 rc [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;
|
H A D | logwrap.c | 303 int rc = 0; local 353 rc = -1; 404 rc = errno; 418 rc = WEXITSTATUS(status); 420 rc = -ECHILD; 460 return rc; 484 int rc = 0; local 486 rc = pthread_mutex_lock(&fd_mutex); 487 if (rc) { 496 rc [all...] |
/system/vold/ |
H A D | Ext4.cpp | 51 int rc; local 60 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); 62 if (rc && errno == EROFS) { 65 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); 68 return rc; 74 int rc; local 86 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, 89 if (rc != 0) { 117 int rc; local 131 rc [all...] |
H A D | CommandListener.cpp | 131 int rc = 0; local 147 rc = vm->mountVolume(argv[2]); 164 rc = vm->unmountVolume(argv[2], force, revert); 175 rc = vm->formatVolume(argv[2], wipe); 182 rc = vm->shareVolume(argv[2], argv[3]); 189 rc = vm->unshareVolume(argv[2], argv[3]); 211 rc = vm->mkdirs(argv[2]); 216 if (!rc) { 220 rc = ResponseCode::convertFromErrno(); 221 cli->sendMsg(rc, "volum 344 int rc = 0; local 486 int rc = 0; local 569 int rc = 0; local 736 int rc = 0; local [all...] |
H A D | Fat.cpp | 60 int rc = 0; local 69 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, 71 if (rc != 0) { 118 int rc; local 146 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 148 if (rc && errno == EROFS) { 151 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 154 if (rc == 0 && createLost) { 169 return rc; 175 int rc; local [all...] |
H A D | vdc.c | 111 int rc = 0; local 119 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 123 } else if (!rc) { 129 if ((rc = read(sock, buffer, 4096)) <= 0) { 130 if (rc == 0) 135 if (rc == 0) 143 for (i = 0; i < rc; i++) {
|
H A D | cryptfs.c | 97 int rc; local 100 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); 101 if (rc) { 106 rc = keymaster_open(mod, keymaster_dev); 107 if (rc) { 109 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); 117 return rc; 124 int rc = 0; local 128 rc = -1; 136 rc 160 int rc = 0; local 197 int rc = 0; local 427 int rc = -1; local 481 int rc = -1; local 617 int rc = -1; local 1201 int rc; local 1253 int rc = 0; local 1432 int i, err, rc; local 1550 int rc = -1, i; local 1730 int rc; local 1995 int rc; local 2044 int rc; local 2141 int rc = -1; local 2326 int rc = -1; local 2415 int rc; // Can't initialize without causing warning -Wclobbered local 2548 int rc = ENABLE_INPLACE_ERR_OTHER; local 2625 int rc = ENABLE_INPLACE_ERR_OTHER; local 2839 int i, rc = -1; local 2894 int rc=-1, fd, i, ret; local 3246 int rc = cryptfs_enable_internal(howarg, type, passwd, allow_reboot); local 3376 int rc = -2; local 3407 int rc = -1; local [all...] |
H A D | Loop.cpp | 46 int rc; local 59 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 61 if (rc < 0 && errno == ENXIO) { 65 if (rc < 0) { 90 int rc; local 103 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 105 if (rc < 0 && errno == ENXIO) { 109 if (rc < 0) { 134 int rc; local 156 rc [all...] |
/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);
|
H A D | sched_policy.c | 246 int rc = sched_getscheduler(tid); local 247 if (rc < 0) 249 else if (rc == SCHED_NORMAL) 251 else if (rc == SCHED_BATCH) 282 int rc = read(fd, statline, 1023); local 284 statline[rc] = 0;
|
/system/netd/server/ |
H A D | CommandListener.cpp | 492 int rc = 0; local 507 rc = sTetherCtrl->setIpFwdEnabled(true); 509 rc = sTetherCtrl->setIpFwdEnabled(false); 515 if (!rc) { 530 int rc = 0; local 538 rc = sTetherCtrl->stopTethering(); 592 rc = sTetherCtrl->startTethering(num_addrs, addrs); 596 rc = sTetherCtrl->tetherInterface(argv[3]); 598 rc = sTetherCtrl->untetherInterface(argv[3]); 612 rc 640 int rc = 0; local 680 int rc = 0; local 732 int rc = ResponseCode::SoftapStatusResult; local 777 int rc = 0; local 848 int rc = sBandwidthCtrl->enableBandwidthControl(true); local 854 int rc = sBandwidthCtrl->disableBandwidthControl(); local 864 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local 875 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local 895 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local 912 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local 917 int rc; local 939 int rc; local 965 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local 975 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local 985 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local 996 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local 1006 int rc = sBandwidthCtrl->enableHappyBox(); local 1012 int rc = sBandwidthCtrl->disableHappyBox(); local 1024 int rc = sBandwidthCtrl->addNiceApps(argc - 2, argv + 2); local 1033 int rc = sBandwidthCtrl->removeNiceApps(argc - 2, argv + 2); local 1042 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local 1052 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local 1062 int rc = sBandwidthCtrl->removeGlobalAlert(); local 1073 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local 1083 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local 1093 int rc = sBandwidthCtrl->removeSharedAlert(); local 1103 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local 1113 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local 1132 int rc = sBandwidthCtrl->getTetherStats(cli, tetherStats, extraProcessingInfo); local 1320 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/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/core/libsysutils/src/ |
H A D | SocketClient.cpp | 158 int rc = sendDataLockedv(vec, 1); local 161 return rc; 166 int rc = sendDataLockedv(iov, iovcnt); local 169 return rc; 193 ssize_t rc = TEMP_FAILURE_RETRY( local 196 if (rc > 0) { 197 size_t written = rc; 210 if (rc == 0) {
|