Searched refs:test_stat (Results 1 - 1 of 1) sorted by relevance
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | test.c | 49 # 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)) 51 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino) 54 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino) 56 # define isasock(f,p) (test_stat(f,p)>=0&&S_ISSOCK((p)->st_mode)) 58 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)) 64 static int test_stat(const char*, struct stat*); 340 return(test_stat(arg,&statb)>=0 && S_ISDIR(statb.st_mode)); 342 return(test_stat(arg,&statb)>=0 && S_ISCHR(statb.st_mode)); 344 return(test_stat(arg,&statb)>=0 && S_ISBLK(statb.st_mode)); 346 return(test_stat(ar 655 static int test_stat(const char *name,struct stat *buff) function [all...] |
Completed in 19 milliseconds