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

12345678

/freebsd-10-stable/gnu/usr.bin/grep/
H A Disdir.c26 # undef S_ISDIR macro
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);
H A Dsystem.h102 # undef S_ISDIR macro
105 #if !defined(S_ISDIR) && defined(S_IFDIR)
106 # define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) macro
/freebsd-10-stable/contrib/texinfo/info/
H A Dfilesys.h88 #if !defined (S_ISDIR) && defined (S_IFDIR)
89 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
90 #endif /* !S_ISDIR && S_IFDIR */
/freebsd-10-stable/lib/libc/stdio/
H A Dremove.c51 if (S_ISDIR(sb.st_mode))
/freebsd-10-stable/contrib/ntp/lib/isc/win32/include/isc/
H A Dstat.h53 #ifndef S_ISDIR
54 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/freebsd-10-stable/contrib/binutils/binutils/
H A Dfilemode.c135 #ifndef S_ISDIR
137 #define S_ISDIR(i) (((i) & S_IFMT) == S_IFDIR)
139 #define S_ISDIR(i) (((i) & 0170000) == 040000)
141 #endif /* ! defined (S_ISDIR) */
186 if (S_ISDIR (bits))
136 #define S_ISDIR macro
138 #define S_ISDIR macro
/freebsd-10-stable/contrib/libreadline/
H A Dposixstat.h32 # undef S_ISDIR macro
39 #if !defined (S_IFDIR) && !defined (S_ISDIR)
41 #endif /* !S_IFDIR && !S_ISDIR */
87 #if defined (S_IFDIR) && !defined (S_ISDIR)
88 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) /* directory */ macro
H A Drldefs.h51 #if defined (S_IFDIR) && !defined (S_ISDIR)
52 # define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) macro
/freebsd-10-stable/contrib/gdb/gdb/
H A Dgdb_stat.h30 #undef S_ISDIR macro
46 #if !defined(S_ISDIR) && defined(S_IFDIR)
47 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/freebsd-10-stable/contrib/diff/lib/
H A Dfile-type.h37 # undef S_ISDIR macro
66 # ifndef S_ISDIR
68 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
70 # define S_ISDIR(m) 0 macro
H A Dfile-type.c44 if (S_ISDIR (st->st_mode))
/freebsd-10-stable/usr.bin/patch/
H A Dmkpath.c68 } else if (!S_ISDIR(sb.st_mode)) {
/freebsd-10-stable/contrib/ntp/sntp/libopts/compat/
H A Dwindows-config.h110 #ifndef S_ISDIR
112 # define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) macro
/freebsd-10-stable/usr.sbin/pw/
H A Drm_r.c64 if (S_ISDIR(st.st_mode))
72 unlinkat(rootfd, path, S_ISDIR(st.st_mode) ? AT_REMOVEDIR : 0);
/freebsd-10-stable/contrib/texinfo/lib/
H A Dsystem.h30 #define S_ISDIR(x) ((x)&_S_IFDIR) macro
134 # undef S_ISDIR macro
136 #if !defined(S_ISDIR) && defined(S_IFDIR)
137 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) macro
/freebsd-10-stable/bin/ln/
H A Dln.c169 if (!S_ISDIR(sb.st_mode))
239 if (S_ISDIR(sb.st_mode)) {
251 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
252 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode)))) {
306 if (Fflag && S_ISDIR(sb.st_mode)) {
327 if (Fflag && S_ISDIR(sb.st_mode)) {
/freebsd-10-stable/bin/cp/
H A Dcp.c220 if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
240 if (S_ISDIR(tmp_stat.st_mode) && Rflag)
400 if (S_ISDIR(curr->fts_statp->st_mode))
404 if (!S_ISDIR(curr->fts_statp->st_mode) &&
405 S_ISDIR(to_stat.st_mode)) {
448 } else if (!S_ISDIR(to_stat.st_mode)) {
/freebsd-10-stable/contrib/dtc/
H A Dfstree.c67 } else if (S_ISDIR(st.st_mode)) {
/freebsd-10-stable/contrib/ntp/libntp/
H A Dfindconfig.c27 if (S_ISDIR(sbuf.st_mode)) {
/freebsd-10-stable/usr.bin/unzip/
H A Dunzip.c322 if (S_ISDIR(sb.st_mode))
360 if (S_ISDIR(sb.st_mode)) {
642 if (!S_ISDIR(filetype) && !S_ISREG(filetype)) {
650 if (S_ISDIR(filetype) && j_opt) {
676 if (S_ISDIR(filetype))
698 if (!S_ISDIR(filetype) && !S_ISREG(filetype)) {
706 if (S_ISDIR(filetype)) {
839 if (S_ISDIR(archive_entry_filetype(e)))
/freebsd-10-stable/contrib/tcsh/
H A Dglob.c74 #ifndef S_ISDIR
75 #define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
209 if (stat(str, &st) == -1 || !S_ISDIR(st.st_mode))
223 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode))
239 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode))
505 (S_ISDIR(sbuf.st_mode)
509 S_ISDIR(sbuf.st_mode))
603 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode)
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Basic/
H A DFileSystemStatCache.cpp28 #define S_ISDIR(s) ((_S_IFDIR & s) !=0) macro
/freebsd-10-stable/usr.bin/dc/
H A Ddc.c70 if (S_ISDIR(st.st_mode)) {
/freebsd-10-stable/contrib/tcp_wrappers/
H A Dtcpdmatch.c43 #ifndef S_ISDIR
44 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
116 } else if (!S_ISDIR(st.st_mode)) {
/freebsd-10-stable/usr.sbin/mtree/
H A Dcreate.c161 if (iflag || S_ISDIR(p->fts_statp->st_mode))
314 if (!dflag || (dflag && S_ISDIR(p->fts_statp->st_mode))) {
404 if (S_ISDIR((*a)->fts_statp->st_mode)) {
405 if (!S_ISDIR((*b)->fts_statp->st_mode))
407 } else if (S_ISDIR((*b)->fts_statp->st_mode))

Completed in 414 milliseconds

12345678