Searched defs:rc (Results 1 - 25 of 71) sorted by relevance

123

/system/core/libnetutils/
H A Ddhcptool.c35 int rc = do_dhcp(interface); local
36 if (rc) {
42 return rc ? EXIT_FAILURE : EXIT_SUCCESS;
/system/core/libcutils/
H A Diosched_policy.c45 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);
/system/core/gatekeeperd/
H A DIUserManager.cpp37 status_t rc = remote()->transact(GET_CREDENTIAL_OWNER_PROFILE, data, &reply, 0); local
38 if (rc != NO_ERROR) {
39 ALOGE("%s: failed (%d)\n", __func__, rc);
/system/core/toolbox/
H A Dprlimit.c50 int rc; local
69 rc = prlimit64(pid, resource, &rl, NULL);
70 if (rc < 0) {
/system/bt/osi/test/
H A Datomic_test.cpp146 int rc = pthread_join(atomic_test[i].pthread_id, NULL); local
147 EXPECT_EQ(0, rc);
172 int rc = pthread_join(atomic_test[i].pthread_id, NULL); local
173 EXPECT_EQ(0, rc);
/system/core/fs_mgr/
H A Dfs_mgr_format.c37 int fd, rc = 0; local
55 rc = make_ext4fs_internal(fd, NULL, NULL, fs_mnt_point, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL);
56 if (rc) {
57 ERROR("make_ext4fs returned %d.\n", rc);
61 return rc;
68 int rc = 0; local
84 pid_t p = waitpid(pid, &rc, 0);
87 rc = -1;
90 if (WIFEXITED(rc)) {
91 rc
106 int rc = -EINVAL; local
[all...]
/system/core/logwrapper/
H A Dlogwrapper.c57 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;
/system/extras/tests/pagingtest/
H A Dmmap_test.c13 int rc; local
H A Dpageinout_test.c19 int rc; local
62 rc = madvise((void *)buf, file_size, MADV_DONTNEED) ||
65 if (rc) {
H A Dpagingtest.c19 ssize_t rc; local
51 rc = read(urandom, buf, size);
53 if (rc < 0) {
58 if (rc != size) {
73 rc = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED);
74 if (rc) {
138 int rc; local
160 rc = mmap_test(test_runs, alloc_size);
161 if (rc) {
162 return rc;
[all...]
/system/bt/btcore/test/
H A Ddevice_class_test.cpp86 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local
87 EXPECT_EQ(3, rc);
104 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local
105 EXPECT_EQ(3, rc);
121 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local
122 EXPECT_EQ(3, rc);
/system/bt/stack/avdt/
H A Davdt_l2c.c181 tBTM_STATUS rc; local
206 rc = btm_sec_mx_access_request (bd_addr, AVDT_PSM,
210 if(rc == BTM_CMD_STARTED)
/system/bt/utils/src/
H A Dbt_utils.c118 int rc = 0; local
128 rc = set_sched_policy(tid, SP_AUDIO_SYS);
133 if (rc) {
/system/core/libmemtrack/
H A Dmemtrack_test.c31 int rc = 0; local
39 rc = 1;
45 rc = 2;
50 rc = 3;
59 if (rc != 0) {
66 rc = 4;
70 return rc;
/system/core/logd/
H A Dlibaudit.c41 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
213 int rc = 0; local
269 int rc = close(fd); local
[all...]
/system/extras/ext4_utils/
H A Dext4_crypt_init_extensions.cpp63 int rc = TEMP_FAILURE_RETRY(poll(&poll_sock, 1, vold_command_timeout_ms)); local
64 if (rc < 0) {
75 rc = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer)));
76 if (rc <= 0) {
77 if (rc == 0) {
90 return std::string(buffer, rc);
/system/netd/server/
H A Dndc.c126 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/vold/
H A DCryptCommandListener.cpp124 int rc = 0; local
132 rc = cryptfs_check_passwd(argv[2]);
139 rc = cryptfs_restart();
146 rc = cryptfs_crypto_complete();
165 rc = cryptfs_enable_default(argv[2], /*allow_reboot*/false);
167 rc = cryptfs_enable(argv[2], type, argv[4],
171 if (rc == 0) {
184 rc = cryptfs_enable_file();
203 rc = cryptfs_changepw(type, password);
210 rc
[all...]
H A Dvdc.c117 int rc = 0; local
125 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) {
129 } else if (!rc) {
135 if ((rc = read(sock, buffer, 4096)) <= 0) {
136 if (rc == 0)
141 if (rc == 0)
149 for (i = 0; i < rc; i++) {
/system/bt/btif/src/
H A Dbtif_debug_btsnoop.c76 bool rc = true;
90 rc = false;
100 return rc;
127 bool rc = btsnoop_compress(ringbuffer, buffer); local
128 if (rc == false) {
/system/bt/osi/src/
H A Dhash_map.c141 bool rc = list_remove(hash_bucket_list, hash_map_entry); local
142 assert(rc == true);
/system/bt/stack/mcap/
H A Dmca_l2c.c159 tBTM_STATUS rc; local
178 rc = btm_sec_mx_access_request (bd_addr, psm, FALSE, BTM_SEC_PROTO_MCA, 0,
180 if (rc == BTM_CMD_STARTED)
/system/bt/tools/bdtool/
H A Dbdtool.c122 int rc = bt_interface->set_adapter_property(property); local
123 fprintf(stdout, "Set rc:%d device as discoverable for %d seconds\n", rc, timeout_in_sec);
139 int rc = bt_interface->create_bond(&bt_remote_bdaddr, 0 /* UNKNOWN; Currently not documented :( */); local
140 fprintf(stdout, "Started bonding:%d for %d seconds\n", rc, timeout_in_sec);
/system/core/libsysutils/src/
H A DSocketListener.cpp113 int rc; local
115 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1));
116 if (rc != 1) {
159 int rc = 0; local
184 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) {
190 } else if (!rc)
/system/core/tzdatacheck/
H A Dtzdatacheck.cpp146 int rc = rename(dirToDelete.c_str(), &tempDirName[0]); local
147 if (rc == -1) {
154 rc = nftw(&tempDirName[0], deleteFn, 10 /* openFiles */,
156 if (rc == -1) {

Completed in 418 milliseconds

123