/freebsd-11-stable/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-11-stable/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-11-stable/contrib/gcclibs/libiberty/ |
H A D | unlink-if-ordinary.c | 68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
|
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | unlink-if-ordinary.c | 68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
|
/freebsd-11-stable/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_perms.c | 169 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode); 170 assert((st.st_mode & 07777) != 0144); 192 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); 193 assertEqualInt(st.st_mode & 0777, 0744); 203 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); 204 assertEqualInt(st.st_mode & 0777, 0744); 406 failure("file_0755: st.st_mode [all...] |
H A D | test_write_disk_secure.c | 172 assert(S_ISLNK(st.st_mode)); 194 assert(S_ISDIR(st.st_mode)); 222 assert(S_ISDIR(st.st_mode)); 252 failure("dir: st.st_mode=%o", st.st_mode); 253 assert((st.st_mode & 0777) == 0755); 256 failure("link_to_dir: st.st_mode=%o", st.st_mode); 257 assert(S_ISLNK(st.st_mode)); 281 failure("link_to_dir: st.st_mode [all...] |
/freebsd-11-stable/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-11-stable/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 71 if (!S_ISBLK(st.st_mode) && 72 !S_ISCHR(st.st_mode) && 73 !S_ISREG(st.st_mode)) { 78 if(!created && S_ISREG(st.st_mode)) { 93 if (size == 0 && S_ISREG(st.st_mode)) 99 if (S_ISREG(st.st_mode) && ftruncate(fd, size) < 0)
|
/freebsd-11-stable/lib/libc/stdio/ |
H A D | remove.c | 51 if (S_ISDIR(sb.st_mode))
|
/freebsd-11-stable/gnu/usr.bin/grep/ |
H A D | isdir.c | 41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
|
/freebsd-11-stable/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 91 !bitset(S_IXUSR|S_IXGRP|S_IXOTH, st->st_mode) && 92 S_ISREG(st->st_mode)) 101 if (bitset(S_ISUID, st->st_mode)) 103 if (bitset(S_ISUID, st->st_mode) && st->st_uid != 0 && 111 if (bitset(S_ISGID, st->st_mode)) 113 if (bitset(S_ISGID, st->st_mode) && st->st_gid != 0) 239 if ((stbuf.st_mode & md) != md) 247 (unsigned long) stbuf.st_mode, 251 st->st_mode = ST_MODE_NOFILE; 256 if (bitset(SFF_NOSLINK, flags) && S_ISLNK(st->st_mode)) [all...] |
/freebsd-11-stable/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-11-stable/stand/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; 127 sb.st_mode = 0; 134 typestr[d->d_type? d->d_type:sb.st_mode >> 12], 138 typestr[d->d_type? d->d_type:sb.st_mode >> 12], d->d_name); 197 if (!S_ISDIR(sb.st_mode)) {
|
/freebsd-11-stable/contrib/libarchive/cpio/test/ |
H A D | test_0.c | 51 if (!assert((st.st_mode & 0111) != 0)) {
|
/freebsd-11-stable/contrib/libarchive/tar/test/ |
H A D | test_0.c | 51 if (!assert((st.st_mode & 0111) != 0)) {
|
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | stat.h | 49 if (S_ISCHR(sb->st_mode))
|
/freebsd-11-stable/usr.bin/find/ |
H A D | ls.c | 67 (void)strmode(sb->st_mode, modep); 73 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) 79 if (S_ISLNK(sb->st_mode))
|
/freebsd-11-stable/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-11-stable/contrib/libarchive/cat/test/ |
H A D | test_0.c | 50 if (!assert((st.st_mode & 0111) != 0)) {
|
/freebsd-11-stable/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-11-stable/usr.bin/mesg/ |
H A D | mesg.c | 84 if (sb.st_mode & S_IWGRP) { 94 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) 98 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
|
/freebsd-11-stable/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-11-stable/usr.sbin/pw/ |
H A D | rm_r.c | 66 if (S_ISDIR(st.st_mode)) 68 else if (S_ISLNK(st.st_mode) || st.st_uid == uid) 74 if (S_ISLNK(st.st_mode))
|
H A D | cpdir.c | 86 if (S_ISDIR(st.st_mode)) { 88 st.st_mode & _DEF_DIRMODE, uid, gid, st.st_flags); 92 if (S_ISLNK(st.st_mode) && 101 if (!S_ISREG(st.st_mode)) 107 st.st_mode);
|
/freebsd-11-stable/usr.sbin/fmtree/ |
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...] |