Symbol: S_ISDIR
bin/cp/cp.c
240
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
bin/cp/cp.c
260
if (S_ISDIR(tmp_stat.st_mode) && Rflag)
bin/cp/cp.c
581
if (S_ISDIR(curr_stat->st_mode))
bin/cp/cp.c
639
} else if (!S_ISDIR(to_stat.st_mode)) {
bin/ln/ln.c
162
if (!S_ISDIR(sb.st_mode))
bin/ln/ln.c
240
if (S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
261
if (isdir || (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
bin/ln/ln.c
262
(!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) {
bin/ln/ln.c
320
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
341
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/mkdir/mkdir.c
173
} else if (!S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
108
if (stat(argv[argc - 1], &sb) || !S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
365
if (S_ISDIR(sb.st_mode)) {
bin/pax/ar_io.c
164
if (S_ISDIR(arsb.st_mode)) {
bin/pax/ar_subs.c
750
if (!S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
180
if (S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
286
if (S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
502
if (S_ISDIR(sb.st_mode)) {
bin/pax/options.c
996
} else if (!S_ISDIR(sb.st_mode)) {
bin/rm/rm.c
353
if (S_ISDIR(sb.st_mode) && !dflag) {
bin/rm/rm.c
368
else if (S_ISDIR(sb.st_mode))
bin/rm/rm.c
460
if (S_ISDIR(st.st_mode)) {
bin/sh/cd.c
119
} else if (!S_ISDIR(statb.st_mode))
bin/sh/histedit.c
759
S_ISDIR(stbuf.st_mode))
bin/test/test.c
380
if (S_ISDIR(s.st_mode) || geteuid() != 0)
bin/test/test.c
388
return S_ISDIR(s.st_mode);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1740
if (S_ISDIR(st.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2278
} else if (!S_ISDIR(st.st_mode))
crypto/heimdal/appl/ftp/ftpd/ls.c
159
if(S_ISDIR(st->st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ls.c
532
if(S_ISDIR(fi[i].st.st_mode)) {
crypto/heimdal/appl/rcp/rcp.c
295
if (S_ISDIR(stb.st_mode) && iamrecursive) {
crypto/heimdal/appl/rcp/rcp.c
441
if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode))
crypto/heimdal/appl/rcp/rcp.c
538
if (!S_ISDIR(stb.st_mode)) {
crypto/heimdal/appl/rcp/util.c
86
if (S_ISDIR(stb.st_mode))
crypto/heimdal/lib/hx509/ks_dir.c
73
if (!S_ISDIR(sb.st_mode)) {
crypto/heimdal/lib/krb5/kuserok.c
126
if (!S_ISDIR(st.st_mode))
crypto/heimdal/lib/krb5/kuserok.c
66
if (S_ISDIR(st.st_mode)) {
crypto/heimdal/lib/roken/glob.c
537
pathend[-1] != CHAR_SEP) && (S_ISDIR(sb.st_mode)
crypto/heimdal/lib/roken/glob.c
540
S_ISDIR(sb.st_mode)))) {
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
233
if (!S_ISDIR(st.st_mode)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/include/db-int.h
268
#ifndef S_ISDIR /* POSIX 1003.1 file type tests. */
crypto/krb5/src/util/profile/prof_file.c
30
#ifndef S_ISDIR
crypto/krb5/src/util/profile/prof_file.c
355
isdir = S_ISDIR(st.st_mode);
crypto/krb5/src/util/support/mkstemp.c
102
if (!S_ISDIR(sbuf.st_mode)) {
crypto/krb5/src/util/support/mkstemp.c
55
#if !defined S_ISDIR
crypto/openssh/defines.h
169
#ifndef S_ISDIR
crypto/openssh/loginrec.c
1539
if (S_ISDIR(st.st_mode)) {
crypto/openssh/openbsd-compat/glob.c
658
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
crypto/openssh/openbsd-compat/glob.c
661
S_ISDIR(sb.st_mode)))) {
crypto/openssh/regress/check-perm.c
68
if (!S_ISDIR(st.st_mode))
crypto/openssh/scp.c
1349
src_is_dir = S_ISDIR(st.st_mode);
crypto/openssh/scp.c
1600
dst_is_dir = r == 0 && S_ISDIR(st.st_mode);
crypto/openssh/scp.c
1699
if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode))
crypto/openssh/scp.c
1853
if (!S_ISDIR(stb.st_mode)) {
crypto/openssh/scp.c
2189
if (S_ISDIR(stb.st_mode))
crypto/openssh/session.c
1347
if (!S_ISDIR(st.st_mode))
crypto/openssh/sftp-client.c
1915
if (!S_ISDIR(dirattrib->perm)) {
crypto/openssh/sftp-client.c
1964
if (S_ISDIR(a->perm)) {
crypto/openssh/sftp-client.c
2274
if (!S_ISDIR(sb.st_mode)) {
crypto/openssh/sftp-client.c
2299
if (!S_ISDIR(dirattrib.perm)) {
crypto/openssh/sftp-client.c
2341
if (S_ISDIR(sb.st_mode)) {
crypto/openssh/sftp-client.c
2726
if (!S_ISDIR(dirattrib->perm)) {
crypto/openssh/sftp-client.c
2755
if (!S_ISDIR(newdir.perm)) {
crypto/openssh/sftp-client.c
2790
if (S_ISDIR(a->perm)) {
crypto/openssh/sftp-client.c
2998
return S_ISDIR(a.perm);
crypto/openssh/sftp-glob.c
171
if (fudge_stat(s, &sb) == 0 && S_ISDIR(sb.st_mode)) {
crypto/openssh/sftp.c
1004
S_ISDIR(g.gl_statv[0]->st_mode)) {
crypto/openssh/sftp.c
1662
if (!S_ISDIR(aa.perm)) {
crypto/openssh/sftp.c
645
return S_ISDIR(sb.st_mode);
crypto/openssh/sshd.c
1801
(S_ISDIR(sb.st_mode) == 0))
crypto/openssl/apps/lib/opt.c
1271
#ifndef S_ISDIR
crypto/openssl/apps/lib/opt.c
1281
#if defined(S_ISDIR)
crypto/openssl/apps/lib/opt.c
1285
return S_ISDIR(st.st_mode);
crypto/openssl/crypto/conf/conf_def.c
35
#ifndef S_ISDIR
crypto/openssl/crypto/conf/conf_def.c
817
if (S_ISDIR(st.st_mode)) {
crypto/openssl/engines/e_loader_attic.c
1033
if (S_ISDIR(st.st_mode)) {
crypto/openssl/engines/e_loader_attic.c
47
#ifndef S_ISDIR
crypto/openssl/providers/implementations/storemgmt/file_store.c
280
if (S_ISDIR(st.st_mode))
crypto/openssl/providers/implementations/storemgmt/file_store.c
41
#ifndef S_ISDIR
crypto/openssl/ssl/ssl_cert.c
35
#ifndef S_ISDIR
crypto/openssl/ssl/ssl_cert.c
971
if (!stat(buf, &st) && S_ISDIR(st.st_mode))
lib/libc/gen/fts-compat.c
955
if (S_ISDIR(sbp->st_mode)) {
lib/libc/gen/fts-compat11.c
946
if (S_ISDIR(sbp->st_mode)) {
lib/libc/gen/fts.c
1039
(follow < 0 && !S_ISDIR(sbp->st_mode))) {
lib/libc/gen/fts.c
1055
if (S_ISDIR(sbp->st_mode)) {
lib/libc/gen/glob-compat11.c
632
(S_ISDIR(sb.st_mode) ||
lib/libc/gen/glob-compat11.c
635
S_ISDIR(sb.st_mode)))) {
lib/libc/gen/glob.c
695
(S_ISDIR(sb.st_mode) ||
lib/libc/gen/glob.c
698
S_ISDIR(sb.st_mode)))) {
lib/libc/stdio/remove.c
47
if (S_ISDIR(sb.st_mode))
lib/libc/stdlib/realpath.c
201
} else if (!S_ISDIR(sb.st_mode) && p != NULL) {
lib/libpmc/pmu-events/jevents.c
1174
if (S_ISDIR(st.st_mode)) {
lib/libsecureboot/veta.c
106
if (S_ISDIR(st.st_mode))
lib/libsecureboot/veta.c
88
if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode))
lib/libufs/type.c
132
} else if (ret >= 0 && S_ISDIR(st.st_mode)) {
lib/libutil/mntopts.c
127
if (!S_ISDIR(sb.st_mode)) {
lib/libutil/mntopts.c
141
if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
libexec/flua/lfs/lfs.c
261
else if (S_ISDIR(mode))
sbin/dump/main.c
366
if ((stat(snapname, &sb) < 0) || !S_ISDIR(sb.st_mode)) {
sbin/dump/main.c
403
if (S_ISDIR(sb.st_mode))
sbin/fsck_ffs/gjournal.c
119
!S_ISDIR(dp->dp2.di_mode)) {
sbin/fsck_ffs/main.c
671
} else if (!S_ISDIR(snapdir.st_mode)) {
sbin/hastd/hastd.c
148
else if (S_ISDIR(mode))
sbin/mksnap_ffs/mksnap_ffs.c
71
if (!S_ISDIR(stbufp->st_mode))
sbin/mount_nullfs/mount_nullfs.c
101
if (!S_ISDIR(target_stat.st_mode) && !S_ISREG(target_stat.st_mode))
sbin/pfctl/pfctl.c
2846
if (S_ISDIR(st.st_mode)) {
sbin/umount/umount.c
307
} else if (S_ISDIR(sb.st_mode)) {
stand/common/ls.c
194
if (!S_ISDIR(sb.st_mode)) {
stand/common/ls.c
91
if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) {
stand/ficl/loader.c
493
if (!S_ISDIR(sb.st_mode))
stand/kboot/kboot/hostfs.c
87
if (S_ISDIR(hf->hf_fd)) {
stand/libsa/ext2fs.c
439
if (! S_ISDIR(fp->f_di.di_mode)) {
stand/libsa/zfs/zfs.c
237
if (!S_ISDIR(sb.st_mode))
stand/libsa/zfs/zfsimpl.c
3905
if (!S_ISDIR(sb.st_mode)) {
stand/userboot/test/test.c
195
if (!S_ISDIR(tf->tf_stat.st_mode) &&
stand/userboot/test/test.c
207
if (S_ISDIR(tf->tf_stat.st_mode)) {
sys/compat/linux/linux_file.c
714
if (S_ISDIR(st.st_mode))
sys/compat/linux/linux_file.c
737
pathseg, &st) == 0 && S_ISDIR(st.st_mode))
sys/fs/ext2fs/ext2_alloc.c
463
&& (S_ISREG(mode) || S_ISDIR(mode)))
sys/fs/ext2fs/ext2_inode_cnv.c
168
(ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) {
sys/fs/ext2fs/ext2_vfsops.c
1273
(S_ISDIR(ip->i_mode) || S_ISREG(ip->i_mode))) {
sys/fs/ext2fs/ext2_vnops.c
736
if (S_ISDIR(ip->i_mode) &&
sys/fs/ext2fs/ext2_vnops.c
753
if (!S_ISDIR(ip->i_mode) || ip->i_nlink > 2)
sys/fs/p9fs/p9fs_vnops.c
932
if (S_ISDIR(mode))
tests/sys/capsicum/capsicum-test-main.cc
110
assert(S_ISDIR(info.st_mode));
tests/sys/kern/sysctl_kern_proc.c
96
ATF_REQUIRE(S_ISDIR(kfile.kf_un.kf_file.kf_file_mode));
usr.bin/diff/diff.c
459
if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
usr.bin/diff/diff.c
462
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diff.c
467
if (S_ISDIR(stb1.st_mode)) {
usr.bin/diff/diff.c
472
if (S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
314
(S_ISDIR(stb1.st_mode) ? "directory" :
usr.bin/diff/diffdir.c
317
(S_ISDIR(stb2.st_mode) ? "directory" :
usr.bin/diff/diffdir.c
345
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
353
if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode))
usr.bin/diff/diffdir.c
355
else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
324
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
325
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
usr.bin/dtc/input_buffer.cc
1307
if (fstat(source, &st) == 0 && S_ISDIR(st.st_mode))
usr.bin/find/function.c
462
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/find/function.c
565
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/grep/grep.c
283
if ((fstat(fileno(f), &st) == -1) || (S_ISDIR(st.st_mode))) {
usr.bin/gzip/gzip.c
1931
if (S_ISDIR(sb.st_mode)) {
usr.bin/mail/lex.c
86
if (S_ISDIR(stb.st_mode) || !S_ISREG(stb.st_mode)) {
usr.bin/mail/lex.c
88
errno = S_ISDIR(stb.st_mode) ? EISDIR : EINVAL;
usr.bin/mail/util.c
106
return (S_ISDIR(sbuf.st_mode));
usr.bin/patch/mkpath.c
69
} else if (!S_ISDIR(sb.st_mode)) {
usr.bin/patch/util.c
391
if (stat(fullname, &filestat) == 0 && S_ISDIR(filestat.st_mode)) {
usr.bin/stat/stat.c
1130
if (S_ISDIR(sb.st_mode)) {
usr.bin/xinstall/xinstall.c
1365
} else if (!S_ISDIR(sb.st_mode))
usr.bin/xinstall/xinstall.c
368
if (!no_target && S_ISDIR(to_sb.st_mode)) {
usr.sbin/bhyveload/bhyveload.c
196
} else if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
usr.sbin/bhyveload/bhyveload.c
210
if (S_ISDIR(cf->cf_stat.st_mode)) {
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c
307
if (!S_ISDIR(sb.st_mode)) {
usr.sbin/camdd/camdd.c
1086
} else if (S_ISDIR(file_dev->sb.st_mode)) {
usr.sbin/certctl/certctl.c
391
} else if (!S_ISDIR(sb.st_mode)) {
usr.sbin/ckdist/ckdist.c
134
if (!S_ISDIR(sb.st_mode))
usr.sbin/config/main.cc
250
} else if (!S_ISDIR(buf.st_mode))
usr.sbin/config/main.cc
739
if (S_ISDIR(st.st_mode))
usr.sbin/crunch/crunchgen/crunchgen.c
1240
return S_ISDIR(buf.st_mode);
usr.sbin/jail/jail.c
689
if (!S_ISDIR(st.st_mode)) {
usr.sbin/makefs/cd9660.c
1334
if ((S_ISDIR(root->type)) && (root->name[0] == '.')
usr.sbin/makefs/cd9660.c
1354
if (!S_ISDIR(iterator->type) ||
usr.sbin/makefs/cd9660.c
1363
if (S_ISDIR(iterator->type)) {
usr.sbin/makefs/cd9660.c
1543
if (S_ISDIR(cn->node->type)) {
usr.sbin/makefs/cd9660.c
1824
if (S_ISDIR(child->node->type)) {
usr.sbin/makefs/cd9660.c
1843
if (S_ISDIR(child->node->type))
usr.sbin/makefs/cd9660.c
805
temp, sizeof(temp), !(S_ISDIR(newnode->node->type)));
usr.sbin/makefs/cd9660.c
808
if (S_ISDIR(newnode->node->type))
usr.sbin/makefs/cd9660.c
845
if (!(S_ISDIR(node->type)))
usr.sbin/makefs/ffs.c
1201
if (S_ISDIR(DIP(dp, mode))) {
usr.sbin/makefs/ffs.c
932
assert (! S_ISDIR(cur->type));
usr.sbin/makefs/makefs.c
333
if (!S_ISDIR(sb.st_mode))
usr.sbin/makefs/walk.c
184
if (S_ISDIR(cur->type) &&
usr.sbin/makefs/walk.c
185
S_ISDIR(stbuf.st_mode)) {
usr.sbin/makefs/walk.c
203
if (!dot && S_ISDIR(cur->type)) {
usr.sbin/makefs/walk.c
611
if (S_ISDIR(mode))
usr.sbin/mountd/mountd.c
1237
!S_ISDIR(stb.st_mode) &&
usr.sbin/newsyslog/newsyslog.c
2768
else if (!S_ISDIR(st.st_mode))
usr.sbin/pmcstat/pmcpl_gprof.c
397
if (stat(fullpath, &st) == 0 && S_ISDIR(st.st_mode))
usr.sbin/pmcstat/pmcstat.c
553
if (!S_ISDIR(sb.st_mode))
usr.sbin/pnfsdscopymr/pnfsdscopymr.c
163
if (!S_ISDIR(sb.st_mode))
usr.sbin/pnfsdscopymr/pnfsdscopymr.c
225
if (!S_ISDIR(sb.st_mode))
usr.sbin/pw/cpdir.c
96
if (S_ISDIR(st.st_mode)) {
usr.sbin/pw/pw.c
153
if (!S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
1283
if (!S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
1613
if (!S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
1761
} else if (!S_ISDIR(st.st_mode)) {
usr.sbin/pw/pw_user.c
694
!S_ISDIR(st.st_mode) &&
usr.sbin/pw/pw_user.c
99
if (S_ISDIR(st.st_mode))
usr.sbin/pw/pw_utils.c
108
else if (S_ISDIR(mode))
usr.sbin/pw/rm_r.c
88
if (S_ISDIR(st.st_mode)) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
274
if (S_ISDIR(statbuf.st_mode)) {
usr.sbin/snapinfo/snapinfo.c
95
!S_ISDIR(st.st_mode)) { /* is it a directory */
usr.sbin/trim/trim.c
186
if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) {
usr.sbin/ypserv/yp_access.c
327
if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))