Lines Matching refs:st_mode
489 if (S_ISDIR(node->st.st_mode) && !node->parent) { //add root dirs. in list_dir()
494 if (S_ISDIR(node->st.st_mode) && (toys.optflags & FLAG_r)) { in list_dir()
503 return S_ISDIR(node->st.st_mode) ? 0 : (DIRTREE_RECURSE|DIRTREE_SYMFOLLOW); in list_dir()
679 if (S_ISDIR(st[0].st_mode) && S_ISDIR(st[1].st_mode)) in create_empty_entry()
681 else if (!S_ISREG(st[0].st_mode) && !S_ISDIR(st[0].st_mode)) in create_empty_entry()
684 else if (!S_ISREG(st[1].st_mode) && !S_ISDIR(st[1].st_mode)) in create_empty_entry()
687 else if (S_ISDIR(st[0].st_mode) != S_ISDIR(st[1].st_mode)) { in create_empty_entry()
688 if (S_ISDIR(st[0].st_mode)) in create_empty_entry()
789 && (S_ISDIR(st[0].st_mode) || S_ISDIR(st[1].st_mode))) in diff_main()
798 if (S_ISDIR(st[0].st_mode) && S_ISDIR(st[1].st_mode)) { in diff_main()
823 if (S_ISDIR(st[0].st_mode) || S_ISDIR(st[1].st_mode)) { in diff_main()
824 int d = S_ISDIR(st[0].st_mode); in diff_main()