Home
last modified time | relevance | path

Searched refs:test_stat (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/lib/libshell/common/bltins/
H A Dtest.c49 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&…
51 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&…
54 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)…
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)); in test_unop()
342 return(test_stat(arg,&statb)>=0 && S_ISCHR(statb.st_mode)); in test_unop()
344 return(test_stat(arg,&statb)>=0 && S_ISBLK(statb.st_mode)); in test_unop()
346 return(test_stat(arg,&statb)>=0 && S_ISREG(statb.st_mode)); in test_unop()
[all …]