Lines Matching defs:fd_out
205 static int fd_out;
846 if (write_all(&fd_out, &cmd, sizeof(cmd)) == -1)
851 && (write_all(&fd_out, buff, csize) == -1)) {
891 if (lseek_out(fd_out, pos, SEEK_SET) == (off_t)-1)
904 if (write_all(&fd_out, buf, sizeof(buf)) == -1)
919 if (write_all(&fd_out, buff, sizeof(buff)) == -1)
933 || write_all(&fd_out, &image_hdr, sizeof(image_hdr))
934 || write_all(&fd_out, alignment, alignsize))
967 || write_all(&fd_out, &image_hdr, sizeof(image_hdr))
968 || write_all(&fd_out, alignment, alignsize))
991 if (write_all(&fd_out, buf, csize) == -1)
1012 if (write_all(&fd_out, buff, csize) == -1)
1083 && (lseek_out(fd_out, count * csize,
1483 if ((write_all(&fd_out, &cmd, sizeof(cmd)) == -1)
1484 || (write_all(&fd_out, &buff[k*csize], csize) == -1))
2311 if (fstatfs(fd_out, &opt.stfs) == -1)
2328 if (!opt.no_action && (ftruncate(fd_out, filesize) == -1)) {
2365 if (ftruncate(fd_out, 0))
2371 s = fstat(fd_out, &st);
2372 if (s || (!st.st_blocks && ftruncate(fd_out, 0)))
2500 dest_size = device_size_get(fd_out);
2563 if (fstatvfs(fd_out, &stvfs) == -1) {
2570 if (!fstat(fd_out, &st)) {
2623 if ((fd_out = fileno(stdout)) == -1)
2634 fd_out = 0;
2646 fd_out = fileno(stream_out);
2659 && ((fd_out = open(opt.output, flags,
2674 fsync_clone(fd_out);
2701 fsync_clone(fd_out);
2718 fsync_clone(fd_out); /* sync copy before mounting */
2753 fsync_clone(fd_out);