Home
last modified time | relevance | path

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

123456789

/NextBSD/gnu/usr.bin/grep/
HDisdir.c26 # undef S_ISDIR
29 #if !defined S_ISDIR && defined S_IFDIR
30 # define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) macro
41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode); in isdir()
HDsystem.h102 # undef S_ISDIR
105 #if !defined(S_ISDIR) && defined(S_IFDIR)
106 # define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) macro
/NextBSD/bin/ln/
HDln.c169 if (!S_ISDIR(sb.st_mode)) in main()
239 if (S_ISDIR(sb.st_mode)) { in linkit()
251 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || in linkit()
252 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) { in linkit()
306 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
327 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
/NextBSD/contrib/libreadline/
HDposixstat.h32 # undef S_ISDIR
39 #if !defined (S_IFDIR) && !defined (S_ISDIR)
87 #if defined (S_IFDIR) && !defined (S_ISDIR)
88 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) /* directory */ macro
HDrldefs.h51 #if defined (S_IFDIR) && !defined (S_ISDIR)
52 # define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) macro
/NextBSD/contrib/binutils/binutils/
HDfilemode.c134 #ifndef S_ISDIR
136 #define S_ISDIR(i) (((i) & S_IFMT) == S_IFDIR) macro
138 #define S_ISDIR(i) (((i) & 0170000) == 040000) macro
185 if (S_ISDIR (bits)) in ftypelet()
/NextBSD/contrib/diff/lib/
HDfile-type.h37 # undef S_ISDIR
66 # ifndef S_ISDIR
68 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
70 # define S_ISDIR(m) 0 macro
/NextBSD/contrib/gdb/gdb/
HDgdb_stat.h30 #undef S_ISDIR
46 #if !defined(S_ISDIR) && defined(S_IFDIR)
47 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
HDremote-fileio.c605 if (!S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_open()
610 if (S_ISDIR (st.st_mode) in remote_fileio_func_open()
942 if ((!of && !S_ISREG (ost.st_mode) && !S_ISDIR (ost.st_mode)) in remote_fileio_func_rename()
943 || (!nf && !S_ISREG (nst.st_mode) && !S_ISDIR (nst.st_mode))) in remote_fileio_func_rename()
963 if (!of && !nf && S_ISDIR (nst.st_mode)) in remote_fileio_func_rename()
1018 if (!stat (pathname, &st) && !S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_unlink()
1075 if (!ret && !S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_stat()
/NextBSD/bin/cp/
HDcp.c220 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in main()
240 if (S_ISDIR(tmp_stat.st_mode) && Rflag) in main()
400 if (S_ISDIR(curr->fts_statp->st_mode)) in copy()
404 if (!S_ISDIR(curr->fts_statp->st_mode) && in copy()
405 S_ISDIR(to_stat.st_mode)) { in copy()
448 } else if (!S_ISDIR(to_stat.st_mode)) { in copy()
/NextBSD/cddl/contrib/dtracetoolkit/Examples/
HDpy_flowtime_example.txt216 0 3064660325447 stat.py 31 -> S_ISDIR
219 0 3064660325473 stat.py 8 <- S_ISDIR
243 0 3064660326118 stat.py 21 -> S_ISDIR
246 0 3064660326144 stat.py 8 <- S_ISDIR
261 0 3064660326298 stat.py 22 -> S_ISDIR
264 0 3064660326322 stat.py 8 <- S_ISDIR
279 0 3064660326493 stat.py 23 -> S_ISDIR
282 0 3064660326517 stat.py 8 <- S_ISDIR
297 0 3064660326668 stat.py 22 -> S_ISDIR
300 0 3064660326692 stat.py 8 <- S_ISDIR
[all …]
HDpy_flow_example.txt216 0 3064371853597 stat.py -> S_ISDIR
219 0 3064371853620 stat.py <- S_ISDIR
243 0 3064371854224 stat.py -> S_ISDIR
246 0 3064371854247 stat.py <- S_ISDIR
261 0 3064371854386 stat.py -> S_ISDIR
264 0 3064371854408 stat.py <- S_ISDIR
279 0 3064371854556 stat.py -> S_ISDIR
282 0 3064371854578 stat.py <- S_ISDIR
297 0 3064371854715 stat.py -> S_ISDIR
300 0 3064371854737 stat.py <- S_ISDIR
[all …]
HDpy_flowinfo_example.txt217 0 145424 34 stat.py:45 func -> S_ISDIR
220 0 145424 9 stat.py:46 func <- S_ISDIR
244 0 145424 23 stat.py:45 func -> S_ISDIR
247 0 145424 9 stat.py:46 func <- S_ISDIR
262 0 145424 23 stat.py:45 func -> S_ISDIR
265 0 145424 9 stat.py:46 func <- S_ISDIR
280 0 145424 24 stat.py:45 func -> S_ISDIR
283 0 145424 9 stat.py:46 func <- S_ISDIR
298 0 145424 23 stat.py:45 func -> S_ISDIR
301 0 145424 9 stat.py:46 func <- S_ISDIR
[all …]
/NextBSD/contrib/tcsh/
HDglob.c69 #ifndef S_ISDIR
70 #define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
204 if (stat(str, &st) == -1 || !S_ISDIR(st.st_mode)) in Opendir()
218 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Lstat()
234 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Stat()
499 (S_ISDIR(sbuf.st_mode) in glob2()
503 S_ISDIR(sbuf.st_mode)) in glob2()
597 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode) in glob3()
HDtc.os.h230 # undef S_ISDIR
241 # if !defined(S_ISDIR) && defined(S_IFDIR)
242 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
/NextBSD/contrib/ntp/lib/isc/win32/include/isc/
HDstat.h53 #ifndef S_ISDIR
54 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/NextBSD/usr.sbin/pw/
HDrm_r.c61 if (S_ISDIR(st.st_mode)) in rm_r()
69 unlinkat(rootfd, path, S_ISDIR(st.st_mode) ? AT_REMOVEDIR : 0); in rm_r()
/NextBSD/usr.bin/unzip/
HDunzip.c318 if (S_ISDIR(sb.st_mode)) in make_dir()
356 if (S_ISDIR(sb.st_mode)) { in make_parent()
681 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract()
689 if (S_ISDIR(filetype) && j_opt) { in extract()
715 if (S_ISDIR(filetype)) in extract()
737 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract_stdout()
745 if (S_ISDIR(filetype)) { in extract_stdout()
879 if (S_ISDIR(archive_entry_filetype(e))) in test()
/NextBSD/contrib/ntp/sntp/libopts/compat/
HDwindows-config.h110 #ifndef S_ISDIR
112 # define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) macro
/NextBSD/usr.sbin/fmtree/
HDcreate.c161 if (iflag || S_ISDIR(p->fts_statp->st_mode)) in statf()
314 if (!dflag || (dflag && S_ISDIR(p->fts_statp->st_mode))) { in statd()
404 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dsort()
405 if (!S_ISDIR((*b)->fts_statp->st_mode)) in dsort()
407 } else if (S_ISDIR((*b)->fts_statp->st_mode)) in dsort()
/NextBSD/contrib/libarchive/libarchive/test/
HDtest_write_disk_secure.c150 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
178 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
206 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
/NextBSD/contrib/tcp_wrappers/
HDtcpdmatch.c43 #ifndef S_ISDIR
44 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
116 } else if (!S_ISDIR(st.st_mode)) {
HDtcpdchk.c48 #ifndef S_ISDIR
49 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
136 } else if (!S_ISDIR(st.st_mode)) {
/NextBSD/contrib/mtree/
HDcreate.c192 S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name)); in statf()
367 (dflag && S_ISDIR(p->fts_statp->st_mode))) { in statd()
453 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dcmp()
454 if (!S_ISDIR((*b)->fts_statp->st_mode)) in dcmp()
456 } else if (S_ISDIR((*b)->fts_statp->st_mode)) in dcmp()
/NextBSD/lib/libc/stdio/
HDremove.c51 if (S_ISDIR(sb.st_mode)) in remove()

123456789