Lines Matching refs:fileptr

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