Home
last modified time | relevance | path

Searched refs:S_ISCHR (Results 1 – 25 of 73) sorted by relevance

123

/external/curl/src/
Dtool_doswin.c47 #ifndef S_ISCHR
49 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
51 # define S_ISCHR(m) (0) /* cannot tell if file is a device */ macro
564 if(base && ((stat(base, &st_buf)) == 0) && (S_ISCHR(st_buf.st_mode))) { in rename_if_reserved_dos_device_name()
/external/fsck_msdos/
Dfsutil.c150 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
171 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) in getmntpt()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dlstat.cpp14 assert(S_ISCHR(st.st_mode)); in main()
Ddevname.cpp14 assert((name = devname(st.st_rdev, S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK))); in main()
Ddevname_r.cpp18 type = S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK; in main()
/external/igt-gpu-tools/lib/
Digt_device.c111 igt_fail_on(fstat(fd, &st) || !S_ISCHR(st.st_mode)); in igt_device_get_card_index()
/external/ltp/testcases/kernel/syscalls/mknod/
Dmknod01.c84 if (S_ISCHR(tcases[i])) in main()
/external/python/cpython2/Lib/
Dstat.py43 def S_ISCHR(mode): function
/external/libdrm/libkms/
Dlinux.c78 if (!S_ISCHR(buffer.st_mode)) in linux_name_from_sysfs()
/external/kernel-headers/original/uapi/linux/
Dstat.h24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
/external/python/cpython3/Modules/
D_stat.c285 stat_S_ISFUNC(S_ISCHR,
359 if (S_ISCHR(mode)) return 'c'; in filetype()
/external/python/cpython3/Include/
Dpyport.h262 #ifndef S_ISCHR
263 #define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR) macro
/external/vboot_reference/futility/
Dfile_type.c110 } else if (S_ISCHR(sb.st_mode)) { in futil_file_type()
/external/e2fsprogs/lib/blkid/
DblkidP.h164 return S_ISBLK(mode) || S_ISCHR(mode); in blkidP_is_disk_device()
/external/python/cpython3/Lib/
Dstat.py54 def S_ISCHR(mode): function
/external/toybox/toys/posix/
Dls.c147 if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) { in entrylen()
240 else if (S_ISBLK(mode) || S_ISCHR(mode)) color = 256+33; in color_from_mode()
438 if (!zap && (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode))) in listfiles()
/external/e2fsprogs/lib/ext2fs/
Dext2fsP.h23 return S_ISBLK(mode) || S_ISCHR(mode); in ext2fsP_is_disk_device()
/external/ppp/pppd/
Dtty.c320 if (!S_ISCHR(statbuf.st_mode)) {
493 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) in tty_check_options()
509 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) in tty_check_options()
/external/e2fsprogs/lib/support/
Dplausible.c220 if (S_ISCHR(s.st_mode)) in check_plausibility()
/external/erofs-utils/fuse/
Dmain.c53 if (S_ISBLK(vi.i_mode) || S_ISCHR(vi.i_mode)) in erofsfuse_getattr()
/external/libdrm/
Dxf86drm.c2872 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) { in drmGetNodeTypeFromFd()
2938 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetMinorNameForFD()
2972 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetMinorNameForFD()
3015 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetMinorNameForFD()
3986 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in process_device()
4100 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetDevice2()
4152 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetDevice2()
4317 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetDeviceNameFromFd2()
4345 if (!drmNodeIsDRM(maj, min) || !S_ISCHR(sbuf.st_mode)) in drmGetDeviceNameFromFd2()
/external/selinux/libselinux/src/
Dstringrep.c208 if (S_ISCHR(m)) in mode_to_security_class()
/external/minijail/
Dsystem.c329 S_ISCHR(st_buf.st_mode))); in setup_mount_destination()
/external/e2fsprogs/misc/
De2fuzz.c144 S_ISCHR(inode.i_mode) || S_ISBLK(inode.i_mode) || in find_metadata_blocks()
/external/gptfdisk/
Ddiskio-unix.cc84 else if (S_ISCHR(st.st_mode)) in OpenForRead()

123