/system/vold/ |
H A D | Process.cpp | 73 int length = read(fd, buffer, max - 1);
|
/system/core/libusbhost/ |
H A D | usbhost.c | 175 ret = read(context->fd, event_buf, sizeof(event_buf)); 215 /* if we fail, see if have read-only access */ 228 D("[ usb open read-only %s fd = %d]\n", dev_name, fd); 252 length = read(fd, device->desc, sizeof(device->desc)); 253 D("usb_device_new read returned %d errno %d\n", length, errno); 349 // read list of supported languages 460 // this usually requires read/write permission
|
/system/core/logcat/ |
H A D | logcat.cpp | 281 /* NOTE: driver guarantees we read exactly one full entry */ 282 ret = read(dev->fd, entry->buf, LOGGER_ENTRY_MAX_LEN); 292 perror("logcat read"); 296 fprintf(stderr, "read: Unexpected EOF!\n"); 300 fprintf(stderr, "read: unexpected length. Expected %d, got %d\n", 603 int n = read(fd, cmdline, sizeof(cmdline)-1 );
|
/system/core/toolbox/ |
H A D | getevent.c | 417 res = read(nfd, event_buf, sizeof(event_buf)); 640 res = read(ufds[i].fd, &event, sizeof(event));
|
H A D | nandread.c | 194 ret = read(fd, buffer, mtdinfo.writesize + rawmode); 196 fprintf(stderr, "short read at %llx, %d\n", pos, ret); 203 fprintf(stderr, "failed to read oob data at %llx, %d\n", pos, ret); 255 fprintf(statusfile, "%08llx: read error\n", opos); 271 fprintf(statusfile, "read %d pages, %d empty\n", page_count, empty_pages); 283 printf("read %d pages, %d empty\n", page_count, empty_pages);
|
H A D | schedtop.c | 86 len = read(fd, line, line_size - 1);
|
H A D | dd.c | 165 fprintf(stderr, "%s: cannot open for read: %s\n", 185 /* No way to check for read access here. */ 193 * May not have read access, so try again with write only. 194 * Without read we may have a problem if output also does 359 n = read(in.fd, in.dbp, in.dbsz); 372 fprintf(stderr, "%s: read error: %s\n", 383 * raw disks this section should be modified to re-read 417 * is output without buffering as it is read. 643 * Read the data. If a pipe, read until satisfy the number of bytes 648 if ((nr = read(i [all...] |
/system/bluetooth/tools/ |
H A D | pipetest.c | 87 printf("%d: read(%d)\n", gettid(), fd); 88 ret = read(fd, &buf, 1); 89 printf("%d: read(%d) = %d [%d]\n", gettid(), fd, ret, (int)buf);
|
H A D | asocket_test.c | 190 printf("%d: read(%d)\n", gettid(), fd); 191 ret = read(fd, &buf, 1); 192 printf("%d: read(%d) = %d [%d]\n", gettid(), fd, ret, (int)buf);
|
H A D | socktest.c | 189 printf("%ld: read(%d)\n", pthread_self(), fd); 190 ret = read(fd, &buf, 1); 191 printf("%ld: read(%d) = %d [%d]\n", pthread_self(), fd, ret, (int)buf);
|
/system/core/cpio/ |
H A D | mkbootfs.c | 240 if(fd < 0) die("cannot open '%s' for read", in); 245 if(read(fd, tmp, s.st_size) != s.st_size) { 246 die("cannot read %d bytes", s.st_size); 260 if(size < 0) die("cannot read symlink '%s'", in);
|
/system/core/fastboot/ |
H A D | usb_linux.c | 130 // read device serial number (if there is one) 236 // Check if we have read-only access, so we can give a helpful 244 n = read(fd, desc, sizeof(desc)); 343 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); 345 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry);
|
H A D | engine.c | 193 // In this case we read whole image into memory buffer. 202 ssize_t actually_read = read(fd, (char*)buffer+count, size-count); 211 perror("read");
|
/system/core/gpttool/ |
H A D | gpttool.c | 91 read(fd, uuid, 16); 152 " gpttool read <disk>\n" 326 fprintf(stderr,"cannot read partitions from '%s\n", argv[1]); 371 fprintf(stderr,"could not re-read partition table\n");
|
/system/core/init/ |
H A D | bootchart.c | 53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); 260 /* read command line and extract program name */ 264 /* read process stat line */
|
H A D | property_service.c | 333 * Don't write properties to disk until after we have read all default properties 470 /* open the file and read the property value */ 474 length = read(fd, value, sizeof(value) - 1); 479 ERROR("Unable to read persistent property file %s errno: %d\n", path, errno);
|
/system/core/sh/ |
H A D | input.c | 84 * contains information about the current file being read. 252 nr = read(parsefile->fd, buf, BUFSIZ - 8); 281 * 3) If the is more stuff in this buffer, use it else call read to fill it.
|
/system/extras/atrace/ |
H A D | atrace.c | 275 // clear the trace before we've read it. 313 result = read(traceFD, in, bufSize);
|
/system/extras/ext4_utils/ |
H A D | img2simg.c | 118 s = read(in_fd, copy_buf, cpy_len);
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 56 // read: Open a file read it and close. 68 // For read/write tests, size is the number of Kbytes to use. 73 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt 80 // strategies in here to see how tweaking read-ahead changes things. 128 printf("sdcard_perf_test --test=write|read|read_write|open_create [options]\n\n" 132 " Data will be written/read using that chunk size.\n" 280 // @param chunk buffer large enough where the chunk read are written. 296 fprintf(stderr, "Open read only failed."); 321 ssize_t s = read(f [all...] |
/system/core/libpixelflinger/ |
H A D | pixelflinger.cpp | 123 if (c->state.buffers.read.format == 0) { 124 ggl_set_surface(c, &(c->state.buffers.read), surface); 132 ggl_set_surface(c, &(c->state.buffers.read), surface);
|
/system/core/adb/ |
H A D | services.c | 205 r = read(fd, buf, 4096);
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 210 status = TEMP_FAILURE_RETRY(read(fd, &msg, sizeof(msg))); 212 LOG("read failure? %s\n", strerror(errno)); 274 * a read() call. If the thread has crashed, then this gives us
|
H A D | tombstone.c | 470 ssize_t actual = read(logfd, log_entry.buf, LOGGER_ENTRY_MAX_LEN);
|
/system/extras/tests/iptables/qtaguid/ |
H A D | socketTag.cpp | 144 read_size = read(ctrl_fd, ctrl_data, sizeof(ctrl_data)); 146 testPrintE("Unable to read active tags from ctrl %d/%s", 173 testPrintE("Unable to read sock addr res=%d", res);
|