Lines Matching refs:ar_outfile
70 } ar_outfile;
127 if (ar_outfile.fd != -1) {
129 (void) close(ar_outfile.fd);
130 (void) unlink(ar_outfile.path);
1186 ar_outfile.path = new_archive ? name : make_tmpname(name);
1187 ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666);
1188 if (ar_outfile.fd == -1) {
1191 ar_outfile.path, strerror(err));
1196 arwrite(name, ar_outfile.fd, ARMAG, SARMAG);
1204 writesymtab(name, ar_outfile.fd, nsyms, symlist,
1208 write_member_header(name, ar_outfile.fd, 0,
1211 arwrite(name, ar_outfile.fd, long_strtbl.base,
1220 assert(arsize == lseek(ar_outfile.fd, 0, SEEK_CUR));
1246 (fptr->ar_offset == lseek(ar_outfile.fd, 0, SEEK_CUR)));
1261 write_member_header(name, ar_outfile.fd, is_elf,
1292 if (sendfile(ar_outfile.fd, fd, &off,
1302 arwrite(name, ar_outfile.fd, fptr->ar_contents,
1314 arwrite(name, ar_outfile.fd, pad_bytes, pad_cnt);
1320 if (close(ar_outfile.fd) < 0) {
1322 (void) fprintf(stderr, MSG_INTL(MSG_SYS_CLOSE), ar_outfile.path,
1326 ar_outfile.fd = -1; /* Prevent removal on exit */
1342 if (rename(ar_outfile.path, name) < 0) {
1345 ar_outfile.path, name, strerror(err));
1346 (void) unlink(ar_outfile.path);