/freebsd/bin/ln/ |
H A D | ln.c | 162 if (!S_ISDIR(sb.st_mode)) in main() 233 if (S_ISDIR(sb.st_mode)) { in linkit() 245 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || in linkit() 246 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode)))) { in linkit() 300 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit() 321 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
|
/freebsd/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/usr.bin/diff/ |
H A D | diffdir.c | 236 (S_ISDIR(stb1.st_mode) ? "directory" : in diffit() 239 (S_ISDIR(stb2.st_mode) ? "directory" : in diffit() 266 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in diffit() 274 if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode)) in diffit() 276 else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode)) in diffit()
|
H A D | diff.c | 450 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) in main() 453 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in main() 458 if (S_ISDIR(stb1.st_mode)) { in main() 463 if (S_ISDIR(stb2.st_mode)) { in main()
|
/freebsd/contrib/ntp/libntp/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/lib/libsecureboot/ |
H A D | veta.c | 88 if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode)) in trust_dir_add() 106 if (S_ISDIR(st.st_mode)) in ve_trust_add()
|
/freebsd/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/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() 508 (S_ISDIR(sbuf.st_mode) in glob2() 512 S_ISDIR(sbuf.st_mode)) in glob2() 606 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode) in glob3()
|
H A D | tc.os.h | 229 # undef S_ISDIR 240 # if !defined(S_ISDIR) && defined(S_IFDIR) 241 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
|
/freebsd/contrib/libarchive/unzip/ |
H A D | bsdunzip.c | 341 if (S_ISDIR(sb.st_mode)) in make_dir() 379 if (S_ISDIR(sb.st_mode)) { in make_parent() 783 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract() 791 if (S_ISDIR(filetype) && j_opt) { in extract() 817 if (S_ISDIR(filetype)) in extract() 840 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract_stdout() 848 if (S_ISDIR(filetype)) { in extract_stdout() 916 if (S_ISDIR(archive_entry_filetype(e))) in test()
|
/freebsd/bin/cp/ |
H A D | cp.c | 212 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in main() 232 if (S_ISDIR(tmp_stat.st_mode) && Rflag) in main() 444 if (S_ISDIR(curr->fts_statp->st_mode)) in copy() 511 } else if (!S_ISDIR(to_stat.st_mode)) { in copy()
|
/freebsd/contrib/tcp_wrappers/ |
H A D | tcpdmatch.c | 41 #ifndef S_ISDIR 42 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro 112 } 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 131 } else if (!S_ISDIR(st.st_mode)) { in main()
|
/freebsd/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_project.c | 72 if (!S_ISREG(st->st_mode) && !S_ISDIR(st->st_mode)) { in zfs_project_sanity_check() 78 if (!S_ISDIR(st->st_mode)) { in zfs_project_sanity_check() 285 if (ret || !S_ISDIR(st.st_mode) || zpc->zpc_dironly || in zfs_project_handle()
|
/freebsd/contrib/mtree/ |
H A D | create.c | 194 S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name)); in statf() 370 (dflag && S_ISDIR(p->fts_statp->st_mode))) { in statd() 456 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dcmp() 457 if (!S_ISDIR((*b)->fts_statp->st_mode)) in dcmp() 459 } else if (S_ISDIR((*b)->fts_statp->st_mode)) in dcmp()
|
/freebsd/stand/common/ |
H A D | ls.c | 91 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { in command_ls() 194 if (!S_ISDIR(sb.st_mode)) { in ls_getdir()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_secure.c | 193 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 221 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 294 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
|
/freebsd/lib/libc/stdio/ |
H A D | remove.c | 47 if (S_ISDIR(sb.st_mode)) in remove()
|
/freebsd/bin/rm/ |
H A D | rm.c | 353 if (S_ISDIR(sb.st_mode) && !dflag) { in rm_file() 368 else if (S_ISDIR(sb.st_mode)) in rm_file() 460 if (S_ISDIR(st.st_mode)) { in check2()
|
/freebsd/usr.bin/patch/ |
H A D | mkpath.c | 69 } else if (!S_ISDIR(sb.st_mode)) { in mkpath()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | kuserok.c | 66 if (S_ISDIR(st.st_mode)) { in check_one_file() 126 if (!S_ISDIR(st.st_mode)) in check_directory()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/ |
H A D | tmpfile_test.c | 32 if (!S_ISDIR(buf.st_mode)) { in main()
|
/freebsd/contrib/ntp/sntp/libevent/sample/ |
H A D | http-server.c | 26 #ifndef S_ISDIR 27 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) macro 239 if (S_ISDIR(st.st_mode)) { in send_document_cb()
|
/freebsd/contrib/libevent/sample/ |
H A D | http-server.c | 26 #ifndef S_ISDIR 27 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) macro 239 if (S_ISDIR(st.st_mode)) { in send_document_cb()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_acl.c | 556 if (S_ISDIR(obj_mode) && in zfs_ace_valid() 1638 zfs_acl_chmod(S_ISDIR(ZTOI(zp)->i_mode), mode, B_TRUE, in zfs_acl_chmod_setattr() 1655 if (S_ISDIR(obj_mode) && (iflags & ACE_DIRECTORY_INHERIT_ACE)) in zfs_ace_can_use() 1658 return (!(S_ISDIR(obj_mode) && in zfs_ace_can_use() 1681 boolean_t isdir = S_ISDIR(va_mode); in zfs_acl_inherit() 1828 ((flag & IS_XATTR) && (S_ISDIR(vap->va_mode)))) { in zfs_acl_ids_create() 1886 (S_ISDIR(vap->va_mode))) { in zfs_acl_ids_create() 1916 if (S_ISDIR(vap->va_mode)) in zfs_acl_ids_create() 1924 zfs_acl_chmod(S_ISDIR(vap->va_mode), acl_ids->z_mode, in zfs_acl_ids_create() 2328 if (S_ISDIR(ZTOI(zp)->i_mode) && in zfs_zaccess_aces_check() [all …]
|