/freebsd-current/contrib/wireguard-tools/ |
H A D | ipc-uapi-unix.h | 37 if (!S_ISSOCK(sbuf.st_mode)) 76 if (!S_ISSOCK(sbuf.st_mode))
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mkbusy.c | 128 if (stat(dname, &sbuf) != 0 || !(sbuf.st_mode & S_IFDIR)) 136 switch (sbuf.st_mode & S_IFMT) {
|
/freebsd-current/contrib/ntp/sntp/libopts/ |
H A D | file.c | 76 if ((stat(p, &sb) != 0) || (errno = EINVAL, ! S_ISDIR(sb.st_mode))) 86 || (errno = EINVAL, ! S_ISREG(sb.st_mode)) )
|
/freebsd-current/usr.sbin/rpcbind/ |
H A D | warmstart.c | 115 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) || 116 (sbuf.st_mode & S_IRWXO)) {
|
/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_extattr_freebsd.c | 108 assertEqualInt(st.st_mode & 0777, 0755); 120 assertEqualInt(st.st_mode & 0777, 0);
|
/freebsd-current/bin/ls/ |
H A D | print.c | 226 strmode(sp->st_mode, buf); 238 if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode)) 252 color_printed = colortype(sp->st_mode); 260 (void)printtype(sp->st_mode); 261 if (S_ISLNK(sp->st_mode)) 407 color_printed = colortype(sp->st_mode); 415 chcnt += printtype(sp->st_mode); 782 if (S_ISCHR(p->fts_statp->st_mode) || S_ISBLK(p->fts_statp->st_mode) || [all...] |
/freebsd-current/contrib/mtree/ |
H A D | verify.c | 152 if ((S_ISDIR(p->fts_statp->st_mode) 191 S_ISDIR(statbuf.st_mode)) 237 p->st_mode | nodetoino(p->type), 293 if (lchmod(path, p->st_mode))
|
/freebsd-current/contrib/ntp/libntp/ |
H A D | findconfig.c | 27 if (S_ISDIR(sbuf.st_mode)) {
|
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | kuserok.c | 66 if (S_ISDIR(st.st_mode)) { 74 if ((st.st_mode & (S_IWGRP | S_IWOTH)) != 0) { 126 if (!S_ISDIR(st.st_mode)) 131 if ((st.st_mode & (S_IWGRP | S_IWOTH)) != 0)
|
/freebsd-current/contrib/expat/xmlwf/ |
H A D | unixfilemap.c | 78 if (! S_ISREG(sb.st_mode)) {
|
/freebsd-current/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_project.c | 72 if (!S_ISREG(st->st_mode) && !S_ISDIR(st->st_mode)) { 78 if (!S_ISDIR(st->st_mode)) { 285 if (ret || !S_ISDIR(st.st_mode) || zpc->zpc_dironly ||
|
/freebsd-current/sys/contrib/openzfs/cmd/ |
H A D | zgenhostid.c | 108 S_ISREG(fstat.st_mode)) {
|
/freebsd-current/contrib/ntp/tests/libntp/ |
H A D | realpath.c | 32 retv = (sb.st_mode & S_IFMT) != S_IFLNK;
|
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_ppsdev.c | 170 if (!S_ISCHR(sb.st_mode)) 198 rc = S_ISCHR(psb->st_mode); 227 if ((-1 == stat(bufp, &sb)) || !S_ISCHR(sb.st_mode)) 359 if (-1 == fchmod(fdpps, sb.st_mode)) {
|
/freebsd-current/tools/regression/priv/ |
H A D | priv_io.c | 64 saved_perms = sb.st_mode & ALLPERMS;
|
/freebsd-current/contrib/libfido2/src/ |
H A D | hid_unix.c | 40 if (S_ISCHR(st.st_mode) == 0) {
|
/freebsd-current/lib/libc/iconv/ |
H A D | citrus_mmap.c | 69 if (!S_ISREG(st.st_mode)) {
|
/freebsd-current/sys/sys/ |
H A D | stat.h | 105 mode_t st_mode; /* inode protection mode */ member in struct:ostat 125 mode_t st_mode; /* inode protection mode */ member in struct:freebsd11_stat 161 mode_t st_mode; /* inode protection mode */ member in struct:stat 195 __uint32_t st_mode; /* inode protection mode */ member in struct:nstat
|
/freebsd-current/bin/pax/ |
H A D | tar.c | 386 arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode,sizeof(hd->mode),OCT) & 405 * the st_mode so -v printing will look correct. 411 arcn->sb.st_mode |= S_IFLNK; 416 * st_mode and st_nlink so -v printing will look better. 428 arcn->sb.st_mode |= S_IFREG; 435 arcn->sb.st_mode |= S_IFDIR; 453 arcn->sb.st_mode |= S_IFDIR; 462 arcn->sb.st_mode |= S_IFREG; 606 if (ul_oct((u_long)arcn->sb.st_mode, hd->mode, sizeof(hd->mode), 0) || 755 arcn->sb.st_mode [all...] |
H A D | cpio.c | 107 switch(arcn->sb.st_mode & C_IFMT) { 133 arcn->sb.st_mode = (arcn->sb.st_mode & 0xfff) | C_ISREG; 286 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), OCT); 308 if (((arcn->sb.st_mode&C_IFMT) != C_ISLNK)||(arcn->sb.st_size == 0)) { 424 ul_asc((u_long)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode), 565 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), HEX); 602 if (((arcn->sb.st_mode&C_IFMT) != C_ISLNK)||(arcn->sb.st_size == 0)) { 739 ul_asc((u_long)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode), 862 arcn->sb.st_mode [all...] |
/freebsd-current/lib/libveriexec/ |
H A D | veriexec_check.c | 53 if ((st.st_mode & mask) == 0)
|
/freebsd-current/sbin/fsck_ffs/ |
H A D | utilities.c | 72 switch(stblock.st_mode & S_IFMT) {
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_write_open_filename.c | 200 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || 201 S_ISFIFO(st.st_mode)) 214 if (S_ISREG(st.st_mode))
|
/freebsd-current/usr.sbin/makefs/ |
H A D | walk.c | 127 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { 147 S_ISDIR(stbuf.st_mode)) { 156 inode_type(stbuf.st_mode), path, 227 cur->type = stbuf->st_mode & S_IFMT; 433 stbuf.st_mode = nodetoino(curnode->type); 497 dirnode->inode->st.st_mode & ALLPERMS, specnode->st_mode); 498 dirnode->inode->st.st_mode &= ~ALLPERMS; 499 dirnode->inode->st.st_mode |= (specnode->st_mode [all...] |
/freebsd-current/contrib/lib9p/backend/ |
H A D | fs.c | 476 if (!S_ISDIR(st->st_mode)) 535 if (!S_ISDIR(st->st_mode)) 608 s->mode = buf->st_mode & 0777; 610 if (S_ISDIR(buf->st_mode)) 613 if (S_ISLNK(buf->st_mode) && dotu) 616 if (S_ISCHR(buf->st_mode) || S_ISBLK(buf->st_mode)) 619 if (S_ISSOCK(buf->st_mode)) 622 if (S_ISFIFO(buf->st_mode)) 653 if (S_ISLNK(buf->st_mode)) { [all...] |