/linux-2.4.37.9/include/linux/ |
D | stat.h | 12 #define S_IFMT 00170000 macro 24 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 25 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 26 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 27 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 28 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 29 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 30 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_dir2.c | 158 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_isempty() 186 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_init() 211 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_createname() 264 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_lookup() 322 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_removename() 372 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_getdents() 425 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_replace() 476 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_canenter()
|
D | xfs_dir.c | 219 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_isempty() 241 ASSERT((dir->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_init() 260 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_createname() 324 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_canenter() 369 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_removename() 412 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_lookup() 458 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_getdents() 502 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_replace() 548 if ((INT_GET(dp->di_core.di_mode, ARCH_CONVERT) & S_IFMT) != S_IFDIR) { in xfs_dir_shortform_validate_ondisk()
|
D | xfs_rename.c | 329 if ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename() 343 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_rename() 451 if ((target_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
|
D | xfs_dfrag.c | 164 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { in xfs_swapext()
|
D | xfs_inode.c | 490 switch (ip->i_d.di_mode & S_IFMT) { in xfs_iformat() 512 if (unlikely((INT_GET(dip->di_core.di_mode, ARCH_CONVERT) & S_IFMT) == S_IFREG)) { in xfs_iformat() 1207 if ((pip->i_d.di_mode & S_ISGID) && (mode & S_IFMT) == S_IFDIR) { in xfs_ialloc() 1235 switch (mode & S_IFMT) { in xfs_ialloc() 1249 if ((mode & S_IFMT) == S_IFDIR) { in xfs_ialloc() 1314 if ((ip->i_d.di_mode & S_IFMT) != S_IFREG) in xfs_isize_check() 2350 ((ip->i_d.di_mode & S_IFMT) != S_IFREG)); in xfs_ifree() 2792 switch (ip->i_d.di_mode & S_IFMT) { in xfs_idestroy() 3424 if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { in xfs_iflush_int() 3434 } else if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_iflush_int()
|
D | xfs_vnodeops.c | 733 ip->i_d.di_mode &= S_IFMT; in xfs_setattr() 734 ip->i_d.di_mode |= vap->va_mode & ~S_IFMT; in xfs_setattr() 843 if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_setattr() 1010 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFLNK); in xfs_readlink() 1567 if ((((ip->i_d.di_mode & S_IFMT) == S_IFREG) && in xfs_release() 1628 ((ip->i_d.di_mode & S_IFMT) == S_IFREG)); in xfs_inactive() 1644 if ((((ip->i_d.di_mode & S_IFMT) == S_IFREG) && in xfs_inactive() 1707 } else if ((ip->i_d.di_mode & S_IFMT) == S_IFLNK) { in xfs_inactive() 3427 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (vap->va_mode&~S_IFMT), in xfs_symlink() 3823 if ((ip->i_d.di_mode & S_IFMT) == S_IFREG) { in xfs_reclaim()
|
/linux-2.4.37.9/fs/nfsd/ |
D | nfsproc.c | 248 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 249 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 254 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 279 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 280 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create() 316 if (inode && (type != (inode->i_mode & S_IFMT) || in nfsd_proc_create()
|
D | nfsfh.c | 681 if (type > 0 && (inode->i_mode & S_IFMT) != type) { in fh_verify() 684 else if ((inode->i_mode & S_IFMT) == S_IFDIR) in fh_verify() 690 if (type < 0 && (inode->i_mode & S_IFMT) == -type) { in fh_verify()
|
D | nfs3proc.c | 261 attr->ia_mode &= ~S_IFMT; in nfsd3_proc_create() 266 attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG; in nfsd3_proc_create()
|
D | nfs3xdr.c | 161 *p++ = htonl(nfs3_ftypes[(inode->i_mode & S_IFMT) >> 12]); in encode_fattr3() 200 *p++ = htonl(nfs3_ftypes[(fhp->fh_post_mode & S_IFMT) >> 12]); in encode_saved_post_attr()
|
D | nfsxdr.c | 149 int type = (inode->i_mode & S_IFMT); in encode_fattr()
|
/linux-2.4.37.9/fs/devpts/ |
D | inode.c | 105 sbi->mode = mode & ~S_IFMT; in devpts_parse_options()
|
/linux-2.4.37.9/fs/smbfs/ |
D | inode.c | 206 if ((inode->i_mode & S_IFMT) == (fattr.f_mode & S_IFMT)) { in smb_refresh_inode()
|
/linux-2.4.37.9/fs/ext2/ |
D | dir.c | 222 static unsigned char ext2_type_by_mode[S_IFMT >> S_SHIFT] = { 236 de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext2_set_de_type()
|
/linux-2.4.37.9/fs/ramfs/ |
D | inode.c | 115 switch (mode & S_IFMT) { in ramfs_get_inode()
|
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/ |
D | ramfs.c | 96 switch (mode & S_IFMT) { in hwgfs_get_inode()
|
/linux-2.4.37.9/fs/coda/ |
D | dir.c | 735 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/linux-2.4.37.9/fs/ncpfs/ |
D | inode.c | 96 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_update_inode2() 156 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_set_attr()
|
/linux-2.4.37.9/fs/efs/ |
D | inode.c | 140 switch (inode->i_mode & S_IFMT) { in efs_read_inode()
|
/linux-2.4.37.9/fs/nfs/ |
D | proc.c | 198 sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR; in nfs_proc_mknod()
|
D | inode.c | 999 if ((inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) in __nfs_refresh_inode()
|
/linux-2.4.37.9/drivers/isdn/avmb1/ |
D | capifs.c | 278 sbi->mode = mode & ~S_IFMT; in capifs_parse_options()
|
/linux-2.4.37.9/fs/jffs2/ |
D | dir.c | 460 rd->type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12; in jffs2_do_link() 911 rd->type = (mode & S_IFMT) >> 12; in jffs2_mknod()
|
/linux-2.4.37.9/fs/ext3/ |
D | namei.c | 223 static unsigned char ext3_type_by_mode[S_IFMT >> S_SHIFT] = { 237 de->file_type = ext3_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext3_set_de_type()
|