/openbmc/u-boot/fs/yaffs2/ |
H A D | yportenv.h | 220 #ifndef S_IFMT 221 #define S_IFMT 0170000 macro 252 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) 253 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 254 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 255 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 256 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 257 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 258 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
/openbmc/linux/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)
|
/openbmc/linux/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)
|
H A D | gfs2_ondisk.h | 229 #define DT2IF(dt) (((dt) << 12) & S_IFMT) 230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
|
/openbmc/u-boot/include/linux/ |
H A D | stat.h | 10 #define S_IFMT 00170000 /* type of file */ macro 22 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 23 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 24 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 25 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 26 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 27 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 28 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/openbmc/linux/tools/include/nolibc/ |
H A D | types.h | 26 #if !defined(S_IFMT) 34 #define S_IFMT 0170000 macro 36 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 37 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 38 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 39 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 40 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 41 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 42 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/openbmc/openbmc/poky/meta/recipes-devtools/makedevs/makedevs/ |
H A D | makedevs.c | 247 chmod(path, mode & ~S_IFMT); in add_new_directory() 272 if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) { in add_new_device() 276 path, (sb.st_mode & S_IFMT), (mode & S_IFMT)); in add_new_device() 280 …intf(stderr, " -- applying new mode 04%lo (old was 04%o)\n", mode & ~S_IFMT, sb.st_mode & ~S_IFMT); in add_new_device() 282 chmod(path, mode & ~S_IFMT); in add_new_device()
|
/openbmc/linux/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)
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/ |
H A D | 0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch | 77 } else switch (e->sb.st_mode & S_IFMT) { 81 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 83 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 92 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 94 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 103 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 105 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 114 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 116 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 125 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, wrote, [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-9p-test.c | 525 g_assert((st.st_mode & S_IFMT) == S_IFDIR); in fs_create_dir() 544 g_assert((st.st_mode & S_IFMT) == S_IFDIR); in fs_unlinkat_dir() 568 g_assert((st.st_mode & S_IFMT) == S_IFREG); in fs_create_file() 585 g_assert((st.st_mode & S_IFMT) == S_IFREG); in fs_unlinkat_file() 604 g_assert((st.st_mode & S_IFMT) == S_IFREG); in fs_symlink_file() 628 g_assert((st.st_mode & S_IFMT) == S_IFREG); in fs_unlinkat_symlink() 653 g_assert((st_real.st_mode & S_IFMT) == S_IFREG); in fs_hardlink_file() 663 g_assert((st_link.st_mode & S_IFMT) == S_IFREG); in fs_hardlink_file() 681 g_assert((st_real.st_mode & S_IFMT) == S_IFREG); in fs_unlinkat_hardlink() 715 g_assert((st_file.st_mode & S_IFMT) == S_IFREG); in fs_use_after_unlink()
|
/openbmc/linux/samples/vfs/ |
H A D | test-statx.c | 90 switch (stx->stx_mode & S_IFMT) { in dump_statx() 99 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); in dump_statx() 113 switch (stx->stx_mode & S_IFMT) { in dump_statx()
|
/openbmc/linux/fs/smb/client/ |
H A D | reparse.h | 52 switch (mode & S_IFMT) { in reparse_mode_nfs_type() 63 switch (mode & S_IFMT) { in reparse_mode_wsl_tag()
|
/openbmc/linux/fs/erofs/ |
H A D | inode.c | 85 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 128 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 248 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
/openbmc/qemu/util/ |
H A D | drm.c | 59 if (ret < 0 || (st.st_mode & S_IFMT) != S_IFCHR) { in qemu_drm_rendernode_open()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | profiler.inc.h | 20 #define S_IFMT 00170000 macro 31 #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) 32 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) 33 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) 34 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) 35 #define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO) 36 #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/klibc/files/ |
H A D | 0001-mkfifo-Implement-mkfifo.patch | 24 + return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0);
|
/openbmc/linux/fs/nfsd/ |
H A D | nfsproc.c | 313 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 314 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 319 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 345 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 346 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
|
/openbmc/openbmc/poky/meta/recipes-bsp/acpid/acpid/ |
H A D | 0001-Replace-stat64-with-stat.patch | 30 return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
|
/openbmc/linux/fs/overlayfs/ |
H A D | namei.c | 460 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 461 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 676 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 681 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 812 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 813 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/openbmc/linux/security/tomoyo/ |
H A D | tomoyo.c | 231 switch (mode & S_IFMT) { in tomoyo_path_mknod() 243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/openbmc/linux/fs/exfat/ |
H A D | file.c | 68 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode() 90 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-util-darwin.c | 117 if (S_ISREG(mode) || !(mode & S_IFMT)) { in qemu_mknodat()
|
/openbmc/u-boot/cmd/ |
H A D | cramfs.c | 50 switch (mode & S_IFMT) { in mkmodestr()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_symlink.c | 237 S_IFLNK | (mode & ~S_IFMT), 1, 0, prid, in xfs_symlink() 415 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
|
/openbmc/linux/fs/efivarfs/ |
H A D | inode.c | 30 switch (mode & S_IFMT) { in efivarfs_get_inode()
|