/freebsd-10.0-release/contrib/diff/lib/ |
H A D | file-type.c | 41 if (S_ISREG (st->st_mode)) 44 if (S_ISDIR (st->st_mode)) 47 if (S_ISBLK (st->st_mode)) 50 if (S_ISCHR (st->st_mode)) 53 if (S_ISFIFO (st->st_mode)) 56 if (S_ISLNK (st->st_mode)) 59 if (S_ISSOCK (st->st_mode))
|
/freebsd-10.0-release/usr.bin/biff/ |
H A D | biff.c | 81 sb.st_mode & S_IXUSR ? "y" : 82 sb.st_mode & S_IXGRP ? "b" : "n"); 83 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); 89 if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0) 93 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR) 98 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP) 105 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
|
/freebsd-10.0-release/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_perms.c | 167 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode); 168 assert((st.st_mode & 07777) != 0144); 190 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); 191 assert((st.st_mode & 0777) == 0744); 201 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); 202 assert((st.st_mode & 0777) == 0744); 373 failure("file_0755: st.st_mode [all...] |
H A D | test_write_disk_secure.c | 128 assert(S_ISLNK(st.st_mode)); 150 assert(S_ISDIR(st.st_mode)); 178 assert(S_ISDIR(st.st_mode)); 185 failure("dir: st.st_mode=%o", st.st_mode); 186 assert((st.st_mode & 0777) == 0755); 189 failure("link_to_dir: st.st_mode=%o", st.st_mode); 190 assert(S_ISLNK(st.st_mode)); 193 failure("link_to_dir: st.st_mode [all...] |
/freebsd-10.0-release/contrib/binutils/libiberty/ |
H A D | unlink-if-ordinary.c | 68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
|
/freebsd-10.0-release/contrib/gcclibs/libiberty/ |
H A D | unlink-if-ordinary.c | 68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
|
/freebsd-10.0-release/lib/libutil/ |
H A D | _secure_path.c | 58 else if (!S_ISREG(sb.st_mode)) 60 else if (sb.st_mode & S_IWOTH) 67 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
|
/freebsd-10.0-release/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 69 if (!S_ISBLK(st.st_mode) && 70 !S_ISCHR(st.st_mode) && 71 !S_ISREG(st.st_mode)) { 76 if(!created && S_ISREG(st.st_mode)) { 91 if (size == 0 && S_ISREG(st.st_mode)) 97 if (S_ISREG(st.st_mode) && ftruncate(fd, size) < 0)
|
/freebsd-10.0-release/gnu/usr.bin/grep/ |
H A D | isdir.c | 41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
|
/freebsd-10.0-release/lib/libc/stdio/ |
H A D | remove.c | 51 if (S_ISDIR(sb.st_mode))
|
/freebsd-10.0-release/contrib/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...] |
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | lock.c | 128 if (!S_ISDIR(statbuf[0].st_mode)) { 135 if ((statbuf[0].st_mode & 0777) != 00700) { 148 if (!S_ISREG(statbuf[0].st_mode)) 156 if (statbuf[0].st_mode != statbuf[1].st_mode) 202 if (!S_ISREG(statbuf[0].st_mode) || (statbuf[0].st_mode != statbuf[1].st_mode) || (statbuf[0].st_ino != statbuf[1].st_ino))
|
/freebsd-10.0-release/contrib/libarchive/cpio/test/ |
H A D | test_0.c | 51 if (!assert((st.st_mode & 0111) != 0)) {
|
/freebsd-10.0-release/contrib/libarchive/libarchive/ |
H A D | archive_write_open_fd.c | 95 if (S_ISREG(st.st_mode)) 106 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || 107 S_ISFIFO(st.st_mode) || (mine->fd == 1))
|
/freebsd-10.0-release/contrib/libarchive/tar/test/ |
H A D | test_0.c | 51 if (!assert((st.st_mode & 0111) != 0)) {
|
/freebsd-10.0-release/contrib/openpam/lib/libpam/ |
H A D | openpam_check_owner_perms.c | 72 if (!S_ISREG(sb.st_mode)) { 79 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) { 123 if (tip && !S_ISREG(sb.st_mode)) { 130 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) {
|
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/ |
H A D | stat.h | 49 if (S_ISCHR(sb->st_mode))
|
/freebsd-10.0-release/usr.bin/find/ |
H A D | ls.c | 67 (void)strmode(sb->st_mode, modep); 72 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) 78 if (S_ISLNK(sb->st_mode))
|
/freebsd-10.0-release/sys/compat/svr4/ |
H A D | svr4_stat.h | 40 svr4_o_mode_t st_mode; member in struct:svr4_stat 55 svr4_mode_t st_mode; member in struct:svr4_xstat 76 svr4_mode_t st_mode; member in struct:svr4_stat64
|
/freebsd-10.0-release/usr.bin/mesg/ |
H A D | mesg.c | 88 if (sb.st_mode & S_IWGRP) { 98 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) 102 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
|
/freebsd-10.0-release/usr.sbin/pw/ |
H A D | rm_r.c | 58 if (S_ISDIR(st.st_mode)) /* Directory - recurse */ 61 if (S_ISLNK(st.st_mode) || st.st_uid == uid) 69 if (S_ISLNK(st.st_mode))
|
H A D | cpdir.c | 83 if (S_ISDIR(st.st_mode)) { /* Recurse for this */ 85 copymkdir(dst, src, st.st_mode & _DEF_DIRMODE, uid, gid); 87 } else if (S_ISLNK(st.st_mode) && (len = readlink(src, lnk, sizeof(lnk) - 1)) != -1) { 95 } else if (S_ISREG(st.st_mode) && (outfd = open(dst, O_RDWR | O_CREAT | O_EXCL, st.st_mode)) != -1) {
|
/freebsd-10.0-release/usr.sbin/mtree/ |
H A D | compare.c | 88 if (!S_ISBLK(p->fts_statp->st_mode)) 92 if (!S_ISCHR(p->fts_statp->st_mode)) 96 if (!S_ISDIR(p->fts_statp->st_mode)) 100 if (!S_ISFIFO(p->fts_statp->st_mode)) 104 if (!S_ISREG(p->fts_statp->st_mode)) 108 if (!S_ISLNK(p->fts_statp->st_mode)) 112 if (!S_ISSOCK(p->fts_statp->st_mode)) { 115 ftype(s->type), inotype(p->fts_statp->st_mode)); 150 !S_ISLNK(p->fts_statp->st_mode) && 151 s->st_mode ! [all...] |
/freebsd-10.0-release/bin/chmod/ |
H A D | chmod.c | 176 newmode = getmode(set, p->fts_statp->st_mode); 183 (newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS)) 201 strmode(p->fts_statp->st_mode, m1); 202 strmode((p->fts_statp->st_mode & 205 p->fts_statp->st_mode, m1, 206 (p->fts_statp->st_mode & S_IFMT) |
|
/freebsd-10.0-release/bin/getfacl/ |
H A D | getfacl.c | 114 if (sb.st_mode & S_IRUSR) 117 if (sb.st_mode & S_IWUSR) 120 if (sb.st_mode & S_IXUSR) 138 if (sb.st_mode & S_IRGRP) 141 if (sb.st_mode & S_IWGRP) 144 if (sb.st_mode & S_IXGRP) 162 if (sb.st_mode & S_IROTH) 165 if (sb.st_mode & S_IWOTH) 168 if (sb.st_mode & S_IXOTH)
|