Lines Matching refs:statb
315 struct stat statb;
329 if(stat(arg,&statb)<0 || !S_ISREG(statb.st_mode))
343 return(test_stat(arg,&statb)>=0 && S_ISDIR(statb.st_mode));
345 return(test_stat(arg,&statb)>=0 && S_ISCHR(statb.st_mode));
347 return(test_stat(arg,&statb)>=0 && S_ISBLK(statb.st_mode));
349 return(test_stat(arg,&statb)>=0 && S_ISREG(statb.st_mode));
365 if(*arg==0 || arg[strlen(arg)-1]=='/' || lstat(arg,&statb)<0)
367 return(S_ISLNK(statb.st_mode));
371 return(test_stat(arg,&statb)>=0 && S_ISCTG(statb.st_mode));
379 if(test_stat(arg,&statb)>=0 && S_ISCDF(statb.st_mode))
386 return(test_stat(arg,&statb)>=0 && S_ISCDF(statb.st_mode));
393 return(isasock(arg,&statb));
395 return(test_stat(arg,&statb)>=0 && tmxgetmtime(&statb) > tmxgetatime(&statb));
397 return(isapipe(arg,&statb));
406 if(*arg==0 || test_stat(arg,&statb)<0)
409 return(statb.st_size>0);
411 return(statb.st_uid==shp->gd->userid);
412 return(statb.st_gid==shp->gd->groupid);
555 * The static buffer statb is shared with test_mode.
561 struct stat statb;
592 if(test_stat(name, &statb) == 0)
598 if(!S_ISREG(statb.st_mode) || mode!=X_OK)
603 else if(shp->gd->euserid == statb.st_uid)
605 else if(shp->gd->egroupid == statb.st_gid)
627 if(groups[n] == statb.st_gid)
635 if(statb.st_mode & mode)
649 struct stat statb;
650 statb.st_mode = 0;
651 if(file && (*file==0 || test_stat(file,&statb)<0))
653 return(statb.st_mode);