Home
last modified time | relevance | path

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

123456

/external/toybox/toys/other/
Dlsattr.c82 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_getflag()
95 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) { in print_file_attr()
147 if (S_ISDIR(root->st.st_mode) && !root->parent) in retell_dir()
154 if (S_ISDIR(root->st.st_mode) && (toys.optflags & FLAG_R) in retell_dir()
173 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d)) in lsattr_main()
192 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_setflag()
263 && !S_ISDIR(root->st.st_mode))) in update_attr()
284 if (!S_ISDIR(root->st.st_mode)) fval &= ~FS_DIRSYNC_FL; in update_attr()
295 if (S_ISDIR(root->st.st_mode) && chattr.recursive) return DIRTREE_RECURSE; in update_attr()
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_shutil.py85 if stat.S_ISDIR(self.filesystem.GetObject(dst).st_mode):
107 if stat.S_ISDIR(src_file_object.st_mode):
127 if stat.S_ISDIR(dst_file_object.st_mode):
160 if stat.S_ISDIR(self.filesystem.GetObject(dst).st_mode):
182 if not stat.S_ISDIR(directory.st_mode):
189 if stat.S_ISDIR(src_mode):
201 if stat.S_ISDIR(self.filesystem.GetObject(src).st_mode):
/external/chromium-trace/catapult/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_shutil.py85 if stat.S_ISDIR(self.filesystem.GetObject(dst).st_mode):
107 if stat.S_ISDIR(src_file_object.st_mode):
127 if stat.S_ISDIR(dst_file_object.st_mode):
160 if stat.S_ISDIR(self.filesystem.GetObject(dst).st_mode):
182 if not stat.S_ISDIR(directory.st_mode):
189 if stat.S_ISDIR(src_mode):
201 if stat.S_ISDIR(self.filesystem.GetObject(src).st_mode):
/external/toybox/toys/pending/
Ddiff.c489 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()
[all …]
/external/libchrome/base/files/
Dfile_enumerator_posix.cc25 return S_ISDIR(stat_.st_mode); in IsDirectory()
104 if (recursive_ && S_ISDIR(i->stat_.st_mode)) in Next()
107 if ((S_ISDIR(i->stat_.st_mode) && (file_type_ & DIRECTORIES)) || in Next()
108 (!S_ISDIR(i->stat_.st_mode) && (file_type_ & FILES))) in Next()
Dfile_util_posix.cc212 if (!S_ISDIR(file_info.st_mode)) in DeleteFile()
301 S_ISDIR(to_path_stat.st_mode)) { in CopyDirectory()
310 DCHECK(recursive || S_ISDIR(from_stat.st_mode)); in CopyDirectory()
324 if (S_ISDIR(from_stat.st_mode)) { in CopyDirectory()
385 return S_ISDIR(file_info.st_mode); in DirectoryExists()
616 S_ISDIR(file_info.st_mode)) in NormalizeFilePath()
920 if (S_ISDIR(to_file_info.st_mode) != S_ISDIR(from_file_info.st_mode)) in MoveUnsafe()
/external/toybox/toys/posix/
Dcp.c154 if (S_ISDIR(try->st.st_mode) && try->again) { in cp_node()
177 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node()
180 if (S_ISDIR(try->st.st_mode)) { in cp_node()
209 if (S_ISDIR(try->st.st_mode)) { in cp_node()
227 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode)) in cp_node()
361 if (unlinkat(tfd, try->name, S_ISDIR(try->st.st_mode) ? AT_REMOVEDIR :0)) in cp_node()
372 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode); in cp_main()
Ddu.c85 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { in seen_inode()
130 if (S_ISDIR(node->st.st_mode)) { in do_du()
142 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s))) in do_du()
Dln.c41 || !S_ISDIR(buf.st_mode)) in ln_main()
51 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try)); in ln_main()
Dls.c95 if ((toys.optflags&(FLAG_F|FLAG_p)) && S_ISDIR(mode)) return '/'; in endtype()
273 if (S_ISDIR(mode)) color = 256+34; in color_from_mode()
309 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) in listfiles()
405 if (S_ISDIR(mode) && !indir->parent && !(flags & FLAG_d)) continue; in listfiles()
509 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue; in listfiles()
Dfind.c212 if (S_ISDIR(new->st.st_mode)) { in do_find()
286 S_ISDIR(new->st.st_mode) ? AT_REMOVEDIR : 0); in do_find()
310 if (check && S_ISDIR(new->st.st_mode) && !TT.depth) recurse = 0; in do_find()
525 if (S_ISDIR(new->st.st_mode)) execdir(new, 0); in do_find()
/external/bison/lib/
Dstat.c86 if (result == 0 && !S_ISDIR (st->st_mode)) in rpl_stat()
129 if (result == 0 && check_dir && !S_ISDIR (st->st_mode)) in rpl_stat()
Dopen.c132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open()
165 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in open()
Dsys_stat.in.h88 # undef S_ISDIR
115 #ifndef S_ISDIR
117 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
119 # define S_ISDIR(m) 0
Dfopen.c90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in rpl_fopen()
/external/webrtc/webrtc/test/testsupport/
Dfileutils.cc31 #ifndef S_ISDIR // Not defined in stat.h on Windows.
32 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) macro
198 if (!S_ISDIR(path_info.st_mode)) { in CreateDir()
/external/e2fsprogs/misc/
Dlsattr.c119 if (S_ISDIR(st.st_mode) && !dirs_opt) in lsattr_args()
145 if (S_ISDIR(st.st_mode) && recursive && in lsattr_dir_proc()
Dchattr.c228 if (!S_ISDIR(st.st_mode)) in change_attributes()
250 if (S_ISDIR(st.st_mode) && recursive) in change_attributes()
/external/ImageMagick/MagickWand/
Dstudio.h195 # if !defined(S_ISDIR)
196 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) macro
/external/e2fsprogs/lib/blkid/
Ddevno.c125 if (list && S_ISDIR(st.st_mode) && !lstat(path, &st) && in blkid__scan_dir()
126 S_ISDIR(st.st_mode)) in blkid__scan_dir()
/external/ImageMagick/MagickCore/
Dstudio.h194 # if !defined(S_ISDIR)
195 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) macro
/external/e2fsprogs/tests/progs/
Dhold_inode.c35 if (S_ISDIR(statbuf.st_mode)) { in main()
/external/e2fsprogs/lib/e2p/
Dsetflags.c64 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) { in setflags()
Dgetflags.c58 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) in getflags()
/external/kernel-headers/original/uapi/linux/
Dstat.h21 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro

123456