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

12

/system/core/adb/
H A Dbackup_service.c32 int rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); local
33 if (rc < 0)
H A Dsysdeps.h92 int rc = unlink(path); local
94 if (rc == -1 && errno == EACCES) {
97 rc = chmod(path, _S_IREAD|_S_IWRITE );
98 if (rc == 0)
99 rc = unlink(path);
101 return rc;
452 int rc; local
454 rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv );
455 if (rc < 0)
H A Dsysdeps_win32.c570 int rc = WSAStartup( MAKEWORD(2,2), &wsaData); local
571 if (rc != 0) {
/system/core/init/
H A Dbuiltins.c658 int rc = 0; local
682 rc = read(fd1, p, brtr);
683 if (rc < 0)
685 if (rc == 0)
687 p += rc;
688 brtr -= rc;
694 rc = write(fd2, p, brtw);
695 if (rc < 0)
697 if (rc == 0)
699 p += rc;
[all...]
H A Dinit.c169 int rc; local
212 rc = getcon(&mycon);
213 if (rc < 0) {
218 rc = getfilecon(svc->args[0], &fcon);
219 if (rc < 0) {
225 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon);
228 if (rc < 0) {
859 * let the rc file figure out the rest.
923 init_parse_config_file("/init.rc");
H A Dutil.c84 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the
469 int rc; local
480 rc = mkdir(path, mode);
490 return rc;
/system/core/libcorkscrew/
H A Dbacktrace.c102 _Unwind_Reason_Code rc =_Unwind_Backtrace(unwind_backtrace_callback, &state); local
109 return rc == _URC_END_OF_STACK ? 0 : -1;
/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 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;
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...]
/system/core/libnl_2/genl/
H A Dgenl.c95 int rc = -1; local
171 rc = -errno;
243 rc = 0;
247 return rc;
/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/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/core/toolbox/
H A Dchcon.c9 int rc, i; local
17 rc = setfilecon(argv[i], argv[1]);
18 if (rc < 0) {
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 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) {
H A Druncon.c10 int rc; local
17 rc = setexeccon(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) {
/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/media/audio_utils/
H A Decho_reference.c219 int rc; local
224 rc = create_resampler(er->wr_sampling_rate,
230 if (rc != 0) {
232 ALOGV("echo_reference_write() failure to create resampler %d", rc);
/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...]

Completed in 168 milliseconds

12