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

1234567891011>>

/freebsd-11-stable/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-11-stable/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-11-stable/contrib/gcclibs/libiberty/
H A Dunlink-if-ordinary.c68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dunlink-if-ordinary.c68 && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c169 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 Dtest_write_disk_secure.c172 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.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-11-stable/usr.sbin/fifolog/lib/
H A Dfifolog_create.c71 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 Dremove.c51 if (S_ISDIR(sb.st_mode))
/freebsd-11-stable/gnu/usr.bin/grep/
H A Disdir.c41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
/freebsd-11-stable/contrib/sendmail/libsmutil/
H A Dsafefile.c91 !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 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-11-stable/stand/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;
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 Dtest_0.c51 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-11-stable/contrib/libarchive/tar/test/
H A Dtest_0.c51 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dstat.h49 if (S_ISCHR(sb->st_mode))
/freebsd-11-stable/usr.bin/find/
H A Dls.c67 (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 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-11-stable/contrib/libarchive/cat/test/
H A Dtest_0.c50 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-11-stable/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-11-stable/usr.bin/mesg/
H A Dmesg.c84 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 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-11-stable/usr.sbin/pw/
H A Drm_r.c66 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 Dcpdir.c86 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 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...]

Completed in 393 milliseconds

1234567891011>>