Home
last modified time | relevance | path

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

1234

/NextBSD/contrib/binutils/binutils/
HDfilemode.c150 #ifndef S_ISCHR
152 #define S_ISCHR(i) (((i) & S_IFMT) == S_IFCHR) macro
154 #define S_ISCHR(i) 0 macro
191 if (S_ISCHR (bits)) in ftypelet()
/NextBSD/lib/libc/gen/
HDdevname.c52 if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(dev))) { in devname_r()
57 if (S_ISCHR(type)) { in devname_r()
66 S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); in devname_r()
HDctermid.c58 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode)) in ctermid()
/NextBSD/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()
/NextBSD/contrib/gdb/gdb/
HDgdb_stat.h29 #undef S_ISCHR
43 #if !defined(S_ISCHR) && defined(S_IFCHR)
44 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
/NextBSD/contrib/libreadline/
HDposixstat.h31 # undef S_ISCHR
83 #if defined (S_IFCHR) && !defined (S_ISCHR)
84 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) /* character device */ macro
/NextBSD/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))) \
/NextBSD/sbin/fsck/
HDfsutil.c146 if (!S_ISCHR(stchar.st_mode)) { in devcheck()
166 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) in getmntpt()
/NextBSD/contrib/tcsh/
HDtc.os.h231 # undef S_ISCHR
244 # if !defined(S_ISCHR) && defined(S_IFCHR)
245 # define S_ISCHR(a) (((a) & S_IFMT) == S_IFCHR) macro
/NextBSD/contrib/libarchive/libarchive/
HDarchive_read_open_filename.c316 else if (S_ISCHR(st.st_mode) && in file_open()
323 else if ((S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) && in file_open()
330 else if (S_ISCHR(st.st_mode) && in file_open()
542 && !S_ISCHR(mine->st_mode) in file_close2()
HDarchive_write_open_fd.c106 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open()
/NextBSD/crypto/openssl/crypto/rand/
HDrandfile.c205 # if defined(S_ISBLK) && defined(S_ISCHR) in RAND_write_file()
206 if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) { in RAND_write_file()
/NextBSD/sys/cddl/compat/opensolaris/sys/
HDstat.h49 if (S_ISCHR(sb->st_mode)) in fstat64()
/NextBSD/contrib/gcclibs/libcpp/
HDsystem.h303 #ifndef S_ISCHR
304 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
/NextBSD/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()
/NextBSD/contrib/libreadline/examples/rlfe/
HDos.h350 #if defined(S_IFCHR) && defined(S_IFMT) && !defined(S_ISCHR)
351 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) macro
/NextBSD/usr.bin/find/
HDls.c72 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
/NextBSD/usr.sbin/fifolog/lib/
HDfifolog_create.c70 !S_ISCHR(st.st_mode) && in fifolog_create()
/NextBSD/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.c185 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode)) { in getentropy_urandom()
389 if (S_ISCHR(st.st_mode)) { in getentropy_fallback()
/NextBSD/lib/libufs/
HDtype.c118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { in ufs_disk_fillout_blank()
/NextBSD/bin/dd/
HDdd.c260 if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) { in getfdtype()
268 if (S_ISCHR(sb.st_mode) && (type & D_TAPE) == 0) in getfdtype()
/NextBSD/contrib/elftoolchain/ar/
HDutil.c110 else if (S_ISCHR(m)) in bsdar_strmode()
/NextBSD/contrib/netbsd-tests/lib/libc/sys/
HDt_mknod.c159 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()

1234