Searched refs:rc (Results 1 - 25 of 38) sorted by relevance

12

/system/core/toolbox/
H A Dgetenforce.c9 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 Dchcon.c9 int rc, i; local
17 rc = setfilecon(argv[i], argv[1]);
18 if (rc < 0) {
H A Dsetenforce.c19 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 Druncon.c10 int rc; local
17 rc = setexeccon(argv[1]);
18 if (rc < 0) {
H A Dgetsebool.c17 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 Dload_policy.c13 int fd, rc, vers; local
41 rc = security_load_policy(map, sb.st_size);
42 if (rc < 0) {
H A Drestorecon.c121 int i, rc; local
125 rc = lstat(argv[i], &sb);
126 if (rc < 0) {
/system/vold/
H A DExt4.cpp50 int rc; local
59 rc = mount(fsPath, mountPoint, "ext4", flags, NULL);
61 if (rc && errno == EROFS) {
64 rc = mount(fsPath, mountPoint, "ext4", flags, NULL);
67 return rc;
73 int rc; local
79 rc = logwrap(3, args, 1);
81 if (rc == 0) {
85 SLOGE("Format (ext4) failed (unknown exit code %d)", rc);
H A DFat.cpp56 int rc = 0; local
65 rc = logwrap(4, args, 1);
67 switch(rc) {
88 SLOGE("Filesystem check failed (unknown exit code %d)", rc);
100 int rc; local
128 rc = mount(fsPath, mountPoint, "vfat", flags, mountData);
130 if (rc && errno == EROFS) {
133 rc = mount(fsPath, mountPoint, "vfat", flags, mountData);
136 if (rc == 0 && createLost) {
151 return rc;
157 int rc; local
[all...]
H A Dvdc.c93 int rc = 0; local
101 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) {
105 } else if (!rc) {
111 if ((rc = read(sock, buffer, 4096)) <= 0) {
112 if (rc == 0)
117 if (rc == 0)
125 for (i = 0; i < rc; i++) {
H A DCommandListener.cpp125 int rc = 0; local
140 rc = vm->mountVolume(argv[2]);
157 rc = vm->unmountVolume(argv[2], force, revert);
163 rc = vm->formatVolume(argv[2]);
170 rc = vm->shareVolume(argv[2], argv[3]);
177 rc = vm->unshareVolume(argv[2], argv[3]);
198 if (!rc) {
202 rc = ResponseCode::convertFromErrno();
203 cli->sendMsg(rc, "volume operation failed", true);
310 int rc local
440 int rc = 0; local
551 int rc = 0; local
[all...]
H A DLoop.cpp46 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...]
H A Dcryptfs.c151 int rc = -1; local
236 rc = 0;
240 return rc;
250 int rc = -1; local
350 rc = 0;
354 return rc;
589 int i, rc; local
610 rc = 0;
613 rc = -1;
616 return rc;
657 int rc = -1, i; local
790 int rc; local
925 int rc = -1; local
940 int rc; local
1005 int rc = -1; local
1051 int rc = -1; local
1141 int rc=-1, fd, i, ret; local
[all...]
/system/core/libcutils/
H A Diosched_policy.c52 int rc; local
54 if ((rc = ioprio_get(WHO_PROCESS, pid)) < 0) {
58 *clazz = (rc >> CLASS_SHIFT);
59 *ioprio = (rc & 0xff);
H A Dsched_policy.c246 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/core/libnl_2/
H A Dnetlink.c60 int rc = -1; local
70 rc = -ENOMEM;
89 rc = recvmsg(sk->s_fd, &msg, 0);
93 if (rc < 0) {
94 rc = -errsv;
100 return rc;
110 int rc, cb_rc = NL_OK, done = 0; local
120 rc = nl_recv(sk, &nla, &buf, &creds);
121 if (rc < 0)
124 nlmsg_for_each_msg(nlh, (struct nlmsghdr *) buf, rc, re
220 int rc; local
252 int rc; local
[all...]
H A Dattr.c78 int rc; local
80 rc = nla_put(msg, attrtype, 0, NULL);
81 if (rc < 0)
195 int rc; local
197 rc = nla_put(msg, attrtype, nlmsg_attrlen(nlmsg_hdr(nested), 0),
199 return rc;
/system/core/rootdir/
H A DAndroid.mk42 # Only copy init.rc if the target doesn't have its own.
44 file := $(TARGET_ROOT_OUT)/init.rc
45 $(file) : $(LOCAL_PATH)/init.rc | $(ACP)
51 file := $(TARGET_ROOT_OUT)/ueventd.rc
52 $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP)
57 # init.usb.rc is handled by build/target/product/core.rc
59 # Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here
62 file := $(TARGET_ROOT_OUT)/init.goldfish.rc
63 $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc |
[all...]
/system/netd/
H A DCommandListener.cpp288 int rc = 0; local
292 rc = ThrottleController::getInterfaceRxThrottle(argv[2], &val);
294 rc = ThrottleController::getInterfaceTxThrottle(argv[2], &val);
297 if (rc) {
320 int rc; local
328 rc = sInterfaceCtrl->interfaceCommand(argc, argv, &rbuf);
329 if (rc) {
595 int rc = 0; local
610 rc = sTetherCtrl->setIpFwdEnabled(true);
612 rc
633 int rc = 0; local
737 int rc = 0; local
774 int rc = 0; local
826 int rc = 0, flag = 0; local
874 int rc = 0; local
1011 int rc = sBandwidthCtrl->enableBandwidthControl(true); local
1017 int rc = sBandwidthCtrl->disableBandwidthControl(); local
1027 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local
1038 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local
1058 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local
1075 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local
1080 int rc; local
1102 int rc; local
1128 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local
1138 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local
1148 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local
1159 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local
1169 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local
1180 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local
1190 int rc = sBandwidthCtrl->removeGlobalAlert(); local
1201 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local
1211 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local
1221 int rc = sBandwidthCtrl->removeSharedAlert(); local
1231 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local
1241 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local
1256 int rc = sBandwidthCtrl->getTetherStats(tetherStats, extraProcessingInfo); local
[all...]
H A Dndc.c115 int rc = 0; local
123 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) {
127 } else if (!rc) {
133 if ((rc = read(sock, buffer, 4096)) <= 0) {
134 if (rc == 0)
139 if (rc == 0)
147 for (i = 0; i < rc; i++) {
/system/core/libsysutils/src/
H A DSocketClient.cpp145 int rc = sendDataLocked(data, len); local
148 return rc;
152 int rc = 0; local
166 rc = send(mSocket, p, brtw, MSG_NOSIGNAL);
167 if (rc > 0) {
168 p += rc;
169 brtw -= rc;
173 if (rc < 0 && errno == EINTR)
176 if (rc == 0) {
H A DSocketListener.cpp107 int rc; local
109 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1));
110 if (rc != 1) {
153 int rc = 0; local
176 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) {
182 } else if (!rc)
/system/security/keystore/
H A Dkeystore.cpp130 int rc; local
133 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod);
134 if (rc) {
139 rc = keymaster_open(mod, dev);
140 if (rc) {
142 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc));
150 return rc;
593 ResponseCode rc = keyBlob->decryptBlob(filename, &mMasterKeyDecryption); local
594 if (rc != NO_ERROR) {
595 return rc;
653 int rc; local
837 ResponseCode rc = importKey(&pkcs8key, filename); local
1002 ResponseCode rc = keyStore->reset() ? NO_ERROR : SYSTEM_ERROR; local
1066 int rc; local
1136 int rc = device->get_keypair_public(device, keyBlob.getValue(), keyBlob.getLength(), &data, local
1159 ResponseCode rc = NO_ERROR; local
1184 int rc; local
1224 int rc; local
[all...]
/system/extras/procrank/
H A Dprocrank.c316 int rc = 0; local
324 rc = 1;
330 rc = 2;
335 rc = 3;
344 if (rc != 0) {
351 rc = 4;
355 return rc;
/system/core/adb/
H A Dbackup_service.c32 int rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); local
33 if (rc < 0)

Completed in 3105 milliseconds

12