/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | file.c | 41 if( S_ISDIR( statbuf.st_mode )) { 48 (statbuf.st_mode & (perm << 6)) == (perm << 6) ) 52 (statbuf.st_mode & (perm << 3)) == (perm << 3) ) 55 if( (statbuf.st_mode & perm) == perm )
|
/illumos-gate/usr/src/ucbcmd/biff/ |
H A D | biff.c | 79 stb.st_mode&0100 ? gettext("y") : gettext("n")); 80 exit((stb.st_mode&0100) ? 0 : 1); 85 if (chmod(cp, stb.st_mode|0100) < 0) 90 if (chmod(cp, stb.st_mode&~0100) < 0) 97 return ((stb.st_mode&0100) ? 0 : 1);
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | strsave.c | 73 s.st_mode >>= 6; /* use owner bits */ 75 s.st_mode >>= 3; /* use group bits */ 77 if ((amode & s.st_mode) == amode)
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | strsave.c | 75 s.st_mode >>= 6; /* use owner bits */ 77 s.st_mode >>= 3; /* use group bits */ 79 if( (amode & s.st_mode) == amode )
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | remove.c | 50 if ((statb.st_mode & S_IFMT) != S_IFDIR)
|
H A D | posix_fadvise.c | 68 if (S_ISFIFO(statb.st_mode)) 96 if (S_ISFIFO(statb.st_mode))
|
/illumos-gate/usr/src/cmd/chgrp/ |
H A D | chgrp.c | 240 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { 263 if ((stbuf2.st_mode & S_IFMT) 282 stbuf2.st_mode & 310 if ((stbuf2.st_mode & S_IFMT) 314 stbuf2.st_mode & ~S_IFMT); 318 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { 329 stbuf.st_mode & ~S_IFMT); 348 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { 350 stbuf.st_mode & ~S_IFMT); 407 if ((st.st_mode [all...] |
/illumos-gate/usr/src/lib/libast/common/include/ |
H A D | fs3d.h | 48 #define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev) 49 #define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtls.c | 68 s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->st_nlink); 83 if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) 101 if (S_ISDIR(st->st_mode)) 104 else if (S_ISLNK(st->st_mode)) 107 else if (st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) 114 S_ISLNK(st->st_mode) ? "->" :
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 92 !bitset(S_IXUSR|S_IXGRP|S_IXOTH, st->st_mode) && 93 S_ISREG(st->st_mode)) 102 if (bitset(S_ISUID, st->st_mode)) 104 if (bitset(S_ISUID, st->st_mode) && st->st_uid != 0 && 112 if (bitset(S_ISGID, st->st_mode)) 114 if (bitset(S_ISGID, st->st_mode) && st->st_gid != 0) 240 if ((stbuf.st_mode & md) != md) 248 (unsigned long) stbuf.st_mode, 252 st->st_mode = ST_MODE_NOFILE; 257 if (bitset(SFF_NOSLINK, flags) && S_ISLNK(st->st_mode)) [all...] |
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpiostat.c | 58 TmpSt->st_mode = FromStat->st_mode;
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | lintodev.c | 45 if (stat(devtty, &sb) != -1 && (sb.st_mode&S_IFMT) == S_IFCHR)
|
/illumos-gate/usr/src/lib/libast/amd64/include/ast/ |
H A D | fs3d.h | 57 #define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev) 58 #define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
/illumos-gate/usr/src/lib/libast/i386/include/ast/ |
H A D | fs3d.h | 57 #define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev) 58 #define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
/illumos-gate/usr/src/lib/libast/sparc/include/ast/ |
H A D | fs3d.h | 57 #define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev) 58 #define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | fs3d.h | 57 #define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev) 58 #define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | safechown.c | 39 if (!S_ISDIR(fdbuf.st_mode) && fdbuf.st_nlink != 1) { 51 fdbuf.st_mode != lbuf.st_mode) {
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | ls.c | 94 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { 97 typestr[sb.st_mode >> 12], 101 typestr[sb.st_mode >> 12], path); 120 sb.st_mode = 0; 130 typestr[d->d_type? d->d_type:sb.st_mode >> 12], 134 typestr[d->d_type? d->d_type:sb.st_mode >> 12], d->d_name); 189 if (!S_ISDIR(sb.st_mode)) {
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | writefile.c | 99 if (S_ISREG(s1p->st_mode) && s1p->st_size > SMALLFILESIZE) { 141 if (S_ISREG(s2p->st_mode)) 165 if (S_ISREG(s2p->st_mode)) 185 if (S_ISREG(s2p->st_mode)) 204 if (S_ISREG(s2p->st_mode)) 214 if (S_ISREG(s2p->st_mode))
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | warmstart.c | 145 (!S_ISREG(sbuf_fstat.st_mode)) || 146 (sbuf_fstat.st_mode & S_IRWXG) || 147 (sbuf_fstat.st_mode & S_IRWXO) || 165 (!S_ISREG(sbuf_lstat.st_mode)) || 166 (sbuf_lstat.st_mode & S_IRWXG) || 167 (sbuf_lstat.st_mode & S_IRWXO) ||
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | stat.c | 75 statb.st_mode, 80 switch (statb.st_mode & S_IFMT) { 120 statb.st_mode, 125 switch (statb.st_mode & S_IFMT) { 164 statb.st_mode, 169 switch (statb.st_mode & S_IFMT) {
|
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/ |
H A D | mkbusy.c | 130 if ((ret = stat(dname, &sbuf)) != 0 || !(sbuf.st_mode & 143 } else if ((sbuf.st_mode & S_IFMT) == S_IFREG || 144 (sbuf.st_mode & S_IFMT) == S_IFLNK || 145 (sbuf.st_mode & S_IFMT) == S_IFCHR || 146 (sbuf.st_mode & S_IFMT) == S_IFBLK) { 148 } else if ((sbuf.st_mode & S_IFMT) == S_IFDIR) {
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | eaccess.c | 76 if (!S_ISREG(st.st_mode) || !(flags & X_OK) || (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) 130 if ((st.st_mode & mode) == mode)
|
/illumos-gate/usr/src/ucbcmd/ln/ |
H A D | ln.c | 60 if ((stb.st_mode&S_IFMT) != S_IFDIR) 85 (stb.st_mode&S_IFMT) == S_IFDIR) { 89 if (stat(to, &stb) >= 0 && (stb.st_mode&S_IFMT) == S_IFDIR) {
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pisprocdir.c | 58 (statb.st_mode & S_IFMT) == S_IFDIR &&
|