Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 25 of 45) sorted by relevance

12

/linux-2.4.37.9/include/linux/
Dstat.h12 #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/
Dxfs_dir2.c158 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()
Dxfs_dir.c219 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()
Dxfs_rename.c329 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()
Dxfs_dfrag.c164 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { in xfs_swapext()
Dxfs_inode.c490 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()
Dxfs_vnodeops.c733 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/
Dnfsproc.c248 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()
Dnfsfh.c681 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()
Dnfs3proc.c261 attr->ia_mode &= ~S_IFMT; in nfsd3_proc_create()
266 attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG; in nfsd3_proc_create()
Dnfs3xdr.c161 *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()
Dnfsxdr.c149 int type = (inode->i_mode & S_IFMT); in encode_fattr()
/linux-2.4.37.9/fs/devpts/
Dinode.c105 sbi->mode = mode & ~S_IFMT; in devpts_parse_options()
/linux-2.4.37.9/fs/smbfs/
Dinode.c206 if ((inode->i_mode & S_IFMT) == (fattr.f_mode & S_IFMT)) { in smb_refresh_inode()
/linux-2.4.37.9/fs/ext2/
Ddir.c222 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/
Dinode.c115 switch (mode & S_IFMT) { in ramfs_get_inode()
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/
Dramfs.c96 switch (mode & S_IFMT) { in hwgfs_get_inode()
/linux-2.4.37.9/fs/coda/
Ddir.c735 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/linux-2.4.37.9/fs/ncpfs/
Dinode.c96 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/
Dinode.c140 switch (inode->i_mode & S_IFMT) { in efs_read_inode()
/linux-2.4.37.9/fs/nfs/
Dproc.c198 sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR; in nfs_proc_mknod()
Dinode.c999 if ((inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) in __nfs_refresh_inode()
/linux-2.4.37.9/drivers/isdn/avmb1/
Dcapifs.c278 sbi->mode = mode & ~S_IFMT; in capifs_parse_options()
/linux-2.4.37.9/fs/jffs2/
Ddir.c460 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/
Dnamei.c223 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()

12