Searched defs:res (Results 1 - 25 of 41) sorted by relevance

12

/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/core/toolbox/
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 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 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 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 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 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 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 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 Dreadtty.c61 int res; local
119 res = read(STDIN_FILENO, buf, 1);
120 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/netd/
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;
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 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 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 DNatController.cpp51 int res; local
60 res = system_nosh(buffer);
61 ALOGV("runCmd() buffer='%s' res=%d", buffer, res);
63 return 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/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 Dservices.c365 int res; local
366 res = writex(SHELL_EXIT_NOTIFY_FD, &fd, sizeof(fd));
367 D("notified shell exit via fd=%d for pid=%d res=%d errno=%d\n",
368 SHELL_EXIT_NOTIFY_FD, pid, res, errno);
H A Dtransport_local.c242 int res, fd; local
268 res = adb_write(fd, _accept_req, strlen(_accept_req));
269 if ((size_t)res == strlen(_accept_req)) {
272 res = adb_read(fd, tmp, sizeof(tmp));
273 if (res != 2 || memcmp(tmp, _ok_resp, 2)) {
/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/libcutils/
H A Ddir_hash.c179 struct list *res; local
208 res = malloc(sizeof(struct list));
210 if (keep == NULL || res == NULL) {
225 free(res);
231 res->name = keep;
232 res->next = *out;
233 *out = res;
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/include/private/pixelflinger/
H A Dggl_fixed.h184 int64_t res; member in union:__anon331
191 return res;
203 "mflo %[res] \t\n"
204 : [res]"=&r"(result),[tmp]"=&r"(tmp)
213 "mflo %[res] \t\n"
214 "addu %[tmp1],%[tmp],%[res] \t\n"
217 "mfhi %[res] \t\n"
218 "addu %[res],%[res],%[tmp]\t\n"
219 "addu %[res],
448 int64_t res; member in union:__anon333
[all...]

Completed in 155 milliseconds

12