/netbsd/tests/lib/libc/c063/ |
H A D | t_fchmodat.c | 72 ATF_REQUIRE(st.st_mode = 0600); in ATF_TC_BODY() 94 ATF_REQUIRE(st.st_mode = 0600); in ATF_TC_BODY() 183 ATF_REQUIRE(st.st_mode = 0600); in ATF_TC_BODY()
|
/netbsd/bin/ksh/ |
H A D | mail.c | 69 && S_ISREG(stbuf.st_mode)) in mcheck() 110 if (p && stat(p, &stbuf) == 0 && S_ISREG(stbuf.st_mode)) 183 if (stat(mbp->mb_path, &stbuf) == 0 && S_ISREG(stbuf.st_mode))
|
/netbsd/libexec/tftpd/ |
H A D | tftpd.c | 810 if (!S_ISREG(stbuf.st_mode)) in validate_access() 813 if ((stbuf.st_mode & S_IROTH) == 0) in validate_access() 816 if ((stbuf.st_mode & S_IWOTH) == 0) in validate_access() 836 (stbuf.st_mode & S_IFMT) == S_IFREG) { in validate_access() 842 if (mode == RRQ && !(stbuf.st_mode & S_IROTH)) in validate_access() 844 if (mode == WRQ && !(stbuf.st_mode & S_IWOTH)) in validate_access() 860 if (!S_ISREG(stbuf.st_mode)) in validate_access() 862 if ((stbuf.st_mode & S_IROTH) == 0) in validate_access() 882 if ((stbuf.st_mode & S_IWOTH) == 0) { in validate_access()
|
/netbsd/external/mpl/bind/dist/lib/isc/unix/ |
H A D | fsaccess.c | 41 if ((statb.st_mode & S_IFDIR) != 0) { in isc_fsaccess_set() 43 } else if ((statb.st_mode & S_IFREG) == 0) { in isc_fsaccess_set()
|
/netbsd/distrib/cdrom/macppc_installboot/ |
H A D | installboot.c | 107 if (!S_ISREG(params->s1stat.st_mode)) in main() 163 if (S_ISREG(params->fsstat.st_mode)) { in main() 192 if (S_ISREG(params->fsstat.st_mode)) { in main()
|
/netbsd/sbin/fsck/ |
H A D | fsutil.c | 212 if (S_ISBLK(stblock.st_mode)) { in blockcheck() 224 if (S_ISCHR(stchar.st_mode)) { in blockcheck() 230 } else if (S_ISCHR(stblock.st_mode) && !retried) { in blockcheck()
|
/netbsd/crypto/external/bsd/openssh/dist/ |
H A D | auth-rhosts.c | 74 if (!S_ISREG(st.st_mode)) { in check_rhosts_file() 269 (st.st_mode & 022) != 0)) { in auth_rhosts2() 299 (st.st_mode & 022) != 0)) { in auth_rhosts2()
|
/netbsd/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | fsaccess.c | 48 if ((statb.st_mode & S_IFDIR) != 0) in isc_fsaccess_set() 50 else if ((statb.st_mode & S_IFREG) == 0) in isc_fsaccess_set()
|
/netbsd/sys/arch/ia64/stand/efi/libefi/ |
H A D | efifs.c | 248 sb->st_mode = S_IRUSR; in efifs_stat() 250 sb->st_mode = S_IRUSR | S_IWUSR; in efifs_stat() 252 sb->st_mode |= S_IFDIR; in efifs_stat() 254 sb->st_mode |= S_IFREG; in efifs_stat()
|
/netbsd/external/gpl2/xcvs/dist/src/ |
H A D | rcscmds.c | 543 if (!S_ISREG (sb1.st_mode) && !S_ISDIR (sb1.st_mode)) in diff_exec() 545 if (!S_ISREG (sb2.st_mode) && !S_ISDIR (sb2.st_mode)) in diff_exec()
|
/netbsd/external/bsd/ntp/dist/sntp/libopts/ |
H A D | save.c | 198 stBuf.st_mode = S_IFREG; in find_file_name() 208 if ((stat(z, &stBuf) != 0) || ! S_ISDIR(stBuf.st_mode)) in find_file_name() 210 stBuf.st_mode = S_IFREG; /* file within this directory */ in find_file_name() 217 if (S_ISDIR(stBuf.st_mode)) { in find_file_name() 249 stBuf.st_mode = S_IFREG; in find_file_name() 257 if (! S_ISREG(stBuf.st_mode)) { in find_file_name()
|
/netbsd/external/apache2/llvm/dist/libcxx/src/filesystem/ |
H A D | posix_compat.h | 179 buf->st_mode = 0555; // Read-only in stat_handle() 181 buf->st_mode |= 0222; // Write in stat_handle() 183 buf->st_mode |= _S_IFDIR; in stat_handle() 185 buf->st_mode |= _S_IFREG; in stat_handle() 193 buf->st_mode = (buf->st_mode & ~_S_IFMT) | _S_IFLNK; in stat_handle()
|
/netbsd/usr.bin/tail/ |
H A D | forward.c | 99 if (S_ISREG(sbp->st_mode)) { in forward() 131 if (S_ISREG(sbp->st_mode)) { in forward() 149 if (S_ISREG(sbp->st_mode)) { in forward()
|
/netbsd/external/gpl2/xcvs/dist/lib/ |
H A D | canonicalize.c | 246 st.st_mode = 0; in canonicalize_filename_mode() 249 if (S_ISLNK (st.st_mode)) in canonicalize_filename_mode() 302 if (!S_ISDIR (st.st_mode) && *end && (can_mode != CAN_MISSING)) in canonicalize_filename_mode()
|
/netbsd/external/gpl2/dtc/dist/ |
H A D | fstree.c | 38 if (S_ISREG(st.st_mode)) { in read_fstree() 55 } else if (S_ISDIR(st.st_mode)) { in read_fstree()
|
/netbsd/distrib/utils/tls/ |
H A D | tls.c | 101 ifmt = (st.st_mode >> 12) & 15; in show_long() 111 printf("%04o ", st.st_mode & 07777); in show_long()
|
/netbsd/external/bsd/iscsi/dist/src/initiator/ |
H A D | virtdir.c | 120 tp->dir.st_mode = S_IFDIR | 0755; in virtdir_init() 123 tp->file.st_mode = S_IFREG | 0644; in virtdir_init() 126 tp->lnk.st_mode = S_IFLNK | 0644; in virtdir_init() 315 st.st_mode = S_IFREG | 0644; in main()
|
/netbsd/tests/lib/libc/sys/ |
H A D | t_stat.c | 387 if (S_ISLNK(sa.st_mode) != 0) in ATF_TC_BODY() 390 if (S_ISLNK(sb.st_mode) == 0) in ATF_TC_BODY() 393 if (sa.st_mode == sb.st_mode) in ATF_TC_BODY()
|
/netbsd/share/examples/refuse/dmesgfs/ |
H A D | dmesgfs.c | 73 st->st_mode = (S_IFDIR | 0755); in dmesgfs_getattr() 84 st->st_mode = S_IFREG | 0644; in dmesgfs_getattr() 92 st->st_mode = S_IFLNK | 0755; in dmesgfs_getattr() 265 f.st_mode = S_IFREG | 0644; in build_tree()
|
/netbsd/share/examples/refuse/virtdir/ |
H A D | virtdir.c | 118 tp->dir.st_mode = S_IFDIR | 0755; in virtdir_init() 121 tp->file.st_mode = S_IFREG | 0644; in virtdir_init() 124 tp->lnk.st_mode = S_IFLNK | 0644; in virtdir_init() 313 st.st_mode = S_IFREG | 0644; in main()
|
/netbsd/sys/external/bsd/acpica/dist/os_specific/service_layers/ |
H A D | osunixdir.c | 181 if ((S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename() 184 ((!S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename()
|
/netbsd/usr.sbin/fssconfig/ |
H A D | fssconfig.c | 134 if (S_ISREG(sbuf.st_mode) && sbuf.st_dev == mountdev) { in config() 143 } else if (S_ISDIR(sbuf.st_mode)) { in config() 177 isreg = S_ISREG(sbuf.st_mode); in config()
|
/netbsd/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/ |
H A D | randombytes_sysrandom.c | 185 (S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode)) in randombytes_sysrandom_random_dev_open() 187 S_ISCHR(st.st_mode) in randombytes_sysrandom_random_dev_open()
|
/netbsd/usr.bin/wc/ |
H A D | wc.c | 242 if (S_ISREG(sb.st_mode) || in cnt() 243 S_ISLNK(sb.st_mode) || in cnt() 244 S_ISDIR(sb.st_mode)) { in cnt()
|
/netbsd/sbin/mount_qemufwcfg/ |
H A D | fwcfg.c | 88 st->st_mode = S_IFDIR | fwcfg_dir_mask; in fwcfg_getattr() 100 st->st_mode = S_IFREG | fwcfg_file_mask; in fwcfg_getattr() 104 st->st_mode = S_IFDIR | fwcfg_dir_mask; in fwcfg_getattr()
|