Searched refs:res (Results 1 - 25 of 43) sorted by relevance

12

/system/netd/
H A DIdletimerController.cpp128 int res; local
136 res = system_nosh(buffer);
137 ALOGV("%s #%d", buffer, res);
140 return res;
148 int res; local
151 res = runIpxtablesCmd(buffer);
154 if (res)
155 return res;
158 res = runIpxtablesCmd(buffer);
160 return res;
164 int res = setDefaults(); local
169 int res = setDefaults(); local
176 int res; local
[all...]
H A DFirewallController.cpp42 int res = 0; local
48 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL);
49 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL);
50 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL);
52 return res;
56 int res = 0; local
59 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL);
60 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL);
61 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL);
63 return res;
79 int res = 0; local
98 int res = 0; local
124 int res = 0; local
143 int res = 0; local
[all...]
H A DNetdConstants.cpp33 static void logExecError(const char* argv[], int res) { argument
41 ALOGE("exec() res=%d for %s", res, args.c_str());
61 int res = 0; local
69 res |= localRes;
79 res |= localRes;
82 return res;
88 int res = execIptables(target, false, args); local
90 return res;
96 int res local
[all...]
H A DBandwidthController.cpp152 int res = 0; local
155 res |= runIptablesCmd(cmd, rejectHandling, IptIpV4, failureHandling);
156 res |= runIptablesCmd(cmd, rejectHandling, IptIpV6, failureHandling);
157 return res;
174 int res; local
194 res = system_nosh(fullCmd.c_str());
211 res = logwrap(argc, argv);
213 if (res && failureHandling == IptFailShow) {
214 ALOGE("runIptablesCmd(): failed %s res=%d", fullCmd.c_str(), res);
235 int res; local
270 int res = 0; local
285 std::string res; local
385 std::string res; local
414 int res = 0, res1, res2; local
468 int res = 0; local
504 int res = 0; local
571 int res = 0; local
609 int res = 0; local
694 int res = 0; local
741 int res = 0; local
773 int res = 0; local
801 int res = 0; local
822 int res = 0; local
844 int res = 0; local
859 int res = 0; local
937 int res = 0; local
963 int res = 0; local
993 int res; local
1037 int res; local
[all...]
H A Doem_iptables_hook.cpp35 int res; local
43 res = system_nosh(buffer);
45 return res;
H A DThrottleController.cpp46 int res; local
55 res = system_nosh(buffer);
57 return res;
/system/core/libcutils/
H A Dqtaguid.c61 int fd, res, savedErrno; local
70 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
71 if (res < 0) {
76 if (res < 0) {
77 ALOGI("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno);
85 int res; local
91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
92 if (res < 0) {
101 int res; local
121 int res; local
136 int res; local
147 int fd, cnt = 0, res = 0; local
166 int res; local
[all...]
/system/core/toolbox/
H A Dsetconsole.c15 int res; local
19 res = ioctl(fd, VT_ACTIVATE, (void*)activate_thread_switch_vc);
20 } while(res < 0 && errno == EINTR);
21 if (res < 0) {
22 fprintf(stderr, "ioctl( vcfd, VT_ACTIVATE, vtnum) failed, %d %d %s for %d\n", res, errno, strerror(errno), activate_thread_switch_vc);
35 int res; local
113 res = ioctl(fd, VT_GETSTATE, &vs);
114 if (res < 0) {
115 fprintf(stderr, "ioctl(vcfd, VT_GETSTATE, &vs) failed, %d\n", res);
122 res
[all...]
H A Dalarm.c14 int res; local
75 res = ioctl(fd, RTC_ALM_READ, &tm);
76 if(res < 0) {
95 res = ioctl(fd, RTC_RD_TIME, &tm);
96 if(res < 0) {
114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts);
115 if(res < 0) {
126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts);
127 if(res < 0) {
133 res
[all...]
H A Dhd.c15 int res; local
70 res = read(fd, &buf, read_len);
71 if(res == 0)
73 for(i = 0; i < res; i++) {
80 if(((i & 15) == 15) || (i == res - 1)) {
85 if(res < 0) {
89 filepos += res;
H A Drotatefb.c19 int res; local
49 res = ioctl(fd, FBIOGET_VSCREENINFO, &fbinfo);
50 if(res < 0) {
64 res = ioctl(fd, FBIOPUT_VSCREENINFO, &fbinfo);
65 if(res < 0) {
H A Dcmp.c15 int res, res1, res2; local
65 res = res1 < res2 ? res1 : res2;
69 for(i = 0; i < res; i++) {
85 if(res1 != res2 || res < 0) {
86 printf("%s on %s\n", res < 0 ? "Read error" : "EOF", res1 < res2 ? argv[optind] : argv[optind+1]);
89 filepos += res;
H A Dnotify.c15 int res; local
69 res = inotify_add_watch(nfd, file_names[i], event_mask);
70 if(res < 0) {
75 id_offset = -res;
76 if(res + id_offset != i) {
77 fprintf(stderr, "%s got unexpected id %d instead of %d\n", file_names[i], res, i);
86 res = read(nfd, event_buf, sizeof(event_buf));
87 if(res < (int)sizeof(*event)) {
93 //printf("got %d bytes of event information\n", res);
94 while(res >
[all...]
H A Dioctl.c17 int res; local
109 res = ioctl(fd, ioctl_nr, *(uint32_t*)ioctl_args);
111 res = ioctl(fd, ioctl_nr, ioctl_args);
113 res = ioctl(fd, ioctl_nr, 0);
114 if (res < 0) {
115 fprintf(stderr, "ioctl 0x%x failed, %d\n", ioctl_nr, res);
H A Dgetevent.c47 int res; local
52 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits);
53 if(res < 0) {
58 for(i = 0; i < res; i++) {
81 int res, res2; local
89 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits);
90 if(res < bits_size)
92 bits_size = res + 16;
102 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size);
119 res2 = ioctl(fd, EVIOCGLED(res), bit
409 int res; local
494 int res; local
[all...]
H A Ddate.c46 int res; local
121 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
122 //res = settimeofday(&tv, NULL);
123 if(res < 0) {
H A Dmount.c103 int res, no = s[0] == 'n' && s[1] == 'o'; local
119 for (i = 0, res = 1; i < ARRAY_SIZE(options); i++) {
120 res = strcmp(s, options[i].str);
122 if (res == 0) {
129 if (res <= 0)
133 if (res != 0 && s[0])
/system/extras/tests/bionic/libc/common/
H A Dtest_getaddrinfo.c19 struct addrinfo* res; local
23 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, NULL, &res);
29 freeaddrinfo(res);
37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints, &res );
/system/extras/tests/ext4/
H A Drand_emmc_perf.c46 struct timeval start, end, res; local
101 res.tv_sec = 0;
103 while (res.tv_sec < TEST_LEN) {
118 timersub(&end, &start, &res);
125 timersub(&end, &start, &res);
127 printf("%d iops/sec\n", iops / (int) res.tv_sec);
/system/core/debuggerd/
H A Dgetevent.c95 int res; local
103 res = read(nfd, event_buf, sizeof(event_buf));
104 if(res < (int)sizeof(*event)) {
110 //printf("got %d bytes of event information\n", res);
116 while(res >= (int)sizeof(*event)) {
129 res -= event_size;
161 int res; local
169 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
170 if(res < 0) {
173 res
193 int res; local
[all...]
/system/core/adb/
H A Dremount_service.c37 int res; local
59 res = sscanf(token, "%255s %255s %*s %*s %d %d\n",
63 if (res == 4 && (strcmp(dir, mount_dir) == 0))
H A Dusb_linux.c314 int res; local
329 res = -1;
333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
334 } while((res < 0) && (errno == EINTR));
336 if(res < 0) {
340 res = -1;
347 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts);
348 if(res < 0 || h->dead) {
353 res = urb->actual_length;
361 return res;
368 int res; local
[all...]
/system/extras/tests/memtest/
H A Dmemtest.cpp162 struct result_t { int size; float res; }; member in struct:result_t
201 results[nbr].res = throughput;
208 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
288 struct result_t { int size; float res; }; member in struct:result_t
317 results[nbr].res = throughput;
324 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
426 struct result_t { int size; float res; }; member in struct:result_t
462 results[nbr].res
538 struct result_t { int size; float res; }; member in struct:result_t
675 struct timespec res; local
[all...]
/system/core/sdcard/
H A Dsdcard.c450 int res; local
461 res = writev(fuse->fd, vec, 2);
462 if (res < 0) {
741 int res; local
753 res = -ENOENT;
759 res = -ENOENT;
773 res = -ENOENT;
778 res = rename(old_child_path, new_child_path);
779 if (res < 0) {
780 res
842 int res; local
867 int res; local
886 int res; local
927 int res; local
1186 int res = handle_fuse_request(fuse, handler, hdr, data, data_len); local
1225 int res = pthread_create(&thread, NULL, start_handler, &handlers[i]); local
1252 int res; local
1301 int res; local
[all...]
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp61 int res; local
68 res = write(ctrl, buff, strlen(buff));
69 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno));
73 return res;
79 int res; local
88 res = write(param_fd, data, strlen(data));
89 if (res < 0) {
93 return res;
136 int res; local
[all...]

Completed in 166 milliseconds

12