Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 - 25 of 189) sorted by relevance

12345678

/third_party/toybox/toys/other/
H A 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()
H A Dmountpoint.c51 if (!S_ISDIR(st1.st_mode)) die("directory"); in mountpoint_main()
/third_party/toybox/porting/liteos_a/toys/posix/
H A 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()
H A 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()
H A 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/pending/
H A 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(s in create_empty_entry()
[all...]
/third_party/toybox/toys/posix/
H A Ddu.c89 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { in seen_inode()
136 if (S_ISDIR(node->st.st_mode)) { in do_du()
152 if (FLAG(a) || !node->parent || (S_ISDIR(node->st.st_mode) && !FLAG(s))) { in do_du()
H A 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()
H A Dln.c48 i = S_ISDIR(buf.st_mode); in ln_main()
58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try)); in ln_main()
H A Dls.c108 if ((FLAG(F)||FLAG(p)) && S_ISDIR(mode)) return '/'; in endtype()
285 if (S_ISDIR(mode)) color = 256+34; in color_from_mode()
329 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) in listfiles()
425 if (S_ISDIR(mode) && !indir->parent && !(flags & FLAG_d)) continue; in listfiles()
544 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue; in listfiles()
H A Dfind.c235 if (S_ISDIR(new->st.st_mode)) { in do_find()
309 S_ISDIR(new->st.st_mode) ? AT_REMOVEDIR : 0); in do_find()
336 if (S_ISDIR(new->st.st_mode)) { in do_find()
354 if (check && S_ISDIR(new->st.st_mode) && !TT.depth) recurse = 0; in do_find()
682 if (S_ISDIR(new->st.st_mode)) execdir(new, 0); in do_find()
/third_party/node/deps/uvwasi/src/
H A Duv_mapping.c15 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
16 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
210 if (S_ISDIR(mode)) in uvwasi__stat_to_filetype()
/third_party/ltp/lib/
H A 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/musl/libc-test/src/functional/
H A Dstat.c21 TEST(S_ISDIR(st.st_mode), "\n"); in main()
30 TEST(S_ISDIR(st.st_mode), "\n"); in main()
/third_party/lzma/CPP/Windows/
H A DFileFind.cpp986 UInt32 attrib = S_ISDIR(mode) ? in Get_WinAttribPosix_From_PosixMode()
997 UInt32 attrib = S_ISDIR(st.st_mode) ?
1013 if (S_ISDIR(st.st_mode)) in SetFrom_stat()
1150 return !S_ISDIR(st.st_mode); in DoesFileExist_Raw()
1159 return !S_ISDIR(st.st_mode); in DoesFileExist_FollowLink()
1167 return S_ISDIR(st.st_mode); in DoesDirExist()
1246 if (S_ISDIR(st.st_mode)) in NextAny()
/third_party/musl/porting/linux/user/src/dirent/
H A Dfdopendir.c23 if (!S_ISDIR(st.st_mode)) { in fdopendir()
/third_party/musl/src/dirent/
H A Dfdopendir.c23 if (!S_ISDIR(st.st_mode)) { in fdopendir()
/third_party/node/deps/v8/third_party/jinja2/
H A Dbccache.py225 or not stat.S_ISDIR(actual_dir_stat.st_mode)
236 or not stat.S_ISDIR(actual_dir_stat.st_mode)
/third_party/node/tools/inspector_protocol/jinja2/
H A Dbccache.py245 or not stat.S_ISDIR(actual_dir_stat.st_mode) \
254 or not stat.S_ISDIR(actual_dir_stat.st_mode) \
/third_party/skia/third_party/externals/jinja2/
H A Dbccache.py225 or not stat.S_ISDIR(actual_dir_stat.st_mode)
236 or not stat.S_ISDIR(actual_dir_stat.st_mode)
/third_party/toybox/porting/liteos_a/toys/lsb/
H A Dmount.c190 || (S_ISDIR(stdev.st_mode) && S_ISDIR(stdir.st_mode)))) in mount_filesystem()
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dopt.c1182 # ifndef S_ISDIR
1184 # define S_ISDIR(a) (((a) & _S_IFMT) == _S_IFDIR) macro
1186 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
1192 # if defined(S_ISDIR) in opt_isdir()
1196 return S_ISDIR(st.st_mode); in opt_isdir()
/third_party/openssl/apps/lib/
H A Dopt.c1177 # ifndef S_ISDIR
1179 # define S_ISDIR(a) (((a) & _S_IFMT) == _S_IFDIR) macro
1181 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
1187 # if defined(S_ISDIR) in opt_isdir()
1191 return S_ISDIR(st.st_mode); in opt_isdir()
/third_party/libunwind/libunwind/src/
H A Dos-linux.c70 if (!stat(root, &st) && S_ISDIR(st.st_mode)) in tdep_get_elf_image()
/third_party/libfuse/example/
H A Dpassthrough_helpers.h39 } else if (S_ISDIR(mode)) { in mknod_wrapper()

Completed in 15 milliseconds

12345678