Lines Matching refs:statb
322 struct stat statb;
327 r = stat(path,&statb);
337 if(pp->ino==statb.st_ino && pp->dev==statb.st_dev && pp->mtime==statb.st_mtime)
372 struct stat statb;
373 if(stat(name,&statb)<0 || !S_ISDIR(statb.st_mode))
379 pp->mtime = statb.st_mtime;
380 pp->ino = statb.st_ino;
381 pp->dev = statb.st_dev;
507 struct stat statb;
525 if(fstat(fd,&statb)<0 || S_ISDIR(statb.st_mode))
929 struct stat statb;
934 if((fd=open(path,O_RDONLY,0))<0 || fstat(fd,&statb)<0)
937 else if(stat(path,&statb) < 0)
948 if(stat(path,&statb) < 0)
953 if(stat(path,&statb) < 0)
962 if(S_ISDIR(statb.st_mode))
964 else if((statb.st_mode&S_IXALL)==S_IXALL || sh_access(path,X_OK)>=0)
1211 struct stat statb;
1212 if(stat(path,&statb)>=0)
1214 if(S_ISDIR(statb.st_mode))
1217 if(S_ISSOCK(statb.st_mode))
1286 struct stat statb;
1291 if(fstat(n,&statb)>=0 && !(statb.st_mode&(S_ISUID|S_ISGID)))
1303 if(fstat(n,&statb)<0 || statb.st_uid != euserid)
1503 struct stat statb;
1512 fstat(fd,&statb);
1513 n = statb.st_size;
1653 struct stat statb;
1666 if(stat(pp->name,&statb)<0 || !S_ISDIR(statb.st_mode))
1672 pp->dev = statb.st_dev;
1673 pp->ino = statb.st_ino;
1674 pp->mtime = statb.st_mtime;
1797 struct stat statb;
1806 if(sp && lstat(sp,&statb)>=0 && S_ISLNK(statb.st_mode))
1807 nv_setsize(np,statb.st_size+1);