Lines Matching refs:st_mode
349 if ((j = !strcmp(files[i], "-")) || S_ISFIFO(TT.st[i].st_mode)) { in diff()
523 if (S_ISDIR(node->st.st_mode) && !node->parent) { //add root dirs. in list_dir()
528 if (S_ISDIR(node->st.st_mode) && FLAG(r)) { in list_dir()
537 …return S_ISDIR(node->st.st_mode) ? 0 : (DIRTREE_RECURSE|((FLAG(no_dereference)) ? 0 : DIRTREE_SYMF… in list_dir()
781 if (!S_ISREG(st[i].st_mode) && !S_ISDIR(st[i].st_mode) && !S_ISLNK(st[i].st_mode)) { in create_empty_entry()
789 else if ((st[0].st_mode & S_IFMT) != (st[1].st_mode & S_IFMT)) { in create_empty_entry()
790 i = S_ISREG(st[0].st_mode) + 2 * S_ISLNK(st[0].st_mode); in create_empty_entry()
791 int k = S_ISREG(st[1].st_mode) + 2 * S_ISLNK(st[1].st_mode); in create_empty_entry()
795 } else if (S_ISDIR(st[0].st_mode)) in create_empty_entry()
797 else if (S_ISLNK(st[0].st_mode)) { in create_empty_entry()
871 if (S_ISDIR(TT.st[0].st_mode) != S_ISDIR(TT.st[1].st_mode)) in diff_main()
875 if (S_ISDIR(TT.st[0].st_mode) && S_ISDIR(TT.st[1].st_mode)) in diff_main()
887 if (S_ISDIR(TT.st[0].st_mode) && S_ISDIR(TT.st[1].st_mode)) { in diff_main()
909 if (S_ISDIR(TT.st[0].st_mode) || S_ISDIR(TT.st[1].st_mode)) { in diff_main()
910 int d = S_ISDIR(TT.st[0].st_mode); in diff_main()
917 if ((S_ISLNK(TT.st[0].st_mode)) != S_ISLNK(TT.st[1].st_mode)) { in diff_main()
918 i = !strcmp(files[0], "-") ? 0 : S_ISREG(TT.st[0].st_mode) + 2 * S_ISLNK(TT.st[0].st_mode); in diff_main()
919 … int k = !strcmp(files[0], "-") ? 0 : S_ISREG(TT.st[1].st_mode) + 2 * S_ISLNK(TT.st[1].st_mode); in diff_main()
925 if (S_ISLNK(TT.st[0].st_mode)) do_symlink_diff(files); in diff_main()