Searched refs:S_SHIFT (Results 1 – 2 of 2) sorted by relevance
/external/f2fs-tools/fsck/ |
D | f2fs.h | 577 #define S_SHIFT 12 macro 578 static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = { 579 [S_IFREG >> S_SHIFT] = F2FS_FT_REG_FILE, 580 [S_IFDIR >> S_SHIFT] = F2FS_FT_DIR, 581 [S_IFCHR >> S_SHIFT] = F2FS_FT_CHRDEV, 582 [S_IFBLK >> S_SHIFT] = F2FS_FT_BLKDEV, 583 [S_IFIFO >> S_SHIFT] = F2FS_FT_FIFO, 584 [S_IFSOCK >> S_SHIFT] = F2FS_FT_SOCK, 585 [S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK, 590 return f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; in map_de_type()
|
/external/erofs-utils/lib/ |
D | inode.c | 25 #define S_SHIFT 12 macro 26 static unsigned char erofs_ftype_by_mode[S_IFMT >> S_SHIFT] = { 27 [S_IFREG >> S_SHIFT] = EROFS_FT_REG_FILE, 28 [S_IFDIR >> S_SHIFT] = EROFS_FT_DIR, 29 [S_IFCHR >> S_SHIFT] = EROFS_FT_CHRDEV, 30 [S_IFBLK >> S_SHIFT] = EROFS_FT_BLKDEV, 31 [S_IFIFO >> S_SHIFT] = EROFS_FT_FIFO, 32 [S_IFSOCK >> S_SHIFT] = EROFS_FT_SOCK, 33 [S_IFLNK >> S_SHIFT] = EROFS_FT_SYMLINK, 38 return erofs_ftype_by_mode[(mode & S_IFMT) >> S_SHIFT]; in erofs_mode_to_ftype() [all …]
|