Symbol: S_ISDIR
bin/cp/cp.c
214
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
bin/cp/cp.c
234
if (S_ISDIR(tmp_stat.st_mode) && Rflag)
bin/cp/cp.c
390
if (S_ISDIR(curr->fts_statp->st_mode))
bin/cp/cp.c
394
if (!S_ISDIR(curr->fts_statp->st_mode) &&
bin/cp/cp.c
395
S_ISDIR(to_stat.st_mode)) {
bin/cp/cp.c
438
} else if (!S_ISDIR(to_stat.st_mode)) {
bin/cpdup/cpdup.c
1475
if (S_ISDIR(dstat->st_mode)) {
bin/cpdup/cpdup.c
813
if (S_ISLNK(stat1->st_mode) || S_ISDIR(stat1->st_mode)) {
bin/cpdup/cpdup.c
873
if (st2Valid && !S_ISDIR(stat1->st_mode) && S_ISDIR(st2.st_mode)) {
bin/cpdup/cpdup.c
895
if (S_ISDIR(stat1->st_mode)) {
bin/cpdup/cpdup.c
899
if (!st2Valid || S_ISDIR(st2.st_mode) == 0) {
bin/ln/ln.c
158
if (!S_ISDIR(sb.st_mode))
bin/ln/ln.c
228
if (S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
240
(lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
bin/ln/ln.c
241
(!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) {
bin/ln/ln.c
295
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
316
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/mkdir/mkdir.c
204
if (stat(path, &sb) == 0 && S_ISDIR(sb.st_mode))
bin/mv/mv.c
118
if (stat(argv[argc - 1], &sb) || !S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
241
if (target_is_file && S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
376
if (S_ISDIR(sb.st_mode)) {
bin/pax/ar_io.c
166
if (S_ISDIR(arsb.st_mode)) {
bin/pax/ar_subs.c
747
if (!S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
183
if (S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
289
if (S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
513
if (S_ISDIR(sb.st_mode)) {
bin/pax/options.c
999
} else if (!S_ISDIR(sb.st_mode)) {
bin/rm/rm.c
378
if (S_ISDIR(sb.st_mode) && !dflag) {
bin/rm/rm.c
398
if (S_ISDIR(sb.st_mode))
bin/rm/rm.c
588
if (S_ISDIR(st.st_mode)) {
bin/sh/cd.c
127
} else if (!S_ISDIR(statb.st_mode))
bin/test/test.c
385
if (S_ISDIR(s.st_mode) || geteuid() != 0)
bin/test/test.c
393
return S_ISDIR(s.st_mode);
crypto/libressl/apps/openssl/apps.c
2041
return S_ISDIR(st.st_mode);
crypto/openssh/defines.h
169
#ifndef S_ISDIR
crypto/openssh/loginrec.c
1489
if (S_ISDIR(st.st_mode)) {
crypto/openssh/scp.c
1348
src_is_dir = S_ISDIR(st.st_mode);
crypto/openssh/scp.c
1599
dst_is_dir = r == 0 && S_ISDIR(st.st_mode);
crypto/openssh/scp.c
1698
if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode))
crypto/openssh/scp.c
1852
if (!S_ISDIR(stb.st_mode)) {
crypto/openssh/scp.c
2188
if (S_ISDIR(stb.st_mode))
crypto/openssh/session.c
1330
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
2273
if (!S_ISDIR(sb.st_mode)) {
crypto/openssh/sftp-client.c
2298
if (!S_ISDIR(dirattrib.perm)) {
crypto/openssh/sftp-client.c
2340
if (S_ISDIR(sb.st_mode)) {
crypto/openssh/sftp-client.c
2725
if (!S_ISDIR(dirattrib->perm)) {
crypto/openssh/sftp-client.c
2754
if (!S_ISDIR(newdir.perm)) {
crypto/openssh/sftp-client.c
2789
if (S_ISDIR(a->perm)) {
crypto/openssh/sftp-client.c
2997
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
1613
(S_ISDIR(sb.st_mode) == 0))
lib/libc/gen/fts.c
896
if (S_ISDIR(sbp->st_mode)) {
lib/libc/gen/glob.c
603
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode)
lib/libc/gen/glob.c
606
S_ISDIR(sb.st_mode)))) {
lib/libc/gen/opendir.c
109
if (!S_ISDIR(statb.st_mode)) {
lib/libc/stdio/mktemp.c
157
if (!S_ISDIR(sbuf.st_mode)) {
lib/libc/stdio/remove.c
49
if (S_ISDIR(sb.st_mode))
lib/libc/stdlib/realpath.c
233
} else if (!S_ISDIR(sb.st_mode) && p != NULL) {
lib/libssh/openbsd-compat/glob.c
658
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
lib/libssh/openbsd-compat/glob.c
661
S_ISDIR(sb.st_mode)))) {
lib/libtcplay/tcplay.c
1413
if (S_ISDIR(sb.st_mode)) {
lib/libutil/getmntopts.c
121
if (!S_ISDIR(sb.st_mode))
libexec/ftpd/ftpd.c
1658
if (S_ISDIR(st.st_mode) || guest) {
libexec/ftpd/ftpd.c
2297
code = lstat(filename, &st) == 0 && S_ISDIR(st.st_mode) ? 212 : 213;
libexec/ftpd/ftpd.c
2550
if (S_ISDIR(st.st_mode)) {
libexec/ftpd/ftpd.c
3161
} else if (!S_ISDIR(st.st_mode))
sbin/dump/main.c
341
if (S_ISDIR(sb.st_mode))
sbin/hammer/cmd_pfs.c
154
else if (S_ISDIR(st.st_mode))
sbin/hammer/cmd_pfs.c
79
if (S_ISDIR(st.st_mode)) {
sbin/hammer/cmd_snapshot.c
233
} else if (S_ISDIR(st.st_mode)) {
sbin/hammer/cmd_snapshot.c
343
if (!S_ISDIR(st.st_mode)) {
sbin/hammer/cmd_snapshot.c
382
!S_ISDIR(st.st_mode)) {
sbin/hammer/cmd_snapshot.c
82
} else if (S_ISDIR(st.st_mode)) {
sbin/hammer2/cmd_recover.c
196
} else if (!S_ISDIR(st.st_mode)) {
sbin/hammer2/cmd_setcheck.c
128
if (RecurseOpt && S_ISDIR(st->st_mode)) {
sbin/hammer2/cmd_setcomp.c
164
if (RecurseOpt && S_ISDIR(st->st_mode)) {
sbin/jscan/jscan.c
197
if (!S_ISDIR(sb.st_mode))
sbin/mountd/mountd.c
2587
if (lstat(dirp, &sb) < 0 || !S_ISDIR(sb.st_mode))
sbin/mountd/mountd.c
2593
if (lstat(dirp, &sb) < 0 || !S_ISDIR(sb.st_mode))
sbin/mountd/mountd.c
804
(!S_ISDIR(stb.st_mode) &&
sbin/newfs/newfs.c
627
!S_ISDIR(mfs_mtstat.st_mode)
stand/boot/common/ls.c
166
if (!S_ISDIR(sb.st_mode)) {
stand/boot/common/module.c
696
} else if (S_ISDIR(st.st_mode)) {
stand/boot/common/module.c
749
if (S_ISDIR(sb.st_mode)) {
stand/boot/common/rel_open.c
108
if (stat(base, &st) == 0 && S_ISDIR(st.st_mode)) {
stand/lib/ext2fs.c
434
if (! S_ISDIR(fp->f_di.di_mode)) {
stand/lib/hammer1.c
1091
if (S_ISDIR(st.st_mode)) {
sys/vfs/dirfs/dirfs_subr.c
315
if (S_ISDIR(mode))
sys/vfs/dirfs/dirfs_vfsops.c
143
if (!S_ISDIR(st.st_mode)) {
sys/vfs/ext2fs/ext2_alloc.c
439
&& (S_ISREG(mode) || S_ISDIR(mode)))
sys/vfs/ext2fs/ext2_inode_cnv.c
132
(ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) {
sys/vfs/ext2fs/ext2_vfsops.c
1391
(S_ISDIR(ip->i_mode) || S_ISREG(ip->i_mode))) {
sys/vfs/ext2fs/ext2_vnops.c
638
if (S_ISDIR(ip->i_mode) &&
sys/vfs/ext2fs/ext2_vnops.c
655
if (!S_ISDIR(ip->i_mode) || ip->i_nlink > 2)
sys/vfs/fuse/fuse_vnops.c
556
else if (S_ISDIR(mode))
usr.bin/crunch/crunchgen/crunchgen.c
1361
return S_ISDIR(buf.st_mode);
usr.bin/dc/dc.c
95
if (S_ISDIR(st.st_mode)) {
usr.bin/diff/diff.c
247
if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
usr.bin/diff/diff.c
250
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diff.c
255
if (S_ISDIR(stb1.st_mode)) {
usr.bin/diff/diff.c
260
if (S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
197
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
205
if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode))
usr.bin/diff/diffdir.c
207
else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
307
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
308
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
usr.bin/dsynth/pkglist.c
1325
if (lstat(s1, &st) < 0 || !S_ISDIR(st.st_mode)) {
usr.bin/dsynth/repo.c
549
if (S_ISDIR(st.st_mode)) {
usr.bin/find/function.c
389
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/find/function.c
492
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/gzip/gzip.c
1753
if (S_ISDIR(sb.st_mode)) {
usr.bin/mail/lex.c
88
if (S_ISDIR(stb.st_mode) || !S_ISREG(stb.st_mode)) {
usr.bin/mail/lex.c
90
errno = S_ISDIR(stb.st_mode) ? EISDIR : EINVAL;
usr.bin/mail/util.c
104
return (S_ISDIR(sbuf.st_mode));
usr.bin/patch/mkpath.c
70
} else if (!S_ISDIR(sb.st_mode)) {
usr.bin/patch/util.c
392
if (stat(fullname, &filestat) == 0 && S_ISDIR(filestat.st_mode)) {
usr.bin/unzip/unzip.c
318
if (S_ISDIR(sb.st_mode))
usr.bin/unzip/unzip.c
356
if (S_ISDIR(sb.st_mode)) {
usr.bin/unzip/unzip.c
700
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
usr.bin/unzip/unzip.c
708
if (S_ISDIR(filetype) && j_opt) {
usr.bin/unzip/unzip.c
734
if (S_ISDIR(filetype))
usr.bin/unzip/unzip.c
753
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
usr.bin/unzip/unzip.c
761
if (S_ISDIR(filetype)) {
usr.bin/unzip/unzip.c
829
if (S_ISDIR(archive_entry_filetype(e)))
usr.bin/xinstall/xinstall.c
1094
if (stat(path, &sb) == 0 && S_ISDIR(sb.st_mode))
usr.bin/xinstall/xinstall.c
1124
} else if (!S_ISDIR(sb.st_mode))
usr.bin/xinstall/xinstall.c
282
if (!no_target && S_ISDIR(to_sb.st_mode)) {
usr.sbin/ckdist/ckdist.c
136
if (!S_ISDIR(sb.st_mode))
usr.sbin/installer/libaura/fspred.c
88
return(S_ISDIR(m));
usr.sbin/makefs/cd9660.c
1333
if ((S_ISDIR(root->type)) && (root->name[0] == '.')
usr.sbin/makefs/cd9660.c
1353
if (!S_ISDIR(iterator->type) ||
usr.sbin/makefs/cd9660.c
1362
if (S_ISDIR(iterator->type)) {
usr.sbin/makefs/cd9660.c
1542
if (S_ISDIR(cn->node->type)) {
usr.sbin/makefs/cd9660.c
1823
if (S_ISDIR(child->node->type)) {
usr.sbin/makefs/cd9660.c
1842
if (S_ISDIR(child->node->type))
usr.sbin/makefs/cd9660.c
804
temp, sizeof(temp), !(S_ISDIR(newnode->node->type)));
usr.sbin/makefs/cd9660.c
807
if (S_ISDIR(newnode->node->type))
usr.sbin/makefs/cd9660.c
844
if (!(S_ISDIR(node->type)))
usr.sbin/makefs/ffs.c
1183
if (S_ISDIR(DIP(dp, mode))) {
usr.sbin/makefs/ffs.c
904
assert (! S_ISDIR(cur->type));
usr.sbin/makefs/hammer2.c
1013
if (S_ISDIR(node->type))
usr.sbin/makefs/hammer2.c
1030
if (S_ISDIR(node->type))
usr.sbin/makefs/hammer2.c
1065
assert(S_ISDIR(root->type));
usr.sbin/makefs/hammer2.c
1073
if (!S_ISDIR(st.st_mode))
usr.sbin/makefs/hammer2.c
1106
assert(!S_ISDIR(cur->type));
usr.sbin/makefs/hammer2.c
1123
if (S_ISDIR(cur->type)) {
usr.sbin/makefs/makefs.c
332
if (!S_ISDIR(sb.st_mode))
usr.sbin/makefs/walk.c
150
if (S_ISDIR(cur->type) &&
usr.sbin/makefs/walk.c
151
S_ISDIR(stbuf.st_mode)) {
usr.sbin/makefs/walk.c
181
if (S_ISDIR(cur->type)) {
usr.sbin/makefs/walk.c
610
if (S_ISDIR(mode))
usr.sbin/mtree/compare.c
146
if (!S_ISDIR(p->fts_statp->st_mode))
usr.sbin/mtree/create.c
223
S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name));
usr.sbin/mtree/create.c
357
(dflag && S_ISDIR(p->fts_statp->st_mode))) {
usr.sbin/mtree/create.c
443
if (S_ISDIR((*a)->fts_statp->st_mode)) {
usr.sbin/mtree/create.c
444
if (!S_ISDIR((*b)->fts_statp->st_mode))
usr.sbin/mtree/create.c
446
} else if (S_ISDIR((*b)->fts_statp->st_mode))
usr.sbin/mtree/verify.c
143
if ((S_ISDIR(p->fts_statp->st_mode)
usr.sbin/mtree/verify.c
182
S_ISDIR(statbuf.st_mode))
usr.sbin/newsyslog/newsyslog.c
2635
else if (!S_ISDIR(st.st_mode))
usr.sbin/pfctl/pfctl.c
1528
if (S_ISDIR(st.st_mode)) {
usr.sbin/pw/cpdir.c
80
if (S_ISDIR(st.st_mode)) { /* Recurse for this */
usr.sbin/pw/pw_user.c
1227
!S_ISDIR(st.st_mode) &&
usr.sbin/pw/pw_user.c
199
} else if (!S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
210
} else if (!S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
253
if (stat(cnf->dotdir = arg->val, &st) == -1 || !S_ISDIR(st.st_mode))
usr.sbin/pw/pw_user.c
540
} else if (!S_ISDIR(st.st_mode))
usr.sbin/pw/rm_r.c
55
if (S_ISDIR(st.st_mode)) /* Directory - recurse */
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
257
if (S_ISDIR(statbuf.st_mode)) {
usr.sbin/ypserv/yp_access.c
321
if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))