Lines Matching refs:fileptr

88 	ARFILE		*fileptr;  in rcmd()  local
102 for (fileptr = getfile(cmd_info); in rcmd()
103 fileptr; fileptr = getfile(cmd_info)) { in rcmd()
106 strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in rcmd()
107 abifile = fileptr; in rcmd()
109 backptr = fileptr; in rcmd()
112 (gfile = match(fileptr->ar_longname, cmd_info)) != NULL) { in rcmd()
132 stbuf.st_mtime <= fileptr->ar_date) { in rcmd()
139 mesg('r', fileptr->ar_longname, cmd_info); in rcmd()
140 movefil(fileptr, &stbuf); in rcmd()
144 if (fileptr->ar_flag & F_ELFRAW) { in rcmd()
148 (void) elf_end(fileptr->ar_elf); in rcmd()
149 fileptr->ar_elf = 0; in rcmd()
152 fileptr->ar_flag &= ~F_ELFRAW; in rcmd()
159 fileptr->ar_contents = NULL; in rcmd()
161 if (fileptr->ar_pathname != NULL) in rcmd()
162 free(fileptr->ar_pathname); in rcmd()
163 if ((fileptr->ar_pathname = in rcmd()
172 (void) strcpy(fileptr->ar_pathname, gfile); in rcmd()
175 if (cmd_info->ponam && (abifile != fileptr)) { in rcmd()
186 new_listhead = fileptr; in rcmd()
188 new_listend->ar_next = fileptr; in rcmd()
189 new_listend = fileptr; in rcmd()
198 mesg('u', fileptr->ar_longname, cmd_info); in rcmd()
203 prev_entry = fileptr; in rcmd()
380 ARFILE *fileptr; in mcmd() local
387 for (fileptr = getfile(cmd_info); in mcmd()
388 fileptr; fileptr = getfile(cmd_info)) { in mcmd()
389 if (match(fileptr->ar_longname, cmd_info) != NULL) { in mcmd()
393 mesg('m', fileptr->ar_longname, cmd_info); in mcmd()
395 tmpend->ar_next = fileptr; in mcmd()
397 tmphead = fileptr; in mcmd()
398 tmpend = fileptr; in mcmd()
410 mesg('u', fileptr->ar_longname, cmd_info); in mcmd()
411 backptr1 = fileptr; in mcmd()
413 if (strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in mcmd()
414 abifile = fileptr; in mcmd()
416 backptr2 = fileptr; in mcmd()
553 ARFILE *fileptr; in cleanup() local
569 fileptr = newfile(); in cleanup()
571 (void) strncpy(fileptr->ar_name, in cleanup()
574 if ((fileptr->ar_longname = in cleanup()
583 (void) strcpy(fileptr->ar_longname, in cleanup()
586 if ((fileptr->ar_pathname = in cleanup()
594 (void) strcpy(fileptr->ar_pathname, cmd_info->namv[i]); in cleanup()
596 movefil(fileptr, &stbuf); in cleanup()
599 fileptr->ar_flag &= ~F_ELFRAW; in cleanup()
606 fileptr->ar_contents = NULL; in cleanup()
619 movefil(ARFILE *fileptr, struct stat *stbuf) in movefil() argument
621 fileptr->ar_size = stbuf->st_size; in movefil()
622 fileptr->ar_date = stbuf->st_mtime; in movefil()
623 fileptr->ar_mode = stbuf->st_mode; in movefil()
634 if ((fileptr->ar_uid = stbuf->st_uid) > 999999) { in movefil()
635 fileptr->ar_uid = UID_NOBODY; in movefil()
636 if (S_ISREG(fileptr->ar_mode)) in movefil()
637 fileptr->ar_mode &= ~S_ISUID; in movefil()
639 if ((fileptr->ar_gid = stbuf->st_gid) > 999999) { in movefil()
640 fileptr->ar_gid = GID_NOBODY; in movefil()
641 if (S_ISREG(fileptr->ar_mode)) in movefil()
642 fileptr->ar_mode &= ~S_ISGID; in movefil()