Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 25 of 64) 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/fs/smb/client/
H A Dreparse.h53 switch (mode & S_IFMT) { in reparse_mode_nfs_type()
65 switch (mode & S_IFMT) { in reparse_mode_wsl_tag()
H A Dfscache.c137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
H A Dreaddir.c91 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 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/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/hostfs/
H A Dhostfs_kern.c528 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 Dinode.c34 switch (mode & S_IFMT) { in efivarfs_get_inode()
/linux/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
/linux/fs/erofs/
H A Dinode.c153 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 Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/linux/security/
H A Dinode.c119 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux/tools/perf/tests/
H A Dtests-scripts.c53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
/linux/fs/ramfs/
H A Dinode.c69 switch (mode & S_IFMT) { in ramfs_get_inode()
/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/fs/xfs/libxfs/
H A Dxfs_inode_buf.c693 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 Ddata.c259 return (st.st_mode & S_IFMT) == S_IFDIR; in open_file_read()
/linux/fs/xfs/
H A Dxfs_itable.c113 buf->bs_mode = inode->i_mode & S_IFMT; in xfs_bulkstat_one_int()

123