Lines Matching refs:fileptr

89 	ARFILE		*fileptr;  in rcmd()  local
103 for (fileptr = getfile(cmd_info); in rcmd()
104 fileptr; fileptr = getfile(cmd_info)) { in rcmd()
107 strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in rcmd()
108 abifile = fileptr; in rcmd()
110 backptr = fileptr; in rcmd()
113 (gfile = match(fileptr->ar_longname, cmd_info)) != NULL) { in rcmd()
133 stbuf.st_mtime <= fileptr->ar_date) { in rcmd()
140 mesg('r', fileptr->ar_longname, cmd_info); in rcmd()
141 movefil(fileptr, &stbuf); in rcmd()
145 if (fileptr->ar_flag & F_ELFRAW) { in rcmd()
149 (void) elf_end(fileptr->ar_elf); in rcmd()
150 fileptr->ar_elf = 0; in rcmd()
153 fileptr->ar_flag &= ~F_ELFRAW; in rcmd()
160 fileptr->ar_contents = NULL; in rcmd()
162 if (fileptr->ar_pathname != NULL) in rcmd()
163 free(fileptr->ar_pathname); in rcmd()
164 if ((fileptr->ar_pathname = in rcmd()
173 (void) strcpy(fileptr->ar_pathname, gfile); in rcmd()
176 if (cmd_info->ponam && (abifile != fileptr)) { in rcmd()
187 new_listhead = fileptr; in rcmd()
189 new_listend->ar_next = fileptr; in rcmd()
190 new_listend = fileptr; in rcmd()
199 mesg('u', fileptr->ar_longname, cmd_info); in rcmd()
204 prev_entry = fileptr; in rcmd()
381 ARFILE *fileptr; in mcmd() local
388 for (fileptr = getfile(cmd_info); in mcmd()
389 fileptr; fileptr = getfile(cmd_info)) { in mcmd()
390 if (match(fileptr->ar_longname, cmd_info) != NULL) { in mcmd()
394 mesg('m', fileptr->ar_longname, cmd_info); in mcmd()
396 tmpend->ar_next = fileptr; in mcmd()
398 tmphead = fileptr; in mcmd()
399 tmpend = fileptr; in mcmd()
411 mesg('u', fileptr->ar_longname, cmd_info); in mcmd()
412 backptr1 = fileptr; in mcmd()
414 if (strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in mcmd()
415 abifile = fileptr; in mcmd()
417 backptr2 = fileptr; in mcmd()
558 ARFILE *fileptr; in cleanup() local
574 fileptr = newfile(); in cleanup()
576 (void) strncpy(fileptr->ar_name, in cleanup()
579 if ((fileptr->ar_longname = in cleanup()
588 (void) strcpy(fileptr->ar_longname, in cleanup()
591 if ((fileptr->ar_pathname = in cleanup()
599 (void) strcpy(fileptr->ar_pathname, cmd_info->namv[i]); in cleanup()
601 movefil(fileptr, &stbuf); in cleanup()
604 fileptr->ar_flag &= ~F_ELFRAW; in cleanup()
611 fileptr->ar_contents = NULL; in cleanup()
624 movefil(ARFILE *fileptr, struct stat *stbuf) in movefil() argument
626 fileptr->ar_size = stbuf->st_size; in movefil()
627 fileptr->ar_date = stbuf->st_mtime; in movefil()
628 fileptr->ar_mode = stbuf->st_mode; in movefil()
639 if ((fileptr->ar_uid = stbuf->st_uid) > 999999) { in movefil()
640 fileptr->ar_uid = UID_NOBODY; in movefil()
641 if (S_ISREG(fileptr->ar_mode)) in movefil()
642 fileptr->ar_mode &= ~S_ISUID; in movefil()
644 if ((fileptr->ar_gid = stbuf->st_gid) > 999999) { in movefil()
645 fileptr->ar_gid = GID_NOBODY; in movefil()
646 if (S_ISREG(fileptr->ar_mode)) in movefil()
647 fileptr->ar_mode &= ~S_ISGID; in movefil()