/external/qemu/android/utils/ |
debug.c | 82 int null_fd, out_fd, err_fd; local 84 out_fd = _fileno(stdout); 86 stdio_save_out_fd = _dup(out_fd); 89 _dup2(null_fd, out_fd); 99 int out_fd, err_fd; local 101 out_fd = _fileno(stdout); 103 _dup2(stdio_save_out_fd, out_fd); 114 int null_fd, out_fd, err_fd; local 116 out_fd = fileno(stdout); 118 stdio_save_out_fd = dup(out_fd); 131 int out_fd, err_fd; local [all...] |
/device/samsung/tuna/reflash-bootloader/ |
reflash-bootloader.c | 290 int out_fd; local 300 out_fd = open("/dev/block/mmcblk0", O_RDWR); 301 if (out_fd < 0) 309 zero_data(out_fd, 0, MMC_SBL_OFFSET); 315 copy_data(out_fd, MMC_PIT_OFFSET, in_fd, IMG_PIT_OFFSET, PIT_SIZE); 320 copy_data(out_fd, MMC_XLOADER_OFFSET, in_fd, type->offset, XLOADER_SIZE); 324 copy_data(out_fd, MMC_SBL_OFFSET, in_fd, IMG_SBL_OFFSET, -1); 328 verify_data(out_fd, MMC_PIT_OFFSET, in_fd, IMG_PIT_OFFSET, PIT_SIZE); 332 verify_data(out_fd, MMC_XLOADER_OFFSET, in_fd, type->offset, XLOADER_SIZE); 335 verify_data(out_fd, MMC_SBL_OFFSET, in_fd, IMG_SBL_OFFSET, -1) [all...] |
/system/extras/ext4_utils/ |
img2simg.c | 109 static void cpy_file(int out_fd, char *out_path, int in_fd, char *in_path, 126 s = write(out_fd, copy_buf, cpy_len); 185 int in_fd, out_fd; local 301 if ((out_fd = creat(out_path, 0666)) < 0) 309 s = write(out_fd, (void *)&file_hdr, sizeof(file_hdr)); 316 cpy_file(out_fd, out_path, in_fd, in_path, to_write); 319 if (close(out_fd))
|