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

12345

/system/core/libcutils/
H A Dsched_policy.c106 if (write(fd, ptr, end - ptr) < 0) {
113 SLOGW("add_tid_to_cgroup failed to write '%s' (%s); policy=%d\n",
/system/core/libsysutils/src/
H A DSocketListener.cpp109 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1));
/system/extras/libpagemap/
H A Dpm_process.c201 write(fd, "1\n", strlen("1\n"));
/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/media/camera/docs/
H A Dmetadata_parser_xml.py274 file(output_name, "w").write(tpl_data)
/system/core/init/
H A Dbuiltins.c68 ret = write(fd, value, len);
740 rc = write(fd2, p, brtw);
H A Dbootchart.c61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
H A Dproperty_service.c266 ERROR("Unable to write persistent property to temp file %s errno: %d\n", tempPath, errno);
269 write(fd, value, strlen(value));
346 * Don't write properties to disk until after we have read all default properties
H A Dinit.c618 chunk_size = TEMP_FAILURE_RETRY(write(urandom_fd, buf, chunk_size));
620 ERROR("Failed to write to /dev/urandom: %s\n", strerror(errno));
679 write(fd, msg, strlen(msg));
/system/core/adb/
H A Dadb.c155 * Redefine open and write for qemu_pipe.h that contains inlined references
160 #undef write macro
162 #define write adb_write macro
165 #undef write macro
167 #define write ___xxx_write macro
744 // If |buffer| is NULL, does not write but returns required size.
766 // If |buffer| is NULL, does not write but returns required size.
/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);
/system/core/debuggerd/
H A Dtombstone.c680 TEMP_FAILURE_RETRY( write(log->amfd, &datum, 4) );
682 TEMP_FAILURE_RETRY( write(log->amfd, &datum, 4) );
717 TEMP_FAILURE_RETRY( write(log->amfd, &eodMarker, 1) );
/system/vold/
H A DVolumeManager.cpp386 SLOGE("Failed to open new DM device for superblock write (%s)", strerror(errno));
406 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) {
408 SLOGE("Failed to write superblock (%s)", strerror(errno));
983 SLOGE("Couldn't allocate string to write ASEC name");
1406 if (write(fd, nodepath, strlen(nodepath)) < 0) {
1407 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
1457 if (write(fd, &ch, 1) < 0) {
1458 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
H A Dcryptfs.c270 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
271 SLOGE("Cannot write real block device footer\n");
300 return TEMP_FAILURE_RETRY(write(fd, buff, len));
311 * fd is open read/write on the device that holds the crypto footer and persistent
617 /* The first copy is the curent valid copy, so write to
622 /* The second copy must be the valid copy, so write to
630 SLOGE("Cannot seek to write persistent data");
643 SLOGE("Cannot write to erase previous persistent data");
648 SLOGE("Cannot write to save persistent data");
674 /* For each byte, write ou
[all...]
/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/core/libutils/
H A DLooper.cpp84 LOG_ALWAYS_FATAL_IF(result != 0, "Could not make wake write pipe non-blocking. errno=%d",
375 nWrite = write(mWakeWritePipeFd, "W", 1);
380 ALOGW("Could not write wake signal, errno=%d", errno);
H A DRefBase.cpp202 write(rc, text.string(), text.length());
/system/netd/
H A DMDnsSdListener.cpp679 write(mCtrlSocketPair[1], RESCAN, 1); // trigger a rescan for a fresh poll
721 write(mCtrlSocketPair[1], RESCAN, 1); // trigger a rescan for a fresh poll
/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.c555 write(fd, event, strlen(event));

Completed in 814 milliseconds

12345