Home
last modified time | relevance | path

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

1234

/freebsd-14-stable/lib/libc/gen/
HDdevname.c49 if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(type))) { in devname_r()
54 if (S_ISCHR(type)) { in devname_r()
63 S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); in devname_r()
HDctermid.c57 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode)) in ctermid()
/freebsd-14-stable/contrib/diff/lib/
HDfile-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
HDfile-type.c50 if (S_ISCHR (st->st_mode)) in file_type()
/freebsd-14-stable/contrib/diff/src/
HDsystem.h275 # if HAVE_ST_RDEV && defined S_ISBLK && defined S_ISCHR
278 || (S_ISCHR ((s)->st_mode) && S_ISCHR ((t)->st_mode))) \
/freebsd-14-stable/contrib/ntp/ntpd/
HDntp_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-14-stable/sys/contrib/openzfs/include/os/linux/zfs/sys/
HDzfs_znode_impl.h68 #define Z_ISCHR(type) S_ISCHR(type)
70 #define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type))
/freebsd-14-stable/contrib/tcsh/
HDtc.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-14-stable/contrib/libarchive/libarchive/
HDarchive_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()
HDarchive_write_open_fd.c105 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open()
/freebsd-14-stable/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
HDrandombytes_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-14-stable/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
HDstat.h50 if (S_ISCHR(sb->st_mode)) in fstat64()
/freebsd-14-stable/usr.bin/mkuzip/
HDmkuz_insize.c69 } else if (S_ISCHR(sb.st_mode)) { in mkuz_get_insize()
/freebsd-14-stable/contrib/libfido2/src/
HDhid_unix.c40 if (S_ISCHR(st.st_mode) == 0) { in fido_hid_unix_open()
/freebsd-14-stable/sbin/ggate/shared/
HDggate.c139 if (S_ISCHR(sb.st_mode)) { in g_gate_mediasize()
160 if (S_ISCHR(sb.st_mode)) { in g_gate_sectorsize()
/freebsd-14-stable/usr.bin/find/
HDls.c71 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
/freebsd-14-stable/usr.sbin/fifolog/lib/
HDfifolog_create.c71 !S_ISCHR(st.st_mode) && in fifolog_create()
/freebsd-14-stable/contrib/sendmail/libsm/
HDmakebuf.c107 *couldbetty = S_ISCHR(st.st_mode);
/freebsd-14-stable/contrib/elftoolchain/libpe/
HDlibpe_init.c51 if (!S_ISREG(mode) && !S_ISCHR(mode) && !S_ISFIFO(mode) && in libpe_open_object()
/freebsd-14-stable/sbin/fsck/
HDfsutil.c183 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
/freebsd-14-stable/contrib/unbound/compat/
HDgetentropy_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()
HDgetentropy_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()
/freebsd-14-stable/contrib/elftoolchain/ar/
HDutil.c110 else if (S_ISCHR(m)) in bsdar_strmode()
/freebsd-14-stable/lib/libufs/
HDtype.c123 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { in ufs_disk_fillout_blank()
/freebsd-14-stable/contrib/netbsd-tests/lib/libc/sys/
HDt_mknod.c159 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()

1234