/freebsd-current/contrib/tcp_wrappers/ |
H A D | inetcf.c | 175 } else if ((st.st_mode & 0100) == 0) { 206 if ((st.st_mode & 06000) != 0) 224 } else if ((st.st_mode & 0100) == 0) { 232 } else if ((st.st_mode & 0100) == 0) {
|
/freebsd-current/usr.sbin/trim/ |
H A D | trim.c | 183 if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) { 188 if (!S_ISCHR(sb.st_mode) && !S_ISBLK(sb.st_mode))
|
/freebsd-current/lib/libc/gen/ |
H A D | ctermid.c | 57 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode))
|
/freebsd-current/usr.bin/diff/ |
H A D | diff.c | 439 stb2.st_mode = stb1.st_mode; 448 if (stb1.st_mode == 0) 449 stb1.st_mode = stb2.st_mode; 451 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) 454 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { 459 if (S_ISDIR(stb1.st_mode)) { [all...] |
/freebsd-current/crypto/openssh/ |
H A D | sshbuf-io.c | 46 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 && 65 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
|
/freebsd-current/contrib/wireguard-tools/ |
H A D | genkey.c | 86 if (!fstat(STDOUT_FILENO, &stat) && S_ISREG(stat.st_mode) && stat.st_mode & S_IRWXO)
|
/freebsd-current/tools/regression/priv/ |
H A D | priv_vfs_clearsugid.c | 79 if (!(sb.st_mode & S_ISUID)) 83 if (sb.st_mode & S_ISUID)
|
/freebsd-current/tools/regression/tmpfs/ |
H A D | t_mount | 60 [ ${st_mode} = 040755 ] || die
|
/freebsd-current/usr.bin/which/ |
H A D | which.c | 110 S_ISREG(fin.st_mode) && 112 (fin.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0)) {
|
/freebsd-current/contrib/diff/src/ |
H A D | system.h | 279 (((S_ISBLK ((s)->st_mode) && S_ISBLK ((t)->st_mode)) \ 280 || (S_ISCHR ((s)->st_mode) && S_ISCHR ((t)->st_mode))) \ 321 ((s)->st_mode == (t)->st_mode \
|
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ls.c | 159 if(S_ISDIR(st->st_mode)) { 163 else if(S_ISCHR(st->st_mode)) 165 else if(S_ISBLK(st->st_mode)) 167 else if(S_ISREG(st->st_mode)) { 169 if(st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) 172 else if(S_ISFIFO(st->st_mode)) { 176 else if(S_ISLNK(st->st_mode)) { 180 else if(S_ISSOCK(st->st_mode)) { 185 else if(S_ISWHT(st->st_mode)) { 195 strcpy(file->mode + 1, x[(st->st_mode [all...] |
/freebsd-current/bin/cp/ |
H A D | cp.c | 212 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { 232 if (S_ISDIR(tmp_stat.st_mode) && Rflag) 425 mode = curr->fts_statp->st_mode; 444 if (S_ISDIR(curr->fts_statp->st_mode)) 452 switch (curr->fts_statp->st_mode & S_IFMT) { 488 mode = curr->fts_statp->st_mode | S_IRWXU; 511 } else if (!S_ISDIR(to_stat.st_mode)) {
|
/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk.c | 57 st.st_mode &= ~S_ISGID; 58 assertEqualInt(st.st_mode & MODE_MASK, 157 failure("st.st_mode=%o archive_entry_mode(ae)=%o", 158 st.st_mode, archive_entry_mode(ae)); 160 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK)); 183 failure("st.st_mode=%o archive_entry_mode(ae)=%o", 184 st.st_mode, archive_entry_mode(ae)); 186 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK)); 231 failure("st.st_mode=%o archive_entry_mode(ae)=%o", 232 st.st_mode, archive_entry_mod [all...] |
/freebsd-current/stand/userboot/test/ |
H A D | test.c | 195 if (!S_ISDIR(tf->tf_stat.st_mode) && 196 !S_ISREG(tf->tf_stat.st_mode) && 197 !S_ISLNK(tf->tf_stat.st_mode)) 201 if (!S_ISLNK(tf->tf_stat.st_mode)) { 207 if (S_ISDIR(tf->tf_stat.st_mode)) { 218 } else if (S_ISREG(tf->tf_stat.st_mode)) { 227 } else if (S_ISLNK(tf->tf_stat.st_mode)) { 354 stp->st_mode = tf->tf_stat.st_mode;
|
/freebsd-current/sbin/mount/ |
H A D | getmntopts.c | 128 if (!S_ISDIR(sb.st_mode)) { 142 if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) { 165 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode))
|
/freebsd-current/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_fchmodat.c | 72 ATF_REQUIRE(st.st_mode = 0600); 94 ATF_REQUIRE(st.st_mode = 0600); 183 ATF_REQUIRE(st.st_mode = 0600);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mknod.c | 159 if (S_ISCHR(st.st_mode) == 0) 169 if (S_ISBLK(st.st_mode) == 0) 182 if (S_ISREG(st.st_mode) == 0)
|
/freebsd-current/tests/sys/fifo/ |
H A D | fifo_create.c | 128 if (!(S_ISFIFO(fifosb.st_mode))) { 239 if (sb.st_mode != ptp->pt_mode) { 243 ptp->pt_reqmode, ptp->pt_mode, sb.st_mode);
|
/freebsd-current/tools/regression/aio/aiop/ |
H A D | aiop.c | 179 if (S_ISREG(sb.st_mode)) { 181 } else if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) {
|
/freebsd-current/lib/libufs/ |
H A D | type.c | 115 if (ret >= 0 && S_ISREG(st.st_mode)) { 118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) { 132 } else if (ret >= 0 && S_ISDIR(st.st_mode)) {
|
/freebsd-current/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
H A D | zutil_import_os.c | 141 if (S_ISREG(statbuf.st_mode)) { 146 } else if (S_ISCHR(statbuf.st_mode) || S_ISBLK(statbuf.st_mode)) {
|
/freebsd-current/contrib/unbound/compat/ |
H A D | getentropy_solaris.c | 200 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode) || 391 if (S_ISREG(st.st_mode) || 392 S_ISFIFO(st.st_mode) || 393 S_ISSOCK(st.st_mode)) { 399 if (S_ISCHR(st.st_mode)) { 402 } else if (S_ISSOCK(st.st_mode)) {
|
/freebsd-current/usr.bin/hexdump/ |
H A D | display.c | 394 if (S_ISREG(sb.st_mode) && skip > sb.st_size && sb.st_size > 0) { 400 if (!statok || S_ISFIFO(sb.st_mode) || S_ISSOCK(sb.st_mode) || \ 401 (S_ISREG(sb.st_mode) && sb.st_size == 0)) { 405 if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
|
/freebsd-current/contrib/diff/lib/ |
H A D | file-type.h | 152 # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) 160 # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD)
|
/freebsd-current/contrib/bmake/ |
H A D | realpath.c | 175 if (S_ISLNK(sb.st_mode)) { 202 if (*q == '/' && !S_ISDIR(sb.st_mode)) {
|