Home
last modified time | relevance | path

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

123456

/openbmc/u-boot/fs/yaffs2/
H A Dyportenv.h220 #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 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)
/openbmc/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)
H A Dgfs2_ondisk.h229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/openbmc/u-boot/include/linux/
H A Dstat.h10 #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 Dtypes.h26 #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 Dmakedevs.c243 chmod(path, mode & ~S_IFMT); in add_new_directory()
268 if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) { in add_new_device()
272 path, (sb.st_mode & S_IFMT), (mode & S_IFMT)); in add_new_device()
276 …intf(stderr, " -- applying new mode 04%lo (old was 04%o)\n", mode & ~S_IFMT, sb.st_mode & ~S_IFMT); in add_new_device()
278 chmod(path, mode & ~S_IFMT); in add_new_device()
/openbmc/linux/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)
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/
H A D0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch77 } 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 Dvirtio-9p-test.c525 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()
/openbmc/linux/samples/vfs/
H A Dtest-statx.c90 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 Dreparse.h51 switch (mode & S_IFMT) { in reparse_mode_nfs_type()
62 switch (mode & S_IFMT) { in reparse_mode_wsl_tag()
/openbmc/qemu/util/
H A Ddrm.c59 if (ret < 0 || (st.st_mode & S_IFMT) != S_IFCHR) { in qemu_drm_rendernode_open()
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/klibc/files/
H A D0001-mkfifo-Implement-mkfifo.patch24 + return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0);
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h20 #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/linux/fs/erofs/
H A Dinode.c85 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
128 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
256 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
/openbmc/openbmc/poky/meta/recipes-bsp/acpid/acpid/
H A D0001-Replace-stat64-with-stat.patch30 return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
/openbmc/linux/fs/nfsd/
H A Dnfsproc.c313 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/linux/fs/overlayfs/
H A Dnamei.c460 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/qemu/hw/9pfs/
H A D9p-util-darwin.c117 if (S_ISREG(mode) || !(mode & S_IFMT)) { in qemu_mknodat()
/openbmc/linux/fs/exfat/
H A Dfile.c68 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode()
90 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
/openbmc/linux/security/tomoyo/
H A Dtomoyo.c231 switch (mode & S_IFMT) { in tomoyo_path_mknod()
243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/openbmc/u-boot/cmd/
H A Dcramfs.c50 switch (mode & S_IFMT) { in mkmodestr()
/openbmc/linux/fs/efivarfs/
H A Dinode.c30 switch (mode & S_IFMT) { in efivarfs_get_inode()
/openbmc/linux/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()

123456