Lines Matching defs:fptr

475 	ARFILE		*fptr;
487 for (fptr = listhead; fptr; fptr = fptr->ar_next) {
489 if ((fptr->ar_elf != NULL) && (fptr->ar_pathname == NULL)) {
493 elf = fptr->ar_elf;
494 } else if ((fptr->ar_elf == NULL) &&
495 (fptr->ar_pathname != NULL)) {
519 if (fptr->ar_size > 0xffffffff) {
522 fptr->ar_pathname);
528 open(fptr->ar_pathname, O_RDONLY)) == -1) {
531 fptr->ar_pathname, strerror(err));
540 fptr->ar_pathname, elf_errmsg(-1));
561 fptr->ar_flag |= F_CLASS64;
563 fptr->ar_flag |= F_CLASS32;
566 if (fptr->ar_pathname != NULL) {
569 fptr->ar_pathname, elf_errmsg(-1));
573 arname, fptr->ar_longname,
587 if (fptr->ar_pathname != NULL)
590 fptr->ar_pathname, elf_errmsg(-1));
594 arname, fptr->ar_longname,
608 if (fptr->ar_pathname != NULL)
611 fptr->ar_pathname, elf_errmsg(-1));
615 arname, fptr->ar_longname,
626 if (fptr->ar_pathname != NULL)
629 fptr->ar_pathname);
633 arname, fptr->ar_longname);
649 if (fptr->ar_pathname != NULL)
652 fptr->ar_pathname,
657 arname, fptr->ar_longname,
670 if (search_sym_tab(arname, fptr, elf,
682 mem_offset += sizeof (struct ar_hdr) + fptr->ar_size;
683 if (fptr->ar_size & 01)
952 * fptr - pointer to archive member with long name
956 * and fptr->ar_name has been replaced with the special /xxx
961 savelongname(ARFILE *fptr)
967 len = strlen(fptr->ar_longname);
982 (void) snprintf(fptr->ar_name, sizeof (fptr->ar_name),
991 (void) strcpy(p, fptr->ar_longname);
1013 ARFILE *fptr;
1039 for (fptr = listhead; fptr; fptr = fptr->ar_next) {
1040 size += sizeof (struct ar_hdr) + fptr->ar_size + PADSZ;
1053 ARFILE *fptr;
1238 for (fptr = listhead; fptr; fptr = fptr->ar_next) {
1244 is_elf = (fptr->ar_flag & (F_CLASS32 | F_CLASS64)) != 0;
1246 (fptr->ar_offset == lseek(ar_outfile.fd, 0, SEEK_CUR)));
1257 if (fptr->ar_name[0] == 0) {
1258 fptr->ar_longname = fptr->ar_rawname;
1259 (void) strncpy(fptr->ar_name, fptr->ar_rawname, SNAME);
1262 (strlen(fptr->ar_longname) <= (unsigned)SNAME-2) ?
1263 trimslash(fptr->ar_longname) : fptr->ar_name,
1264 EC_WORD(fptr->ar_date), fptr->ar_uid, fptr->ar_gid,
1265 fptr->ar_mode, fptr->ar_size + fptr->ar_padding);
1268 if ((fptr->ar_flag & F_ELFRAW) == 0) {
1271 * therefore not already in memory(fptr->ar_contents)
1278 if ((fd = open(fptr->ar_pathname, O_RDONLY)) == -1) {
1281 fptr->ar_longname, strerror(err));
1284 if (stat(fptr->ar_pathname, &stbuf) < 0) {
1287 fptr->ar_longname, strerror(err));
1302 arwrite(name, ar_outfile.fd, fptr->ar_contents,
1303 fptr->ar_size);
1308 * The expression ((fptr->ar_size & 0x1) != 0) yields 1 for
1312 pad_cnt = ((fptr->ar_size & 0x1) != 0) + fptr->ar_padding;
1367 ARFILE *fptr;
1370 for (fptr = listhead; fptr; fptr = fptr->ar_next) {
1371 if (strlen(fptr->ar_longname) >= (unsigned)SNAME-1) {
1373 savelongname(fptr);
1418 search_sym_tab(const char *arname, ARFILE *fptr, Elf *elf, Elf_Scn *scn,
1431 char *fname = fptr->ar_pathname;
1441 arname, fptr->ar_longname, elf_errmsg(-1));
1460 arname, fptr->ar_longname, elf_errmsg(-1));
1475 arname, fptr->ar_longname);
1485 arname, fptr->ar_longname);
1494 arname, fptr->ar_longname);
1504 arname, fptr->ar_longname, elf_errmsg(-1));
1539 *sym_ptr = fptr;
1554 ARFILE *fptr;
1557 for (fptr = listhead; fptr; fptr = fptr->ar_next) {
1558 fptr->ar_offset = psum + sum;
1559 sum += fptr->ar_size;
1560 if (fptr->ar_size & 01)
1574 if ((fptr->ar_flag & (F_CLASS32 | F_CLASS64)) &&
1575 fptr->ar_next &&
1576 (fptr->ar_next->ar_flag & (F_CLASS32 | F_CLASS64))) {
1577 fptr->ar_padding = pad(psum + sum + hdrsize, PADSZ);
1578 sum += fptr->ar_padding;
1580 fptr->ar_padding = 0;