Searched defs:outfd (Results 1 - 3 of 3) sorted by relevance
/system/core/toolbox/ |
H A D | nandread.c | 29 int outfd = -1; local 110 outfd = creat(filename, 0666); 111 if (outfd < 0) { 242 if (outfd >= 0) { 243 ret = write(outfd, buffer, mtdinfo.writesize + spare_size); 246 close(outfd); 247 outfd = -1; 271 if (outfd >= 0) {
|
/system/extras/ext4_utils/ |
H A D | ext2simg.c | 124 int infd, outfd; local 180 outfd = open(out, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); 181 if (outfd < 0) { 186 outfd = STDOUT_FILENO; 189 write_ext4_image(outfd, gzip, sparse, crc); 190 close(outfd);
|
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 542 int outfd; member in struct:privdata 573 ret = lseek64(d->outfd, pos * F2FS_BLKSIZE, SEEK_SET); 579 ret = write(d->outfd, d->buf, F2FS_BLKSIZE); 597 int infd, outfd; local 603 if ((outfd = open(out, O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR)) < 0) { 610 d.outfd = outfd; 626 ftruncate64(outfd, info->total_blocks * F2FS_BLKSIZE); 631 close(outfd);
|
Completed in 327 milliseconds