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

1234567891011>>

/freebsd-10.0-release/contrib/diff/lib/
H A Dfile-type.c41 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 Dbiff.c81 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 Dtest_write_disk_perms.c167 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 Dtest_write_disk_secure.c128 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 Dunlink-if-ordinary.c68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
/freebsd-10.0-release/contrib/gcclibs/libiberty/
H A Dunlink-if-ordinary.c68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
/freebsd-10.0-release/lib/libutil/
H A D_secure_path.c58 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 Dfifolog_create.c69 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 Disdir.c41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
/freebsd-10.0-release/lib/libc/stdio/
H A Dremove.c51 if (S_ISDIR(sb.st_mode))
/freebsd-10.0-release/contrib/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...]
/freebsd-10.0-release/contrib/opie/libopie/
H A Dlock.c128 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 Dtest_0.c51 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-10.0-release/contrib/libarchive/libarchive/
H A Darchive_write_open_fd.c95 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 Dtest_0.c51 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-10.0-release/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c72 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 Dstat.h49 if (S_ISCHR(sb->st_mode))
/freebsd-10.0-release/usr.bin/find/
H A Dls.c67 (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 Dsvr4_stat.h40 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 Dmesg.c88 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 Drm_r.c58 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 Dcpdir.c83 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 Dcompare.c88 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 Dchmod.c176 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 Dgetfacl.c114 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)

Completed in 148 milliseconds

1234567891011>>