Symbol: S_IFMT
bin/cp/cp.c
443
switch (curr->fts_statp->st_mode & S_IFMT) {
bin/csh/file.c
280
switch (statb.st_mode & S_IFMT) {
bin/ls/print.c
460
switch (mode & S_IFMT) {
bin/pax/ftree.c
483
!= (statbuf.st_mode & S_IFMT)) {
bin/pax/ftree.c
659
switch(S_IFMT & arcn->sb.st_mode) {
bin/rcp/rcp.c
351
switch (stb.st_mode & S_IFMT) {
common/dist/zlib/examples/gun.c
523
if (stat(from, &was) != 0 || (was.st_mode & S_IFMT) != S_IFREG)
crypto/dist/ipsec-tools/src/racoon/safefile.c
71
switch (s.st_mode & S_IFMT) {
crypto/dist/ipsec-tools/src/racoon/safefile.c
77
(s.st_mode & S_IFMT));
distrib/utils/more/os.c
268
if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
lib/libc/gen/devname.c
125
if ((type & S_IFMT) != (fe->fts_statp->st_mode & S_IFMT))
lib/libc/gen/ttyname.c
87
return devname_r(sb.st_rdev, sb.st_mode & S_IFMT, buf, len);
lib/libc/stdio/makebuf.c
188
return (st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ?
lib/libc/string/strmode.c
60
switch (mode & S_IFMT) {
lib/libc/time/getdate.c
82
if ((sb.st_mode & S_IFMT) != S_IFREG) {
lib/libc/time/localtime.c
65
# define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) /* Ancient UNIX. */
lib/libintl/gettext.c
344
if ((st.st_mode & S_IFMT) != S_IFREG)
lib/libintl/gettext.c
599
if ((st.st_mode & S_IFMT) != S_IFREG || st.st_size > GETTEXT_MMAP_MAX)
lib/libnpf/npf.c
275
switch (st.st_mode & S_IFMT) {
lib/libperfuse/ops.c
102
S_IFSOCK, S_IFIFO, S_IFMT,
lib/libperfuse/ops.c
105
#define IFTOVT(mode) (iftovt_tab[((mode) & S_IFMT) >> 12])
lib/libpuffs/subr.c
245
switch (mode & S_IFMT) {
lib/librumpuser/rumpuser_file.c
85
switch (sb.st_mode & S_IFMT) {
libexec/ftpd/cmds.c
737
switch (fe->stat->st_mode & S_IFMT) {
libexec/ftpd/cmds.c
770
cprintf(fd, "OS.unix=UNKNOWN(0%o)", fe->stat->st_mode & S_IFMT);
libexec/tftpd/tftpd.c
836
(stbuf.st_mode & S_IFMT) == S_IFREG) {
sbin/badsect/badsect.c
187
if (mknod(*argv, S_IFMT|S_IRUSR|S_IWUSR,
sbin/fdisk/fdisk.c
484
(sb.st_mode & S_IFMT) == S_IFDIR) {
sbin/gpt/biosboot.c
309
if ((gpt->sb.st_mode & S_IFMT) != S_IFREG &&
sbin/gpt/gpt.c
533
if ((gpt->sb.st_mode & S_IFMT) != S_IFREG) {
sbin/gpt/gpt.c
534
if ((gpt->sb.st_mode & S_IFMT) != S_IFCHR &&
sbin/gpt/gpt.c
535
(gpt->sb.st_mode & S_IFMT) != S_IFBLK) {
sbin/mknod/mknod.c
262
if ((sb.st_mode & S_IFMT) == (mode & S_IFMT)) {
sbin/mount_portal/puffs_portal.c
598
va->va_mode = (st.st_mode & ~S_IFMT);
sbin/resize_ffs/resize_ffs.c
181
smallio = ((stb.st_mode & S_IFMT) == S_IFCHR);
sbin/savecore/savecore.c
813
if ((sb.st_mode & S_IFMT) != type)
share/examples/refuse/icfs/icfs.c
363
add_entry(&tree, name, ((mode & S_IFMT) == S_IFCHR) ? 'c' : 'b');
share/examples/refuse/icfs/icfs.c
565
switch (st.st_mode & S_IFMT) {
sys/arch/ia64/stand/efi/libefi/efifs_ls.c
140
|| (sb.st_mode & S_IFMT) != S_IFDIR) {
sys/arch/ia64/stand/efi/libefi/efifs_ls.c
168
if ((sb.st_mode & S_IFMT) != S_IFDIR) {
sys/compat/linux/common/linux_file64.c
140
stx->stx_mode |= st->st_mode & S_IFMT;
sys/compat/linux/common/linux_file64.c
141
stx->stx_mode |= st->st_mode & ~S_IFMT;
sys/fs/efs/efs_subr.c
358
KASSERT((ei->ei_mode & S_IFMT) == S_IFDIR);
sys/fs/efs/efs_vfsops.c
401
switch (eip->ei_mode & S_IFMT) {
sys/fs/hfs/hfs_vnops.c
632
if ((bsd->file_mode & S_IFMT) == 0) {
sys/fs/hfs/hfs_vnops.c
644
if ((vap->va_mode & S_IFMT) == S_IFCHR
sys/fs/hfs/hfs_vnops.c
645
|| (vap->va_mode & S_IFMT) == S_IFBLK) {
sys/kern/vfs_subr.c
162
S_IFSOCK, S_IFIFO, S_IFMT,
sys/kern/vfs_syscalls.c
2462
switch (mode & S_IFMT) {
sys/kern/vfs_syscalls.c
2463
case S_IFMT: /* used by badsect to flag bad sectors */
sys/lib/libsa/ls.c
104
|| (sb.st_mode & S_IFMT) != S_IFDIR) {
sys/lib/libsa/ls.c
133
if ((sb.st_mode & S_IFMT) != S_IFDIR) {
sys/sys/vnode.h
389
#define IFTOVT(mode) (iftovt_tab[((mode) & S_IFMT) >> 12])
sys/ufs/chfs/chfs_inode.h
72
#define IFTOCHT(mode) (iftocht_tab[((mode) & S_IFMT) >> 12])
usr.bin/diff/diffreg.c
446
(stb1.st_mode & S_IFMT) != (stb2.st_mode & S_IFMT))
usr.bin/find/function.c
1789
return ((entry->fts_statp->st_mode & S_IFMT) == plan->m_data);
usr.bin/grep/util.c
205
s = sb.st_mode & S_IFMT;
usr.bin/mail/lex.c
231
switch (stb.st_mode & S_IFMT) {
usr.bin/make/dir.c
1314
if ((cst.cst_mode & S_IFMT) != S_IFDIR) {
usr.bin/rdist/docmd.c
464
switch (stb.st_mode & S_IFMT) {
usr.bin/rdist/server.c
1308
switch (st->st_mode & S_IFMT) {
usr.bin/rdist/server.c
382
switch (stb.st_mode & S_IFMT) {
usr.bin/rdist/server.c
727
switch (stb.st_mode & S_IFMT) {
usr.bin/stat/stat.c
360
(st.st_mode & S_IFMT) != S_IFLNK) {
usr.bin/stat/stat.c
958
switch (st->st_mode & S_IFMT) {
usr.bin/stat/stat.c
980
switch (st->st_mode & S_IFMT) {
usr.sbin/crash/crash.c
403
if ((sb.st_mode & S_IFMT) != S_IFREG) { /* XXX ksyms */
usr.sbin/dev_mkdb/dev_mkdb.c
244
compat_add_entry(st->st_rdev, st->st_mode & S_IFMT,
usr.sbin/dev_mkdb/dev_mkdb.c
247
cdb_add_entry(st->st_rdev, st->st_mode & S_IFMT,
usr.sbin/makefs/cd9660.c
1962
to->node->inode->st.st_mode = to->node->inode->st.st_mode & ~(S_IFMT);
usr.sbin/makefs/cd9660.c
2010
tfsnode->type &= ~(S_IFMT);
usr.sbin/makefs/chfs.c
202
if (!S_ISDIR(cur->type & S_IFMT)) {
usr.sbin/makefs/chfs/chfs_mkfs.c
217
fdirent.dtype = htole32(IFTOCHT(node->type & S_IFMT));
usr.sbin/makefs/ffs.c
907
ino, din, isfile, inode_type(DIP(din, mode) & S_IFMT),
usr.sbin/makefs/ffs.c
972
inode_type(DIP(din, mode) & S_IFMT),
usr.sbin/makefs/udf.c
717
switch (cur->type & S_IFMT) {
usr.sbin/makefs/udf.c
752
switch (cur->type & S_IFMT) {
usr.sbin/makefs/udf.c
923
switch (cur->type & S_IFMT) {
usr.sbin/makefs/v7fs/v7fs_estimate.c
137
switch (cur->type & S_IFMT) {
usr.sbin/makefs/v7fs/v7fs_populate.c
205
switch (cur->type & S_IFMT) {
usr.sbin/makefs/v7fs/v7fs_populate.c
207
VPRINTF("%x\n", cur->flags & S_IFMT);
usr.sbin/makefs/walk.c
268
if (S_ISSOCK(stbuf.st_mode & S_IFMT)) {
usr.sbin/makefs/walk.c
364
cur->type = stbuf->st_mode & S_IFMT;
usr.sbin/mtree/misc.c
287
switch (type & S_IFMT) {
usr.sbin/npf/npfctl/npfctl.c
358
if ((st.st_mode & S_IFMT) == S_IFSOCK) {
usr.sbin/pstat/pstat.c
510
type = ip->i_mode & S_IFMT;
usr.sbin/pstat/pstat.c
544
type = dip.e2di_mode & S_IFMT;
usr.sbin/sysinst/util.c
285
return (stat(path, &st) == 0 && (st.st_mode & S_IFMT) == mode);
usr.sbin/tcpdchk/tcpdchk.c
48
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
usr.sbin/tcpdmatch/tcpdmatch.c
47
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)