Searched refs:read (Results 76 - 100 of 113) sorted by relevance

12345

/system/vold/
H A DProcess.cpp73 int length = read(fd, buffer, max - 1);
/system/core/libusbhost/
H A Dusbhost.c175 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 Dlogcat.cpp281 /* 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 Dgetevent.c417 res = read(nfd, event_buf, sizeof(event_buf));
640 res = read(ufds[i].fd, &event, sizeof(event));
H A Dnandread.c194 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 Dschedtop.c86 len = read(fd, line, line_size - 1);
H A Ddd.c165 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 Dpipetest.c87 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 Dasocket_test.c190 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 Dsocktest.c189 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 Dmkbootfs.c240 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 Dusb_linux.c130 // 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 Dengine.c193 // 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 Dgpttool.c91 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 Dbootchart.c53 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 Dproperty_service.c333 * 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 Dinput.c84 * 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 Datrace.c275 // clear the trace before we've read it.
313 result = read(traceFD, in, bufSize);
/system/extras/ext4_utils/
H A Dimg2simg.c118 s = read(in_fd, copy_buf, cpy_len);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp56 // 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 Dpixelflinger.cpp123 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 Dservices.c205 r = read(fd, buf, 4096);
/system/core/debuggerd/
H A Ddebuggerd.c210 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 Dtombstone.c470 ssize_t actual = read(logfd, log_entry.buf, LOGGER_ENTRY_MAX_LEN);
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp144 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);

Completed in 282 milliseconds

12345