Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 25 of 104) sorted by relevance

12345

/freebsd/contrib/diff/lib/
H A Dfile-type.h30 # ifndef S_IFMT
31 # define S_IFMT 0170000 macro
52 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
60 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
68 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
76 # define S_ISDOOR(m) (((m) & S_IFMT) == S_IFDOOR)
84 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
92 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
100 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
101 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
[all …]
/freebsd/contrib/tcsh/
H A Dtc.os.h214 # ifndef S_IFMT
215 # define S_IFMT 0170000 /* type of file */ macro
239 #ifdef S_IFMT
241 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR)
244 # define S_ISCHR(a) (((a) & S_IFMT) == S_IFCHR)
247 # define S_ISBLK(a) (((a) & S_IFMT) == S_IFBLK)
250 # define S_ISREG(a) (((a) & S_IFMT) == S_IFREG)
253 # define S_ISFIFO(a) (((a) & S_IFMT) == S_IFIFO)
256 # define S_ISNAM(a) (((a) & S_IFMT) == S_IFNAM)
259 # define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK)
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/
H A Dstat.h40 #ifndef S_IFMT
41 # define S_IFMT _S_IFMT macro
54 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
57 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
/freebsd/contrib/expat/xmlwf/
H A Dreadfilemap.c68 # ifndef S_IFMT
69 # define S_IFMT _S_IFMT macro
71 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
/freebsd/lib/libc/stdio/
H A Dmakebuf.c97 *couldbetty = (st.st_mode & S_IFMT) == S_IFCHR; in __swhatbuf()
110 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ? in __swhatbuf()
/freebsd/sbin/mount_nullfs/
H A Dmount_nullfs.c105 if ((target_stat.st_mode & S_IFMT) != in main()
106 (mountpoint_stat.st_mode & S_IFMT)) in main()
/freebsd/bin/chmod/
H A Dchmod.c203 S_IFMT) | newmode, m2); in main()
206 (p->fts_statp->st_mode & S_IFMT) | in main()
/freebsd/usr.bin/whereis/
H A Dwhereis.c322 if ((sb.st_mode & S_IFMT) != S_IFDIR) in defaults()
360 (sb.st_mode & S_IFMT) != S_IFDIR || in defaults()
452 (sb.st_mode & S_IFMT) == S_IFREG && in main()
565 (sb.st_mode & S_IFMT) == S_IFDIR) { in main()
/freebsd/crypto/openssl/
H A De_os.h77 # ifndef S_IFMT
78 # define S_IFMT _S_IFMT macro
/freebsd/sbin/fsck_ffs/
H A Dutilities.c72 switch(stblock.st_mode & S_IFMT) { in blockcheck()
/freebsd/contrib/lib9p/
H A Dutils.c461 { S_IFMT, S_IFIFO, "S_IFIFO" }, in l9p_describe_lperm()
462 { S_IFMT, S_IFCHR, "S_IFCHR" }, in l9p_describe_lperm()
463 { S_IFMT, S_IFDIR, "S_IFDIR" }, in l9p_describe_lperm()
464 { S_IFMT, S_IFBLK, "S_IFBLK" }, in l9p_describe_lperm()
465 { S_IFMT, S_IFREG, "S_IFREG" }, in l9p_describe_lperm()
466 { S_IFMT, S_IFLNK, "S_IFLNK" }, in l9p_describe_lperm()
467 { S_IFMT, S_IFSOCK, "S_IFSOCK" }, in l9p_describe_lperm()
/freebsd/crypto/openssh/openbsd-compat/
H A Dstrmode.c46 switch (mode & S_IFMT) { in strmode()
/freebsd/lib/libc/string/
H A Dstrmode.c40 switch (mode & S_IFMT) { in strmode()
/freebsd/contrib/ntp/tests/libntp/
H A Drealpath.c32 retv = (sb.st_mode & S_IFMT) != S_IFLNK; in isValidAbsPath()
/freebsd/libexec/flua/modules/
H A Dlfs.c257 mode = (sb->st_mode & S_IFMT); in PUSH_INTEGER()
287 snprintf(buf, sizeof(buf), "%o", sb->st_mode & ~S_IFMT); in push_st_permissions()
/freebsd/contrib/libucl/src/
H A Ducl_internal.h108 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
109 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/freebsd/contrib/sendmail/libsm/
H A Dmakebuf.c149 if ((st.st_mode & S_IFMT) == S_IFREG &&
/freebsd/contrib/ntp/sntp/libevent/sample/
H A Devent-read-fifo.c110 if ((st.st_mode & S_IFMT) == S_IFREG) { in main()
/freebsd/contrib/libevent/sample/
H A Devent-read-fifo.c110 if ((st.st_mode & S_IFMT) == S_IFREG) { in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkbusy.c136 switch (sbuf.st_mode & S_IFMT) { in main()
/freebsd/usr.sbin/makefs/
H A Dmtree.c437 n->inode->st.st_mode = (n->inode->st.st_mode & ~S_IFMT) | n->type; in create_node()
596 st->st_mode &= S_IFMT; in read_mtree_keywords()
724 st->st_mode = (st->st_mode & ~S_IFMT) | node->type; in read_mtree_keywords()
761 st->st_mode = (st->st_mode & ~S_IFMT) | node->type; in read_mtree_keywords()
/freebsd/contrib/sendmail/include/sm/
H A Dconf.h1385 # define S_IFMT _S_IFMT macro
2710 # define S_ISREG(foo) ((foo & S_IFMT) == S_IFREG)
2713 # define S_ISDIR(foo) ((foo & S_IFMT) == S_IFDIR)
2716 # define S_ISLNK(foo) ((foo & S_IFMT) == S_IFLNK)
2720 # define S_ISFIFO(foo) ((foo & S_IFMT) == S_IFIFO)
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_mtree.c1297 if (((st->st_mode & S_IFMT) == S_IFREG && in parse_file()
1300 ||((st->st_mode & S_IFMT) == S_IFLNK && in parse_file()
1308 ||((st->st_mode & S_IFMT) == S_IFCHR && in parse_file()
1312 ||((st->st_mode & S_IFMT) == S_IFBLK && in parse_file()
1315 ||((st->st_mode & S_IFMT) == S_IFDIR && in parse_file()
1318 ||((st->st_mode & S_IFMT) == S_IFIFO && in parse_file()
/freebsd/libexec/rbootd/
H A Dparseconf.c334 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
/freebsd/lib/libprocstat/
H A Dcommon_kvm.c133 vn->vn_mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR; in devfs_filestat()

12345