Symbol: S_IFMT
bin/chmod/chmod.c
191
S_IFMT) | newmode, m2);
bin/chmod/chmod.c
194
(p->fts_statp->st_mode & S_IFMT) |
bin/cp/cp.c
405
switch (curr->fts_statp->st_mode & S_IFMT) {
bin/ls/print.c
417
if ((mode & S_IFMT) == S_IFDIR) {
bin/ls/print.c
424
switch (mode & S_IFMT) {
bin/ls/print.c
497
switch (mode & S_IFMT) {
bin/mkdir/mkdir.c
179
else if ((sb.st_mode & S_IFMT) != S_IFDIR) {
bin/pax/ftree.c
429
switch(S_IFMT & arcn->sb.st_mode) {
crypto/openssh/defines.h
178
# define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
crypto/openssh/scp.c
1423
switch (stb.st_mode & S_IFMT) {
lib/libc/gen/devname.c
57
(type & S_IFMT) == S_IFCHR ? 'C' : 'B',
lib/libc/stdio/fseek.c
173
(st.st_mode & S_IFMT) != S_IFREG) {
lib/libc/stdio/makebuf.c
111
return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ?
lib/libc/stdio/makebuf.c
98
*couldbetty = (st.st_mode & S_IFMT) == S_IFCHR;
lib/libc/stdtime/getdate.c
84
if ((sb.st_mode & S_IFMT) != S_IFREG) {
lib/libc/string/strmode.c
42
switch (mode & S_IFMT) {
libexec/rbootd/parseconf.c
337
(statb.st_mode & S_IFMT) != S_IFREG)
libexec/tftpd/tftpd.c
504
if ((stbuf.st_mode & S_IFMT) != S_IFREG)
libexec/tftpd/tftpd.c
535
(stbuf.st_mode & S_IFMT) == S_IFREG) {
sbin/dump/main.c
584
if ((sb.st_mode & S_IFMT) == S_IFCHR)
sbin/dump/traverse.c
365
switch (dp->di_mode & S_IFMT) {
sbin/fsck/preen.c
293
switch(stblock.st_mode & S_IFMT) {
sbin/fsck/setup.c
94
if ((statb.st_mode & S_IFMT) != S_IFCHR &&
sbin/fsck/setup.c
95
(statb.st_mode & S_IFMT) != S_IFBLK) {
sbin/gpt/gpt.c
615
if ((sb.st_mode & S_IFMT) != S_IFREG) {
sbin/newfs/fscopy.c
142
switch(node->fs_St.st_mode & S_IFMT) {
sbin/newfs/fscopy.c
248
switch(node->fs_St.st_mode & S_IFMT) {
sbin/newfs/newfs.c
492
if ((st.st_mode & S_IFMT) != S_IFCHR && !mfs && !vflag)
sbin/tunefs/tunefs.c
111
if (fs == NULL && (st.st_mode & S_IFMT) == S_IFDIR)
sbin/vinum/v.c
124
if ((histstat.st_mode & S_IFMT) != S_IFREG) {
sys/kern/vfs_subr.c
104
S_IFSOCK, S_IFIFO, S_IFMT,
sys/kern/vfs_syscalls.c
2345
switch (mode & S_IFMT) {
sys/kern/vfs_syscalls.c
2346
case S_IFMT: /* used by badsect to flag bad sectors */
sys/sys/vnode.h
326
#define IFTOVT(mode) (iftovt_tab[((mode) & S_IFMT) >> 12])
sys/vfs/fuse/fuse_vnops.c
59
vap->va_mode = fat->mode & ~S_IFMT;
sys/vfs/isofs/cd9660/cd9660_vnops.c
176
if (ip->i_size == 0 && (vap->va_mode & S_IFMT) == S_IFLNK) {
sys/vfs/nfs/nfs_subs.c
701
if (vtyp == VNON || (vtyp == VREG && (vmode & S_IFMT) != 0))
usr.bin/diff/diffreg.c
429
(stb1.st_mode & S_IFMT) != (stb2.st_mode & S_IFMT))
usr.bin/find/function.c
1501
return (entry->fts_statp->st_mode & S_IFMT) == plan->m_data;
usr.bin/fstat/fstat.c
699
fsp->mode = (devfs_node.mode & ~S_IFMT) | S_IFCHR;
usr.bin/stat/stat.c
877
switch (st->st_mode & S_IFMT) {
usr.bin/stat/stat.c
897
switch (st->st_mode & S_IFMT) {
usr.bin/uudecode/uudecode.c
260
switch (st.st_mode & S_IFMT) {
usr.bin/whereis/whereis.c
320
if ((sb.st_mode & S_IFMT) != S_IFDIR)
usr.bin/whereis/whereis.c
339
(sb.st_mode & S_IFMT) != S_IFDIR ||
usr.bin/whereis/whereis.c
432
(sb.st_mode & S_IFMT) == S_IFREG &&
usr.bin/whereis/whereis.c
547
(sb.st_mode & S_IFMT) == S_IFDIR) {
usr.sbin/config/main.c
137
else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
usr.sbin/lpr/lpd/printjob.c
609
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 &&
usr.sbin/lpr/lpd/printjob.c
996
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
usr.sbin/lpr/lpr/lpr.c
709
if ((statb.st_mode & S_IFMT) == S_IFDIR) {
usr.sbin/makefs/cd9660.c
1889
to->node->inode->st.st_mode = to->node->inode->st.st_mode & ~(S_IFMT);
usr.sbin/makefs/cd9660.c
1937
tfsnode->type &= ~(S_IFMT);
usr.sbin/makefs/ffs.c
1028
inode_type(DIP(din, mode) & S_IFMT),
usr.sbin/makefs/ffs.c
962
ino, din, isfile, inode_type(DIP(din, mode) & S_IFMT),
usr.sbin/makefs/hammer2/hammer2_vnops.c
1798
.va_mode = mode & ~S_IFMT,
usr.sbin/makefs/hammer2/hammer2_vnops.c
2055
.va_mode = mode & ~S_IFMT,
usr.sbin/makefs/hammer2/hammer2_vnops.c
2164
.va_mode = mode & ~S_IFMT,
usr.sbin/makefs/hammer2/hammer2_vnops.c
2308
.va_mode = mode & ~S_IFMT,
usr.sbin/makefs/makefs.c
310
switch (sb.st_mode & S_IFMT) {
usr.sbin/makefs/mtree.c
439
n->inode->st.st_mode = (n->inode->st.st_mode & ~S_IFMT) | n->type;
usr.sbin/makefs/mtree.c
598
st->st_mode &= S_IFMT;
usr.sbin/makefs/mtree.c
726
st->st_mode = (st->st_mode & ~S_IFMT) | node->type;
usr.sbin/makefs/mtree.c
760
st->st_mode = (st->st_mode & ~S_IFMT) | node->type;
usr.sbin/makefs/walk.c
131
if (S_ISSOCK(stbuf.st_mode & S_IFMT)) {
usr.sbin/makefs/walk.c
231
cur->type = stbuf->st_mode & S_IFMT;
usr.sbin/mtree/misc.c
278
switch (type & S_IFMT) {
usr.sbin/pstat/pstat.c
506
type = ip->i_mode & S_IFMT;
usr.sbin/pstat/pstat.c
563
type = VT.va_mode & S_IFMT;
usr.sbin/watch/watch.c
249
if ((sb.st_mode & S_IFMT) != S_IFCHR)