Searched refs:test_stat (Results 1 - 1 of 1) sorted by relevance
| /ast/src/cmd/ksh93/bltins/ |
| H A D | test.c | 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(ar 659 static int test_stat(const char *name,struct stat *buff) function [all...] |
Completed in 8 milliseconds