/freebsd-current/tests/sys/fs/fusefs/ |
H A D | statfs.cc | 46 struct statfs statbuf; local 55 ASSERT_NE(0, statfs("mountpoint", &statbuf)); 65 struct statfs statbuf; local 72 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); 74 EXPECT_EQ(getuid(), statbuf.f_owner); 75 EXPECT_EQ(0, strcmp("fusefs", statbuf.f_fstypename)); 76 EXPECT_EQ(0, strcmp("/dev/fuse", statbuf.f_mntfromname)); 77 EXPECT_EQ(0, strcmp(mp, statbuf.f_mntonname)); 97 struct statfs statbuf; local 117 ASSERT_EQ(0, pthread_create(&th0, NULL, statfs_th, (void*)&statbuf)) 134 struct statfs statbuf; local [all...] |
H A D | mount.cc | 95 struct statfs statbuf; local 99 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); 100 ASSERT_STREQ("http://something", statbuf.f_mntfromname); 105 struct statfs statbuf; local 109 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); 110 ASSERT_STREQ("fusefs.myfs", statbuf.f_fstypename); 116 struct statfs statbuf; local 141 ASSERT_EQ(0, statfs("mountpoint", &statbuf)) << strerror(errno); 142 newflags = (statbuf.f_flags | MNT_UPDATE) ^ flag; 144 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf 156 struct statfs statbuf; local [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mmap_exec.c | 42 struct stat statbuf; local 58 if (fstat(fd, &statbuf) < 0) { 64 if (mmap(0, statbuf.st_size,
|
/freebsd-current/tests/sys/cddl/zfs/tests/exec/ |
H A D | mmap_exec.c | 41 struct stat statbuf; local 56 if (fstat(fd, &statbuf) < 0) { 61 if (mmap(0, statbuf.st_size,
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | nfs12.sh | 92 struct stat statbuf; 110 if (fstat(fdin, &statbuf) < 0) 113 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 120 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == 124 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, 128 memcpy(dst, src, statbuf.st_size); 130 if (munmap(src, statbuf.st_size) == -1) 134 if (munmap(dst, statbuf.st_size) == -1)
|
H A D | nfsdelegation.sh | 103 struct stat statbuf; 129 if (fstat(fdout, &statbuf) < 0) 132 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE | 136 dst[statbuf.st_size] = 1; 139 if (munmap(dst, statbuf.st_size) == -1)
|
H A D | holdcnt02.sh | 129 struct stat statbuf; 141 if (fstat(fd, &statbuf) < 0) 143 if (statbuf.st_size < maxsize) { 165 struct stat statbuf; 182 if (fstat(fd, &statbuf) < 0) 184 if (statbuf.st_size >= maxsize) { 189 len = statbuf.st_size; 194 n = statbuf.st_size / ps;
|
H A D | holdcnt03.sh | 130 struct stat statbuf; 142 if (fstat(fd, &statbuf) < 0) 144 if (statbuf.st_size < maxsize) { 166 struct stat statbuf; 183 if (fstat(fd, &statbuf) < 0) 185 if (statbuf.st_size >= maxsize) { 190 len = statbuf.st_size; 194 n = statbuf.st_size / ps;
|
H A D | vunref.sh | 140 struct stat statbuf; 152 if (fstat(fdin, &statbuf) < 0) 155 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 162 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == 166 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, 170 memcpy(dst, src, statbuf.st_size); 172 if (munmap(src, statbuf.st_size) == -1) 176 if (munmap(dst, statbuf.st_size) == -1)
|
H A D | holdcnt0.sh | 145 struct stat statbuf; 160 if (fstat(fd, &statbuf) < 0) 162 if (statbuf.st_size < maxsize) { 180 struct stat statbuf; 201 if (fstat(fd, &statbuf) < 0) 203 if (statbuf.st_size >= maxsize) { 208 len = statbuf.st_size; 213 n = statbuf.st_size / ps;
|
H A D | holdcnt04.sh | 135 struct stat statbuf; 150 if (fstat(fd, &statbuf) < 0) 152 if (statbuf.st_size < maxsize) { 170 struct stat statbuf; 191 if (fstat(fd, &statbuf) < 0) 193 if (statbuf.st_size >= maxsize) { 198 len = statbuf.st_size; 203 n = statbuf.st_size / ps;
|
H A D | holdcnt05.sh | 134 struct stat statbuf; 149 if (fstat(fd, &statbuf) < 0) 151 if (statbuf.st_size < maxsize) { 169 struct stat statbuf; 190 if (fstat(fd, &statbuf) < 0) 192 if (statbuf.st_size >= maxsize) { 197 len = statbuf.st_size; 202 n = statbuf.st_size / ps;
|
/freebsd-current/tools/test/stress2/testcases/mmap/ |
H A D | mmap.c | 98 struct stat statbuf; local 115 if (fstat(fdin, &statbuf) < 0) 118 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 125 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == 129 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, 133 memcpy(dst, src, statbuf.st_size); 135 if (munmap(src, statbuf.st_size) == -1) 139 if (munmap(dst, statbuf.st_size) == -1)
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
H A D | getmntany.c | 42 getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) argument 51 if (stat64(path, statbuf) != 0) {
|
/freebsd-current/sys/contrib/zstd/programs/ |
H A D | util.h | 127 * Calls platform's equivalent of stat() on filename and writes info to statbuf. 130 int UTIL_stat(const char* filename, stat_t* statbuf); 137 int UTIL_setFileStat(const char* filename, const stat_t* statbuf); 140 * Set atime to now and mtime to the st_mtim in statbuf. 145 int UTIL_utime(const char* filename, const stat_t *statbuf); 152 int UTIL_isRegularFileStat(const stat_t* statbuf); 153 int UTIL_isDirectoryStat(const stat_t* statbuf); 154 int UTIL_isFIFOStat(const stat_t* statbuf); 155 int UTIL_isBlockDevStat(const stat_t* statbuf); 156 U64 UTIL_getFileSizeStat(const stat_t* statbuf); [all...] |
H A D | util.c | 124 int UTIL_stat(const char* filename, stat_t* statbuf) argument 127 return !_stat64(filename, statbuf); 129 return !_stati64(filename, statbuf); 131 return !stat(filename, statbuf); 137 stat_t statbuf; local 138 return UTIL_stat(infilename, &statbuf) && UTIL_isRegularFileStat(&statbuf); 141 int UTIL_isRegularFileStat(const stat_t* statbuf) argument 144 return (statbuf->st_mode & S_IFREG) != 0; 146 return S_ISREG(statbuf 151 UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions) argument 163 UTIL_utime(const char* filename, const stat_t *statbuf) argument 185 UTIL_setFileStat(const char *filename, const stat_t *statbuf) argument 208 stat_t statbuf; local 212 UTIL_isDirectoryStat(const stat_t* statbuf) argument 250 stat_t statbuf; local 258 UTIL_isFIFOStat(const stat_t* statbuf) argument 269 UTIL_isBlockDevStat(const stat_t* statbuf) argument 283 stat_t statbuf; local 293 stat_t statbuf; local 298 UTIL_getFileSizeStat(const stat_t* statbuf) argument 439 stat_t statbuf; local [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
H A D | zutil_import_os.c | 106 struct stat64 statbuf; local 136 if (fstat64(fd, &statbuf) != 0) 141 if (S_ISREG(statbuf.st_mode)) { 143 if (statbuf.st_size < SPA_MINDEVSIZE) { 146 } else if (S_ISCHR(statbuf.st_mode) || S_ISBLK(statbuf.st_mode)) {
|
H A D | zutil_device_path_os.c | 105 struct stat64 statbuf; local 112 if ((stat64(path, &statbuf) == 0) && (errno == 0)) {
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 887 PRE_SYSCALL(stat)(const void *filename, void *statbuf) { 893 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) { 895 if (statbuf) 896 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 946 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) { 952 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) { 954 if (statbuf) 955 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 959 PRE_SYSCALL(fstat)(long fd, void *statbuf) {} 961 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) { [all...] |
/freebsd-current/usr.sbin/cron/cron/ |
H A D | database.c | 41 struct stat statbuf, syscron_stat, st; local 62 if (stat(SPOOL_DIR, &statbuf) < OK) { 72 maxmtime = TMAX(statbuf.st_mtime, syscron_stat.st_mtime); 173 &statbuf, &new_db, old_db); 238 struct stat *statbuf, cron_db *new_db, cron_db *old_db) 260 if (fstat(crontab_fd, statbuf) < OK) { 271 if (u->mtime == statbuf->st_mtime) { 292 u->mtime = statbuf->st_mtime; 237 process_crontab(const char *uname, const char *fname, const char *tabname, struct stat *statbuf, cron_db *new_db, cron_db *old_db) argument
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/linux/ |
H A D | getmntany.c | 107 getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) argument 124 if (stat64(path, statbuf) != 0) { 143 statbuf->st_dev) {
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | mnttab.h | 80 struct stat64 *statbuf);
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
H A D | mnttab.h | 76 struct stat64 *statbuf);
|
/freebsd-current/sys/contrib/openzfs/cmd/zinject/ |
H A D | translate.c | 85 struct stat64 *statbuf) 100 if (getextmntent(fullpath, &mp, statbuf) != 0) { 223 struct stat64 statbuf; local 268 if (parse_pathname(object, dataset, path, &statbuf) != 0) 277 if (object_from_path(dataset, statbuf.st_ino, record) != 0) 84 parse_pathname(const char *inpath, char *dataset, char *relpath, struct stat64 *statbuf) argument
|
/freebsd-current/tests/sys/file/ |
H A D | fspacectl_test.c | 49 struct stat statbuf; local 52 if (fstat(fd, &statbuf) == -1) 54 blocksize = statbuf.st_blksize; 91 struct stat statbuf; local 171 if (fstat(fd, &statbuf) == -1) 173 if (statbuf.st_size != file_sz)
|