Symbol: S_ISREG
bin/cat/cat.c
409
if (S_ISREG(sbuf.st_mode)) {
bin/dd/dd.c
318
if (S_ISREG(sb.st_mode))
bin/mv/mv.c
251
return (S_ISREG(sb.st_mode) ?
bin/pax/ar_io.c
323
if (can_unlnk && (fstat(arfd, &arsb) == 0) && (S_ISREG(arsb.st_mode)) &&
bin/sh/exec.c
412
if (!S_ISREG(statb.st_mode))
bin/sh/histedit.c
651
if (!S_ISREG(statb.st_mode))
bin/sh/main.c
302
if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
bin/sh/redir.c
191
} else if (!S_ISREG(sb.st_mode)) {
bin/sh/redir.c
194
if (fstat(f, &sb) != -1 && S_ISREG(sb.st_mode)) {
bin/test/test.c
386
return S_ISREG(s.st_mode);
crypto/heimdal/appl/ftp/ftp/ftp.c
604
if (fstat (fileno (from), &st) == 0 && S_ISREG (st.st_mode)) {
crypto/heimdal/appl/ftp/ftp/ftp.c
734
if (fstat (fileno (fin), &st) < 0 || !S_ISREG(st.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
2395
else if (!S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3495
if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3511
if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1442
if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1458
if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
619
else if (!S_ISREG(stbuf.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1033
if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1379
if(fstat(in, &st) == 0 && S_ISREG(st.st_mode)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2266
if (S_ISREG(st.st_mode)) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2302
S_ISREG(st.st_mode))) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
750
S_ISREG(st.st_mode))
crypto/heimdal/appl/ftp/ftpd/ls.c
167
else if(S_ISREG(st->st_mode)) {
crypto/heimdal/appl/rcp/rcp.c
298
} else if (!S_ISREG(stb.st_mode)) {
crypto/heimdal/lib/roken/iruserok.c
264
else if (!S_ISREG(sbuf.st_mode))
crypto/krb5/src/lib/crypto/krb/prng.c
82
if (fstat(fd, &sb) == -1 || S_ISREG(sb.st_mode))
crypto/krb5/src/lib/kdb/kdb_default.c
134
if (!S_ISREG(stb.st_mode)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c
73
if (!S_ISREG(sb.st_mode)) {
crypto/openssh/auth-rhosts.c
74
if (!S_ISREG(st.st_mode)) {
crypto/openssh/auth.c
132
if (S_ISREG(st.st_mode) == 0 ||
crypto/openssh/auth2-pubkeyfile.c
465
if (!S_ISREG(st.st_mode)) {
crypto/openssh/defines.h
173
#ifndef S_ISREG
crypto/openssh/loginrec.c
1542
} else if (S_ISREG(st.st_mode)) {
crypto/openssh/loginrec.c
1557
if (S_ISREG(st.st_mode)) {
crypto/openssh/misc.c
2270
if (!S_ISREG(stp->st_mode)) {
crypto/openssh/misc.c
3098
if (!S_ISREG(st.st_mode)) {
crypto/openssh/regress/check-perm.c
110
if (!S_ISREG(stp->st_mode)) {
crypto/openssh/scp.c
1937
if (!wrerr && (!exists || S_ISREG(stb.st_mode)) &&
crypto/openssh/sftp-client.c
1126
if (!S_ISREG(attr.perm)) {
crypto/openssh/sftp-client.c
1633
(!S_ISREG(a->perm))) {
crypto/openssh/sftp-client.c
1973
} else if (S_ISREG(a->perm)) {
crypto/openssh/sftp-client.c
2063
if (!S_ISREG(sb.st_mode)) {
crypto/openssh/sftp-client.c
2346
} else if (S_ISREG(sb.st_mode)) {
crypto/openssh/sftp-client.c
2482
(!S_ISREG(a->perm))) {
crypto/openssh/sftp-client.c
2799
} else if (S_ISREG(a->perm)) {
crypto/openssh/sftp-server.c
1283
else if (S_ISREG(sb.st_mode)) {
crypto/openssl/crypto/rand/randfile.c
120
if (S_ISREG(sb.st_mode))
crypto/openssl/crypto/rand/randfile.c
193
if (stat(file, &sb) >= 0 && !S_ISREG(sb.st_mode)) {
crypto/openssl/crypto/rand/randfile.c
57
#if !defined(S_ISREG)
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
781
if (S_ISREG(st.st_mode)) {
crypto/openssl/fuzz/test-corpus.c
33
#if !defined(S_ISREG)
crypto/openssl/fuzz/test-corpus.c
44
if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode))
lib/geom/part/geom_part.c
1121
if (!S_ISREG(sb.st_mode))
lib/libc/db/mpool/mpool.c
73
if (!S_ISREG(sb.st_mode)) {
lib/libc/gen/fts-compat.c
986
if (S_ISREG(sbp->st_mode))
lib/libc/gen/fts-compat11.c
977
if (S_ISREG(sbp->st_mode))
lib/libc/gen/fts.c
1086
if (S_ISREG(sbp->st_mode))
lib/libc/iconv/citrus_mmap.c
69
if (!S_ISREG(st.st_mode)) {
lib/libc/net/rcmd.c
476
else if (!S_ISREG(sbuf.st_mode))
lib/libc/tests/stdio/mkostemp_test.c
102
if (!S_ISREG(st2.st_mode) || (st2.st_mode & 0777) != 0600 ||
lib/libc/tests/stdio/mkostemp_test.c
95
if (!S_ISREG(st1.st_mode) || (st1.st_mode & 0777) != 0600 ||
lib/libkvm/kvm.c
148
if (S_ISREG(st.st_mode) && st.st_size <= 0) {
lib/libsecureboot/pass_manifest.c
66
if (!S_ISREG(st.st_mode)) {
lib/libsecureboot/veopen.c
426
if (stp && !S_ISREG(stp->st_mode))
lib/libsecureboot/verify_file.c
189
if (stat(name, &st) < 0 || !S_ISREG(st.st_mode))
lib/libsecureboot/verify_file.c
471
if (fstat(fd, stp) < 0 || !S_ISREG(stp->st_mode))
lib/libsecureboot/vesigned.c
49
if (stat(buf, &st) < 0 || !S_ISREG(st.st_mode))
lib/libufs/type.c
115
if (ret >= 0 && S_ISREG(st.st_mode)) {
lib/libutil/_secure_path.c
55
else if (!S_ISREG(sb.st_mode))
lib/libutil/mntopts.c
141
if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
libexec/atrun/atrun.c
538
if (!S_ISREG(buf.st_mode))
libexec/flua/lfs/lfs.c
259
if (S_ISREG(mode))
libexec/pkg-serve/pkg-serve.c
139
if (!S_ISREG(st.st_mode)) {
libexec/tftpd/tftpd.c
721
if (!S_ISREG(sb.st_mode))
libexec/tftpd/tftpd.c
743
if (!S_ISREG(sb.st_mode))
sbin/fsck_ffs/gjournal.c
118
if (!S_ISREG(dp->dp2.di_mode) &&
sbin/ggate/shared/ggate.c
144
} else if (S_ISREG(sb.st_mode)) {
sbin/ggate/shared/ggate.c
165
} else if (S_ISREG(sb.st_mode)) {
sbin/hastd/hastd.c
154
else if (S_ISREG(mode))
sbin/hastd/subr.c
117
} else if (S_ISREG(sb.st_mode)) {
sbin/ldconfig/elfhints.c
258
else if (S_ISREG(s.st_mode))
sbin/mdconfig/mdconfig.c
479
if (!S_ISREG(sb.st_mode))
sbin/mount_nullfs/mount_nullfs.c
101
if (!S_ISDIR(target_stat.st_mode) && !S_ISREG(target_stat.st_mode))
sbin/newfs_msdos/mkfs_msdos.c
295
if (!S_ISREG(sb.st_mode))
sbin/newfs_msdos/mkfs_msdos.c
449
if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bpbBytesPerSec ||
sbin/newfs_msdos/mkfs_msdos.c
912
if (!S_ISREG(st.st_mode))
sbin/rcorder/rcorder.c
493
if (!S_ISREG(st.st_mode)) {
sbin/reboot/reboot.c
405
if (!S_ISREG(sb.st_mode))
sbin/recoverdisk/recoverdisk.c
550
} else if (S_ISREG(sb.st_mode) && sb.st_size > 0) {
sbin/routed/trace.c
329
if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) {
sbin/swapon/swapon.c
718
if (S_ISREG(sb.st_mode))
stand/common/module.c
1094
if (stat(result, &st) == 0 && S_ISREG(st.st_mode))
stand/liblua/lstd.c
82
if (S_ISREG(st.st_mode) && !(m & O_WRONLY)) {
stand/libsa/bzipfs.c
183
if (!S_ISREG(sb.st_mode)) {
stand/libsa/gzipfs.c
192
if (!S_ISREG(sb.st_mode)) {
stand/libsa/splitfs.c
132
if (!S_ISREG(sb.st_mode)) {
stand/userboot/test/test.c
196
!S_ISREG(tf->tf_stat.st_mode) &&
stand/userboot/test/test.c
218
} else if (S_ISREG(tf->tf_stat.st_mode)) {
sys/fs/ext2fs/ext2_alloc.c
463
&& (S_ISREG(mode) || S_ISDIR(mode)))
sys/fs/ext2fs/ext2_extents.c
1451
if (S_ISREG(ip->i_mode) && (!ip->i_next_alloc_block)) {
sys/fs/ext2fs/ext2_inode_cnv.c
185
if (S_ISREG(ip->i_mode))
sys/fs/ext2fs/ext2_inode_cnv.c
263
if (S_ISREG(ip->i_mode))
sys/fs/ext2fs/ext2_vfsops.c
1273
(S_ISDIR(ip->i_mode) || S_ISREG(ip->i_mode))) {
tests/sys/file/flock_helper.c
79
if (S_ISREG(st.st_mode)) {
tools/regression/aio/aiop/aiop.c
179
if (S_ISREG(sb.st_mode)) {
tools/tools/bootparttest/bootparttest.c
102
if (stat(argv[1], &sb) == 0 && S_ISREG(sb.st_mode)) {
usr.bin/ar/write.c
117
if (!S_ISREG(sb.st_mode)) {
usr.bin/at/at.c
493
if (!S_ISREG(buf.st_mode)
usr.bin/chpass/field.c
244
if (!S_ISREG(sbuf.st_mode)) {
usr.bin/cmp/cmp.c
226
if (!S_ISREG(sb1.st_mode))
usr.bin/cmp/cmp.c
235
if (!S_ISREG(sb2.st_mode))
usr.bin/compress/compress.c
192
if (!force && exists && S_ISREG(sb.st_mode) && !permission(out))
usr.bin/compress/compress.c
194
isreg = oreg = !exists || S_ISREG(sb.st_mode);
usr.bin/compress/compress.c
205
if (!S_ISREG(isb.st_mode))
usr.bin/compress/compress.c
282
if (!force && exists && S_ISREG(sb.st_mode) && !permission(out))
usr.bin/compress/compress.c
284
isreg = oreg = !exists || S_ISREG(sb.st_mode);
usr.bin/compress/compress.c
295
if (!S_ISREG(sb.st_mode))
usr.bin/ctags/ctags.c
170
!S_ISREG(sb.st_mode)) {
usr.bin/diff/diffdir.c
315
(S_ISREG(stb1.st_mode) ? "file" : "error")),
usr.bin/diff/diffdir.c
318
(S_ISREG(stb2.st_mode) ? "file" : "error")));
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
332
if (!S_ISREG(stb1.st_mode)) {
usr.bin/diff/diffreg.c
355
if (!S_ISREG(stb2.st_mode)) {
usr.bin/diff/diffreg_new.c
331
if (!S_ISREG(stb1.st_mode) || !S_ISREG(stb2.st_mode))
usr.bin/dpv/dpv.c
129
if (S_ISREG(sb.st_mode)) {
usr.bin/env/envopts.c
72
S_ISREG(fin.st_mode) &&
usr.bin/fetch/fetch.c
559
if (r == 0 && (r_flag || tries > 1) && S_ISREG(sb.st_mode)) {
usr.bin/fetch/fetch.c
561
} else if (r == -1 || !S_ISREG(sb.st_mode)) {
usr.bin/fetch/fetch.c
720
if (sb.st_size != -1 && S_ISREG(sb.st_mode)) {
usr.bin/find/function.c
562
if (S_ISREG(entry->fts_statp->st_mode) &&
usr.bin/grep/file.c
187
if (fstat(f->fd, &st) == -1 || !S_ISREG(st.st_mode))
usr.bin/gzip/gzip.c
1396
if (S_ISREG(isb.st_mode))
usr.bin/gzip/gzip.c
1766
if (S_ISREG(isb.st_mode))
usr.bin/gzip/gzip.c
1876
if (S_ISREG(sb.st_mode)) {
usr.bin/gzip/gzip.c
1939
if (S_ISREG(sb.st_mode))
usr.bin/hexdump/display.c
394
if (S_ISREG(sb.st_mode) && skip > sb.st_size && sb.st_size > 0) {
usr.bin/hexdump/display.c
401
(S_ISREG(sb.st_mode) && sb.st_size == 0)) {
usr.bin/ktrace/ktrace.c
142
if (!(S_ISREG(sb.st_mode)))
usr.bin/mail/collect.c
507
if (stat(name, &junk) >= 0 && S_ISREG(junk.st_mode)) {
usr.bin/mail/fio.c
259
if (!S_ISREG(sb.st_mode)) {
usr.bin/mail/lex.c
86
if (S_ISDIR(stb.st_mode) || !S_ISREG(stb.st_mode)) {
usr.bin/mkimg/image.c
500
if (fstat(fd, &sb) == -1 || !S_ISREG(sb.st_mode))
usr.bin/mkuzip/mkuz_insize.c
75
} else if (!S_ISREG(sb.st_mode)) {
usr.bin/patch/inp.c
173
if (!S_ISREG(filemode))
usr.bin/script/script.c
566
reg = S_ISREG(pst.st_mode);
usr.bin/sdiff/sdiff.c
163
if (S_ISREG(sb.st_mode)) {
usr.bin/sed/main.c
396
if (!S_ISREG(sb.st_mode))
usr.bin/sort/sort.c
933
if (!S_ISREG(fsb.st_mode) && !S_ISCHR(fsb.st_mode))
usr.bin/sort/sort.c
941
if (S_ISREG(fsb.st_mode)) {
usr.bin/stat/stat.c
1134
} else if (!S_ISREG(sb.st_mode)) {
usr.bin/tail/forward.c
105
if (S_ISREG(sbp->st_mode) && sbp->st_size > 0) {
usr.bin/tail/forward.c
137
if (S_ISREG(sbp->st_mode) && sbp->st_size > 0) {
usr.bin/tail/forward.c
154
if (S_ISREG(sbp->st_mode) && sbp->st_size > 0)
usr.bin/tail/reverse.c
81
if (S_ISREG(sbp->st_mode))
usr.bin/wc/wc.c
237
if (S_ISREG(sb.st_mode) && sb.st_size > 0) {
usr.bin/which/which.c
110
S_ISREG(fin.st_mode) &&
usr.bin/xinstall/xinstall.c
401
if (!S_ISREG(to_sb.st_mode))
usr.bin/xinstall/xinstall.c
668
if (S_ISREG(to_sb.st_mode)) {
usr.bin/xinstall/xinstall.c
821
if (!S_ISREG(from_sb.st_mode))
usr.bin/xinstall/xinstall.c
846
if (target && !S_ISREG(to_sb.st_mode) && !S_ISLNK(to_sb.st_mode))
usr.bin/xinstall/xinstall.c
853
if (docompare && !dostrip && target && S_ISREG(to_sb.st_mode)) {
usr.bin/xinstall/xinstall.c
902
if (docompare && dostrip && target && S_ISREG(to_sb.st_mode)) {
usr.sbin/bhyveload/bhyveload.c
196
} else if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c
341
if (!S_ISREG(sb.st_mode)) {
usr.sbin/camdd/camdd.c
1068
if (S_ISREG(file_dev->sb.st_mode)) {
usr.sbin/ckdist/ckdist.c
143
else if (S_ISREG(sb.st_mode))
usr.sbin/config/main.cc
192
if (stat(PREFIX, &buf) != 0 || !S_ISREG(buf.st_mode))
usr.sbin/cpucontrol/cpucontrol.c
388
if (!S_ISREG(st.st_mode))
usr.sbin/cron/cron/database.c
135
!S_ISREG(st.st_mode))
usr.sbin/cron/cron/database.c
84
if (ret != 0 || !S_ISREG(st.st_mode))
usr.sbin/crunch/crunchgen/crunchgen.c
1251
return S_ISREG(buf.st_mode) && buf.st_size > 0;
usr.sbin/diskinfo/diskinfo.c
165
isreg = S_ISREG(sb.st_mode);
usr.sbin/fifolog/lib/fifolog_create.c
72
!S_ISREG(st.st_mode)) {
usr.sbin/fifolog/lib/fifolog_create.c
77
if(!created && S_ISREG(st.st_mode)) {
usr.sbin/fifolog/lib/fifolog_create.c
93
if (size == 0 && S_ISREG(st.st_mode))
usr.sbin/fifolog/lib/fifolog_create.c
99
if (S_ISREG(st.st_mode) && ftruncate(fd, size) < 0)
usr.sbin/fifolog/lib/fifolog_int.c
74
if (!S_ISREG(st.st_mode))
usr.sbin/fstyp/fstyp.c
190
if (S_ISREG(sb.st_mode))
usr.sbin/gssd/gssd.c
1469
S_ISREG(sb.st_mode)) {
usr.sbin/inetd/builtins.c
625
!S_ISREG(sb.st_mode))
usr.sbin/makefs/ffs.c
928
} else if (S_ISREG(cur->type)) {
usr.sbin/makefs/ffs.c
979
isfile = S_ISREG(DIP(din, mode));
usr.sbin/makefs/msdos.c
256
} else if (!S_ISREG(cur->type)) {
usr.sbin/makefs/walk.c
607
if (S_ISREG(mode))
usr.sbin/mountd/mountd.c
1238
(dir_only || !S_ISREG(stb.st_mode))) {
usr.sbin/newsyslog/newsyslog.c
1080
if (!S_ISREG(st_fm.st_mode)) {
usr.sbin/newsyslog/newsyslog.c
1606
!S_ISREG(sb.st_mode))
usr.sbin/pw/cpdir.c
123
if (!S_ISREG(st.st_mode))
usr.sbin/pw/pw_utils.c
110
else if (S_ISREG(mode))
usr.sbin/trim/trim.c
186
if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) {
usr.sbin/ypserv/yp_server.c
700
!S_ISREG(statbuf.st_mode))