Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 52) sorted by relevance

123

/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c130 if ((ret = stat(dname, &sbuf)) != 0 || !(sbuf.st_mode & in main()
140 } else if ((sbuf.st_mode & S_IFMT) == S_IFREG || in main()
141 (sbuf.st_mode & S_IFMT) == S_IFLNK || in main()
142 (sbuf.st_mode & S_IFMT) == S_IFCHR || in main()
143 (sbuf.st_mode & S_IFMT) == S_IFBLK) { in main()
145 } else if ((sbuf.st_mode & S_IFMT) == S_IFDIR) { in main()
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_files.h182 #define ngx_is_dir(sb) (S_ISDIR((sb)->st_mode))
183 #define ngx_is_file(sb) (S_ISREG((sb)->st_mode))
184 #define ngx_is_link(sb) (S_ISLNK((sb)->st_mode))
185 #define ngx_is_exec(sb) (((sb)->st_mode & S_IXUSR) == S_IXUSR)
186 #define ngx_file_access(sb) ((sb)->st_mode & 0777)
265 (((dir)->type) ? ((dir)->type == DT_DIR) : (S_ISDIR((dir)->info.st_mode)))
267 (((dir)->type) ? ((dir)->type == DT_REG) : (S_ISREG((dir)->info.st_mode)))
273 #define ngx_de_is_dir(dir) (S_ISDIR((dir)->info.st_mode))
274 #define ngx_de_is_file(dir) (S_ISREG((dir)->info.st_mode))
275 #define ngx_de_is_link(dir) (S_ISLNK((dir)->info.st_mode))
[all …]
/f-stack/tools/libutil/
H A D_secure_path.c58 else if (!S_ISREG(sb.st_mode)) in _secure_path()
60 else if (sb.st_mode & S_IWOTH) in _secure_path()
67 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP)) in _secure_path()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h49 if (S_ISCHR(sb->st_mode)) in fstat64()
66 if (S_ISBLK(st->st_mode)) { in fstat64_blk()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_import_os.c138 if (S_ISREG(statbuf.st_mode)) { in zpool_open_func()
143 } else if (S_ISCHR(statbuf.st_mode) || S_ISBLK(statbuf.st_mode)) { in zpool_open_func()
/f-stack/freebsd/contrib/openzfs/cmd/zfs/
H A Dzfs_project.c72 if (!S_ISREG(st->st_mode) && !S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
78 if (!S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
279 if (ret || !S_ISDIR(st.st_mode) || zpc->zpc_dironly || in zfs_project_handle()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_stat_mode.c98 mode = fst.st_mode & 0777; in test_stat_mode()
105 mode = st.st_mode & 0777; in test_stat_mode()
H A Dtmpfile_test.c32 if (!S_ISDIR(buf.st_mode)) { in main()
/f-stack/freebsd/sys/
H A Dstat.h108 mode_t st_mode; /* inode protection mode */ member
128 mode_t st_mode; /* inode protection mode */ member
164 mode_t st_mode; /* inode protection mode */ member
198 __uint32_t st_mode; /* inode protection mode */ member
/f-stack/freebsd/contrib/libsodium/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()
/f-stack/freebsd/contrib/zstd/programs/
H A Dutil.c144 return (statbuf->st_mode & S_IFREG) != 0; in UTIL_isRegularFileStat()
146 return S_ISREG(statbuf->st_mode) != 0; in UTIL_isRegularFileStat()
195 res += UTIL_chmod(filename, &curStatBuf, statbuf->st_mode & 07777); /* Copy file permissions */ in UTIL_setFileStat()
210 return (statbuf->st_mode & _S_IFDIR) != 0; in UTIL_isDirectoryStat()
212 return S_ISDIR(statbuf->st_mode) != 0; in UTIL_isDirectoryStat()
257 if (S_ISFIFO(statbuf->st_mode)) return 1; in UTIL_isFIFOStat()
269 if (!r && S_ISLNK(statbuf.st_mode)) return 1; in UTIL_isLink()
286 if (!(statbuf->st_mode & S_IFREG)) return UTIL_FILESIZE_UNKNOWN; in UTIL_getFileSizeStat()
288 if (!(statbuf->st_mode & S_IFREG)) return UTIL_FILESIZE_UNKNOWN; in UTIL_getFileSizeStat()
290 if (!S_ISREG(statbuf->st_mode)) return UTIL_FILESIZE_UNKNOWN; in UTIL_getFileSizeStat()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dstat.h43 if (S_ISBLK(st->st_mode)) { in fstat64_blk()
/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_conf.c389 if (!S_ISREG(st.st_mode)) { in zed_conf_scan_dir()
401 if (!(st.st_mode & S_IXUSR)) { in zed_conf_scan_dir()
407 if ((st.st_mode & S_IWGRP) && !zcp->do_force) { in zed_conf_scan_dir()
413 if ((st.st_mode & S_IWOTH) && !zcp->do_force) { in zed_conf_scan_dir()
/f-stack/freebsd/kern/
H A Dsys_procdesc.c538 sb->st_mode = S_IFREG | S_IRWXU; in procdesc_stat()
540 sb->st_mode = S_IFREG; in procdesc_stat()
545 sb->st_mode = S_IFREG; in procdesc_stat()
H A Dsys_socket.c314 ub->st_mode = S_IFSOCK; in soo_stat()
331 ub->st_mode |= S_IRUSR | S_IRGRP | S_IROTH; in soo_stat()
338 ub->st_mode |= S_IWUSR | S_IWGRP | S_IWOTH; in soo_stat()
/f-stack/freebsd/contrib/openzfs/lib/libshare/os/linux/
H A Dsmb.c107 if (!S_ISREG(eStat.st_mode)) in smb_retrieve_shares()
437 !S_ISDIR(statbuf.st_mode)) in smb_available()
/f-stack/freebsd/i386/linux/
H A Dlinux.h149 l_ushort st_mode; member
168 l_ushort st_mode; member
187 l_uint st_mode; member
/f-stack/freebsd/contrib/openzfs/cmd/zgenhostid/
H A Dzgenhostid.c119 S_ISREG(fstat.st_mode)) { in main()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/suid/
H A Dsuid_write_to_file.c98 res = st.st_mode & (0777 | S_ISUID | S_ISGID); in test_stat_mode()
/f-stack/freebsd/amd64/linux32/
H A Dlinux.h178 l_ushort st_mode; member
197 l_ushort st_mode; member
216 l_uint st_mode; member
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c132 (!S_ISREG(statbuf.st_mode) && !S_ISBLK(statbuf.st_mode))) in zpool_open_func()
151 if (S_ISREG(statbuf.st_mode) && statbuf.st_size < SPA_MINDEVSIZE) { in zpool_open_func()
/f-stack/freebsd/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c230 if (fstat(fd, &st) == 0 && (S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode))) { in randombytes_salsa20_random_random_dev_open()
/f-stack/freebsd/arm64/linux/
H A Dlinux.h123 l_uint st_mode; member
/f-stack/freebsd/contrib/openzfs/cmd/mount_zfs/
H A Dmount_zfs.c84 if (error || S_ISLNK(st.st_mode)) in mtab_is_writeable()
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_file.c640 if ((fi.st_mode & (S_IRUSR|S_IWUSR|S_IXUSR)) in ngx_create_paths()
643 fi.st_mode |= (S_IRUSR|S_IWUSR|S_IXUSR); in ngx_create_paths()
645 if (chmod((const char *) path[i]->name.data, fi.st_mode) == -1) { in ngx_create_paths()

123