/system/core/libsparse/include/sparse/ |
H A D | sparse.h | 140 * 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 D | set_ext4_err_bit.c | 49 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 D | corrupt_gdt_free_blocks.c | 65 * 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 D | rand_emmc_perf.c | 17 /* 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 D | Xwarp.cpp | 75 if (write(fd, tmp, strlen(tmp)+1) < 0) { 76 SLOGE("Failed to write xwarp cfg (%s)", strerror(errno));
|
H A D | vdc.c | 76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 77 perror("write");
|
/system/core/adb/ |
H A D | sysdeps.h | 137 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 D | test_track_devices.c | 21 int len2 = write(fd, buf, len);
|
H A D | test_track_jdwp.c | 21 int len2 = write(fd, buf, len);
|
H A D | transport_local.c | 93 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 D | usb_linux_client.c | 45 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 D | autosuspend_wakeup_count.c | 72 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 D | alarm.c | 160 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1); 164 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1);
|
H A D | sendevent.c | 74 ret = write(fd, &event, sizeof(event)); 76 fprintf(stderr, "write event failed, %s\n", strerror(errno));
|
/system/core/init/ |
H A D | keychords.c | 82 ret = write(fd, keychords, keychords_length);
|
H A D | devices.c | 664 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 D | signal_handler.c | 38 write(signal_fd, &s, 1);
|
/system/core/run-as/ |
H A D | run-as.c | 84 write(1, str, strlen(str));
|
/system/netd/ |
H A D | main.cpp | 108 write(fd, "add\n", 4);
|
/system/extras/atrace/ |
H A D | atrace.c | 107 // 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 D | sysutil.cpp | 167 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 D | buffer.c | 100 ssize_t bytesWritten = write(fd,
|
H A D | fs.c | 121 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) { 122 ALOGE("Failed to write %s: %s", temp, strerror(errno));
|
H A D | abort_socket.c | 38 /* 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 D | fatblock.c | 75 .write = &write_callback
|