Home
last modified time | relevance | path

Searched refs:S_IFCHR (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/
Duser_tmod.c92 (S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | in tmodopen()
105 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) { in tmodopen()
111 (S_IFCHR | S_IRUSR | S_IWUSR | in tmodopen()
/third_party/mesa3d/src/drm-shim/
Ddrm_shim.c335 st->st_mode = S_IFCHR; in __xstat()
369 st->st_mode = S_IFCHR; in __xstat64()
386 st->st_mode = S_IFCHR; in __fxstat()
402 st->st_mode = S_IFCHR; in __fxstat64()
437 stat_buf->st_mode = S_IFCHR; in stat()
470 stat_buf->st_mode = S_IFCHR; in stat64()
486 stat_buf->st_mode = S_IFCHR; in fstat()
502 stat_buf->st_mode = S_IFCHR; in fstat64()
/third_party/ltp/testcases/kernel/device-drivers/usb/user_usb/
Duser_tusb.c73 (S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | in tusbopen()
86 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) { in tusbopen()
92 (S_IFCHR | S_IRUSR | S_IWUSR | in tusbopen()
/third_party/python/Lib/
Dstat.py37 S_IFCHR = 0o020000 # character device variable
56 return S_IFMT(mode) == S_IFCHR
134 (S_IFCHR, "c"),
/third_party/ltp/testcases/kernel/device-drivers/base/user_base/
Duser_tbase.c88 (S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | in tbaseopen()
101 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) { in tbaseopen()
107 (S_IFCHR | S_IRUSR | S_IWUSR | in tbaseopen()
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/
Duser_tagp.c88 (S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | in tagpopen()
101 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) { in tagpopen()
107 (S_IFCHR | S_IRUSR | S_IWUSR | in tagpopen()
/third_party/toybox/toys/lsb/
Dmknod.c39 mode_t modes[] = {S_IFIFO, S_IFCHR, S_IFCHR, S_IFBLK}; in mknod_main()
/third_party/ltp/testcases/kernel/device-drivers/drm/user_space/
Duser_tdrm.c86 (S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | in tdrmopen()
99 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) { in tdrmopen()
105 (S_IFCHR | S_IRUSR | S_IWUSR | in tdrmopen()
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/ndk_musl_include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/porting/linux/user/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/musl/porting/uniproton/kernel/include/sys/
Dstat.h32 #define S_IFCHR 0020000 macro
45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/libwebsockets/win32port/dirent/
Ddirent-win32.h62 #if !defined(S_IFCHR)
63 # define S_IFCHR _S_IFCHR macro
173 #define DT_CHR S_IFCHR
203 # define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
/third_party/node/deps/uvwasi/src/
Duv_mapping.c19 #if !defined(S_ISCHR) && defined(S_IFMT) && defined(S_IFCHR)
20 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
/third_party/toybox/toys/pending/
Dmdev.c60 type = path[5]=='c' ? S_IFCHR : S_IFBLK; in make_device()
67 type = strcmp(temp, "block") ? S_IFCHR : S_IFBLK; in make_device()
/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod01.c57 S_IFCHR | 0777, /* character special with mode 0777 */
Dmknod07.c59 #define CHR_MODE (S_IFCHR | S_IRUSR | S_IWUSR)
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dtypes.rs271 CharacterDevice = linux_raw_sys::general::S_IFCHR as isize,
291 linux_raw_sys::general::S_IFCHR => Self::CharacterDevice, in from_raw_mode()
306 Self::CharacterDevice => linux_raw_sys::general::S_IFCHR, in as_raw_mode()
/third_party/ltp/testcases/kernel/syscalls/getxattr/
Dgetxattr02.c144 if (mknod(CHR, S_IFCHR | 0777, dev) == -1) in setup()
/third_party/musl/libc-test/src/api/
Dftw.c38 C(S_IFCHR) in f()
/third_party/selinux/libselinux/utils/
Dselabel_lookup_best_match.c39 return S_IFCHR; in string_to_mode()
/third_party/toybox/toys/other/
Dmakedevs.c81 } else mode |= (mode_t[]){S_IFIFO, S_IFCHR, S_IFBLK, 0, 0}[i];

12345