Searched refs:S_IFMT (Results 1 - 25 of 108) sorted by relevance
12345
/linux-master/include/linux/ |
H A D | fs_types.h | 30 #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 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) 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 D | gfs2_ondisk.h | 229 #define DT2IF(dt) (((dt) << 12) & S_IFMT) 230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
|
/linux-master/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) 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 D | types.h | 28 #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 D | reparse.h | 51 switch (mode & S_IFMT) { 62 switch (mode & S_IFMT) {
|
H A D | fscache.c | 22 u8 type; /* S_IFMT file type */ 117 key.type = (inode->i_mode & S_IFMT) >> 12;
|
/linux-master/samples/vfs/ |
H A D | test-statx.c | 90 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 D | xfs_symlink.c | 163 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 D | profiler.inc.h | 22 #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 D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) {
|
H A D | dir.c | 542 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
|
/linux-master/fs/nfs/ |
H A D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT;
|
/linux-master/fs/efivarfs/ |
H A D | inode.c | 34 switch (mode & S_IFMT) {
|
/linux-master/security/tomoyo/ |
H A D | tomoyo.c | 232 switch (mode & S_IFMT) { 244 switch (mode & S_IFMT) {
|
/linux-master/fs/nfsd/ |
H A D | nfsproc.c | 313 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 D | namei.c | 466 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 D | inode.c | 118 switch (inode->i_mode & S_IFMT) { 229 switch (inode->i_mode & S_IFMT) {
|
/linux-master/security/ |
H A D | inode.c | 116 if (!(mode & S_IFMT))
|
/linux-master/fs/ramfs/ |
H A D | inode.c | 69 switch (mode & S_IFMT) {
|
/linux-master/fs/fat/ |
H A D | file.c | 436 perm = *mode_ptr & ~(S_IFMT | mask); 454 *mode_ptr &= S_IFMT | perm;
|
/linux-master/fs/nilfs2/ |
H A D | dir.c | 243 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 D | file.c | 117 perm = *mode_ptr & ~(S_IFMT | mask); 139 *mode_ptr &= S_IFMT | perm;
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 251 switch (inode->i_mode & S_IFMT) { 715 switch (VFS_I(ip)->i_mode & S_IFMT) {
|
H A D | xfs_inode_buf.c | 539 switch (mode & S_IFMT) { 601 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG)
|
Completed in 704 milliseconds
12345