| /linux/tools/include/nolibc/ |
| H A D | types.h | 44 #if !defined(S_IFMT) 52 #define S_IFMT 0170000 54 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 55 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 56 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 57 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 58 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 59 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 60 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) 37 #define S_IFMT global() macro
|
| /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) 203 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */ 204 #define STATX_MODE 0x00000002U /* Want/got stx_mode & ~S_IFMT */ [all...] |
| 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/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/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/include/linux/ |
| H A D | fs_dirent.h | 33 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) 34 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
|
| /linux/samples/vfs/ |
| H A D | test-statx.c | 96 switch (stx->stx_mode & S_IFMT) { in dump_statx() 105 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); in dump_statx() 119 switch (stx->stx_mode & S_IFMT) { in dump_statx()
|
| /linux/fs/smb/client/ |
| H A D | reparse.h | 53 switch (mode & S_IFMT) { in reparse_mode_nfs_type() 65 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()
|
| H A D | readdir.c | 91 switch (fattr->cf_mode & S_IFMT) { in cifs_prime_dcache() 226 fattr->cf_mode &= ~S_IFMT; in cifs_fill_common_info() 269 switch (fattr->cf_mode & S_IFMT) { in cifs_posix_to_fattr()
|
| /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/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()
|
| H A D | audit.c | 120 switch (mode & S_IFMT) { in tomoyo_filetype()
|
| /linux/fs/hostfs/ |
| H A D | hostfs_kern.c | 528 switch (st->mode & S_IFMT) { in hostfs_inode_set() 540 init_special_inode(ino, st->mode & S_IFMT, rdev); in hostfs_inode_set() 565 (inode->i_mode & S_IFMT) == (st->mode & S_IFMT) && in hostfs_inode_test()
|
| /linux/fs/efivarfs/ |
| H A D | inode.c | 34 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
| /linux/fs/coda/ |
| H A D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
| /linux/fs/erofs/ |
| H A D | inode.c | 153 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 233 switch (inode->i_mode & S_IFMT) { in erofs_fill_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/security/ |
| H A D | inode.c | 119 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
| /linux/tools/perf/tests/ |
| H A D | tests-scripts.c | 53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 69 switch (mode & S_IFMT) { in ramfs_get_inode()
|
| /linux/fs/xfs/scrub/ |
| H A D | inode_repair.c | 651 switch (mode & S_IFMT) { in xrep_dinode_size() 1051 switch (mode & S_IFMT) { in xrep_dinode_check_dfork() 1167 switch (mode & S_IFMT) { in xrep_dinode_zap_dfork() 1187 switch (mode & S_IFMT) { in xrep_dinode_zap_dfork()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_inode_buf.c | 693 switch (mode & S_IFMT) { in xfs_dinode_verify() 755 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()
|
| /linux/tools/perf/util/ |
| H A D | data.c | 259 return (st.st_mode & S_IFMT) == S_IFDIR; in open_file_read()
|
| /linux/fs/xfs/ |
| H A D | xfs_itable.c | 113 buf->bs_mode = inode->i_mode & S_IFMT; in xfs_bulkstat_one_int()
|