| /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/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/nfsd/ |
| H A D | nfsproc.c | 345 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 346 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 351 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 378 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 379 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
|
| H A D | vfs.c | 2072 type = d_inode(tfhp->fh_dentry)->i_mode & S_IFMT; in nfsd_link() 2215 type = d_inode(rd.old_dentry)->i_mode & S_IFMT; in nfsd_rename() 2218 type = d_inode(rd.new_dentry)->i_mode & S_IFMT; in nfsd_rename() 2330 type = d_inode(rdentry)->i_mode & S_IFMT; in nfsd_unlink()
|
| /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/coda/ |
| H A D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
| /linux/fs/smb/client/ |
| H A D | fscache.c | 133 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
|
| H A D | readdir.c | 90 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()
|
| H A D | link.c | 212 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink()
|
| /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 | 56 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
|
| /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/tools/perf/util/ |
| H A D | data.c | 259 return (st.st_mode & S_IFMT) == S_IFDIR; in open_file_read()
|
| H A D | drm_pmu.c | 426 if ((stat.st_mode & S_IFMT) != S_IFCHR || major(stat.st_rdev) != 226) in for_each_drm_fdinfo_in_dir()
|
| /linux/fs/squashfs/ |
| H A D | inode.c | 72 if (inode->i_mode & S_IFMT) in squashfs_new_inode()
|
| /linux/net/sunrpc/ |
| H A D | rpc_pipe.c | 476 switch (mode & S_IFMT) { in rpc_get_inode() 587 switch (files[i].mode & S_IFMT) { in rpc_populate()
|
| /linux/fs/xfs/ |
| H A D | xfs_iops.c | 734 switch (inode->i_mode & S_IFMT) { in xfs_vn_getattr() 1489 switch (inode->i_mode & S_IFMT) { in xfs_setup_iops()
|
| /linux/fs/crypto/ |
| H A D | keysetup.c | 93 inode->i_ino, (inode->i_mode & S_IFMT)); in select_encryption_mode()
|