/src/usr.bin/biff/ |
biff.c | 82 (void)printf("is %s\n", sb.st_mode&0100 ? "y" : "n"); 83 exit(sb.st_mode & 0100 ? 0 : 1); 88 if (chmod(name, sb.st_mode & ~0100) < 0) 92 if (chmod(name, sb.st_mode | 0100) < 0) 98 exit(sb.st_mode & 0100 ? 0 : 1);
|
/src/etc/rc.d/ |
random_seed | 71 st_mode="$1" # should be "-rw-------" 80 if [ "$st_mode" != "-rw-------" ]; then 81 message "Bad mode ${st_mode}"
|
/src/lib/libutil/ |
secure_path.c | 62 else if (!S_ISREG(sb.st_mode)) 66 else if ((sb.st_mode & (S_IWGRP | S_IWOTH)) != 0)
|
/src/tools/compat/ |
lchflags.c | 49 if (S_ISLNK(psb.st_mode)) {
|
lchmod.c | 49 if (S_ISLNK(psb.st_mode)) {
|
lchown.c | 49 if (S_ISLNK(psb.st_mode)) {
|
/src/lib/libc/stdio/ |
remove.c | 66 if (S_ISDIR(sb.st_mode))
|
/src/usr.bin/find/ |
ls.c | 72 (void)strmode(sb->st_mode, modep); 77 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) 85 if (S_ISLNK(sb->st_mode))
|
/src/sys/compat/aoutm68k/ |
aoutm68k_stat.h | 45 u_int16_t st_mode; /* inode protection mode */ member in struct:aoutm68k_stat43 65 u_int16_t st_mode; /* inode protection mode */ member in struct:aoutm68k_stat12 86 mode_t st_mode; /* inode protection mode */ member in struct:aoutm68k_stat
|
/src/usr.bin/mesg/ |
mesg.c | 87 if (sb.st_mode & S_IWGRP) { 97 if (chmod(tty, sb.st_mode | S_IWGRP) == -1) 101 if (chmod(tty, sb.st_mode & ~S_IWGRP) == -1)
|
/src/sbin/mount_umap/ |
mount_umap.c | 158 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 159 strmode(statbuf.st_mode, buf); 206 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 207 strmode(statbuf.st_mode, buf);
|
/src/tests/fs/tmpfs/ |
t_mknod.sh | 43 [ ${st_mode} = 060644 ] || atf_fail "Invalid mode" 77 [ ${st_mode} = 020644 ] || atf_fail "Invalid mode" 111 [ ${st_mode} = 010644 ] || atf_fail "Invalid mode"
|
/src/usr.bin/patch/ |
mkpath.c | 74 } else if (!S_ISDIR(sb.st_mode)) {
|
/src/bin/getfacl/ |
getfacl.c | 121 if (sb->st_mode & S_IRUSR) 124 if (sb->st_mode & S_IWUSR) 127 if (sb->st_mode & S_IXUSR) 145 if (sb->st_mode & S_IRGRP) 148 if (sb->st_mode & S_IWGRP) 151 if (sb->st_mode & S_IXGRP) 169 if (sb->st_mode & S_IROTH) 172 if (sb->st_mode & S_IWOTH) 175 if (sb->st_mode & S_IXOTH)
|
/src/bin/cp/ |
utils.c | 157 if (!(tolnk && S_ISLNK(sb.st_mode))) 161 fs->st_mode & ~(S_ISUID | S_ISGID)); 170 fs->st_mode & ~(S_ISUID | S_ISGID)); 185 bool need_copy = S_ISREG(fs->st_mode) || fs->st_size > 0; 198 if (S_ISREG(fs->st_mode) && fs->st_size && fs->st_size <= MMAP_MAX_SIZE) { 282 && fs->st_mode & (S_ISUID | S_ISGID) && fs->st_uid == myuid) { 287 fchmod(to_fd, fs->st_mode & RETAINBITS & ~myumask)) { 332 if (mkfifo(to.p_path, from_stat->st_mode)) { 346 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) { 369 islink = S_ISLNK(fs->st_mode); [all...] |
cp.c | 245 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { 268 if (S_ISDIR(tmp_stat.st_mode) && (Rflag || rflag)) 429 if (S_ISDIR(curr->fts_statp->st_mode)) 433 if (!S_ISDIR(curr->fts_statp->st_mode) && 434 S_ISDIR(to_stat.st_mode)) { 443 switch (curr->fts_statp->st_mode & S_IFMT) { 483 curr->fts_statp->st_mode | S_IRWXU) < 0) 487 } else if (!S_ISDIR(to_stat.st_mode)) { 522 curr->fts_statp->st_mode);
|
/src/bin/ksh/ |
c_test.c | 264 return test_stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode); 266 return test_stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode); 269 return test_stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode); 275 return test_stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode); 281 return test_stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode); 287 return lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode); 293 return test_stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode); 313 return stat(p, &b1) == 0 && S_ISCDF(b1.st_mode); 321 && (b1.st_mode & S_ISUID) == S_ISUID; 328 && (b1.st_mode & S_ISGID) == S_ISGID [all...] |
/src/libexec/ftpd/ |
cmds.c | 243 if (! S_ISDIR(pdirstat.st_mode)) { 460 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 477 if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 606 rok = ((fe->stat->st_mode & S_IRUSR) != 0); 607 wok = ((fe->stat->st_mode & S_IWUSR) != 0); 608 xok = ((fe->stat->st_mode & S_IXUSR) != 0); 610 rok = ((fe->stat->st_mode & S_IRGRP) != 0); 611 wok = ((fe->stat->st_mode & S_IWGRP) != 0); 612 xok = ((fe->stat->st_mode & S_IXGRP) != 0); 614 rok = ((fe->stat->st_mode & S_IROTH) != 0) [all...] |
/src/bin/ln/ |
ln.c | 166 if (hflag && lstat(targetdir, &sb) == 0 && S_ISLNK(sb.st_mode)) { 176 if (!S_ISDIR(sb.st_mode)) 246 if (S_ISDIR(sb.st_mode)) { 258 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || 259 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) { 313 if (Fflag && S_ISDIR(sb.st_mode)) { 334 if (Fflag && S_ISDIR(sb.st_mode)) {
|
/src/usr.bin/compress/ |
compress.c | 211 if (!force && exists && S_ISREG(sb.st_mode) && !permission(out)) 213 oreg = !exists || S_ISREG(sb.st_mode); 228 if (!S_ISREG(isb.st_mode)) 309 if (!force && exists && S_ISREG(sb.st_mode) && !permission(out)) 311 oreg = !exists || S_ISREG(sb.st_mode); 326 if (!S_ISREG(sb.st_mode)) 391 fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; 407 fs->st_mode &= ~(S_ISUID|S_ISGID); 409 if (chmod(name, fs->st_mode))
|
/src/bin/rm/ |
rm.c | 291 sb.st_mode = S_IFWHT|S_IWUSR|S_IRUSR; 305 if (S_ISDIR(sb.st_mode) && !dflag) { 310 if (!fflag && !S_ISWHT(sb.st_mode) && !check(f, f, &sb)) 312 if (S_ISWHT(sb.st_mode)) 314 else if (S_ISDIR(sb.st_mode)) 399 if (!S_ISREG(sbp->st_mode)) 411 !S_ISREG(sb2.st_mode)) { 533 if (!stdin_ok || S_ISLNK(sp->st_mode) || 536 strmode(sp->st_mode, modep);
|
/src/sbin/dump/ |
snapshot.c | 78 if (S_ISCHR(sb.st_mode)) { 94 } else if (S_ISDIR(sb.st_mode)) 110 if (S_ISDIR(sb.st_mode)) { 116 } else if (S_ISCHR(sb.st_mode)) {
|
/src/share/man/tools/ |
noso.c | 19 if (!S_ISREG(sb.st_mode))
|
/src/sys/compat/sys/ |
stat.h | 48 uint16_t st_mode; /* inode protection mode */ member in struct:stat43 67 uint16_t st_mode; /* inode protection mode */ member in struct:stat12 101 mode_t st_mode; /* inode protection mode */ member in struct:stat13 142 mode_t st_mode; /* inode protection mode */ member in struct:stat30
|
/src/bin/pax/ |
file_subs.c | 252 arcn->sb.st_mode &= ~SETBITS(0); 254 set_pmode(tmp_name, arcn->sb.st_mode); 257 apply_umask((arcn->sb.st_mode & FILEBITS(0)))); 305 *payload = S_ISREG(arcn->sb.st_mode) && 312 if (lstat(arcn->ln_name, &sb) != -1 && S_ISDIR(sb.st_mode)) { 417 if (S_ISDIR(sb.st_mode) && strcmp(from, ".") != 0) { 483 file_mode = arcn->sb.st_mode & FILEBITS(arcn->type == PAX_DIR); 495 S_ISLNK(sb.st_mode)) { 599 arcn->sb.st_mode &= ~SETBITS(arcn->type == PAX_DIR); 601 set_pmode(arcn->name, arcn->sb.st_mode); [all...] |