/third_party/toybox/toys/other/ |
D | lsattr.c | 85 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_getflag() 98 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) { in print_file_attr() 150 if (S_ISDIR(root->st.st_mode) && !root->parent) in retell_dir() 157 if (S_ISDIR(root->st.st_mode) && (toys.optflags & FLAG_R) in retell_dir() 176 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d)) in lsattr_main() 195 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_setflag() 266 && !S_ISDIR(root->st.st_mode))) in update_attr() 287 if (!S_ISDIR(root->st.st_mode)) fval &= ~FS_DIRSYNC_FL; in update_attr() 297 return (S_ISDIR(root->st.st_mode) && chattr.recursive) ? DIRTREE_RECURSE : 0; in update_attr()
|
D | mountpoint.c | 51 if (!S_ISDIR(st1.st_mode)) die("directory"); in mountpoint_main()
|
/third_party/toybox/toys/pending/ |
D | diff.c | 504 if (S_ISDIR(node->st.st_mode) && !node->parent) { //add root dirs. in list_dir() 509 if (S_ISDIR(node->st.st_mode) && (toys.optflags & FLAG_r)) { in list_dir() 518 return S_ISDIR(node->st.st_mode) ? 0 : (DIRTREE_RECURSE|DIRTREE_SYMFOLLOW); in list_dir() 759 if (S_ISDIR(st[0].st_mode) && S_ISDIR(st[1].st_mode)) in create_empty_entry() 761 else if (!S_ISREG(st[0].st_mode) && !S_ISDIR(st[0].st_mode)) in create_empty_entry() 764 else if (!S_ISREG(st[1].st_mode) && !S_ISDIR(st[1].st_mode)) in create_empty_entry() 767 else if (S_ISDIR(st[0].st_mode) != S_ISDIR(st[1].st_mode)) { in create_empty_entry() 768 if (S_ISDIR(st[0].st_mode)) in create_empty_entry() 866 && (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() [all …]
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
D | cp.c | 121 if (S_ISDIR(try->st.st_mode) && try->again) { in cp_node() 133 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node() 136 if (S_ISDIR(try->st.st_mode)) { in cp_node() 165 if (S_ISDIR(try->st.st_mode)) { in cp_node() 183 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode)) in cp_node() 319 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node() 350 destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode); in cp_main() 363 if (S_ISDIR(cst.st_mode)) { in cp_main()
|
D | du.c | 75 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { in seen_inode() 120 if (S_ISDIR(node->st.st_mode)) { in do_du() 131 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s))) { in do_du()
|
D | ls.c | 107 if ((FLAG(F)||FLAG(p)) && S_ISDIR(mode)) return '/'; in endtype() 275 if (S_ISDIR(mode)) color = 256+34; in color_from_mode() 319 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) in listfiles() 413 if (S_ISDIR(mode) && !indir->parent && !(flags & FLAG_d)) continue; in listfiles() 532 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue; in listfiles()
|
/third_party/toybox/toys/posix/ |
D | du.c | 85 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { in seen_inode() 132 if (S_ISDIR(node->st.st_mode)) { in do_du() 148 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s))) in do_du()
|
D | cp.c | 137 if (S_ISDIR(try->st.st_mode) && try->again) { in cp_node() 160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node() 163 if (S_ISDIR(try->st.st_mode)) { in cp_node() 192 if (S_ISDIR(try->st.st_mode)) { in cp_node() 210 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode)) in cp_node() 346 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node() 369 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode); in cp_main()
|
D | ln.c | 48 i = S_ISDIR(buf.st_mode); 58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
|
D | ls.c | 108 if ((FLAG(F)||FLAG(p)) && S_ISDIR(mode)) return '/'; in endtype() 283 if (S_ISDIR(mode)) color = 256+34; in color_from_mode() 327 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) in listfiles() 423 if (S_ISDIR(mode) && !indir->parent && !(flags & FLAG_d)) continue; in listfiles() 542 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue; in listfiles()
|
/third_party/node/deps/uvwasi/src/ |
D | uv_mapping.c | 15 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) 16 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 206 if (S_ISDIR(mode)) in uvwasi__stat_to_filetype()
|
/third_party/libxkbcommon/test/ |
D | context.c | 36 # ifndef S_ISDIR 37 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 169 if (!S_ISDIR(stat_buf.st_mode)) in test_config_root_include_path_fallback()
|
/third_party/libxkbcommon/src/ |
D | context.c | 35 # ifndef S_ISDIR 36 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 65 if (!S_ISDIR(stat_buf.st_mode)) { in xkb_context_include_path_append()
|
/third_party/ltp/lib/ |
D | tst_fs_link_count.c | 53 if (!S_ISDIR(s.st_mode)) { in tst_fs_fill_hardlinks_() 117 if (!S_ISDIR(s.st_mode)) { in tst_fs_fill_subdirs_()
|
/third_party/e2fsprogs/misc/ |
D | lsattr.c | 131 if (S_ISDIR(st.st_mode) && !dirs_opt) in lsattr_args() 157 if (S_ISDIR(st.st_mode) && recursive && in lsattr_dir_proc()
|
D | chattr.c | 248 if (!S_ISDIR(st.st_mode)) in change_attributes() 282 if (S_ISDIR(st.st_mode) && recursive) in change_attributes()
|
/third_party/e2fsprogs/lib/blkid/ |
D | devno.c | 129 if (list && S_ISDIR(st.st_mode) && !lstat(path, &st) && in blkid__scan_dir() 130 S_ISDIR(st.st_mode)) in blkid__scan_dir()
|
/third_party/musl/src/dirent/ |
D | fdopendir.c | 20 if (!S_ISDIR(st.st_mode)) { in fdopendir()
|
/third_party/uboot/u-boot-2020.01/fs/cramfs/ |
D | cramfs.c | 83 if (!S_ISDIR (CRAMFS_16 (super.root.mode))) { in cramfs_read_super() 156 if (S_ISDIR (CRAMFS_16 (inode->mode))) { in cramfs_resolve() 321 if (!S_ISDIR (CRAMFS_16 (inode->mode))) { in cramfs_ls()
|
/third_party/e2fsprogs/tests/progs/ |
D | hold_inode.c | 36 if (S_ISDIR(statbuf.st_mode)) { in main()
|
/third_party/e2fsprogs/lib/e2p/ |
D | setflags.c | 65 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in setflags()
|
D | getflags.c | 59 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) in getflags()
|
D | fgetflags.c | 76 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in fgetflags()
|
D | fsetflags.c | 82 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in fsetflags()
|
/third_party/glib/gio/ |
D | glocalfile.c | 83 #ifndef S_ISDIR 84 #define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR) macro 1345 if (ret == 0 && S_ISDIR (buf.st_mode)) in g_local_file_read() 1357 if (ret == 0 && S_ISDIR (_g_stat_mode (&buf))) in g_local_file_read() 1870 S_ISDIR (global_stat.st_mode) && in _g_local_file_has_trash_dir() 1896 return S_ISDIR (trash_stat.st_mode) && in _g_local_file_has_trash_dir() 1936 if (!(S_ISDIR (statbuf.st_mode) && in _g_local_file_is_lost_found_dir() 2004 if (!S_ISDIR (file_stat.st_mode)) in g_local_file_trash() 2067 S_ISDIR (global_stat.st_mode) && in g_local_file_trash() 2074 if (!S_ISDIR (trash_stat.st_mode) || in g_local_file_trash() [all …]
|