Lines Matching refs:outfd
262 int infd, outfd; in main() local
410 outfd = open(outimage, O_WRONLY|O_CREAT|O_TRUNC, 0775); in main()
411 if ( outfd == -1 ) in main()
419 do_write(outfd, &out_ehdr, sizeof(out_ehdr)); in main()
422 do_write(outfd, &out_phdr, sizeof(out_phdr)); in main()
427 do_write(outfd, ¬e_phdr, sizeof(note_phdr)); in main()
435 do_write(outfd, buffer, bytes); in main()
442 do_write(outfd, buffer, todo); in main()
447 do_write(outfd, &out_shdr[0], sizeof(out_shdr)); in main()
453 do_write(outfd, &out_shdr_note, sizeof(out_shdr_note)); in main()
455 do_write(outfd, out_shstrtab, sizeof(out_shstrtab)); in main()
457 do_write(outfd, out_shstrtab_extra, sizeof(out_shstrtab_extra)); in main()
458 do_write(outfd, buffer, 4-((sizeof(out_shstrtab)+sizeof(out_shstrtab_extra)+dat_siz)&3)); in main()
462 do_write(outfd, out_shstrtab, sizeof(out_shstrtab)); in main()
463 do_write(outfd, buffer, 4-((sizeof(out_shstrtab)+dat_siz)&3)); in main()
466 close(outfd); in main()