Lines Matching refs:test_stat
50 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino&&((p)->st_mode&(S_IRUSR|S_IWUSR))!=(S_IRUSR|S_IWUSR))
52 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino)
55 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino)
57 # define isasock(f,p) (test_stat(f,p)>=0&&S_ISSOCK((p)->st_mode))
59 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode))
65 static int test_stat(const char*, struct stat*);
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));
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));
395 return(test_stat(arg,&statb)>=0 && tmxgetmtime(&statb) > tmxgetatime(&statb));
406 if(*arg==0 || test_stat(arg,&statb)<0)
525 int r=test_stat(file2,&statb2);
526 if(test_stat(file1,&statb1)<0)
546 if(test_stat(file1,&stat1)>=0 && test_stat(file2,&stat2)>=0)
592 if(test_stat(name, &statb) == 0)
651 if(file && (*file==0 || test_stat(file,&statb)<0))
659 static int test_stat(const char *name,struct stat *buff)