| /src/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 ctermid()
|
| /src/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | zfs_znode_impl.h | 69 #define Z_ISCHR(type) S_ISCHR(type) 71 #define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type))
|
| /src/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()
|
| /src/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
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_read_open_filename.c | 358 else if (S_ISCHR(st.st_mode) && in file_open() 365 else if ((S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) && in file_open() 372 else if (S_ISCHR(st.st_mode) && in file_open() 616 && !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()
|
| /src/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()
|
| /src/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
| H A D | stat.h | 51 if (S_ISCHR(sb->st_mode)) in fstat64()
|
| /src/usr.bin/mkuzip/ |
| H A D | mkuz_insize.c | 69 } else if (S_ISCHR(sb.st_mode)) { in mkuz_get_insize()
|
| /src/lib/libutil/ |
| H A D | mntopts.c | 183 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) in getmntpoint() 209 if (S_ISCHR(mntdevstat.st_mode) && in getmntpoint()
|
| /src/contrib/libfido2/src/ |
| H A D | hid_unix.c | 40 if (S_ISCHR(st.st_mode) == 0) { in fido_hid_unix_open()
|
| /src/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()
|
| /src/usr.bin/find/ |
| H A D | ls.c | 66 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
|
| /src/contrib/sendmail/libsm/ |
| H A D | makebuf.c | 107 *couldbetty = S_ISCHR(st.st_mode);
|
| /src/usr.sbin/fifolog/lib/ |
| H A D | fifolog_create.c | 71 !S_ISCHR(st.st_mode) && in fifolog_create()
|
| /src/contrib/elftoolchain/libpe/ |
| H A D | libpe_init.c | 51 if (!S_ISREG(mode) && !S_ISCHR(mode) && !S_ISFIFO(mode) && in libpe_open_object()
|
| /src/sbin/fsck/ |
| H A D | fsutil.c | 183 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_mknod.c | 159 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()
|
| /src/lib/libufs/ |
| H A D | type.c | 118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { in ufs_disk_fillout_blank()
|
| /src/contrib/elftoolchain/ar/ |
| H A D | util.c | 110 else if (S_ISCHR(m)) in bsdar_strmode()
|
| /src/crypto/krb5/src/plugins/kdb/db2/libdb2/include/ |
| H A D | db-int.h | 270 #define S_ISCHR(m) ((m & 0170000) == 0020000) /* char special */ macro
|