Searched defs:rc (Results 1 - 25 of 37) 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 Druncon.c10 int rc; local
17 rc = setexeccon(argv[1]);
18 if (rc < 0) {
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 Dload_policy.c13 int fd, rc, vers; local
41 rc = security_load_policy(map, sb.st_size);
42 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 Drestorecon.c121 int i, rc; local
125 rc = lstat(argv[i], &sb);
126 if (rc < 0) {
/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/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 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 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 Dlogwrapper.c164 int rc = parent(argv[0], parent_ptty); local
166 return rc;
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...]
/system/netd/
H A DThrottleController.cpp63 int rc; local
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++) {
H A Dlogwrapper.c155 int rc = parent(argv[0], parent_ptty); local
157 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)
/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/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/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/libnl_2/genl/
H A Dgenl.c95 int rc = -1; local
171 rc = -errno;
243 rc = 0;
247 return rc;
/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;

Completed in 150 milliseconds

12