Searched refs:write (Results 76 - 100 of 101) sorted by relevance

12345

/system/extras/tests/directiotest/
H A Ddirectiotest.c16 * Performs a simple write/readback test to verify correct functionality
100 ret = write(fd, (char *)buf + bytes_out, count - bytes_out);
102 perror("write");
105 fprintf(stderr, "write returned 0\n");
242 fprintf(stderr, "write failed, aborting test\n");
/system/core/init/
H A Dbuiltins.c69 ret = write(fd, value, len);
694 rc = write(fd2, p, brtw);
H A Dbootchart.c61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
H A Dproperty_service.c331 ERROR("Unable to write persistent property to temp file %s errno: %d\n", tempPath, errno);
334 write(fd, value, strlen(value));
395 * Don't write properties to disk until after we have read all default properties
H A Dinit.c607 write(fd, msg, strlen(msg));
/system/bluetooth/tools/
H A Dpipetest.c75 printf("%d: write(%d)\n", gettid(), fd);
76 ret = write(fd, buf, len);
77 printf("%d: write(%d) = %d\n", gettid(), fd, ret);
H A Dasocket_test.c278 printf("%d: write(%d)\n", gettid(), fd);
279 ret = write(fd, &buf, 1);
280 printf("%d: write(%d) = %d\n", gettid(), fd, ret);
495 // accept in one thread. close then write in another
H A Dsocktest.c292 printf("%ld: write(%d)\n", pthread_self(), fd);
293 ret = write(fd, &buf, 1);
294 printf("%ld: write(%d) = %d\n", pthread_self(), fd, ret);
567 // accept in one thread. close then write in another
/system/core/adb/
H A Dadb.c152 * Redefine open and write for qemu_pipe.h that contains inlined references
157 #undef write macro
159 #define write adb_write macro
162 #undef write macro
164 #define write ___xxx_write macro
H A Dservices.c215 r = write(fd, p, c);
/system/core/gpttool/
H A Dgpttool.c151 "usage: gpttool write <disk> [ <partition> ]*\n"
267 if (!strcmp(argv[1], "write")) {
367 write(fd, &ptbl, sizeof(ptbl));
/system/core/sh/
H A Doutput.c105 * Set up an output file to write to memory rather than a file.
475 * Version of write which resumes after a signal is caught.
488 i = write(fd, buf, n);
/system/core/toolbox/
H A Dnandread.c134 printf("write size: %u\n", mtdinfo.writesize);
242 ret = write(outfd, buffer, mtdinfo.writesize + spare_size);
244 fprintf(stderr, "short write at %llx, %d\n", pos, ret);
H A Dnewfs_msdos.c721 if ((n = write(fd, img, bpb.bps)) == -1)
724 errx(1, "%s: can't write sector %u", fname, lsn);
/system/vold/
H A DVolumeManager.cpp348 SLOGE("Failed to open new DM device for superblock write (%s)", strerror(errno));
368 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) {
370 SLOGE("Failed to write superblock (%s)", strerror(errno));
831 SLOGE("Couldn't allocate string to write ASEC name");
1234 if (write(fd, nodepath, strlen(nodepath)) < 0) {
1235 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
1285 if (write(fd, &ch, 1) < 0) {
1286 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c604 write(uart_fd, buf, len);
/system/core/include/private/pixelflinger/
H A Dggl_context.h357 void (*write)(const surface_t* s, context_t* c, member in struct:android::surface_t
/system/core/liblog/
H A Dfake_log_device.c326 int w = write(fd, iov->iov_base, iov->iov_len);
443 * Create an array of iovecs large enough to write all of
459 msg = "LOG: write failed, no memory";
506 * call may return with a partial write. Putting the writev() call in
520 fprintf(stderr, "+++ LOG: write failed (errno=%d)\n", errno);
524 fprintf(stderr, "+++ LOG: write partial (%d of %d)\n", cc, totalLen);
638 * outside of the simulator, write the log messages to stderr.
655 /* We're running inside wrapsim, so we can just write to the device. */
H A Dlogprint.c910 ret = write(fd, outBuffer, totalLen);
914 fprintf(stderr, "+++ LOG: write failed (errno=%d)\n", errno);
920 fprintf(stderr, "+++ LOG: write partial (%d of %d)\n", ret,
/system/core/libpixelflinger/
H A Dbuffer.cpp81 s->write = write_pixel;
/system/netd/
H A DMDnsSdListener.cpp678 write(mCtrlSocketPair[1], RESCAN, 1); // trigger a rescan for a fresh poll
720 write(mCtrlSocketPair[1], RESCAN, 1); // trigger a rescan for a fresh poll
H A DCommandListener.cpp213 if (write(fd, value, size) != size) {
214 ALOGE("Failed to write %s: %s", path, strerror(errno));
/system/media/audio_utils/
H A Decho_reference.c28 // echo reference state: bit field indicating if read, write or both are active.
43 audio_format_t wr_format; // write sample format
44 uint32_t wr_channel_count; // write number of channels
45 uint32_t wr_sampling_rate; // write sampling rate in Hz
46 size_t wr_frame_size; // write frame size (bytes per sample)
53 size_t wr_curr_frame_size; // number of frames given to current write() function
54 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
55 struct timespec wr_render_time; // latest render time indicated by write()
57 int32_t playback_delay; // playback buffer delay indicated by last write()
61 pthread_mutex_t lock; // mutex protecting read/write concurrenc
[all...]
/system/core/charger/
H A Dcharger.c536 write(fd, event, strlen(event));
/system/core/sdcard/
H A Dsdcard.c72 /* Maximum number of bytes to write in one request. */
443 write(fuse->fd, &hdr, sizeof(hdr));

Completed in 396 milliseconds

12345