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

1234567891011>>

/freebsd-current/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-current/usr.bin/biff/
H A Dbiff.c68 sb.st_mode & S_IXUSR ? "y" :
69 sb.st_mode & S_IXGRP ? "b" : "n");
70 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
76 if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0)
80 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR)
85 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP)
92 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c168 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode);
169 assert((st.st_mode & 07777) != 0144);
191 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode);
192 assertEqualInt(st.st_mode & 0777, 0744);
202 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode);
203 assertEqualInt(st.st_mode & 0777, 0744);
405 failure("file_0755: st.st_mode
[all...]
H A Dtest_write_disk_secure.c171 assert(S_ISLNK(st.st_mode));
193 assert(S_ISDIR(st.st_mode));
221 assert(S_ISDIR(st.st_mode));
251 failure("dir: st.st_mode=%o", st.st_mode);
252 assert((st.st_mode & 0777) == 0755);
255 failure("link_to_dir: st.st_mode=%o", st.st_mode);
256 assert(S_ISLNK(st.st_mode));
280 failure("link_to_dir: st.st_mode
[all...]
/freebsd-current/usr.bin/diff/
H A Ddiffdir.c204 stb2.st_mode = stb1.st_mode;
206 if (stb1.st_mode == 0)
207 stb1.st_mode = stb2.st_mode;
208 if (S_ISLNK(stb1.st_mode) || S_ISLNK(stb2.st_mode)) {
209 if (S_ISLNK(stb1.st_mode) && S_ISLNK(stb2.st_mode)) {
235 path1, S_ISLNK(stb1.st_mode)
[all...]
/freebsd-current/lib/libutil/
H A D_secure_path.c55 else if (!S_ISREG(sb.st_mode))
57 else if (sb.st_mode & S_IWOTH)
64 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dstat.h43 if (S_ISBLK(st->st_mode)) {
/freebsd-current/contrib/libarchive/unzip/test/
H A Dtest_0.c50 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-current/lib/libc/stdio/
H A Dremove.c47 if (S_ISDIR(sb.st_mode))
/freebsd-current/stand/kboot/include/arch/aarch64/
H A Dstat_arch.h14 host_mode_t st_mode; member in struct:host_kstat
/freebsd-current/stand/kboot/include/arch/amd64/
H A Dstat_arch.h16 host_mode_t st_mode; member in struct:host_kstat
/freebsd-current/stand/kboot/include/arch/powerpc64/
H A Dstat_arch.h15 host_mode_t st_mode; member in struct:host_kstat
/freebsd-current/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-current/usr.sbin/fifolog/lib/
H A Dfifolog_create.c70 if (!S_ISBLK(st.st_mode) &&
71 !S_ISCHR(st.st_mode) &&
72 !S_ISREG(st.st_mode)) {
77 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-current/stand/common/
H A Dls.c91 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) {
94 typestr[sb.st_mode >> 12],
98 typestr[sb.st_mode >> 12], path);
117 sb.st_mode = 0;
124 sb.st_mode = 0;
131 typestr[d->d_type? d->d_type:sb.st_mode >> 12],
135 typestr[d->d_type? d->d_type:sb.st_mode >> 12], d->d_name);
194 if (!S_ISDIR(sb.st_mode)) {
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h50 if (S_ISCHR(sb->st_mode))
67 if (S_ISBLK(st->st_mode)) {
/freebsd-current/contrib/libarchive/cat/test/
H A Dtest_0.c50 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c70 if (!S_ISREG(sb.st_mode)) {
77 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) {
121 if (tip && !S_ISREG(sb.st_mode)) {
128 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) {
/freebsd-current/usr.bin/find/
H A Dls.c60 (void)strmode(sb->st_mode, modep);
66 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))
72 if (S_ISLNK(sb->st_mode))
/freebsd-current/sbin/mount_nullfs/
H A Dmount_nullfs.c102 if (!S_ISDIR(target_stat.st_mode) && !S_ISREG(target_stat.st_mode))
105 if ((target_stat.st_mode & S_IFMT) !=
106 (mountpoint_stat.st_mode & S_IFMT))
/freebsd-current/contrib/libarchive/tar/test/
H A Dtest_0.c50 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-current/contrib/libarchive/cpio/test/
H A Dtest_0.c50 if (!assert((st.st_mode & 0111) != 0)) {
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_write_open_fd.c94 if (S_ISREG(st.st_mode))
105 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) ||
106 S_ISFIFO(st.st_mode) || (mine->fd == 1))
/freebsd-current/usr.bin/mesg/
H A Dmesg.c72 if (sb.st_mode & S_IWGRP) {
82 if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
86 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
/freebsd-current/usr.sbin/pw/
H A Dcpdir.c81 if (S_ISDIR(st.st_mode)) {
83 st.st_mode & _DEF_DIRMODE, uid, gid, st.st_flags);
87 if (S_ISLNK(st.st_mode) &&
96 if (!S_ISREG(st.st_mode))
102 st.st_mode);

Completed in 417 milliseconds

1234567891011>>