Searched refs:write (Results 51 - 75 of 101) sorted by relevance

12345

/system/core/libcutils/
H A Dproperties.c163 if (write(gPropFd, sendBuf, sizeof(sendBuf)) != sizeof(sendBuf)) {
226 if (write(gPropFd, sendBuf, sizeof(sendBuf)) != sizeof(sendBuf)) {
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",
H A Dselector.c73 // We only need to write wake-up data if we're blocked in select().
78 if (write(selector->wakeupPipe[1], garbage, sizeof(garbage)) < 0) {
/system/core/libsparse/
H A Dsparse.c172 int (*write)(void *priv, const void *data, int len), void *priv)
179 out = output_file_open_callback(write, priv, s->block_size, s->len, false,
/system/core/toolbox/
H A Ddd.c191 * May not have read access, so try again with write only.
200 fprintf(stderr, "%s: cannot open for write: %s\n",
420 * to write out the final block un-sparse
432 * Reporting nfs write error may be defered until next
433 * write(2) or close(2) system call. So, we need to do an
459 * output block in a single write; increment the full block stats.
460 * Otherwise, we're into partial block writes. If a partial write,
466 * write the block in multiple chunks. The original versions of dd(1)
467 * never wrote a block in more than a single write, so the latter case
470 * One special case is if we're forced to do the write
[all...]
H A Dcat.c175 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
177 perror("write");
/system/netd/
H A DTetherController.cpp72 if (write(fd, (enable ? "1" : "0"), 1) != 1) {
73 ALOGE("Failed to write ip_forward (%s)", strerror(errno));
298 if (write(mDaemonFd, daemonCmd, strlen(daemonCmd) +1) < 0) {
H A DSoftapController.cpp179 if (write(fd, fbuf, strlen(fbuf)) < 0) {
180 ALOGE("Cannot write to \"%s\": %s", HOSTAPD_CONF_FILE, strerror(errno));
H A Dndc.c96 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
97 perror("write");
/system/core/debuggerd/
H A Ddebuggerd.c67 amt = write(fd, string, len);
279 * currently assume it does.) We write to the file descriptor to
289 if (TEMP_FAILURE_RETRY(write(fd, "\0", 1)) != 1) {
363 write(fd, tombstone_path, strlen(tombstone_path));
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp56 // write: Open a file write some random data and close.
69 // For read/write tests, size is the number of Kbytes to use.
75 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
130 printf("sdcard_perf_test --test=write|read|read_write|open_create|traverse [options]\n\n"
140 " -s --sync: fsync|sync Use fsync or sync in write test. Default: no sync call.\n"
359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk
364 // iteration to last longer and have concurrent read/write
385 ssize_t written = write(fd, chunk, chunk_size);
428 fprintf(stderr, "Open write faile
[all...]
H A Dtestcase.cpp110 write(mIpc[TestCase::WRITE_TO_PARENT], buffer, str - buffer);
161 mWriteTimer = new StopWatch("write", iter() * dataSize() / chunkSize());
174 if (strcmp(mName, "write") == 0) mType = WRITE;
/system/core/init/
H A Dkeywords.h90 KEYWORD(write, COMMAND, 2, do_write)
/system/core/sh/
H A Dmemalloc.c155 write(2, "stunalloc\n", 10);
/system/extras/ext4_utils/
H A Dext4fixup.c102 /* Function to write a primary or backup superblock at a given offset */
115 ret = write(fd, sb, sizeof(*sb));
117 critical_error_errno("failed to write superblock");
119 critical_error("failed to write all of superblock");
181 len = write(fd, &magic, sizeof(magic));
183 critical_error("cannot write fixup_state\n");
316 len=write(fd, block, info.block_size);
318 critical_error_errno("failed to write block %lld\n", block_num);
422 /* Don't write out the backup superblocks with the bit set in the s_desc_size
437 ret = write(f
[all...]
/system/vold/
H A Dmain.cpp109 write(fd, "add\n", 4);
H A Dcryptfs.c191 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
192 SLOGE("Cannot write real block device footer\n");
203 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) {
204 SLOGE("Cannot write key for real block device %s\n", fname);
210 /* Compute the offset from the last write to the salt */
220 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) {
221 SLOGE("Cannot write salt for real block device %s\n", fname);
367 /* For each byte, write out two ascii hex digits */
1040 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
1069 * So compute the number of whole 4K blocks we should read/write,
[all...]
/system/core/toolbox/cp/
H A Dutils.c209 * Mmap and write if less than 8M (the limit is so
240 if (write(to_fd, &p[fsize - remainder],
261 wcount = write(to_fd, buf, (size_t)rcount);
/system/extras/libublock/
H A Dublock.c175 out_h->status = (ub_ctx->ops->write)(in_buf, in_h->length, in_h->offset);
257 out_wrote = write(ub_ctx->fd, out_buf, out_len);
/system/core/libpixelflinger/
H A Dscanline.cpp907 // write
908 c->state.buffers.color.write(
1153 void write(uint32_t s, uint16_t* dst) { function in struct:android::blender_32to16
1175 void write(uint32_t s, uint16_t* dst, ditherer& di) { function in struct:android::blender_32to16
1210 void write(uint32_t s, uint16_t* dst) { function in struct:android::blender_32to16_srcA
1254 void write(uint32_t s, uint16_t* dst) { function in struct:android::blender_32to16_modulate
1284 void write(uint32_t s, uint16_t* dst, ditherer& di) { function in struct:android::blender_32to16_modulate
1326 void write(uint32_t s, uint16_t* dst) { function in struct:android::blender_x32to16_modulate
1348 void write(uint32_t s, uint16_t* dst, ditherer& di) { function in struct:android::blender_x32to16_modulate
1381 void write(uint16_ function in struct:android::blender_16to16_modulate
[all...]
/system/core/logcat/
H A Dlogcat.cpp156 ret = write(g_outFD, buf, size);
183 bytesWritten = write(g_outFD, binaryMsgBuf, 2);
225 if (write(g_outFD, buf, strlen(buf)) < 0) {
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp68 res = write(ctrl, buff, strlen(buff));
88 res = write(param_fd, data, strlen(data));
90 testPrintE("qtaguid param write failed: %s", strerror(errno));
/system/bluetooth/bluedroid/
H A Dbluetooth.c123 ALOGE("open(%s) for write failed: %s (%d)", rfkill_state_path,
127 sz = write(fd, &buffer, 1);
129 ALOGE("write(%s) failed: %s (%d)", rfkill_state_path, strerror(errno),
/system/core/libsysutils/src/
H A DSocketListener.cpp109 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1));
/system/extras/libpagemap/
H A Dpm_process.c193 write(fd, "1\n", strlen("1\n"));

Completed in 190 milliseconds

12345