Lines Matching refs:statb

325 	struct stat statb;  in path_lib()  local
330 r = stat(path,&statb); in path_lib()
340 if(pp->ino==statb.st_ino && pp->dev==statb.st_dev && pp->mtime==statb.st_mtime) in path_lib()
375 struct stat statb; in path_checkdup() local
376 if(stat(name,&statb)<0 || !S_ISDIR(statb.st_mode)) in path_checkdup()
382 pp->mtime = statb.st_mtime; in path_checkdup()
383 pp->ino = statb.st_ino; in path_checkdup()
384 pp->dev = statb.st_dev; in path_checkdup()
510 struct stat statb; in path_opentype() local
528 if(fstat(fd,&statb)<0 || S_ISDIR(statb.st_mode)) in path_opentype()
933 struct stat statb; in canexecute() local
938 if((fd=open(path,O_RDONLY,0))<0 || fstat(fd,&statb)<0) in canexecute()
941 else if(stat(path,&statb) < 0) in canexecute()
952 if(stat(path,&statb) < 0) in canexecute()
957 if(stat(path,&statb) < 0) in canexecute()
966 if(S_ISDIR(statb.st_mode)) in canexecute()
968 else if((statb.st_mode&S_IXALL)==S_IXALL || sh_access(path,X_OK)>=0) in canexecute()
1216 struct stat statb; in path_spawn() local
1217 if(stat(path,&statb)>=0) in path_spawn()
1219 if(S_ISDIR(statb.st_mode)) in path_spawn()
1222 if(S_ISSOCK(statb.st_mode)) in path_spawn()
1293 struct stat statb; in exscript() local
1298 if(fstat(n,&statb)>=0 && !(statb.st_mode&(S_ISUID|S_ISGID))) in exscript()
1310 if(fstat(n,&statb)<0 || statb.st_uid != euserid) in exscript()
1510 struct stat statb; in path_chkpaths() local
1519 fstat(fd,&statb); in path_chkpaths()
1520 n = statb.st_size; in path_chkpaths()
1660 struct stat statb; in path_newdir() local
1673 if(stat(pp->name,&statb)<0 || !S_ISDIR(statb.st_mode)) in path_newdir()
1679 pp->dev = statb.st_dev; in path_newdir()
1680 pp->ino = statb.st_ino; in path_newdir()
1681 pp->mtime = statb.st_mtime; in path_newdir()
1804 struct stat statb; in path_alias() local
1813 if(sp && lstat(sp,&statb)>=0 && S_ISLNK(statb.st_mode)) in path_alias()
1814 nv_setsize(np,statb.st_size+1); in path_alias()