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

12

/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 Dsysdeps_win32.c1480 int res; local
1489 res = WaitForMultipleObjects(param->handles_count + 1, wait_on, FALSE, INFINITE);
1490 if (res > 0 && res < (param->handles_count + 1)) {
1494 res - 1L + param->first_handle_index, -1L);
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)) {
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/core/charger/
H A DAndroid.mk36 LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger
/system/core/debuggerd/
H A Ddebuggerd.c134 int res = get_event(&e, timeout); local
135 if (res == 0) {
141 } else if (res == 1) {
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/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...]
/system/core/init/
H A Dproperty_service.c414 int res; local
/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/libusbhost/
H A Dusbhost.c588 int res; local
599 res = ioctl(req->dev->fd, USBDEVFS_SUBMITURB, urb);
600 } while((res < 0) && (errno == EINTR));
602 return res;
609 int res; local
612 int res = ioctl(dev->fd, USBDEVFS_REAPURB, &urb); local
613 D("USBDEVFS_REAPURB returned %d\n", res);
614 if (res < 0) {
/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/core/toolbox/
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 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 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 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])
H A Dnewfs_msdos.c114 u_int8_t res[2]; /* reserved sectors */ member in struct:bsbpb
158 u_int res; /* reserved sectors */ member in struct:bpb
475 bpb.res = opt_r;
515 if (bpb.bsec < (bpb.res ? bpb.res : bss) +
525 (bpb.res ? bpb.res : bss) +
552 if (!bpb.res)
553 bpb.res = fat == 32 ? MAX(x, MAX(16384 / bpb.bps, 4)) : x;
554 else if (bpb.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 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) {

Completed in 47 milliseconds

12