Lines Matching refs:statb

343 	struct stat statb;  in path_lib()  local
348 r = stat(path,&statb); in path_lib()
358 if(pp->ino==statb.st_ino && pp->dev==statb.st_dev && pp->mtime==statb.st_mtime) in path_lib()
393 struct stat statb; in path_checkdup() local
394 if(stat(name,&statb)<0 || !S_ISDIR(statb.st_mode)) in path_checkdup()
400 pp->mtime = statb.st_mtime; in path_checkdup()
401 pp->ino = statb.st_ino; in path_checkdup()
402 pp->dev = statb.st_dev; in path_checkdup()
536 struct stat statb; in path_opentype() local
561 if(fstat(fd,&statb)<0 || S_ISDIR(statb.st_mode)) in path_opentype()
894 struct stat statb; in canexecute() local
899 if((fd=open(path,O_RDONLY,0))<0 || fstat(fd,&statb)<0) in canexecute()
902 else if(stat(path,&statb) < 0) in canexecute()
913 if(stat(path,&statb) < 0) in canexecute()
918 if(stat(path,&statb) < 0) in canexecute()
927 if(S_ISDIR(statb.st_mode)) in canexecute()
929 else if((statb.st_mode&S_IXALL)==S_IXALL || sh_access(path,X_OK)>=0) in canexecute()
1178 struct stat statb; in path_spawn() local
1179 if(stat(path,&statb)>=0) in path_spawn()
1181 if(S_ISDIR(statb.st_mode)) in path_spawn()
1184 if(S_ISSOCK(statb.st_mode)) in path_spawn()
1252 struct stat statb; in exscript() local
1257 if(fstat(n,&statb)>=0 && !(statb.st_mode&(S_ISUID|S_ISGID))) in exscript()
1269 if(fstat(n,&statb)<0 || statb.st_uid != euserid) in exscript()
1468 struct stat statb; in path_chkpaths() local
1477 fstat(fd,&statb); in path_chkpaths()
1478 n = statb.st_size; in path_chkpaths()
1640 struct stat statb; in path_newdir() local
1653 if(stat(pp->name,&statb)<0 || !S_ISDIR(statb.st_mode)) in path_newdir()
1659 pp->dev = statb.st_dev; in path_newdir()
1660 pp->ino = statb.st_ino; in path_newdir()
1661 pp->mtime = statb.st_mtime; in path_newdir()
1783 struct stat statb; in path_alias() local
1792 if(sp && lstat(sp,&statb)>=0 && S_ISLNK(statb.st_mode)) in path_alias()
1793 nv_setsize(np,statb.st_size+1); in path_alias()