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

12345

/system/netd/
H A DNetdConstants.cpp117 if (write(fd, value, size) != size) {
118 ALOGE("Failed to write %s: %s", path, strerror(errno));
138 ALOGE("Failed to write %s: %s", path, strerror(errno));
H A Dmain.cpp110 write(fd, "add\n", 4);
H A DSoftapController.cpp169 if (write(fd, fbuf, strlen(fbuf)) < 0) {
170 ALOGE("Cannot write to \"%s\": %s", HOSTAPD_CONF_FILE, strerror(errno));
H A Dndc.c106 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
108 perror("write");
/system/vold/
H A Dvdc.c76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
77 perror("write");
H A Dmain.cpp118 write(fd, "add\n", 4);
/system/core/libcutils/
H A Dproperties.c172 if (write(gPropFd, sendBuf, sizeof(sendBuf)) != sizeof(sendBuf)) {
235 if (write(gPropFd, sendBuf, sizeof(sendBuf)) != sizeof(sendBuf)) {
H A Dfs.c128 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
129 ALOGE("Failed to write %s: %s", temp, strerror(errno));
/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/extras/tests/ext4/
H A Drand_emmc_perf.c17 /* A simple test of emmc random read and write performance. When testing write
131 if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
132 fprintf(stderr, "Short write\n");
160 if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
161 fprintf(stderr, "Short write\n");
229 /* Can only specify o_sync in write mode. Probably doesn't matter,
/system/core/debuggerd/
H A Ddebuggerd.c69 amt = write(fd, string, len);
288 * currently assume it does.) We write to the file descriptor to
298 if (TEMP_FAILURE_RETRY(write(fd, "\0", 1)) != 1) {
373 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/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");
315 len=write(fd, block, info.block_size);
317 critical_error_errno("failed to write block %lld\n", block_num);
421 /* Don't write out the backup superblocks with the bit set in the s_desc_size
436 ret = write(f
[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/init/
H A Ddevices.c673 write(loading_fd, "1", 1); /* start transfer */
691 nw = write(data_fd, buf + nw, nr);
702 write(loading_fd, "0", 1); /* successful end of transfer */
704 write(loading_fd, "-1", 2); /* abort transfer */
771 write(loading_fd, "-1", 2);
856 write(fd, "add\n", 4);
H A Dkeywords.h94 KEYWORD(write, COMMAND, 2, do_write)
/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/core/include/utils/
H A DFlattenable.h60 // write a POD structure
62 static void write(void*& buffer, size_t& size, const T& value) { function in class:android::FlattenableUtils

Completed in 302 milliseconds

12345