S_IFMT
S_IFMT) | newmode, m2);
(p->fts_statp->st_mode & S_IFMT) |
switch (curr->fts_statp->st_mode & S_IFMT) {
if ((mode & S_IFMT) == S_IFDIR) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
else if ((sb.st_mode & S_IFMT) != S_IFDIR) {
switch(S_IFMT & arcn->sb.st_mode) {
# define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
switch (stb.st_mode & S_IFMT) {
(type & S_IFMT) == S_IFCHR ? 'C' : 'B',
(st.st_mode & S_IFMT) != S_IFREG) {
return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ?
*couldbetty = (st.st_mode & S_IFMT) == S_IFCHR;
if ((sb.st_mode & S_IFMT) != S_IFREG) {
switch (mode & S_IFMT) {
(statb.st_mode & S_IFMT) != S_IFREG)
if ((stbuf.st_mode & S_IFMT) != S_IFREG)
(stbuf.st_mode & S_IFMT) == S_IFREG) {
if ((sb.st_mode & S_IFMT) == S_IFCHR)
switch (dp->di_mode & S_IFMT) {
switch(stblock.st_mode & S_IFMT) {
if ((statb.st_mode & S_IFMT) != S_IFCHR &&
(statb.st_mode & S_IFMT) != S_IFBLK) {
if ((sb.st_mode & S_IFMT) != S_IFREG) {
switch(node->fs_St.st_mode & S_IFMT) {
switch(node->fs_St.st_mode & S_IFMT) {
if ((st.st_mode & S_IFMT) != S_IFCHR && !mfs && !vflag)
if (fs == NULL && (st.st_mode & S_IFMT) == S_IFDIR)
if ((histstat.st_mode & S_IFMT) != S_IFREG) {
S_IFSOCK, S_IFIFO, S_IFMT,
switch (mode & S_IFMT) {
case S_IFMT: /* used by badsect to flag bad sectors */
#define IFTOVT(mode) (iftovt_tab[((mode) & S_IFMT) >> 12])
vap->va_mode = fat->mode & ~S_IFMT;
if (ip->i_size == 0 && (vap->va_mode & S_IFMT) == S_IFLNK) {
if (vtyp == VNON || (vtyp == VREG && (vmode & S_IFMT) != 0))
(stb1.st_mode & S_IFMT) != (stb2.st_mode & S_IFMT))
return (entry->fts_statp->st_mode & S_IFMT) == plan->m_data;
fsp->mode = (devfs_node.mode & ~S_IFMT) | S_IFCHR;
switch (st->st_mode & S_IFMT) {
switch (st->st_mode & S_IFMT) {
switch (st.st_mode & S_IFMT) {
if ((sb.st_mode & S_IFMT) != S_IFDIR)
(sb.st_mode & S_IFMT) != S_IFDIR ||
(sb.st_mode & S_IFMT) == S_IFREG &&
(sb.st_mode & S_IFMT) == S_IFDIR) {
else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 &&
if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
if ((statb.st_mode & S_IFMT) == S_IFDIR) {
to->node->inode->st.st_mode = to->node->inode->st.st_mode & ~(S_IFMT);
tfsnode->type &= ~(S_IFMT);
inode_type(DIP(din, mode) & S_IFMT),
ino, din, isfile, inode_type(DIP(din, mode) & S_IFMT),
.va_mode = mode & ~S_IFMT,
.va_mode = mode & ~S_IFMT,
.va_mode = mode & ~S_IFMT,
.va_mode = mode & ~S_IFMT,
switch (sb.st_mode & S_IFMT) {
n->inode->st.st_mode = (n->inode->st.st_mode & ~S_IFMT) | n->type;
st->st_mode &= S_IFMT;
st->st_mode = (st->st_mode & ~S_IFMT) | node->type;
st->st_mode = (st->st_mode & ~S_IFMT) | node->type;
if (S_ISSOCK(stbuf.st_mode & S_IFMT)) {
cur->type = stbuf->st_mode & S_IFMT;
switch (type & S_IFMT) {
type = ip->i_mode & S_IFMT;
type = VT.va_mode & S_IFMT;
if ((sb.st_mode & S_IFMT) != S_IFCHR)