Searched refs:outfd (Results 1 - 3 of 3) sorted by relevance

/system/extras/ext4_utils/
H A Dext2simg.c124 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/core/toolbox/
H A Dnandread.c29 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/f2fs_utils/
H A Df2fs_sparseblock.c531 int outfd; member in struct:privdata
562 ret = lseek64(d->outfd, pos*F2FS_BLKSIZE, SEEK_SET);
568 ret = write(d->outfd, d->buf, F2FS_BLKSIZE);
586 int infd, outfd; local
592 if ((outfd = open(out, O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
599 d.outfd = outfd;
615 ftruncate64(outfd, info->total_blocks * F2FS_BLKSIZE);
620 close(outfd);

Completed in 133 milliseconds