Searched refs:read (Results 51 - 75 of 113) sorted by relevance

12345

/system/core/libsysutils/src/
H A DFrameworkListener.cpp49 len = TEMP_FAILURE_RETRY(read(c->getSocket(), buffer, sizeof(buffer)));
51 SLOGE("read() failed (%s)", strerror(errno));
/system/core/toolbox/
H A Dalarm.c77 fprintf(stderr, "Unable to read alarm: %s\n", strerror(errno));
179 read(fd, &event, sizeof(event));
H A Dcat.c173 while ((nr = read(rfd, buf, bsize)) > 0)
H A Dreadtty.c119 res = read(STDIN_FILENO, buf, 1);
H A Diftop.c112 ret = read(fd, buf, sizeof(buf) - 1);
114 perror("read");
H A Dlsof.c193 fprintf(stderr, "Couldn't read %s\n", info.path);
198 int numRead = read(fd, cmdline, sizeof(cmdline) - 1);
/system/extras/fatblock/
H A Dread.c83 "ignoring read that starts past 2^32\n",
90 "truncating read that ends past 2^32\n",
114 ret = read(fd, buf, (size_t)len);
116 WARN("reading %s (%llu, %llu): read failed: %s\n",
/system/extras/tests/sdcard/
H A Dtestcase.cpp131 while(read(mIpc[READ_FROM_CHILD], buffer, sizeof(buffer)) != 0)
157 mReadTimer = new StopWatch("read", iter() * dataSize() / chunkSize() * kReadWriteFactor);
172 if (strcmp(mName, "read") == 0) mType = READ;
/system/netd/
H A DTetherController.cpp89 if (read(fd, &enabled, 1) != 1) {
90 ALOGE("Failed to read ip_forward (%s)", strerror(errno));
H A Dlogwrapper.c36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
/system/core/liblinenoise/
H A Dlinenoise.c138 * We want read to return every single byte, without timeout. */
234 nread = read(fd,&c,1);
278 if (read(fd,seq,2) == -1) break;
/system/extras/libublock/
H A Dublock.c144 out_h->status = (ub_ctx->ops->read)(out_buf, in_h->length, in_h->offset);
249 in_len = read(ub_ctx->fd, in_buf, in_size);
/system/core/include/private/pixelflinger/
H A Dggl_context.h335 void (*read) (const surface_t* s, context_t* c, member in struct:android::surface_t
410 surface_t read; member in struct:android::framebuffer_t
/system/core/libcutils/
H A Dabort_socket.c100 /* connect call complete, read return code */
197 /* ready to read() without blocking */
199 ret = read(s->fd, buf, count);
H A Dsched_policy.c282 int rc = read(fd, statline, 1023);
H A Dselector.c49 if (read(wakeupFd->fd, garbage, sizeof(garbage)) < 0) {
51 ALOGI("read() interrupted.");
80 ALOGI("read() interrupted.");
/system/core/libnetutils/
H A Dpacket.c170 nread = read(s, &packet, sizeof(packet));
190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
/system/core/mkbootimg/
H A Dmkbootimg.c46 if(read(fd, data, sz) != sz) goto oops;
/system/core/sh/
H A Dcd.c423 while ((i = read(pip[0], p, pwd + MAXPWD - p)) > 0
/system/extras/ext4_utils/
H A Dsimg2img.c51 ret = read(fd, ptr, len - total);
98 fprintf(stderr, "read returned an error copying a raw chunk: %d %d\n",
164 fprintf(stderr, "read returned an error copying a crc32 chunk\n");
/system/extras/libpagemap/
H A Dpm_process.c118 error = read(proc->pagemap_fd, (char*)range, numpages * sizeof(uint64_t));
/system/extras/procrank/
H A Dprocrank.c59 const int len = read(fd, buffer, sizeof(buffer)-1);
201 fprintf(stderr, "warning: could not read usage for %d\n", pids[i]);
311 * 3 on failure to read proc cmdline entry
346 * The process went away before we could read its process name. Try
/system/extras/tests/directiotest/
H A Ddirectiotest.c78 ret = read(fd, (char *)buf + bytes_read, count - bytes_read);
80 perror("read");
247 fprintf(stderr, "read failed, aborting test\n");
/system/extras/tests/framebuffer/
H A Dmdp_test.c247 bytes = read(file_fd, ptr, file_len);
249 perror("Could not read data from file");
/system/vold/
H A DLoop.cpp270 * Try to read superblock.
279 if (read(fd, &buffer, sizeof(struct asec_superblock)) != sizeof(struct asec_superblock)) {
280 SLOGE("superblock read failed (%s)", strerror(errno));
288 * Superblock successfully read. Copy to caller's struct.

Completed in 295 milliseconds

12345