Home
last modified time | relevance | path

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

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtest.c50 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&…
52 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&…
55 # define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)…
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)); in test_unop()
345 return(test_stat(arg,&statb)>=0 && S_ISCHR(statb.st_mode)); in test_unop()
347 return(test_stat(arg,&statb)>=0 && S_ISBLK(statb.st_mode)); in test_unop()
349 return(test_stat(arg,&statb)>=0 && S_ISREG(statb.st_mode)); in test_unop()
[all …]