| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | sys-stat-macros.h | 13 #define S_IFMT 0170000 macro 25 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 26 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 27 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 28 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 29 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 30 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 31 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
| /freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
| H A D | stat.h | 40 #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/tcsh/ |
| H A D | tc.os.h | 214 # ifndef S_IFMT 215 # define S_IFMT 0170000 /* type of file */ macro 225 # endif /* S_IFMT */ 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) [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | statx.c | 112 #ifndef S_IFMT 113 #define S_IFMT 0170000 macro 257 printf("type: %u\n", stx.stx_mode & S_IFMT); in main() 260 printf("mode: %u\n", stx.stx_mode & ~S_IFMT); in main()
|
| H A D | mkbusy.c | 137 switch (sbuf.st_mode & S_IFMT) { in main()
|
| /freebsd/contrib/expat/xmlwf/ |
| H A D | readfilemap.c | 71 # ifndef S_IFMT 72 # define S_IFMT _S_IFMT macro 74 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
| /freebsd/lib/libc/stdio/ |
| H A D | makebuf.c | 97 *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/crypto/krb5/src/util/support/ |
| H A D | mkstemp.c | 56 #if defined S_IFMT 57 #define S_ISDIR(MODE) (((MODE) & S_IFMT) == S_IFDIR)
|
| /freebsd/sbin/mount_nullfs/ |
| H A D | mount_nullfs.c | 104 if ((target_stat.st_mode & S_IFMT) != in main() 105 (mountpoint_stat.st_mode & S_IFMT)) in main()
|
| /freebsd/contrib/lib9p/ |
| H A D | utils.c | 455 * the S_IFMT field. 461 { 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/usr.bin/whereis/ |
| H A D | whereis.c | 322 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/bin/chmod/ |
| H A D | chmod.c | 203 S_IFMT) | newmode, m2); in main() 206 (p->fts_statp->st_mode & S_IFMT) | in main()
|
| /freebsd/contrib/ntp/tests/libntp/ |
| H A D | realpath.c | 32 retv = (sb.st_mode & S_IFMT) != S_IFLNK; in isValidAbsPath()
|
| /freebsd/sbin/fsck_ffs/ |
| H A D | utilities.c | 72 switch(stblock.st_mode & S_IFMT) { in blockcheck()
|
| /freebsd/usr.sbin/makefs/ |
| H A D | mtree.c | 437 n->inode->st.st_mode = (n->inode->st.st_mode & ~S_IFMT) | n->type; in create_node() 594 st->st_mode &= S_IFMT; in read_mtree_keywords() 725 st->st_mode = (st->st_mode & ~S_IFMT) | node->type; in read_mtree_keywords() 764 st->st_mode = (st->st_mode & ~S_IFMT) | node->type; in read_mtree_keywords()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | e_os.h | 77 #ifndef S_IFMT 78 #define S_IFMT _S_IFMT macro
|
| /freebsd/libexec/flua/lfs/ |
| H A D | lfs.c | 258 mode = (sb->st_mode & S_IFMT); in PUSH_INTEGER() 288 snprintf(buf, sizeof(buf), "%o", sb->st_mode & ~S_IFMT); in push_st_permissions()
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | strmode.c | 46 switch (mode & S_IFMT) { in strmode()
|
| /freebsd/lib/libc/string/ |
| H A D | strmode.c | 40 switch (mode & S_IFMT) { in strmode()
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | makebuf.c | 149 if ((st.st_mode & S_IFMT) == S_IFREG &&
|
| /freebsd/contrib/ntp/sntp/libevent/sample/ |
| H A D | event-read-fifo.c | 110 if ((st.st_mode & S_IFMT) == S_IFREG) { in main()
|
| /freebsd/contrib/libevent/sample/ |
| H A D | event-read-fifo.c | 110 if ((st.st_mode & S_IFMT) == S_IFREG) { in main()
|
| /freebsd/crypto/krb5/src/util/profile/ |
| H A D | prof_file.c | 31 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) 341 if ((st.st_mode & S_IFMT) != S_IFREG) in profile_update_file_data_locked()
|
| /freebsd/contrib/libucl/src/ |
| H A D | ucl_internal.h | 108 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 109 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
| /freebsd/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_diff.c | 149 switch (what & S_IFMT) { in get_what() 305 fmode = fsb.zs_mode & S_IFMT; in write_inuse_diffs_one() 306 tmode = tsb.zs_mode & S_IFMT; in write_inuse_diffs_one()
|