Searched refs:st_mode (Results 1 - 25 of 590) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dfile.c41 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 Dbiff.c79 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 Dstrsave.c73 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 Dstrsave.c75 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 Dremove.c50 if ((statb.st_mode & S_IFMT) != S_IFDIR)
H A Dposix_fadvise.c68 if (S_ISFIFO(statb.st_mode))
96 if (S_ISFIFO(statb.st_mode))
/illumos-gate/usr/src/cmd/chgrp/
H A Dchgrp.c240 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 Dfs3d.h48 #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 Dfmtls.c68 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 Dsafefile.c92 !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 Dcpiostat.c58 TmpSt->st_mode = FromStat->st_mode;
/illumos-gate/usr/src/cmd/acct/lib/
H A Dlintodev.c45 if (stat(devtty, &sb) != -1 && (sb.st_mode&S_IFMT) == S_IFCHR)
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dfs3d.h57 #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 Dfs3d.h57 #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 Dfs3d.h57 #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 Dfs3d.h57 #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 Dsafechown.c39 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 Dls.c94 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 Dwritefile.c99 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 Dwarmstart.c145 (!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 Dstat.c75 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 Dmkbusy.c130 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 Deaccess.c76 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 Dln.c60 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 DPisprocdir.c58 (statb.st_mode & S_IFMT) == S_IFDIR &&

Completed in 91 milliseconds

1234567891011>>