Home
last modified time | relevance | path

Searched full:s_ifmt (Results 1 – 25 of 113) sorted by relevance

12345

/freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/
H A Dsys-stat-macros.h13 #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 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/tcsh/
H A Dtc.os.h214 # 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 Dstatx.c112 #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 Dmkbusy.c137 switch (sbuf.st_mode & S_IFMT) { in main()
/freebsd/contrib/expat/xmlwf/
H A Dreadfilemap.c71 # 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 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/crypto/krb5/src/util/support/
H A Dmkstemp.c56 #if defined S_IFMT
57 #define S_ISDIR(MODE) (((MODE) & S_IFMT) == S_IFDIR)
/freebsd/sbin/mount_nullfs/
H A Dmount_nullfs.c104 if ((target_stat.st_mode & S_IFMT) != in main()
105 (mountpoint_stat.st_mode & S_IFMT)) in main()
/freebsd/contrib/lib9p/
H A Dutils.c455 * 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 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/bin/chmod/
H A Dchmod.c203 S_IFMT) | newmode, m2); in main()
206 (p->fts_statp->st_mode & S_IFMT) | in main()
/freebsd/contrib/ntp/tests/libntp/
H A Drealpath.c32 retv = (sb.st_mode & S_IFMT) != S_IFLNK; in isValidAbsPath()
/freebsd/sbin/fsck_ffs/
H A Dutilities.c72 switch(stblock.st_mode & S_IFMT) { in blockcheck()
/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()
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 De_os.h77 #ifndef S_IFMT
78 #define S_IFMT _S_IFMT macro
/freebsd/libexec/flua/lfs/
H A Dlfs.c258 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 Dstrmode.c46 switch (mode & S_IFMT) { in strmode()
/freebsd/lib/libc/string/
H A Dstrmode.c40 switch (mode & S_IFMT) { in strmode()
/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/crypto/krb5/src/util/profile/
H A Dprof_file.c31 #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 Ducl_internal.h108 #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 Dlibzfs_diff.c149 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()

12345