Lines Matching refs:st_mode
85 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {
98 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) {
150 if (S_ISDIR(root->st.st_mode) && !root->parent)
157 if (S_ISDIR(root->st.st_mode) && (toys.optflags & FLAG_R)
176 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d))
195 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {
264 if ((S_ISLNK(root->st.st_mode) && chattr.recursive)
265 || (!S_ISREG(root->st.st_mode) && !S_ISLNK(root->st.st_mode)
266 && !S_ISDIR(root->st.st_mode)))
287 if (!S_ISDIR(root->st.st_mode)) fval &= ~FS_DIRSYNC_FL;
297 return (S_ISDIR(root->st.st_mode) && chattr.recursive) ? DIRTREE_RECURSE : 0;