Home
last modified time | relevance | path

Searched refs:S_IFCHR (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mknod.c68 ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1); in ATF_TC_BODY()
72 ATF_REQUIRE_ERRNO(ENAMETOOLONG, mknod(buf, S_IFCHR, 0) == -1); in ATF_TC_BODY()
75 ATF_REQUIRE_ERRNO(EFAULT, mknod((char *)-1, S_IFCHR, 0) == -1); in ATF_TC_BODY()
78 ATF_REQUIRE_ERRNO(ENOENT, mknod("/a/b/c/d/e/f/g", S_IFCHR, 0) == -1); in ATF_TC_BODY()
105 mknod("/etc/passwd", S_IFCHR, 0) == -1); in ATF_TC_BODY()
108 ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0); in ATF_TC_BODY()
111 ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1); in ATF_TC_BODY()
132 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFCHR, 0) == -1); in ATF_TC_BODY()
156 ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_mknodat.c75 mode_t mode = S_IFCHR|0600; in ATF_TC_BODY()
97 mode_t mode = S_IFCHR|0600; in ATF_TC_BODY()
117 mode_t mode = S_IFCHR|0600; in ATF_TC_BODY()
133 mode_t mode = S_IFCHR|0600; in ATF_TC_BODY()
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/
H A Dstat.h46 #ifndef S_IFCHR
47 # define S_IFCHR _S_IFCHR macro
/freebsd/crypto/openssh/
H A Dsshbuf-io.c46 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 && in sshbuf_load_fd()
65 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 && in sshbuf_load_fd()
/freebsd/sbin/mknod/
H A Dmknod.c113 mode |= S_IFCHR; in main()
134 mode = 0666 | S_IFCHR; in main()
/freebsd/contrib/diff/lib/
H A Dfile-type.h59 # ifdef S_IFCHR
60 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
/freebsd/contrib/file/src/
H A Dfsmagic.c148 sb->st_mode |= S_IFCHR; in file_fsmagic()
200 #ifdef S_IFCHR in file_fsmagic()
201 case S_IFCHR: in file_fsmagic()
/freebsd/lib/libprocstat/
H A Dcommon_kvm.c133 vn->vn_mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR; in devfs_filestat()
165 mode |= S_IFCHR; in nfs_filestat()
/freebsd/contrib/tcsh/
H A Dtc.os.h217 # define S_IFCHR 0020000 /* character special */ macro
243 # if !defined(S_ISCHR) && defined(S_IFCHR)
244 # define S_ISCHR(a) (((a) & S_IFMT) == S_IFCHR)
/freebsd/contrib/mtree/
H A Dmisc.c255 return S_IFCHR; in nodetoino()
290 case S_IFCHR: in inotype()
/freebsd/contrib/netbsd-tests/fs/lfs/
H A Dt_pr.c51 if (rump_sys_mknod("/mp/node", S_IFCHR | 0777, 0) == -1) in ATF_TC_BODY()
/freebsd/sbin/fsck_ffs/
H A Dutilities.c73 case S_IFCHR: in blockcheck()
/freebsd/crypto/openssh/openbsd-compat/
H A Dstrmode.c50 case S_IFCHR: /* character special */ in strmode()
/freebsd/lib/libc/string/
H A Dstrmode.c44 case S_IFCHR: /* character special */ in strmode()
/freebsd/lib/libc/stdio/
H A Dmakebuf.c97 *couldbetty = (st.st_mode & S_IFMT) == S_IFCHR; in __swhatbuf()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_cpio.c148 archive_entry_set_mode(ae, S_IFCHR | 0600); in test_format()
230 assertEqualInt((S_IFCHR | 0600), archive_entry_mode(ae)); in test_format()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkbusy.c141 case S_IFCHR: in main()
/freebsd/usr.sbin/pstat/
H A Dpstat.c335 (name = devname(xt->xt_dev, S_IFCHR)) == NULL) in ttyprt()
579 "/dev/%s", devname(xsw.xsw_dev, S_IFCHR)); in swapmode_sysctl()
/freebsd/usr.bin/lastcomm/
H A Dlastcomm.c252 lastname = devname(dev, S_IFCHR); in getdev()
/freebsd/lib/libkvm/
H A Dkvm_getswapinfo.c88 devname(dev, S_IFCHR) \
/freebsd/bin/pax/
H A Dftree.c448 case S_IFCHR: in next_file()
/freebsd/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs_vfsops.c82 va->va_mode |= S_IFCHR; in rtdev()
/freebsd/sys/sys/
H A Dstat.h269 #define S_IFCHR 0020000 /* character special */ macro
/freebsd/usr.sbin/watch/
H A Dwatch.c244 if ((sb.st_mode & S_IFMT) != S_IFCHR) in set_dev()
/freebsd/tools/test/stress2/testcases/openat/
H A Ddoat.c452 tests[8].tests[0].params[2].m = 0666 | S_IFCHR; in setup()
457 tests[8].tests[1].params[2].m = 0666 | S_IFCHR; in setup()
462 tests[8].tests[2].params[2].m = 0666 | S_IFCHR; in setup()

123