Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 25 of 211) sorted by relevance

123456789

/third_party/toybox/toys/other/
Dlsattr.c85 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()
Dmountpoint.c51 if (!S_ISDIR(st1.st_mode)) die("directory"); in mountpoint_main()
/third_party/toybox/toys/pending/
Ddiff.c504 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/
Dcp.c121 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()
Ddu.c75 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()
Dls.c107 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/
Ddu.c85 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()
Dcp.c137 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()
Dln.c48 i = S_ISDIR(buf.st_mode);
58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
Dls.c108 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/
Duv_mapping.c15 #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/
Dcontext.c36 # 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/
Dcontext.c35 # 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/
Dtst_fs_link_count.c53 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/
Dlsattr.c131 if (S_ISDIR(st.st_mode) && !dirs_opt) in lsattr_args()
157 if (S_ISDIR(st.st_mode) && recursive && in lsattr_dir_proc()
Dchattr.c248 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/
Ddevno.c129 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/
Dfdopendir.c20 if (!S_ISDIR(st.st_mode)) { in fdopendir()
/third_party/uboot/u-boot-2020.01/fs/cramfs/
Dcramfs.c83 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/
Dhold_inode.c36 if (S_ISDIR(statbuf.st_mode)) { in main()
/third_party/e2fsprogs/lib/e2p/
Dsetflags.c65 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in setflags()
Dgetflags.c59 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) in getflags()
Dfgetflags.c76 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in fgetflags()
Dfsetflags.c82 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in fsetflags()
/third_party/glib/gio/
Dglocalfile.c83 #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 …]

123456789