Home
last modified time | relevance | path

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

123

/linux/tools/include/nolibc/
H A Dtypes.h44 #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 Dstat.h9 #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 Dgfs2_ondisk.h229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/linux/tools/include/uapi/linux/
H A Dstat.h9 #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 Dstat.h9 #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 Dfs_dirent.h33 #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 Dtest-statx.c96 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 Dprofiler.inc.h23 #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 Dnfsproc.c345 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 Dvfs.c2072 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 Dtomoyo.c232 switch (mode & S_IFMT) { in tomoyo_path_mknod()
244 switch (mode & S_IFMT) { in tomoyo_path_mknod()
H A Daudit.c120 switch (mode & S_IFMT) { in tomoyo_filetype()
/linux/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
/linux/fs/smb/client/
H A Dfscache.c133 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
H A Dreaddir.c90 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 Dlink.c212 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink()
/linux/security/
H A Dinode.c119 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux/tools/perf/tests/
H A Dtests-scripts.c56 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
/linux/fs/xfs/scrub/
H A Dinode_repair.c651 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 Ddata.c259 return (st.st_mode & S_IFMT) == S_IFDIR; in open_file_read()
H A Ddrm_pmu.c426 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 Dinode.c72 if (inode->i_mode & S_IFMT) in squashfs_new_inode()
/linux/net/sunrpc/
H A Drpc_pipe.c476 switch (mode & S_IFMT) { in rpc_get_inode()
587 switch (files[i].mode & S_IFMT) { in rpc_populate()
/linux/fs/xfs/
H A Dxfs_iops.c734 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 Dkeysetup.c93 inode->i_ino, (inode->i_mode & S_IFMT)); in select_encryption_mode()

123