Home
last modified time | relevance | path

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

12345

/linux/tools/include/nolibc/
H A Dtypes.h29 #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 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/xfs/
H A Dxfs_symlink.c96 .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 Dtomoyo.c232 switch (mode & S_IFMT) { in tomoyo_path_mknod()
244 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/linux/fs/erofs/
H A Dinode.c140 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 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()
H A Ddir.c535 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/linux/fs/smb/client/
H A Dfscache.c137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
/linux/fs/nfs/
H A Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/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/security/
H A Dinode.c119 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux/fs/fat/
H A Dfile.c436 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 Dtests-scripts.c53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
/linux/init/
H A Dinitramfs.c101 if (((*p)->mode ^ mode) & S_IFMT) in find_link()
338 (st.mode ^ fmode) & S_IFMT) { in clean_path()
/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c250 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 Dxfs_inode_buf.c689 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 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()

12345