| /freebsd-12.1/gnu/usr.bin/grep/ |
| H A D | isdir.c | 26 # 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()
|
| H A D | system.h | 102 # undef S_ISDIR 105 #if !defined(S_ISDIR) && defined(S_IFDIR) 106 # define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) macro
|
| /freebsd-12.1/bin/ln/ |
| H A D | ln.c | 171 if (!S_ISDIR(sb.st_mode)) in main() 241 if (S_ISDIR(sb.st_mode)) { in linkit() 253 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || in linkit() 254 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode)))) { in linkit() 308 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit() 329 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
|
| /freebsd-12.1/contrib/binutils/binutils/ |
| H A D | filemode.c | 134 #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()
|
| /freebsd-12.1/contrib/diff/lib/ |
| H A D | file-type.h | 37 # 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
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | gdb_stat.h | 30 #undef S_ISDIR 46 #if !defined(S_ISDIR) && defined(S_IFDIR) 47 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
|
| H A D | remote-fileio.c | 605 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()
|
| /freebsd-12.1/sys/contrib/zstd/contrib/pzstd/utils/ |
| H A D | FileSystem.h | 65 #if defined(S_ISDIR) in is_directory() 66 return S_ISDIR(status.st_mode); in is_directory() 67 #elif !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) in is_directory()
|
| /freebsd-12.1/usr.bin/diff/ |
| H A D | diff.c | 309 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) in main() 312 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in main() 317 if (S_ISDIR(stb1.st_mode)) { in main() 322 if (S_ISDIR(stb2.st_mode)) { in main()
|
| H A D | diffdir.c | 199 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in diffit() 207 if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode)) in diffit() 209 else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode)) in diffit()
|
| /freebsd-12.1/bin/cp/ |
| H A D | cp.c | 222 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in main() 242 if (S_ISDIR(tmp_stat.st_mode) && Rflag) in main() 402 if (S_ISDIR(curr->fts_statp->st_mode)) in copy() 406 if (!S_ISDIR(curr->fts_statp->st_mode) && in copy() 407 S_ISDIR(to_stat.st_mode)) { in copy() 450 } else if (!S_ISDIR(to_stat.st_mode)) { in copy()
|
| /freebsd-12.1/usr.bin/unzip/ |
| H A D | unzip.c | 320 if (S_ISDIR(sb.st_mode)) in make_dir() 358 if (S_ISDIR(sb.st_mode)) { in make_parent() 702 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract() 710 if (S_ISDIR(filetype) && j_opt) { in extract() 736 if (S_ISDIR(filetype)) in extract() 755 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract_stdout() 763 if (S_ISDIR(filetype)) { in extract_stdout() 831 if (S_ISDIR(archive_entry_filetype(e))) in test()
|
| /freebsd-12.1/contrib/tcsh/ |
| H A D | glob.c | 74 #ifndef S_ISDIR 75 #define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro 211 if (stat(str, &st) == -1 || !S_ISDIR(st.st_mode)) in Opendir() 225 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Lstat() 241 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Stat() 507 (S_ISDIR(sbuf.st_mode) in glob2() 511 S_ISDIR(sbuf.st_mode)) in glob2() 605 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode) in glob3()
|
| H A D | tc.os.h | 230 # undef S_ISDIR 241 # if !defined(S_ISDIR) && defined(S_IFDIR) 242 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
|
| /freebsd-12.1/contrib/ntp/lib/isc/win32/include/isc/ |
| H A D | stat.h | 53 #ifndef S_ISDIR 54 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
|
| /freebsd-12.1/usr.sbin/pw/ |
| H A D | rm_r.c | 66 if (S_ISDIR(st.st_mode)) in rm_r() 74 unlinkat(rootfd, path, S_ISDIR(st.st_mode) ? AT_REMOVEDIR : 0); in rm_r()
|
| /freebsd-12.1/lib/libsecureboot/ |
| H A D | veta.c | 90 if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode)) in trust_dir_add() 108 if (S_ISDIR(st.st_mode)) in ve_trust_add()
|
| /freebsd-12.1/contrib/ntp/sntp/libopts/compat/ |
| H A D | windows-config.h | 110 #ifndef S_ISDIR 112 # define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) macro
|
| /freebsd-12.1/usr.sbin/fmtree/ |
| H A D | create.c | 161 if (iflag || S_ISDIR(p->fts_statp->st_mode)) in statf() 315 if (!dflag || (dflag && S_ISDIR(p->fts_statp->st_mode))) { in statd() 405 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dsort() 406 if (!S_ISDIR((*b)->fts_statp->st_mode)) in dsort() 408 } else if (S_ISDIR((*b)->fts_statp->st_mode)) in dsort()
|
| /freebsd-12.1/contrib/tcp_wrappers/ |
| H A D | tcpdmatch.c | 41 #ifndef S_ISDIR 42 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 114 } else if (!S_ISDIR(st.st_mode)) {
|
| H A D | tcpdchk.c | 45 #ifndef S_ISDIR 46 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 133 } else if (!S_ISDIR(st.st_mode)) {
|
| /freebsd-12.1/contrib/libevent/sample/ |
| H A D | http-server.c | 25 #ifndef S_ISDIR 26 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) macro 216 if (S_ISDIR(st.st_mode)) { in send_document_cb()
|
| /freebsd-12.1/contrib/mtree/ |
| H A D | create.c | 192 S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name)); in statf() 368 (dflag && S_ISDIR(p->fts_statp->st_mode))) { in statd() 454 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dcmp() 455 if (!S_ISDIR((*b)->fts_statp->st_mode)) in dcmp() 457 } else if (S_ISDIR((*b)->fts_statp->st_mode)) in dcmp()
|
| /freebsd-12.1/stand/common/ |
| H A D | ls.c | 94 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { in command_ls() 197 if (!S_ISDIR(sb.st_mode)) { in ls_getdir()
|
| /freebsd-12.1/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_secure.c | 190 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 218 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 269 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
|