/system/core/logd/ |
D | libaudit.c | 41 int rc; in get_ack() local 49 rc = audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, MSG_PEEK); in get_ack() 50 if (rc < 0) { in get_ack() 51 return rc; in get_ack() 56 rc = ((struct nlmsgerr *)rep.data)->error; in get_ack() 57 if (rc) { in get_ack() 58 return -rc; in get_ack() 85 int rc; in audit_send() local 136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send() 140 if (rc < 0) { in audit_send() [all …]
|
D | LogAudit.cpp | 66 int rc = vasprintf(&str, fmt, args); in logPrint() local 69 if (rc < 0) { in logPrint() 70 return rc; in logPrint() 128 rc = -ENOMEM; in logPrint() 176 rc = -ENOMEM; in logPrint() 199 return rc; in logPrint() 211 int rc = klogctl(KLOG_READ_ALL, buf, len); in logDmesg() local 215 for(char *tok = buf; (rc >= 0) && ((tok = strtok(tok, "\r\n"))); tok = NULL) { in logDmesg() 225 rc = logPrint("%s %s", type, audit); in logDmesg() 227 rc = logPrint("%s", audit); in logDmesg()
|
/system/vold/ |
D | Ext4.cpp | 51 int rc; in doMount() local 60 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); in doMount() 62 if (rc && errno == EROFS) { in doMount() 65 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); in doMount() 68 return rc; in doMount() 74 int rc; in resize() local 86 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, in resize() 89 if (rc != 0) { in resize() 117 int rc; in format() local 131 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, true); in format() [all …]
|
D | CommandListener.cpp | 131 int rc = 0; in runCommand() local 147 rc = vm->mountVolume(argv[2]); in runCommand() 164 rc = vm->unmountVolume(argv[2], force, revert); in runCommand() 175 rc = vm->formatVolume(argv[2], wipe); in runCommand() 182 rc = vm->shareVolume(argv[2], argv[3]); in runCommand() 189 rc = vm->unshareVolume(argv[2], argv[3]); in runCommand() 211 rc = vm->mkdirs(argv[2]); in runCommand() 216 if (!rc) { in runCommand() 220 rc = ResponseCode::convertFromErrno(); in runCommand() 221 cli->sendMsg(rc, "volume operation failed", true); in runCommand() [all …]
|
D | Fat.cpp | 60 int rc = 0; in check() local 69 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, in check() 71 if (rc != 0) { in check() 118 int rc; in doMount() local 146 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); in doMount() 148 if (rc && errno == EROFS) { in doMount() 151 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); in doMount() 154 if (rc == 0 && createLost) { in doMount() 169 return rc; in doMount() 175 int rc; in format() local [all …]
|
D | cryptfs.c | 97 int rc; in keymaster_init() local 100 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); in keymaster_init() 101 if (rc) { in keymaster_init() 106 rc = keymaster_open(mod, keymaster_dev); in keymaster_init() 107 if (rc) { in keymaster_init() 109 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); in keymaster_init() 117 return rc; in keymaster_init() 124 int rc = 0; in keymaster_check_compatibility() local 128 rc = -1; in keymaster_check_compatibility() 136 rc = 0; in keymaster_check_compatibility() [all …]
|
D | Loop.cpp | 46 int rc; in dumpState() local 59 rc = ioctl(fd, LOOP_GET_STATUS64, &li); in dumpState() 61 if (rc < 0 && errno == ENXIO) { in dumpState() 65 if (rc < 0) { in dumpState() 90 int rc; in lookupActive() local 103 rc = ioctl(fd, LOOP_GET_STATUS64, &li); in lookupActive() 105 if (rc < 0 && errno == ENXIO) { in lookupActive() 109 if (rc < 0) { in lookupActive() 134 int rc; in create() local 156 rc = ioctl(fd, LOOP_GET_STATUS64, &li); in create() [all …]
|
D | vdc.c | 111 int rc = 0; in do_monitor() local 119 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { in do_monitor() 123 } else if (!rc) { in do_monitor() 129 if ((rc = read(sock, buffer, 4096)) <= 0) { in do_monitor() 130 if (rc == 0) in do_monitor() 135 if (rc == 0) in do_monitor() 143 for (i = 0; i < rc; i++) { in do_monitor()
|
/system/core/toolbox/ |
D | getenforce.c | 9 int rc; in getenforce_main() local 11 rc = is_selinux_enabled(); in getenforce_main() 12 if (rc <= 0) { in getenforce_main() 17 rc = security_getenforce(); in getenforce_main() 18 if (rc < 0) { in getenforce_main() 24 if (rc) in getenforce_main()
|
D | setenforce.c | 19 int rc = 0; in setenforce_main() local 29 rc = security_setenforce(atoi(argv[1])); in setenforce_main() 32 rc = security_setenforce(1); in setenforce_main() 34 rc = security_setenforce(0); in setenforce_main() 38 if (rc < 0) { in setenforce_main()
|
D | getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; in getsebool_main() local 31 rc = security_get_boolean_names(&names, &len); in getsebool_main() 32 if (rc) { in getsebool_main() 79 rc = -1; in getsebool_main() 86 rc = -1; in getsebool_main() 103 return rc; in getsebool_main()
|
D | chcon.c | 9 int rc, i; in chcon_main() local 17 rc = setfilecon(argv[i], argv[1]); in chcon_main() 18 if (rc < 0) { in chcon_main()
|
D | runcon.c | 10 int rc; in runcon_main() local 17 rc = setexeccon(argv[1]); in runcon_main() 18 if (rc < 0) { in runcon_main()
|
D | restorecon.c | 18 int ch, i, rc; in restorecon_main() local 55 rc = selinux_android_restorecon(argv[i], flags); in restorecon_main() 56 if (rc < 0) in restorecon_main()
|
D | load_policy.c | 13 int fd, rc; in load_policy_main() local 41 rc = security_load_policy(map, sb.st_size); in load_policy_main() 42 if (rc < 0) { in load_policy_main()
|
/system/netd/server/ |
D | CommandListener.cpp | 492 int rc = 0; in runCommand() local 507 rc = sTetherCtrl->setIpFwdEnabled(true); in runCommand() 509 rc = sTetherCtrl->setIpFwdEnabled(false); in runCommand() 515 if (!rc) { in runCommand() 530 int rc = 0; in runCommand() local 538 rc = sTetherCtrl->stopTethering(); in runCommand() 592 rc = sTetherCtrl->startTethering(num_addrs, addrs); in runCommand() 596 rc = sTetherCtrl->tetherInterface(argv[3]); in runCommand() 598 rc = sTetherCtrl->untetherInterface(argv[3]); in runCommand() 612 rc = sTetherCtrl->setDnsForwarders(netId, &argv[4], argc - 4); in runCommand() [all …]
|
D | ndc.c | 126 int rc = 0; in do_monitor() local 134 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { in do_monitor() 139 } else if (!rc) { in do_monitor() 145 if ((rc = read(sock, buffer, 4096)) <= 0) { in do_monitor() 147 if (rc == 0) in do_monitor() 152 if (rc == 0) in do_monitor() 160 for (i = 0; i < rc; i++) { in do_monitor()
|
/system/core/logwrapper/ |
D | logwrapper.c | 57 int rc; in main() local 83 rc = android_fork_execvp_ext(argc, &argv[0], &status, true, in main() 85 if (!rc) { in main() 87 rc = WEXITSTATUS(status); in main() 89 rc = -ECHILD; in main() 97 return rc; in main()
|
D | logwrap.c | 303 int rc = 0; in parent() local 353 rc = -1; in parent() 404 rc = errno; in parent() 418 rc = WEXITSTATUS(status); in parent() 420 rc = -ECHILD; in parent() 460 return rc; in parent() 484 int rc = 0; in android_fork_execvp_ext() local 486 rc = pthread_mutex_lock(&fd_mutex); in android_fork_execvp_ext() 487 if (rc) { in android_fork_execvp_ext() 496 rc = -1; in android_fork_execvp_ext() [all …]
|
/system/core/libcutils/ |
D | iosched_policy.c | 45 int rc; in android_get_ioprio() local 47 if ((rc = syscall(SYS_ioprio_get, IOPRIO_WHO_PROCESS, pid)) < 0) { in android_get_ioprio() 51 *clazz = (rc >> IOPRIO_CLASS_SHIFT); in android_get_ioprio() 52 *ioprio = (rc & 0xff); in android_get_ioprio()
|
D | sched_policy.c | 246 int rc = sched_getscheduler(tid); in get_sched_policy() local 247 if (rc < 0) in get_sched_policy() 249 else if (rc == SCHED_NORMAL) in get_sched_policy() 251 else if (rc == SCHED_BATCH) in get_sched_policy() 282 int rc = read(fd, statline, 1023); in set_sched_policy() local 284 statline[rc] = 0; in set_sched_policy()
|
/system/core/libmemtrack/ |
D | memtrack_test.c | 31 int rc = 0; in getprocname() local 39 rc = 1; in getprocname() 45 rc = 2; in getprocname() 50 rc = 3; in getprocname() 59 if (rc != 0) { in getprocname() 66 rc = 4; in getprocname() 70 return rc; in getprocname()
|
/system/extras/ksmutils/ |
D | ksminfo.c | 79 int rc = EXIT_SUCCESS; in main() local 139 rc = EXIT_FAILURE; in main() 156 rc = EXIT_FAILURE; in main() 164 rc = EXIT_FAILURE; in main() 171 rc = EXIT_FAILURE; in main() 187 return rc; in main() 204 int rc = 0; in read_pages() local 227 rc = -1; in read_pages() 273 rc = -1; in read_pages() 280 rc = pm_kernel_count(ker, PM_PAGEMAP_PFN(pagemap[j]), &kp->pages[kp->len].count); in read_pages() [all …]
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 158 int rc = sendDataLockedv(vec, 1); in sendData() local 161 return rc; in sendData() 166 int rc = sendDataLockedv(iov, iovcnt); in sendDatav() local 169 return rc; in sendDatav() 193 ssize_t rc = TEMP_FAILURE_RETRY( in sendDataLockedv() local 196 if (rc > 0) { in sendDataLockedv() 197 size_t written = rc; in sendDataLockedv() 210 if (rc == 0) { in sendDataLockedv()
|
/system/core/rootdir/ |
D | Android.mk | 9 LOCAL_MODULE := init.rc 21 LOCAL_MODULE := init.environ.rc 39 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/init.environ.rc.in $(bcp_dep)
|