/linux/tools/perf/trace/beauty/include/uapi/linux/ |
H A D | stat.h | 9 #define S_IFMT 00170000 macro 21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/linux/tools/include/uapi/linux/ |
H A D | stat.h | 9 #define S_IFMT 00170000 macro 21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/linux/include/uapi/linux/ |
H A D | stat.h | 9 #define S_IFMT 00170000 macro 21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
H A D | gfs2_ondisk.h | 229 #define DT2IF(dt) (((dt) << 12) & S_IFMT) 230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
|
/linux/tools/include/nolibc/ |
H A D | types.h | 28 #if !defined(S_IFMT) 36 #define S_IFMT 0170000 macro 38 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 39 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 40 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 41 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 42 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 43 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 44 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/linux/include/linux/ |
H A D | fs_types.h | 30 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) 31 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
|
/linux/samples/vfs/ |
H A D | test-statx.c | 90 switch (stx->stx_mode & S_IFMT) { in dump_statx() 99 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); in dump_statx() 113 switch (stx->stx_mode & S_IFMT) { in dump_statx()
|
/linux/fs/smb/client/ |
H A D | reparse.h | 52 switch (mode & S_IFMT) { in reparse_mode_nfs_type() 64 switch (mode & S_IFMT) { in reparse_mode_wsl_tag()
|
H A D | fscache.c | 137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | profiler.inc.h | 23 #define S_IFMT 00170000 macro 34 #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) 35 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) 36 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) 37 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) 38 #define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO) 39 #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
|
/linux/fs/xfs/ |
H A D | xfs_symlink.c | 96 .mode = S_IFLNK | (mode & ~S_IFMT), in xfs_symlink() 291 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
|
/linux/fs/nfsd/ |
H A D | nfsproc.c | 344 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 345 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 350 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 377 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 378 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
|
/linux/fs/overlayfs/ |
H A D | namei.c | 464 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 465 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 692 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 697 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 828 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 829 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/linux/security/tomoyo/ |
H A D | tomoyo.c | 232 switch (mode & S_IFMT) { in tomoyo_path_mknod() 244 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/linux/fs/erofs/ |
H A D | inode.c | 138 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 212 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
/linux/fs/coda/ |
H A D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
H A D | dir.c | 543 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/linux/fs/efivarfs/ |
H A D | inode.c | 34 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
/linux/fs/nfs/ |
H A D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
|
/linux/fs/fat/ |
H A D | file.c | 436 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode() 454 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
|
/linux/fs/jffs2/ |
H A D | dir.c | 265 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 735 rd->type = (mode & S_IFMT) >> 12; in jffs2_mknod() 815 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
|
/linux/security/ |
H A D | inode.c | 116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
/linux/init/ |
H A D | initramfs.c | 97 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 336 (st.mode ^ fmode) & S_IFMT) { in clean_path()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 250 switch (inode->i_mode & S_IFMT) { in xfs_iformat_data_fork() 676 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
|
/linux/fs/exfat/ |
H A D | file.c | 116 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode() 138 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
|