| /linux/tools/include/nolibc/ |
| H A D | types.h | 29 #if !defined(S_IFMT) 37 #define S_IFMT 0170000 macro 39 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 40 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 41 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 42 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 43 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 44 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 45 #define S_ISSOCK(mode) (((mode) & 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) 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/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/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 | 140 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 214 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
| /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()
|
| H A D | dir.c | 535 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
| /linux/fs/smb/client/ |
| H A D | fscache.c | 137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
|
| /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/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/security/ |
| H A D | inode.c | 119 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
| /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/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/init/ |
| H A D | initramfs.c | 101 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 338 (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()
|
| H A D | xfs_inode_buf.c | 689 switch (mode & S_IFMT) { in xfs_dinode_verify() 751 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()
|
| /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()
|