Lines Matching defs:fname
98 char *fname;
206 int setfiletime (char *fname,time_t ftime)
234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
246 return utime(fname,&settime);
253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time)
260 item->fname = strdup(fname);
276 setfiletime(item->fname,item->time);
277 chmod(item->fname,item->mode);
371 int matchname (int arg,int argc,char **argv,char *fname)
377 if (ExprMatch(fname,argv[arg++]))
394 char fname[BLOCKSIZE];
440 strncpy(fname,buffer.header.name,SHORTNAMESIZE);
441 if (fname[SHORTNAMESIZE-1] != 0)
442 fname[SHORTNAMESIZE] = 0;
449 if (strncmp(fname,buffer.header.name,SHORTNAMESIZE-1) != 0)
461 printf(" %s <dir> %s\n",strtime(&tartime),fname);
464 makedir(fname);
465 push_attr(&attributes,fname,tarmode,tartime);
477 printf(" %s %9d %s\n",strtime(&tartime),remaining,fname);
480 if (matchname(arg,argc,argv,fname))
482 outfile = fopen(fname,"wb");
485 char *p = strrchr(fname, '/');
488 makedir(fname);
490 outfile = fopen(fname,"wb");
494 printf("Extracting %s\n",fname);
496 fprintf(stderr, "%s: Couldn't create %s",prog,fname);
511 len = gzread(in, fname, BLOCKSIZE);
514 if (fname[BLOCKSIZE-1] != 0 || (int)strlen(fname) > remaining)
523 printf(" %s <---> %s\n",strtime(&tartime),fname);
536 "%s: Error writing %s -- skipping\n",prog,fname);
539 remove(fname);
553 push_attr(&attributes,fname,tarmode,tartime);
587 " untgz file.tgz fname ... extract selected files\n"