Searched refs:st_mode (Results 226 - 250 of 568) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_open_file.c90 if (fstat(fileno(mine->f), &st) == 0 && S_ISREG(st.st_mode)) {
/freebsd-11-stable/contrib/binutils/binutils/
H A Dbucomm.c382 mode_string (buf.st_mode, modebuf);
525 else if (! S_ISREG (statbuf.st_mode))
/freebsd-11-stable/contrib/apr/file_io/unix/
H A Dfilestat.c75 finfo->protection = apr_unix_mode2perms(info->st_mode);
76 finfo->filetype = filetype_from_mode(info->st_mode);
/freebsd-11-stable/lib/libcompat/4.3/
H A Drexec.c201 (stb.st_mode & 077) != 0) {
213 && (stb.st_mode & 077) != 0) {
/freebsd-11-stable/usr.sbin/cron/lib/
H A Dmisc.c204 if (!(sb.st_mode & S_IFDIR))
220 if (!(sb.st_mode & S_IFDIR))
/freebsd-11-stable/sbin/recoverdisk/
H A Drecoverdisk.c201 if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) {
/freebsd-11-stable/usr.sbin/fmtree/
H A Dspecspec.c65 printf(" mode=%o", n->st_mode);
145 if (FF(n1, n2, F_MODE, st_mode))
/freebsd-11-stable/contrib/mtree/
H A Dspecspec.c74 printf(" mode=%o", n->st_mode);
158 if (FF(n1, n2, F_MODE, st_mode))
H A Dspec.c360 appendfield(fp, pathlast, "mode=%#o", cur->st_mode);
522 REPLACE(st_mode);
601 ip->st_mode = getmode(m, 0);
/freebsd-11-stable/usr.bin/sed/
H A Dmain.c405 if (!S_ISREG(sb.st_mode))
428 fchmod(fileno(outfile), sb.st_mode & ALLPERMS);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_vdev.c428 * checking the st_mode of the file.
482 if (S_ISCHR(statbuf.st_mode)) {
483 statbuf.st_mode &= ~S_IFCHR;
484 statbuf.st_mode |= S_IFBLK;
492 if (wholedisk || S_ISBLK(statbuf.st_mode)) {
494 } else if (S_ISREG(statbuf.st_mode)) {
519 if (S_ISBLK(statbuf.st_mode) && !wholedisk) {
/freebsd-11-stable/usr.bin/diff/
H A Ddiffreg.c280 if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
281 return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
288 if (!S_ISREG(stb1.st_mode)) {
309 if (!S_ISREG(stb2.st_mode)) {
493 (stb1.st_mode & S_IFMT) != (stb2.st_mode & S_IFMT))
/freebsd-11-stable/lib/libc/gen/
H A Dfts.c894 sbp->st_mode = S_IFWHT;
913 if (S_ISLNK(sbp->st_mode))
922 if (S_ISDIR(sbp->st_mode)) {
951 if (S_ISLNK(sbp->st_mode))
953 if (S_ISREG(sbp->st_mode))
/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c133 FIELD(st_mode);
715 sb.st_mode = (sb.st_mode & ~ACCESSPERMS) | 0123;
734 CHECK(st_mode);
1020 ATF_CHECK(S_ISLNK(st.st_mode) != 0);
/freebsd-11-stable/contrib/tcsh/
H A Dsh.exec.c379 if (stat(f, &stb) == 0 && S_ISDIR(stb.st_mode))
706 if (fstat(dirp->dd_fd, &stb) < 0 || !S_ISDIR(stb.st_mode)) {
901 ((dir_ok && S_ISDIR(stbuf.st_mode)) ||
902 (S_ISREG(stbuf.st_mode) &&
904 (stbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) &&
H A Dsh.file.c283 switch (statb.st_mode & S_IFMT) {
289 S_ISDIR(statb.st_mode))
298 if (statb.st_mode & 0111)
/freebsd-11-stable/sbin/dump/
H A Dmain.c358 if ((stat(snapname, &sb) < 0) || !S_ISDIR(sb.st_mode)) {
395 if (S_ISDIR(sb.st_mode))
692 if (stat(cp, &sb) == 0 && (sb.st_mode & S_IFMT) == S_IFCHR)
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dglob.c537 pathend[-1] != CHAR_SEP) && (S_ISDIR(sb.st_mode)
538 || (S_ISLNK(sb.st_mode) &&
540 S_ISDIR(sb.st_mode)))) {
/freebsd-11-stable/usr.bin/catman/
H A Dcatman.c319 if (S_ISDIR(test_st.st_mode))
321 else if (S_ISREG(test_st.st_mode))
338 return lstat(path, &st) >= 0 && S_ISLNK(st.st_mode);
/freebsd-11-stable/contrib/mdocml/
H A Dcompat_fts.c525 if (S_ISDIR(sbp->st_mode)) {
554 if (S_ISLNK(sbp->st_mode))
556 if (S_ISREG(sbp->st_mode))
/freebsd-11-stable/usr.bin/at/
H A Dat.c495 if (!S_ISREG(buf.st_mode)
497 || !(S_IXUSR & buf.st_mode || atverify))
523 (S_IXUSR & buf.st_mode) ? "":"(done)",
/freebsd-11-stable/stand/libsa/
H A Dcd9660.c615 sb->st_mode = S_IRUSR | S_IRGRP | S_IROTH;
617 sb->st_mode |= S_IFDIR;
619 sb->st_mode |= S_IFREG;
/freebsd-11-stable/usr.sbin/bhyve/
H A Dblock_if.c487 if (S_ISCHR(sbuf.st_mode)) {
526 if (S_ISCHR(sbuf.st_mode)) {
548 bc->bc_ischr = S_ISCHR(sbuf.st_mode);
/freebsd-11-stable/usr.sbin/config/
H A Dmain.c188 if (stat(PREFIX, &buf) != 0 || !S_ISREG(buf.st_mode))
249 } else if (!S_ISDIR(buf.st_mode))
733 if (S_ISDIR(st.st_mode))
/freebsd-11-stable/sys/amd64/linux32/
H A Dlinux.h185 l_ushort st_mode; member in struct:l_newstat
204 l_ushort st_mode; member in struct:l_stat
223 l_uint st_mode; member in struct:l_stat64

Completed in 239 milliseconds

1234567891011>>