Searched refs:S_IFMT (Results 1 - 25 of 108) sorted by relevance

12345

/linux-master/include/linux/
H A Dfs_types.h30 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT)
31 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
/linux-master/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)
142 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */
143 #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-master/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)
142 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */
143 #define STATX_MODE 0x00000002U /* Want/got stx_mode & ~S_IFMT */
[all...]
/linux-master/tools/include/nolibc/
H A Dtypes.h28 #if !defined(S_IFMT)
36 #define S_IFMT 0170000 macro
38 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
39 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
40 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
41 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
42 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
43 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
44 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
/linux-master/fs/smb/client/
H A Dreparse.h51 switch (mode & S_IFMT) {
62 switch (mode & S_IFMT) {
H A Dfscache.c22 u8 type; /* S_IFMT file type */
117 key.type = (inode->i_mode & S_IFMT) >> 12;
/linux-master/samples/vfs/
H A Dtest-statx.c90 switch (stx->stx_mode & S_IFMT) {
99 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT);
113 switch (stx->stx_mode & S_IFMT) {
/linux-master/fs/xfs/
H A Dxfs_symlink.c163 S_IFLNK | (mode & ~S_IFMT), 1, 0, prid,
291 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h22 #define S_IFMT 00170000 macro
33 #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
34 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
35 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR)
36 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK)
37 #define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO)
38 #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
/linux-master/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) {
H A Ddir.c542 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
/linux-master/fs/nfs/
H A Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT;
/linux-master/fs/efivarfs/
H A Dinode.c34 switch (mode & S_IFMT) {
/linux-master/security/tomoyo/
H A Dtomoyo.c232 switch (mode & S_IFMT) {
244 switch (mode & S_IFMT) {
/linux-master/fs/nfsd/
H A Dnfsproc.c313 type = attr->ia_mode & S_IFMT;
314 mode = attr->ia_mode & ~S_IFMT;
319 type = inode->i_mode & S_IFMT;
345 type = inode->i_mode & S_IFMT;
346 mode = inode->i_mode & ~S_IFMT;
/linux-master/fs/overlayfs/
H A Dnamei.c466 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
467 d_inode(origin)->i_mode & S_IFMT);
694 index, d_inode(index)->i_mode & S_IFMT, err);
699 index, d_inode(index)->i_mode & S_IFMT,
830 index, d_inode(index)->i_mode & S_IFMT,
831 d_inode(origin)->i_mode & S_IFMT);
/linux-master/fs/erofs/
H A Dinode.c118 switch (inode->i_mode & S_IFMT) {
229 switch (inode->i_mode & S_IFMT) {
/linux-master/security/
H A Dinode.c116 if (!(mode & S_IFMT))
/linux-master/fs/ramfs/
H A Dinode.c69 switch (mode & S_IFMT) {
/linux-master/fs/fat/
H A Dfile.c436 perm = *mode_ptr & ~(S_IFMT | mask);
454 *mode_ptr &= S_IFMT | perm;
/linux-master/fs/nilfs2/
H A Ddir.c243 nilfs_type_by_mode[S_IFMT >> S_SHIFT] = {
257 de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
/linux-master/fs/exfat/
H A Dfile.c117 perm = *mode_ptr & ~(S_IFMT | mask);
139 *mode_ptr &= S_IFMT | perm;
/linux-master/fs/xfs/libxfs/
H A Dxfs_inode_fork.c251 switch (inode->i_mode & S_IFMT) {
715 switch (VFS_I(ip)->i_mode & S_IFMT) {
H A Dxfs_inode_buf.c539 switch (mode & S_IFMT) {
601 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG)

Completed in 704 milliseconds

12345