Home
last modified time | relevance | path

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

1234

/netbsd/src/external/gpl3/binutils/dist/binutils/
Dfilemode.c149 #ifndef S_ISCHR
151 #define S_ISCHR(i) (((i) & S_IFMT) == S_IFCHR) macro
153 #define S_ISCHR(i) 0 macro
190 if (S_ISCHR (bits)) in ftypelet()
/netbsd/src/external/gpl2/xcvs/dist/lib/
Dstat-macros.h34 # undef S_ISCHR
56 # ifndef S_ISCHR
58 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
60 # define S_ISCHR(m) 0 macro
/netbsd/src/external/gpl2/xcvs/dist/diff/
Dsystem.h43 #undef S_ISCHR
58 #if !defined(S_ISCHR) && defined(S_IFCHR)
59 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) macro
/netbsd/src/external/bsd/ntp/dist/ntpd/
Dntp_ppsdev.c172 if (!S_ISCHR(sb.st_mode)) in findDevByDevId()
200 rc = S_ISCHR(psb->st_mode); in getCharDevId()
229 if ((-1 == stat(bufp, &sb)) || !S_ISCHR(sb.st_mode)) in getPpsTuple()
/netbsd/src/external/bsd/libarchive/dist/libarchive/
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()
Darchive_write_open_fd.c105 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open()
/netbsd/src/sbin/dump/
Dsnapshot.c78 if (S_ISCHR(sb.st_mode)) { in snap_open()
116 } else if (S_ISCHR(sb.st_mode)) { in snap_open()
/netbsd/src/external/gpl2/xcvs/dist/src/
Dfilesubr.c31 #ifndef S_ISCHR
32 #define S_ISCHR(a) 0 macro
34 #define IS_DEVICE(sbp) (S_ISBLK((sbp)->st_mode) || S_ISCHR((sbp)->st_mode))
637 if (S_ISBLK (sb1.st_mode) || S_ISCHR (sb1.st_mode)) in xcmp()
/netbsd/src/external/gpl2/lvm2/dist/lib/activate/
Dfs.c116 if (!S_ISCHR(buf.st_mode)) in _rm_blks()
161 if (!S_ISLNK(buf.st_mode) && !S_ISCHR(buf.st_mode)) { in _mk_link()
207 if (!S_ISCHR(buf.st_mode)) { in _mk_link()
/netbsd/src/sbin/fsck/
Dfsutil.c224 if (S_ISCHR(stchar.st_mode)) { in blockcheck()
230 } else if (S_ISCHR(stblock.st_mode) && !retried) { in blockcheck()
/netbsd/src/sys/arch/x68k/stand/installboot/
Dinstallboot.c98 if (!S_ISCHR(st.st_mode)) in checktargetdev()
124 if (!S_ISCHR(st.st_mode)) in checkparttype()
/netbsd/src/external/gpl3/gcc/dist/libcpp/
Dsystem.h335 #ifndef S_ISCHR
336 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) macro
/netbsd/src/sbin/newfs_lfs/
Dnewfs.c313 if (!S_ISCHR(st.st_mode)) { in main()
384 if (!S_ISCHR(st.st_mode)) { in main()
/netbsd/src/usr.bin/find/
Dls.c77 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) in printlong()
/netbsd/src/usr.sbin/videomode/
Dvideomode.c100 if (!S_ISCHR(stb.st_mode) || !isatty(0)) in get_grf()
/netbsd/src/lib/libc/stdio/
Dmakebuf.c175 *couldbetty = S_ISCHR(st.st_mode); in __swhatbuf()
/netbsd/src/lib/libutil/
Dgetdiskrawname.c177 if (!S_ISCHR(st.st_mode)) { in getdiskcookedname()
Dpidlock.c193 if (!S_ISCHR(sb.st_mode)) { in checktty()
/netbsd/src/tests/lib/libc/sys/
Dt_mknod.c152 if (S_ISCHR(st.st_mode) == 0) in ATF_TC_BODY()
/netbsd/src/sbin/ccdconfig/
Dccdconfig.c369 if (!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) in checkdev()
383 if (!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) in pathtounit()
/netbsd/src/sbin/newfs_v7fs/
Dnewfs_v7fs.c135 if (!S_ISCHR(st.st_mode)) { in main()
/netbsd/src/bin/ls/
Dprint.c174 if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode)) in printlong()
528 if (S_ISCHR(p->fts_statp->st_mode) || S_ISBLK(p->fts_statp->st_mode) || in aclmode()
/netbsd/src/external/bsd/ppp/dist/pppd/
Dtty.c374 if (!S_ISCHR(statbuf.st_mode)) { in setdevname()
542 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) in tty_check_options()
558 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) in tty_check_options()
/netbsd/src/bin/ksh/
Dc_test.c268 #ifdef S_ISCHR
269 return test_stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode);
/netbsd/src/tests/include/
Dt_paths.c183 ATF_CHECK(S_ISBLK(m) != 0 || S_ISCHR(m) != 0); in ATF_TC_BODY()

1234