Home
last modified time | relevance | path

Searched refs:st_mode (Results 101 – 125 of 1193) sorted by relevance

12345678910>>...48

/netbsd/tests/lib/libc/c063/
H A Dt_fchmodat.c72 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 Dmail.c69 && 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 Dtftpd.c810 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 Dfsaccess.c41 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 Dinstallboot.c107 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 Dfsutil.c212 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 Dauth-rhosts.c74 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 Dfsaccess.c48 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 Defifs.c248 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 Drcscmds.c543 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 Dsave.c198 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 Dposix_compat.h179 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 Dforward.c99 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 Dcanonicalize.c246 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 Dfstree.c38 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 Dtls.c101 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 Dvirtdir.c120 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 Dt_stat.c387 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 Ddmesgfs.c73 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 Dvirtdir.c118 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 Dosunixdir.c181 if ((S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename()
184 ((!S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename()
/netbsd/usr.sbin/fssconfig/
H A Dfssconfig.c134 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 Drandombytes_sysrandom.c185 (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 Dwc.c242 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 Dfwcfg.c88 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()

12345678910>>...48