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

1234567891011>>

/freebsd-11-stable/contrib/bmake/
H A Drealpath.c175 if (S_ISLNK(sb.st_mode)) {
202 if (*q == '/' && !S_ISDIR(sb.st_mode)) {
/freebsd-11-stable/contrib/diff/lib/
H A Dfile-type.h152 # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM)
160 # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD)
/freebsd-11-stable/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-11-stable/usr.sbin/rpcbind/
H A Dwarmstart.c115 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) ||
116 (sbuf.st_mode & S_IRWXO)) {
/freebsd-11-stable/usr.bin/cmp/
H A Dcmp.c165 if (!S_ISREG(sb1.st_mode))
174 if (!S_ISREG(sb2.st_mode))
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_extattr_freebsd.c109 assertEqualInt(st.st_mode & 0777, 0755);
121 assertEqualInt(st.st_mode & 0777, 0);
/freebsd-11-stable/contrib/mtree/
H A Dverify.c152 if ((S_ISDIR(p->fts_statp->st_mode)
189 S_ISDIR(statbuf.st_mode))
235 p->st_mode | nodetoino(p->type),
291 if (lchmod(path, p->st_mode))
/freebsd-11-stable/contrib/ntp/libntp/
H A Dfindconfig.c27 if (S_ISDIR(sbuf.st_mode)) {
/freebsd-11-stable/bin/pax/
H A Dtar.c396 arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode,sizeof(hd->mode),OCT) &
420 * the st_mode so -v printing will look correct.
426 arcn->sb.st_mode |= S_IFLNK;
431 * st_mode and st_nlink so -v printing will look better.
443 arcn->sb.st_mode |= S_IFREG;
450 arcn->sb.st_mode |= S_IFDIR;
468 arcn->sb.st_mode |= S_IFDIR;
477 arcn->sb.st_mode |= S_IFREG;
626 if (ul_oct((u_long)arcn->sb.st_mode, hd->mode, sizeof(hd->mode), 0) ||
775 arcn->sb.st_mode
[all...]
H A Dcpio.c113 switch(arcn->sb.st_mode & C_IFMT) {
139 arcn->sb.st_mode = (arcn->sb.st_mode & 0xfff) | C_ISREG;
297 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), OCT);
329 if (((arcn->sb.st_mode&C_IFMT) != C_ISLNK)||(arcn->sb.st_size == 0)) {
450 ul_asc((u_long)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode),
591 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), HEX);
637 if (((arcn->sb.st_mode&C_IFMT) != C_ISLNK)||(arcn->sb.st_size == 0)) {
779 ul_asc((u_long)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode),
902 arcn->sb.st_mode
[all...]
/freebsd-11-stable/sbin/fsck_ffs/
H A Dutilities.c82 switch(stblock.st_mode & S_IFMT) {
/freebsd-11-stable/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-11-stable/lib/libc/iconv/
H A Dcitrus_mmap.c69 if (!S_ISREG(st.st_mode)) {
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_io.c66 saved_perms = sb.st_mode & ALLPERMS;
/freebsd-11-stable/sys/i386/ibcs2/
H A Dibcs2_stat.h42 ibcs2_mode_t st_mode; member in struct:ibcs2_stat
/freebsd-11-stable/usr.sbin/fmtree/
H A Dmtree.h55 mode_t st_mode; /* mode */ member in struct:_node
/freebsd-11-stable/contrib/amd/amd/
H A Dinfo_exec.c361 if (!S_ISREG(sb.st_mode)) {
369 if (!(sb.st_mode & S_IXUSR)) {
373 if (sb.st_mode & (S_ISUID|S_ISGID)) {
377 if (sb.st_mode & S_IWOTH) {
/freebsd-11-stable/crypto/openssl/crypto/rand/
H A Drandfile.c191 if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) {
242 if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) {
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dinetcf.c180 } else if ((st.st_mode & 0100) == 0) {
211 if ((st.st_mode & 06000) != 0)
229 } else if ((st.st_mode & 0100) == 0) {
237 } else if ((st.st_mode & 0100) == 0) {
/freebsd-11-stable/contrib/expat/xmlwf/
H A Dunixfilemap.c74 if (! S_ISREG(sb.st_mode)) {
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_open_filename.c201 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) ||
202 S_ISFIFO(st.st_mode))
215 if (S_ISREG(st.st_mode))
/freebsd-11-stable/usr.sbin/makefs/
H A Dwalk.c130 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) {
150 S_ISDIR(stbuf.st_mode)) {
159 inode_type(stbuf.st_mode), path,
230 cur->type = stbuf->st_mode & S_IFMT;
435 stbuf.st_mode = nodetoino(curnode->type);
499 dirnode->inode->st.st_mode & ALLPERMS, specnode->st_mode);
500 dirnode->inode->st.st_mode &= ~ALLPERMS;
501 dirnode->inode->st.st_mode |= (specnode->st_mode
[all...]
/freebsd-11-stable/usr.bin/hexdump/
H A Ddisplay.c380 if (S_ISREG(sb.st_mode) && skip > sb.st_size) {
386 if (!statok || S_ISFIFO(sb.st_mode) || S_ISSOCK(sb.st_mode)) {
390 if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
/freebsd-11-stable/contrib/gdb/gdb/
H A Dremote-fileio.c401 remote_fileio_to_fio_mode (st->st_mode, fst->fst_mode);
605 if (!S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode))
610 if (S_ISDIR (st.st_mode)
942 if ((!of && !S_ISREG (ost.st_mode) && !S_ISDIR (ost.st_mode))
943 || (!nf && !S_ISREG (nst.st_mode) && !S_ISDIR (nst.st_mode)))
963 if (!of && !nf && S_ISDIR (nst.st_mode))
965 if (S_ISREG (ost.st_mode))
[all...]
/freebsd-11-stable/contrib/tcsh/
H A Dglob.c211 if (stat(str, &st) == -1 || !S_ISDIR(st.st_mode))
225 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode))
241 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode))
508 (S_ISDIR(sbuf.st_mode)
510 || (S_ISLNK(sbuf.st_mode) &&
512 S_ISDIR(sbuf.st_mode))
606 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode)
608 && ((globstar && !chase_symlinks) || !S_ISLNK(sbuf.st_mode))
636 (Lstat(pathbuf->s, &sbuf) || S_ISLNK(sbuf.st_mode)))

Completed in 295 milliseconds

1234567891011>>