Searched refs:write (Results 26 - 50 of 101) sorted by relevance

12345

/system/core/libsparse/include/sparse/
H A Dsparse.h140 * sparse_file_write - write a sparse file to a file
143 * @fd - file descriptor to write to
144 * @gz - write a gzipped file
145 * @sparse - write in the Android sparse file format
164 * @sparse - write in the Android sparse file format
178 * @sparse - write in the Android sparse file format
180 * @write - function to call for each block
181 * @priv - value that will be passed as the first argument to write
186 * The callback 'write' will be called with data and length for each data,
193 int (*write)(voi
[all...]
/system/extras/tests/ext4/
H A Dset_ext4_err_bit.c49 fprintf(stderr, "%s: Cannot lseek to superblock to write\n", me);
53 if (write(fd, sb, SB_SIZE) != SB_SIZE) {
54 fprintf(stderr, "%s: Cannot write superblock\n", me);
H A Dcorrupt_gdt_free_blocks.c65 * write it back out
87 fprintf(stderr, "%s: Cannot lseek to block group descriptor table to write\n", me);
91 if (write(fd, &gd, sizeof(gd)) != sizeof(gd)) {
92 fprintf(stderr, "%s: Cannot write modified group descriptor\n", me);
H A Drand_emmc_perf.c17 /* A simple test of emmc random read and write performance. When testing write
74 /* Can only specify o_sync in write mode. Probably doesn't matter,
108 if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
109 fprintf(stderr, "Short write\n");
/system/vold/
H A DXwarp.cpp75 if (write(fd, tmp, strlen(tmp)+1) < 0) {
76 SLOGE("Failed to write xwarp cfg (%s)", strerror(errno));
H A Dvdc.c76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
77 perror("write");
/system/core/adb/
H A Dsysdeps.h137 return write(fd, buf, len);
139 #undef write macro
140 #define write ___xxx_write macro
368 return write(fd, buf, len);
370 #undef write macro
371 #define write ___xxx_write macro
H A Dtest_track_devices.c21 int len2 = write(fd, buf, len);
H A Dtest_track_jdwp.c21 int len2 = write(fd, buf, len);
H A Dtransport_local.c93 D("write remote packet: %04x arg0=%0x arg1=%0x data_length=%0x data_check=%0x magic=%0x\n",
97 D("remote local: write terminated\n");
191 * Redefine open and write for qemu_pipe.h that contains inlined references
195 #undef write macro
197 #define write adb_write macro
200 #undef write macro
202 #define write ___xxx_write macro
H A Dusb_linux_client.c45 int (*write)(usb_handle *h, const void *data, int len); member in struct:usb_handle
190 D("about to write (fd=%d, len=%d)\n", h->fd, len);
236 h->write = usb_adb_write;
276 D("[ %s: write descriptors failed: errno=%d ]\n", USB_FFS_ADB_EP0, errno);
367 D("about to write (fd=%d, len=%d)\n", h->bulk_in, len);
446 h->write = usb_ffs_write;
477 return h->write(h, data, len);
/system/core/libsuspend/
H A Dautosuspend_wakeup_count.c72 ALOGV("%s: write %*s to wakeup_count\n", __func__, wakeup_count_len, wakeup_count);
73 ret = write(wakeup_count_fd, wakeup_count, wakeup_count_len);
78 ALOGV("%s: write %s to %s\n", __func__, sleep_state, SYS_POWER_STATE);
79 ret = write(state_fd, sleep_state, strlen(sleep_state));
/system/core/toolbox/
H A Dalarm.c160 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1);
164 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1);
H A Dsendevent.c74 ret = write(fd, &event, sizeof(event));
76 fprintf(stderr, "write event failed, %s\n", strerror(errno));
/system/core/init/
H A Dkeychords.c82 ret = write(fd, keychords, keychords_length);
H A Ddevices.c664 write(loading_fd, "1", 1); /* start transfer */
682 nw = write(data_fd, buf + nw, nr);
693 write(loading_fd, "0", 1); /* successful end of transfer */
695 write(loading_fd, "-1", 2); /* abort transfer */
762 write(loading_fd, "-1", 2);
846 write(fd, "add\n", 4);
H A Dsignal_handler.c38 write(signal_fd, &s, 1);
/system/core/run-as/
H A Drun-as.c84 write(1, str, strlen(str));
/system/netd/
H A Dmain.cpp108 write(fd, "add\n", 4);
/system/extras/atrace/
H A Datrace.c107 // Write a string to a file, returning true if the write was successful.
119 if (write(fd, str, len) != len) {
323 // Read the current kernel trace and write it to stdout.
373 // Need to write the output.
374 result = write(STDOUT_FILENO, out, bufSize);
379 zs.avail_out = bufSize; // skip the final write
394 result = write(STDOUT_FILENO, out, bytes);
/system/extras/tests/sdcard/
H A Dsysutil.cpp167 ssize_t s = write(fd, start, size);
174 printErrno("Failed to write", filename);
194 fprintf(stderr, "Partial write to %s (%d out of %d)\n",
278 fprintf(stderr, "Failed to write to scaling governor file for cpu %d: %d %s",
453 ssize_t s = write(writefd, start, size);
460 printErrno("Failed to write", "parent");
579 ssize_t s = write(writefd, &dummy, size);
586 printErrno("Failed to write", "child");
/system/core/libcutils/
H A Dbuffer.c100 ssize_t bytesWritten = write(fd,
H A Dfs.c121 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
122 ALOGE("Failed to write %s: %s", temp, strerror(errno));
H A Dabort_socket.c38 /* create pipe with non-blocking write, so that asocket_close() cannot
243 /* ready to write() without blocking */
245 ret = write(s->fd, buf, count);
266 ret = write(s->abort_fd[1], &buf, 1);
/system/extras/fatblock/
H A Dfatblock.c75 .write = &write_callback

Completed in 260 milliseconds

12345