| /freebsd-13-stable/tests/sys/fs/fusefs/ |
| HD | statfs.cc | 46 struct statfs statbuf; in TEST_F() local 55 ASSERT_NE(0, statfs("mountpoint", &statbuf)); in TEST_F() 65 struct statfs statbuf; in TEST_F() local 72 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 74 EXPECT_EQ(getuid(), statbuf.f_owner); in TEST_F() 75 EXPECT_EQ(0, strcmp("fusefs", statbuf.f_fstypename)); in TEST_F() 76 EXPECT_EQ(0, strcmp("/dev/fuse", statbuf.f_mntfromname)); in TEST_F() 77 EXPECT_EQ(0, strcmp(mp, statbuf.f_mntonname)); in TEST_F() 97 struct statfs statbuf; in TEST_F() local 117 ASSERT_EQ(0, pthread_create(&th0, NULL, statfs_th, (void*)&statbuf)) in TEST_F() [all …]
|
| HD | mount.cc | 95 struct statfs statbuf; in TEST_F() local 99 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 100 ASSERT_STREQ("http://something", statbuf.f_mntfromname); in TEST_F() 105 struct statfs statbuf; in TEST_F() local 109 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 110 ASSERT_STREQ("fusefs.myfs", statbuf.f_fstypename); in TEST_F() 116 struct statfs statbuf; in TEST_P() local 141 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_P() 142 newflags = (statbuf.f_flags | MNT_UPDATE) ^ flag; in TEST_P() 144 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_P() [all …]
|
| HD | fallocate.cc | 169 struct statfs statbuf; in TEST_F() local 198 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); in TEST_F() 199 newflags = statbuf.f_flags | MNT_UPDATE | MNT_RDONLY; in TEST_F() 200 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_F() 201 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_F()
|
| /freebsd-13-stable/contrib/opie/libopie/ |
| HD | lock.c | 95 struct stat statbuf[2]; variable 118 if (lstat(__opie_lockfilename, &statbuf[0]) < 0) 121 if (statbuf[0].st_uid) { 128 if (!S_ISDIR(statbuf[0].st_mode)) { 135 if ((statbuf[0].st_mode & 0777) != 00700) { 147 if (!lstat(__opie_lockfilename, &statbuf[0])) 148 if (!S_ISREG(statbuf[0].st_mode)) 152 if (lstat(__opie_lockfilename, &statbuf[1]) < 0) 154 if (statbuf[0].st_ino != statbuf[1].st_ino) 156 if (statbuf[0].st_mode != statbuf[1].st_mode) [all …]
|
| /freebsd-13-stable/sys/contrib/zstd/programs/ |
| HD | util.c | 124 int UTIL_stat(const char* filename, stat_t* statbuf) in UTIL_stat() argument 127 return !_stat64(filename, statbuf); in UTIL_stat() 129 return !_stati64(filename, statbuf); in UTIL_stat() 131 return !stat(filename, statbuf); in UTIL_stat() 137 stat_t statbuf; in UTIL_isRegularFile() local 138 return UTIL_stat(infilename, &statbuf) && UTIL_isRegularFileStat(&statbuf); in UTIL_isRegularFile() 141 int UTIL_isRegularFileStat(const stat_t* statbuf) in UTIL_isRegularFileStat() argument 144 return (statbuf->st_mode & S_IFREG) != 0; in UTIL_isRegularFileStat() 146 return S_ISREG(statbuf->st_mode) != 0; in UTIL_isRegularFileStat() 151 int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions) in UTIL_chmod() argument [all …]
|
| HD | util.h | 129 int UTIL_stat(const char* filename, stat_t* statbuf); 136 int UTIL_setFileStat(const char* filename, const stat_t* statbuf); 143 int UTIL_isRegularFileStat(const stat_t* statbuf); 144 int UTIL_isDirectoryStat(const stat_t* statbuf); 145 int UTIL_isFIFOStat(const stat_t* statbuf); 146 U64 UTIL_getFileSizeStat(const stat_t* statbuf); 153 int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions);
|
| /freebsd-13-stable/usr.sbin/cron/cron/ |
| HD | database.c | 46 struct stat statbuf; local 67 if (stat(SPOOL_DIR, &statbuf) < OK) { 77 maxmtime = TMAX(statbuf.st_mtime, syscron_stat.st_mtime); 176 &statbuf, &new_db, old_db); 251 process_crontab(uname, fname, tabname, statbuf, new_db, old_db) in process_crontab() argument 255 struct stat *statbuf; 279 if (fstat(crontab_fd, statbuf) < OK) { 290 if (u->mtime == statbuf->st_mtime) { 311 u->mtime = statbuf->st_mtime;
|
| /freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
| HD | zutil_import_os.c | 106 struct stat64 statbuf; in zpool_open_func() local 136 if (fstat64(fd, &statbuf) != 0) in zpool_open_func() 141 if (S_ISREG(statbuf.st_mode)) { in zpool_open_func() 143 if (statbuf.st_size < SPA_MINDEVSIZE) { in zpool_open_func() 146 } else if (S_ISCHR(statbuf.st_mode) || S_ISBLK(statbuf.st_mode)) { in zpool_open_func()
|
| HD | zutil_device_path_os.c | 105 struct stat64 statbuf; in zpool_label_disk_wait() local 112 if ((stat64(path, &statbuf) == 0) && (errno == 0)) { in zpool_label_disk_wait()
|
| /freebsd-13-stable/tests/sys/cddl/zfs/tests/exec/ |
| HD | mmap_exec.c | 42 struct stat statbuf; in main() local 57 if (fstat(fd, &statbuf) < 0) { in main() 62 if (mmap(0, statbuf.st_size, in main()
|
| /freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_exec/ |
| HD | mmap_exec.c | 42 struct stat statbuf; in main() local 58 if (fstat(fd, &statbuf) < 0) { in main() 64 if (mmap(0, statbuf.st_size, in main()
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zvol_id/ |
| HD | zvol_id_main.c | 60 struct stat64 statbuf; in main() local 70 ret = stat64(dev_name, &statbuf); in main() 76 dev_minor = minor(statbuf.st_rdev); in main()
|
| /freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| HD | zutil_import_os.c | 106 struct stat64 statbuf; in zpool_open_func() local 131 if (stat64(rn->rn_name, &statbuf) != 0 || in zpool_open_func() 132 (!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() 636 struct stat64 statbuf; in zpool_label_disk_wait() local 641 if (stat64(name, &statbuf) == 0 && errno == 0) in zpool_label_disk_wait() 672 struct stat64 statbuf; in zpool_label_disk_wait() 679 if ((stat64(path, &statbuf) == 0) && (errno == 0)) { in zpool_label_disk_wait()
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zinject/ |
| HD | translate.c | 85 struct stat64 *statbuf) in parse_pathname() argument 100 if (getextmntent(fullpath, &mp, statbuf) != 0) { in parse_pathname() 222 struct stat64 statbuf; in translate_record() local 267 if (parse_pathname(object, dataset, path, &statbuf) != 0) in translate_record() 276 if (object_from_path(dataset, statbuf.st_ino, record) != 0) in translate_record()
|
| /freebsd-13-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| HD | linux_syscall_hooks.h | 477 #define __sanitizer_syscall_pre_stat(filename, statbuf) \ argument 478 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf)) 479 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \ argument 480 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf)) 499 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \ argument 500 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf)) 501 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \ argument 502 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf)) 503 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \ argument 504 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf)) [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/ |
| HD | zpool_vdev.c | 187 struct stat64 *statbuf, boolean_t *wholedisk) in is_shorthand_path() argument 194 if (*wholedisk || (stat64(path, statbuf) == 0)) in is_shorthand_path() 199 memset(statbuf, 0, sizeof (*statbuf)); in is_shorthand_path() 276 struct stat64 statbuf; in make_leaf_vdev() local 304 if (!wholedisk && (stat64(path, &statbuf) != 0)) { in make_leaf_vdev() 326 &statbuf, &wholedisk); in make_leaf_vdev() 356 if (wholedisk || S_ISBLK(statbuf.st_mode)) { in make_leaf_vdev() 358 } else if (S_ISREG(statbuf.st_mode)) { in make_leaf_vdev() 571 struct stat64 statbuf; in get_replication() local 643 err = fstat64_blk(fd, &statbuf); in get_replication() [all …]
|
| /freebsd-13-stable/contrib/ncurses/ncurses/tinfo/ |
| HD | write_entry.c | 191 struct stat statbuf; in make_db_root() 193 if ((rc = stat(path, &statbuf)) < 0) { in make_db_root() 201 } else if (!(S_ISDIR(statbuf.st_mode))) { in make_db_root() 285 struct stat statbuf; in _nc_write_entry() 421 stat(filename, &statbuf) >= 0 in _nc_write_entry() 422 && statbuf.st_mtime >= start_time) { in _nc_write_entry() 430 if (statbuf.st_nlink > 1) { in _nc_write_entry() 445 if (stat(filename, &statbuf) < 0 in _nc_write_entry() 446 || (start_time = statbuf.st_mtime) == 0) { in _nc_write_entry() 475 } else if (stat(linkname, &statbuf) >= 0 && in _nc_write_entry() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/lib/libspl/os/linux/ |
| HD | getmntany.c | 106 getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) argument 123 if (stat64(path, statbuf) != 0) { 146 statbuf->st_dev) {
|
| /freebsd-13-stable/stand/ficl/ |
| HD | fileaccess.c | 151 struct stat statbuf; in ficlFileStatus() local 160 if (stat(filename, &statbuf) == 0) in ficlFileStatus() 167 stackPushINT(pVM->pStack, statbuf.st_mode); in ficlFileStatus() 190 struct stat statbuf; in fileSize() local 191 statbuf.st_size = -1; in fileSize() 192 if (fstat(fileno(f), &statbuf) != 0) in fileSize() 194 return statbuf.st_size; in fileSize()
|
| /freebsd-13-stable/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
| HD | getmntany.c | 41 getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) in getextmntent() argument 50 if (stat64(path, statbuf) != 0) { in getextmntent()
|
| /freebsd-13-stable/usr.sbin/cron/crontab/ |
| HD | crontab.c | 324 struct stat statbuf, fsbuf; local 374 if (stat(Filename, &statbuf) < 0) { 381 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino) 448 if (stat(Filename, &statbuf) < 0) { 452 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino)
|
| /freebsd-13-stable/contrib/less/ |
| HD | filename.c | 1012 less_stat_t statbuf; in is_dir() local 1014 r = less_stat(filename, &statbuf); in is_dir() 1015 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode)); in is_dir() 1053 less_stat_t statbuf; in bad_file() local 1055 r = less_stat(filename, &statbuf); in bad_file() 1062 } else if (!S_ISREG(statbuf.st_mode)) in bad_file() 1082 less_stat_t statbuf; in filesize() local 1084 if (less_fstat(f, &statbuf) >= 0) in filesize() 1085 return ((POSITION) statbuf.st_size); in filesize()
|
| /freebsd-13-stable/usr.sbin/autofs/ |
| HD | automount.c | 265 struct statfs statbuf; in flush_caches() local 286 if (statfs(mntbuf[i].f_mntonname, &statbuf) != 0) { in flush_caches() 290 if (strcmp(statbuf.f_fstypename, "autofs") != 0) { in flush_caches() 296 flush_autofs(mntbuf[i].f_mntonname, &statbuf.f_fsid); in flush_caches()
|
| /freebsd-13-stable/usr.sbin/ypserv/ |
| HD | yp_access.c | 317 struct stat statbuf; local 327 if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))
|
| /freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/os/linux/ |
| HD | zpool_vdev_os.c | 423 struct stat statbuf; in zpool_sysfs_gets() local 430 if (fstat(fd, &statbuf) != 0) { in zpool_sysfs_gets() 435 buf = calloc(statbuf.st_size + 1, sizeof (*buf)); in zpool_sysfs_gets() 446 count = read(fd, buf, statbuf.st_size); in zpool_sysfs_gets()
|