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

1234

/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/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/init/
H A Dbootchart.c61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
H A Dproperty_service.c268 ERROR("Unable to write persistent property to temp file %s errno: %d\n", tempPath, errno);
271 write(fd, value, strlen(value));
332 * Don't write properties to disk until after we have read all default properties
H A Dinit.c575 write(fd, msg, strlen(msg));
/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.c720 if ((n = write(fd, img, bpb.bps)) == -1)
723 errx(1, "%s: can't write sector %u", fname, lsn);
/system/netd/
H A DSoftapController.cpp319 if (write(fd, fbuf, strlen(fbuf)) < 0) {
320 LOGE("Cannot write to \"%s\": %s", HOSTAPD_CONF_FILE, strerror(errno));
H A DCommandListener.cpp94 if (write(fd, value, size) != size) {
95 LOGE("Failed to write %s: %s", path, strerror(errno));
/system/vold/
H A DVolumeManager.cpp311 SLOGE("Failed to open new DM device for superblock write (%s)", strerror(errno));
331 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) {
333 SLOGE("Failed to write superblock (%s)", strerror(errno));
972 if (write(fd, nodepath, strlen(nodepath)) < 0) {
973 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
1023 if (write(fd, &ch, 1) < 0) {
1024 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/adb/
H A Dservices.c225 r = write(fd, p, c);
/system/core/include/private/pixelflinger/
H A Dggl_context.h337 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/core/nexus/
H A DSupplicant.cpp480 write(destfd, buf, nread);
/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 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
54 struct timespec wr_render_time; // latest render time indicated by write()
56 int32_t playback_delay; // playback buffer delay indicated by last write()
57 pthread_mutex_t lock; // mutex protecting read/write concurrency
131 LOGV("echo_reference_write() stop write");
[all...]
/system/media/wilhelm/tests/sandbox/
H A Dxaplay.c177 (void) write(1, "e", 1);
/system/core/sdcard/
H A Dsdcard.c478 write(fuse->fd, &hdr, sizeof(hdr));
932 write(fuse->fd, &h, sizeof(h));
/system/core/charger/
H A Dcharger.c535 write(fd, event, strlen(event));

Completed in 387 milliseconds

1234