Searched refs:st_mode (Results 76 - 100 of 586) sorted by relevance

1234567891011>>

/freebsd-current/contrib/wireguard-tools/
H A Dipc-uapi-unix.h37 if (!S_ISSOCK(sbuf.st_mode))
76 if (!S_ISSOCK(sbuf.st_mode))
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkbusy.c128 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 Dfile.c76 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 Dwarmstart.c115 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) ||
116 (sbuf.st_mode & S_IRWXO)) {
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_extattr_freebsd.c108 assertEqualInt(st.st_mode & 0777, 0755);
120 assertEqualInt(st.st_mode & 0777, 0);
/freebsd-current/bin/ls/
H A Dprint.c226 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 Dverify.c152 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 Dfindconfig.c27 if (S_ISDIR(sbuf.st_mode)) {
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dkuserok.c66 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 Dunixfilemap.c78 if (! S_ISREG(sb.st_mode)) {
/freebsd-current/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_project.c72 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 Dzgenhostid.c108 S_ISREG(fstat.st_mode)) {
/freebsd-current/contrib/ntp/tests/libntp/
H A Drealpath.c32 retv = (sb.st_mode & S_IFMT) != S_IFLNK;
/freebsd-current/contrib/ntp/ntpd/
H A Dntp_ppsdev.c170 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 Dpriv_io.c64 saved_perms = sb.st_mode & ALLPERMS;
/freebsd-current/contrib/libfido2/src/
H A Dhid_unix.c40 if (S_ISCHR(st.st_mode) == 0) {
/freebsd-current/lib/libc/iconv/
H A Dcitrus_mmap.c69 if (!S_ISREG(st.st_mode)) {
/freebsd-current/sys/sys/
H A Dstat.h105 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 Dtar.c386 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 Dcpio.c107 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 Dveriexec_check.c53 if ((st.st_mode & mask) == 0)
/freebsd-current/sbin/fsck_ffs/
H A Dutilities.c72 switch(stblock.st_mode & S_IFMT) {
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_write_open_filename.c200 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 Dwalk.c127 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 Dfs.c476 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...]

Completed in 174 milliseconds

1234567891011>>