Symbol: S_ISDIR
bin/cp/cp.c
245
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
bin/cp/cp.c
268
if (S_ISDIR(tmp_stat.st_mode) && (Rflag || rflag))
bin/cp/cp.c
429
if (S_ISDIR(curr->fts_statp->st_mode))
bin/cp/cp.c
433
if (!S_ISDIR(curr->fts_statp->st_mode) &&
bin/cp/cp.c
434
S_ISDIR(to_stat.st_mode)) {
bin/cp/cp.c
487
} else if (!S_ISDIR(to_stat.st_mode)) {
bin/csh/csh.c
1415
if (stat(ptr = a, &stb) == 0 && S_ISDIR(stb.st_mode)) \
bin/csh/csh.h
95
#define isdir(d) (S_ISDIR(d.st_mode))
bin/csh/exec.c
594
access(strname, X_OK) == 0) || (dir_ok && S_ISDIR(stbuf.st_mode))));
bin/csh/exp.c
510
i = S_ISDIR(stb.st_mode);
bin/csh/file.c
285
S_ISDIR(statb.st_mode))
bin/ksh/c_test.c
266
return test_stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode);
bin/ksh/c_test.c
456
else if (S_ISDIR(statb.st_mode))
bin/ksh/eval.c
1034
&& ISDIRSEP(xp[-1]) && !S_ISDIR(lstatb.st_mode)
bin/ksh/eval.c
1038
|| !S_ISDIR(statb.st_mode))
bin/ksh/eval.c
1048
&& (S_ISDIR(lstatb.st_mode)
bin/ksh/eval.c
1052
&& S_ISDIR(statb.st_mode))
bin/ksh/exec.c
1033
err = S_ISDIR(statb.st_mode) ? EISDIR : EACCES;
bin/ksh/var.c
1029
&& stat(s, &statb) == 0 && S_ISDIR(statb.st_mode))
bin/ln/ln.c
176
if (!S_ISDIR(sb.st_mode))
bin/ln/ln.c
246
if (S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
258
(lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
bin/ln/ln.c
259
(!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) {
bin/ln/ln.c
313
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/ln/ln.c
334
if (Fflag && S_ISDIR(sb.st_mode)) {
bin/ls/print.c
203
if (f_type || (f_typedir && S_ISDIR(sp->st_mode)))
bin/ls/print.c
397
if (f_type || (f_typedir && S_ISDIR(sp->st_mode)))
bin/mkdir/mkdir.c
183
if (!S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
129
if (hflg || stat(argv[argc - 1], &sb) || !S_ISDIR(sb.st_mode)) {
bin/mv/mv.c
249
if ((S_ISDIR(sb.st_mode)) ? rmdir(to) : unlink(to)) {
bin/pax/ar_io.c
218
if (S_ISDIR(arsb.st_mode)) {
bin/pax/ar_subs.c
149
if (stat(fname, &sb) != -1 && S_ISDIR(sb.st_mode))
bin/pax/ar_subs.c
962
if (!S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
312
if (lstat(arcn->ln_name, &sb) != -1 && S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
417
if (S_ISDIR(sb.st_mode) && strcmp(from, ".") != 0) {
bin/pax/file_subs.c
677
if (S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
797
if (retval == -1 && stat(name, &sb) == 0 && S_ISDIR(sb.st_mode))
bin/rcp/rcp.c
522
if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode))
bin/rcp/rcp.c
626
if (!S_ISDIR(stb.st_mode)) {
bin/rcp/util.c
93
if (S_ISDIR(stb.st_mode))
bin/rm/rm.c
308
if (S_ISDIR(sb.st_mode) && !dflag) {
bin/rm/rm.c
317
else if (S_ISDIR(sb.st_mode))
bin/sh/cd.c
154
if (!S_ISDIR(statb.st_mode)) {
bin/sh/eval.c
1716
if (S_ISDIR(statb.st_mode))
bin/sh/eval.c
1725
if (S_ISDIR(statb.st_mode) || S_ISBLK(statb.st_mode))
bin/test/test.c
739
return S_ISDIR(s.st_mode);
dist/pf/sbin/pfctl/pfctl.c
1495
if (S_ISDIR(st.st_mode)) {
distrib/utils/libhack/opendir.c
66
if (fstat(fd, &sb) || !S_ISDIR(sb.st_mode)) {
games/fortune/fortune/fortune.c
732
return (S_ISDIR(sbuf.st_mode));
lib/libc/gen/fts.c
966
if (S_ISDIR(sbp->st_mode)) {
lib/libc/gen/getcwd.c
206
if (*q == '/' && !S_ISDIR(sb.st_mode)) {
lib/libc/gen/glob.c
646
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
lib/libc/gen/glob.c
649
S_ISDIR(sb.st_mode)))) {
lib/libc/gen/glob.c
742
!S_ISDIR(sbuf.st_mode)
lib/libc/gen/opendir.c
102
if (!S_ISDIR(sb.st_mode)) {
lib/libc/stdio/gettemp.c
133
if (!S_ISDIR(sbuf.st_mode)) {
lib/libc/stdio/remove.c
66
if (S_ISDIR(sb.st_mode))
lib/libedit/filecomplete.c
455
if (S_ISDIR(stbuf.st_mode))
lib/libpuffs/null.c
419
if (S_ISDIR(sb.st_mode)) {
lib/libresolv/dst_api.c
114
!S_ISDIR(statbuf.st_mode)) {
libexec/ftpd/cmds.c
243
if (! S_ISDIR(pdirstat.st_mode)) {
libexec/ftpd/cmds.c
633
if (S_ISDIR(fe->stat->st_mode))
libexec/ftpd/cmds.c
664
if (wok && CURCLASS_FLAGS_ISSET(modify) && S_ISDIR(fe->stat->st_mode))
libexec/ftpd/cmds.c
672
if (S_ISDIR(fe->stat->st_mode)) {
libexec/ftpd/cmds.c
694
if (xok && S_ISDIR(fe->stat->st_mode))
libexec/ftpd/cmds.c
702
if (rok && xok && S_ISDIR(fe->stat->st_mode))
libexec/ftpd/cmds.c
706
if (wok && CURCLASS_FLAGS_ISSET(modify) && S_ISDIR(fe->stat->st_mode))
libexec/ftpd/cmds.c
710
if (wok && CURCLASS_FLAGS_ISSET(modify) && S_ISDIR(fe->stat->st_mode))
libexec/ftpd/conf.c
787
if (S_ISDIR(mode))
libexec/ftpd/ftpd.c
3496
} else if (!S_ISDIR(st.st_mode))
libexec/httpd/bozohttpd.c
1485
lstat(dir, &sb) == 0 && S_ISDIR(sb.st_mode)) {
libexec/httpd/bozohttpd.c
1870
if (S_ISDIR(sb.st_mode)) {
libexec/httpd/dir-index-bozo.c
170
} else if (!nostat && S_ISDIR(sb.st_mode)) {
regress/sys/kern/unfdpass/unfdpass.c
286
if (S_ISDIR(st.st_mode)) {
sbin/dump/snapshot.c
110
if (S_ISDIR(sb.st_mode)) {
sbin/dump/snapshot.c
94
} else if (S_ISDIR(sb.st_mode))
sbin/mount_portal/puffs_portal.c
593
va->va_type = S_ISDIR(st.st_mode) ? VDIR : VREG; /* XXX */
sbin/umount/umount.c
219
else if (S_ISDIR(sb.st_mode))
sbin/veriexecctl/veriexecctl.c
268
if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode))
sys/arch/acorn32/stand/nbfs/nbfs.c
201
if (S_ISDIR(st.st_mode))
sys/arch/acorn32/stand/nbfs/nbfs.c
303
r->r0 = S_ISDIR(st.st_mode) ?
sys/arch/acorn32/stand/nbfs/nbfs.c
366
if (!S_ISDIR(st.st_mode)) {
sys/arch/ia64/stand/common/ls.c
173
if (!S_ISDIR(sb.st_mode)) {
sys/compat/linux/common/linux_file.c
631
&& S_ISDIR(sb.st_mode))
sys/fs/efs/efs_vfsops.c
394
if (ino == EFS_ROOTINO && !S_ISDIR(eip->ei_mode)) {
sys/stand/ls.c
72
if (!S_ISDIR(st.st_mode)) {
tests/include/t_paths.c
189
ATF_CHECK(S_ISDIR(m) != 0);
tests/lib/libc/stdlib/t_mktemp.c
50
if (dir != 0 && S_ISDIR(sa.st_mode) == 0)
tests/lib/libcurses/director/director.c
209
if (S_ISDIR(st.st_mode)) {
usr.bin/calendar/calendar.c
534
if (S_ISDIR(st.st_mode)) {
usr.bin/config/main.c
1589
} else if (!S_ISDIR(st.st_mode))
usr.bin/config/main.c
1595
if (!S_ISDIR(st.st_mode))
usr.bin/config/main.c
703
if (!S_ISDIR(st.st_mode))
usr.bin/crunch/crunchgen/crunchgen.c
1180
return S_ISDIR(buf.st_mode);
usr.bin/dc/dc.c
102
if (S_ISDIR(st.st_mode))
usr.bin/diff/diff.c
362
if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
usr.bin/diff/diff.c
365
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diff.c
370
if (S_ISDIR(stb1.st_mode)) {
usr.bin/diff/diff.c
375
if (S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
208
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
usr.bin/diff/diffdir.c
216
if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode))
usr.bin/diff/diffdir.c
218
else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
299
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
usr.bin/diff/diffreg.c
300
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
usr.bin/find/function.c
480
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/find/function.c
538
if (S_ISDIR(entry->fts_statp->st_mode)) {
usr.bin/ftp/complete.c
230
if (S_ISDIR(sb.st_mode))
usr.bin/gzip/gzip.c
2046
if (S_ISDIR(sb.st_mode)) {
usr.bin/locate/locate/locate.c
120
if (S_ISDIR(st.st_mode)) {
usr.bin/mail/cmd2.c
600
if (!S_ISDIR(sb.st_mode)) {
usr.bin/mail/complete.c
414
if (S_ISDIR(sb.st_mode))
usr.bin/mail/support.c
159
return S_ISDIR(sbuf.st_mode);
usr.bin/make/main.c
1947
if (S_ISDIR(st.st_mode)) {
usr.bin/make/main.c
2178
if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) {
usr.bin/make/main.c
741
if (stat(path, &sb) != 0 || !S_ISDIR(sb.st_mode))
usr.bin/make/meta.c
1561
if (!S_ISDIR(cst.cst_mode) &&
usr.bin/make/meta.c
1566
} else if (S_ISDIR(cst.cst_mode)) {
usr.bin/man/man.c
1086
if (stat(*ap, &sb) == 0 && S_ISDIR(sb.st_mode))
usr.bin/patch/mkpath.c
74
} else if (!S_ISDIR(sb.st_mode)) {
usr.bin/patch/util.c
379
if (stat(fullname, &filestat) == 0 && S_ISDIR(filestat.st_mode)) {
usr.bin/rdist/expand.c
316
if (!S_ISDIR(stb.st_mode)) {
usr.bin/rdist/expand.c
510
if (stat(path, &stb) == 0 && S_ISDIR(stb.st_mode)) {
usr.bin/rdist/server.c
1064
} else if (S_ISDIR(stb.st_mode)) {
usr.bin/rdist/server.c
823
if (S_ISDIR(stb.st_mode)) {
usr.bin/unzip/unzip.c
334
if (S_ISDIR(sb.st_mode))
usr.bin/unzip/unzip.c
372
if (S_ISDIR(sb.st_mode)) {
usr.bin/unzip/unzip.c
720
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
usr.bin/unzip/unzip.c
728
if (S_ISDIR(filetype) && j_opt) {
usr.bin/unzip/unzip.c
754
if (S_ISDIR(filetype))
usr.bin/unzip/unzip.c
773
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
usr.bin/unzip/unzip.c
781
if (S_ISDIR(filetype)) {
usr.bin/unzip/unzip.c
844
if (S_ISDIR(archive_entry_filetype(e)))
usr.bin/utoppya/utoppya.c
378
if (stat(dst, &st) == 0 && S_ISDIR(st.st_mode)) {
usr.bin/wc/wc.c
245
S_ISDIR(sb.st_mode))) {
usr.bin/xinstall/xinstall.c
1192
if (!S_ISDIR(sb.st_mode)) {
usr.bin/xinstall/xinstall.c
406
if (!no_target && S_ISDIR(to_sb.st_mode)) {
usr.sbin/fssconfig/fssconfig.c
143
} else if (S_ISDIR(sbuf.st_mode)) {
usr.sbin/installboot/installboot.c
318
if (!S_ISDIR(params->s1stat.st_mode)) {
usr.sbin/installboot/installboot.c
342
S_ISDIR(params->s1stat.st_mode) ? " (directory)"
usr.sbin/lpr/lpr/lpr.c
618
if (S_ISDIR(statb.st_mode)) {
usr.sbin/makefs/cd9660.c
1379
if ((S_ISDIR(root->type)) && (root->name[0] == '.')
usr.sbin/makefs/cd9660.c
1399
if (!S_ISDIR(iterator->type) ||
usr.sbin/makefs/cd9660.c
1408
if (S_ISDIR(iterator->type)) {
usr.sbin/makefs/cd9660.c
1590
if (S_ISDIR(cn->node->type)) {
usr.sbin/makefs/cd9660.c
1896
if (S_ISDIR(child->node->type)) {
usr.sbin/makefs/cd9660.c
1915
if (S_ISDIR(child->node->type))
usr.sbin/makefs/cd9660.c
840
temp, !(S_ISDIR(newnode->node->type)));
usr.sbin/makefs/cd9660.c
843
if (S_ISDIR(newnode->node->type))
usr.sbin/makefs/cd9660.c
880
if (!(S_ISDIR(node->type)))
usr.sbin/makefs/chfs.c
202
if (!S_ISDIR(cur->type & S_IFMT)) {
usr.sbin/makefs/ffs.c
1142
if (S_ISDIR(DIP(dp, mode))) {
usr.sbin/makefs/ffs.c
849
assert (! S_ISDIR(cur->type));
usr.sbin/makefs/makefs.c
306
if (!S_ISDIR(sb.st_mode))
usr.sbin/makefs/walk.c
149
if (S_ISDIR(cur->type) && S_ISDIR(st->st_mode)) {
usr.sbin/makefs/walk.c
311
if (S_ISDIR(cur->type)) {
usr.sbin/makemandb/makemandb.c
475
if (S_ISDIR(sb.st_mode)) {
usr.sbin/mountd/mountd.c
2382
if (!S_ISDIR(sb.st_mode))
usr.sbin/mountd/mountd.c
2392
if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
usr.sbin/mountd/mountd.c
642
(!S_ISDIR(stb.st_mode) && !S_ISREG(stb.st_mode)) ||
usr.sbin/mtree/compare.c
159
if (!S_ISDIR(p->fts_statp->st_mode))
usr.sbin/mtree/create.c
231
S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name));
usr.sbin/mtree/create.c
367
(dflag && S_ISDIR(p->fts_statp->st_mode))) {
usr.sbin/mtree/spec.c
871
if (S_ISDIR((*a)->fts_statp->st_mode)) {
usr.sbin/mtree/spec.c
872
if (!S_ISDIR((*b)->fts_statp->st_mode))
usr.sbin/mtree/spec.c
874
} else if (S_ISDIR((*b)->fts_statp->st_mode)) {
usr.sbin/mtree/verify.c
159
if ((S_ISDIR(p->fts_statp->st_mode)
usr.sbin/mtree/verify.c
198
S_ISDIR(statbuf.st_mode))
usr.sbin/ndbootd/ndbootd.c
428
if (S_ISDIR(stat_buffer.st_mode)) {
usr.sbin/rpc.pcnfsd/pcnfsd_print.c
172
if (stat(sp_name, &statbuf) || !S_ISDIR(statbuf.st_mode))
usr.sbin/rpc.pcnfsd/pcnfsd_print.c
188
if (stat(pathname, &statbuf) || !S_ISDIR(statbuf.st_mode)) {
usr.sbin/sysinst/aout2elf.c
383
if (S_ISDIR(sb.st_mode)) {
usr.sbin/sysinst/util.c
1897
else if (S_ISDIR(sb.st_mode)) {
usr.sbin/sysinst/util.c
647
if (stat(set_dir_bin, &sb) == 0 && S_ISDIR(sb.st_mode) &&
usr.sbin/tcpdchk/tcpdchk.c
145
} else if (!S_ISDIR(st.st_mode)) {
usr.sbin/tcpdchk/tcpdchk.c
47
#ifndef S_ISDIR
usr.sbin/tcpdmatch/tcpdmatch.c
108
} else if (!S_ISDIR(st.st_mode)) {
usr.sbin/tcpdmatch/tcpdmatch.c
46
#ifndef S_ISDIR
usr.sbin/user/user.c
286
if (!S_ISDIR(st.st_mode)) {
usr.sbin/ypserv/ypserv/ypserv_db.c
266
if (stat(map_path, &finfo) < 0 || !S_ISDIR(finfo.st_mode)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
105
if ((stat(domain_path, &finfo) == 0) && S_ISDIR(finfo.st_mode))
usr.sbin/ypserv/ypserv/ypserv_proc.c
131
if ((stat(domain_path, &finfo) == 0) && S_ISDIR(finfo.st_mode))
usr.sbin/ypserv/ypserv/ypserv_proc.c
460
if ((stat(domain_path, &finfo) != 0) || !S_ISDIR(finfo.st_mode)) {
usr.sbin/ypserv/ypxfr/ypxfr.c
334
(S_ISDIR(finfo.st_mode) == 0)) {