/freebsd/lib/libc/gen/ |
H A D | devname.c | 47 if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(type))) { in devname_r() 52 if (S_ISCHR(type)) { in devname_r() 61 S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); in devname_r()
|
H A D | ctermid.c | 58 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode)) in __ssp_real()
|
/freebsd/contrib/diff/lib/ |
H A D | file-type.h | 36 # undef S_ISCHR 58 # ifndef S_ISCHR 60 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro 62 # define S_ISCHR(m) 0 macro
|
H A D | file-type.c | 50 if (S_ISCHR (st->st_mode)) in file_type()
|
/freebsd/contrib/diff/src/ |
H A D | system.h | 275 # if HAVE_ST_RDEV && defined S_ISBLK && defined S_ISCHR 278 || (S_ISCHR ((s)->st_mode) && S_ISCHR ((t)->st_mode))) \
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | zfs_znode_impl.h | 68 #define Z_ISCHR(type) S_ISCHR(type) 70 #define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type))
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_ppsdev.c | 170 if (!S_ISCHR(sb.st_mode)) in findDevByDevId() 198 rc = S_ISCHR(psb->st_mode); in getCharDevId() 227 if ((-1 == stat(bufp, &sb)) || !S_ISCHR(sb.st_mode)) in getPpsTuple()
|
/freebsd/contrib/tcsh/ |
H A D | tc.os.h | 230 # undef S_ISCHR 243 # if !defined(S_ISCHR) && defined(S_IFCHR) 244 # define S_ISCHR(a) (((a) & S_IFMT) == S_IFCHR) macro
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_open_filename.c | 352 else if (S_ISCHR(st.st_mode) && in file_open() 359 else if ((S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) && in file_open() 366 else if (S_ISCHR(st.st_mode) && in file_open() 584 && !S_ISCHR(mine->st_mode) in file_close2()
|
H A D | archive_write_open_fd.c | 105 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open()
|
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
H A D | randombytes_sysrandom.c | 185 (S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode)) in randombytes_sysrandom_random_dev_open() 187 S_ISCHR(st.st_mode) in randombytes_sysrandom_random_dev_open()
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | stat.h | 50 if (S_ISCHR(sb->st_mode)) in fstat64()
|
/freebsd/usr.bin/mkuzip/ |
H A D | mkuz_insize.c | 69 } else if (S_ISCHR(sb.st_mode)) { in mkuz_get_insize()
|
/freebsd/contrib/libfido2/src/ |
H A D | hid_unix.c | 40 if (S_ISCHR(st.st_mode) == 0) { in fido_hid_unix_open()
|
/freebsd/sbin/ggate/shared/ |
H A D | ggate.c | 139 if (S_ISCHR(sb.st_mode)) { in g_gate_mediasize() 160 if (S_ISCHR(sb.st_mode)) { in g_gate_sectorsize()
|
/freebsd/usr.bin/find/ |
H A D | ls.c | 66 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | makebuf.c | 107 *couldbetty = S_ISCHR(st.st_mode);
|
/freebsd/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 71 !S_ISCHR(st.st_mode) && in fifolog_create()
|
/freebsd/contrib/elftoolchain/libpe/ |
H A D | libpe_init.c | 51 if (!S_ISREG(mode) && !S_ISCHR(mode) && !S_ISFIFO(mode) && in libpe_open_object()
|
/freebsd/contrib/unbound/compat/ |
H A D | getentropy_osx.c | 172 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode)) { in getentropy_urandom() 377 if (S_ISCHR(st.st_mode)) { in getentropy_fallback()
|
H A D | getentropy_solaris.c | 200 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode) || in getentropy_urandom() 399 if (S_ISCHR(st.st_mode)) { in getentropy_fallback()
|
/freebsd/sbin/fsck/ |
H A D | fsutil.c | 183 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
|
/freebsd/usr.sbin/bhyve/ |
H A D | block_if.c | 581 if (S_ISCHR(sbuf.st_mode)) { in blockif_open() 623 if (S_ISCHR(sbuf.st_mode)) { in blockif_open() 645 bc->bc_ischr = S_ISCHR(sbuf.st_mode); in blockif_open() 689 if (S_ISCHR(sb.st_mode)) { in blockif_resized()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mknod.c | 159 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()
|
/freebsd/lib/libufs/ |
H A D | type.c | 118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { in ufs_disk_fillout_blank()
|