Home
last modified time | relevance | path

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

1234

/freebsd/lib/libc/gen/
H A Ddevname.c47 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 Dctermid.c57 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode)) in ctermid()
/freebsd/contrib/diff/lib/
H A Dfile-type.h36 # 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 Dfile-type.c50 if (S_ISCHR (st->st_mode)) in file_type()
/freebsd/contrib/diff/src/
H A Dsystem.h275 # if HAVE_ST_RDEV && defined S_ISBLK && defined S_ISCHR
278 || (S_ISCHR ((s)->st_mode) && S_ISCHR ((t)->st_mode))) \
/freebsd/contrib/ntp/ntpd/
H A Dntp_ppsdev.c170 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/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_znode_impl.h75 #define Z_ISCHR(type) S_ISCHR(type)
77 #define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type))
/freebsd/contrib/tcsh/
H A Dtc.os.h230 # 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 Darchive_read_open_filename.c352 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 Darchive_write_open_fd.c105 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c185 (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 Dstat.h50 if (S_ISCHR(sb->st_mode)) in fstat64()
/freebsd/usr.bin/mkuzip/
H A Dmkuz_insize.c69 } else if (S_ISCHR(sb.st_mode)) { in mkuz_get_insize()
/freebsd/contrib/libfido2/src/
H A Dhid_unix.c40 if (S_ISCHR(st.st_mode) == 0) { in fido_hid_unix_open()
/freebsd/sbin/ggate/shared/
H A Dggate.c139 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 Dls.c66 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
/freebsd/contrib/sendmail/libsm/
H A Dmakebuf.c107 *couldbetty = S_ISCHR(st.st_mode);
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_create.c71 !S_ISCHR(st.st_mode) && in fifolog_create()
/freebsd/contrib/elftoolchain/libpe/
H A Dlibpe_init.c51 if (!S_ISREG(mode) && !S_ISCHR(mode) && !S_ISFIFO(mode) && in libpe_open_object()
/freebsd/sbin/fsck/
H A Dfsutil.c183 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
/freebsd/contrib/unbound/compat/
H A Dgetentropy_osx.c172 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 Dgetentropy_solaris.c200 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode) || in getentropy_urandom()
399 if (S_ISCHR(st.st_mode)) { in getentropy_fallback()
/freebsd/contrib/elftoolchain/ar/
H A Dutil.c110 else if (S_ISCHR(m)) in bsdar_strmode()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mknod.c159 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()
/freebsd/lib/libufs/
H A Dtype.c118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { in ufs_disk_fillout_blank()

1234