Lines Matching defs:ar_outfile
70 } ar_outfile;
127 if (ar_outfile.fd != -1) {
129 (void) close(ar_outfile.fd);
130 (void) unlink(ar_outfile.path);
1159 ar_outfile.path = new_archive ? name : make_tmpname(name);
1160 ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666);
1161 if (ar_outfile.fd == -1) {
1164 ar_outfile.path, strerror(err));
1169 arwrite(name, ar_outfile.fd, ARMAG, SARMAG);
1177 writesymtab(name, ar_outfile.fd, nsyms, symlist,
1181 write_member_header(name, ar_outfile.fd, 0,
1184 arwrite(name, ar_outfile.fd, long_strtbl.base,
1193 assert(arsize == lseek(ar_outfile.fd, 0, SEEK_CUR));
1219 (fptr->ar_offset == lseek(ar_outfile.fd, 0, SEEK_CUR)));
1234 write_member_header(name, ar_outfile.fd, is_elf,
1265 if (sendfile(ar_outfile.fd, fd, &off,
1275 arwrite(name, ar_outfile.fd, fptr->ar_contents,
1287 arwrite(name, ar_outfile.fd, pad_bytes, pad_cnt);
1293 if (close(ar_outfile.fd) < 0) {
1295 (void) fprintf(stderr, MSG_INTL(MSG_SYS_CLOSE), ar_outfile.path,
1299 ar_outfile.fd = -1; /* Prevent removal on exit */
1315 if (rename(ar_outfile.path, name) < 0) {
1318 ar_outfile.path, name, strerror(err));
1319 (void) unlink(ar_outfile.path);