Home
last modified time | relevance | path

Searched refs:statvfs (Results 1 - 25 of 109) sorted by relevance

12345

/third_party/toybox/toys/posix/
H A Ddf.c117 if (!(toys.optflags & FLAG_a) && !mt->statvfs.f_blocks) return; in show_mt()
122 size = mt->statvfs.f_files; in show_mt()
123 used = mt->statvfs.f_files - mt->statvfs.f_ffree; in show_mt()
124 avail = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree; in show_mt()
126 block = mt->statvfs.f_bsize ? mt->statvfs.f_bsize : 1; in show_mt()
127 size = (block * mt->statvfs.f_blocks) / TT.units; in show_mt()
128 used = (block * (mt->statvfs in show_mt()
[all...]
/third_party/musl/src/stat/
H A Dstatvfs.c1 #include <sys/statvfs.h>
28 static void fixup(struct statvfs *out, const struct statfs *in) in fixup()
30 *out = (struct statvfs){0}; in fixup()
45 int statvfs(const char *restrict path, struct statvfs *restrict buf) in statvfs() function
53 int fstatvfs(int fd, struct statvfs *buf) in fstatvfs()
61 weak_alias(statvfs, statvfs64);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dstatvfs.h14 struct statvfs { struct
29 int statvfs (const char *__restrict, struct statvfs *__restrict);
30 int fstatvfs (int, struct statvfs *);
46 #define statvfs64 statvfs
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dstatvfs.h11 struct statvfs { struct
26 int statvfs (const char *__restrict, struct statvfs *__restrict);
27 int fstatvfs (int, struct statvfs *);
43 #define statvfs64 statvfs
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dstatvfs.h14 struct statvfs { struct
29 int statvfs (const char *__restrict, struct statvfs *__restrict);
30 int fstatvfs (int, struct statvfs *);
46 #define statvfs64 statvfs
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dstatvfs.h14 struct statvfs { struct
29 int statvfs (const char *__restrict, struct statvfs *__restrict);
30 int fstatvfs (int, struct statvfs *);
46 #define statvfs64 statvfs
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dstatvfs.h14 struct statvfs { struct
29 int statvfs (const char *__restrict, struct statvfs *__restrict);
30 int fstatvfs (int, struct statvfs *);
46 #define statvfs64 statvfs
/third_party/musl/include/sys/
H A Dstatvfs.h14 struct statvfs { struct
30 int statvfs (const char *__restrict, struct statvfs *__restrict);
31 int fstatvfs (int, struct statvfs *);
47 #define statvfs64 statvfs
/third_party/musl/libc-test/src/api/
H A Dsys_statvfs.c1 #include <sys/statvfs.h>
10 struct statvfs x; in f()
25 {int(*p)(int,struct statvfs*) = fstatvfs;} in f()
26 {int(*p)(const char*restrict,struct statvfs*restrict) = statvfs;} in f()
/third_party/musl/libc-test/src/functionalext/supplement/stat/
H A Dstatvfs_sup.c18 #include <sys/statvfs.h>
23 * @tc.desc : Test statvfs to get filesystem statistics in a given path
28 struct statvfs sb; in statvfs_0100()
29 int result = statvfs("/proc", &sb); in statvfs_0100()
31 t_error("%s statvfs error get result is %d are not want 0\n", __func__, result); in statvfs_0100()
37 * @tc.desc : Test statvfs results when incoming paths, etc. are empty
43 int result = statvfs(NULL, NULL); in statvfs_0200()
45 t_error("%s statvfs error get result is %d are not want -1\n", __func__, result); in statvfs_0200()
H A Dfstatvfs.c17 #include <sys/statvfs.h>
27 struct statvfs sts; in fstatvfs_0100()
64 struct statvfs sts; in fstatvfs_0200()
/third_party/rust/crates/nix/src/sys/
H A Dstatvfs.rs67 /// Wrapper around the POSIX `statvfs` struct
69 /// For more information see the [`statvfs(3)` man pages](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_statvfs.h.html).
72 pub struct Statvfs(libc::statvfs);
136 pub fn statvfs<P: ?Sized + NixPath>(path: &P) -> Result<Statvfs> { in statvfs() functions
139 let mut stat = mem::MaybeUninit::<libc::statvfs>::uninit(); in statvfs()
141 libc::statvfs(path.as_ptr(), stat.as_mut_ptr()) in statvfs()
152 let mut stat = mem::MaybeUninit::<libc::statvfs>::uninit(); in fstatvfs()
160 use crate::sys::statvfs::*;
165 statvfs(&b"/"[..]).unwrap(); in statvfs_call()
/third_party/rust/crates/rustix/tests/fs/
H A Dstatfs.rs78 let statvfs = rustix::fs::statvfs("Cargo.toml").unwrap(); in test_statvfs()
80 let f_frsize = statvfs.f_frsize; in test_statvfs()
87 let statvfs = rustix::fs::fstatvfs(&file).unwrap(); in test_fstatvfs()
89 let f_frsize = statvfs.f_frsize; in test_fstatvfs()
H A Dfile.rs90 let statvfs = rustix::fs::fstatvfs(&file).unwrap(); in test_file()
91 assert!(statvfs.f_frsize > 0); in test_file()
/third_party/ltp/testcases/kernel/syscalls/statvfs/
H A Dstatvfs02.c12 * Verify that statvfs() fails with:
21 #include <sys/statvfs.h>
28 static struct statvfs buf;
33 struct statvfs *buf;
63 TST_EXP_FAIL(statvfs(tc->path, tc->buf), tc->exp_errno); in run()
H A Dstatvfs01.c11 * Verify that statvfs() executes successfully for all
12 * available filesystems. Verify statvfs.f_namemax field
16 #include <sys/statvfs.h>
25 struct statvfs buf; in run()
32 TST_EXP_PASS(statvfs(TEST_PATH, &buf)); in run()
/third_party/musl/libc-test/src/regression/
H A Dstatvfs.c6 #include <sys/statvfs.h>
11 struct statvfs f; in main()
13 if (statvfs("/", &f)) in main()
14 t_error("statvfs(\"/\") failed: %s\n", strerror(errno)); in main()
/third_party/ltp/testcases/kernel/syscalls/mount_setattr/
H A Dmount_setattr01.c32 #include <sys/statvfs.h>
83 struct statvfs buf; in run()
103 TST_EXP_PASS_SILENT(statvfs(OT_MNTPOINT, &buf), "statvfs sucess"); in run()
/third_party/ltp/lib/
H A Dtst_fill_fs.c9 #include <sys/statvfs.h>
26 struct statvfs fi; in fill_random()
28 statvfs(path, &fi); in fill_random()
/third_party/selinux/libselinux/src/
H A Dinit.c10 #include <sys/statvfs.h>
41 struct statvfs vfsbuf; in verify_selinuxmnt()
42 rc = statvfs(mnt, &vfsbuf); in verify_selinuxmnt()
/third_party/rust/crates/rustix/src/fs/
H A Dabs.rs26 /// Compared to [`statvfs`], this function often provides more information,
46 /// `statvfs`—Queries filesystem metadata, POSIX version.
57 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html
58 /// [Linux]: https://man7.org/linux/man-pages/man2/statvfs.2.html
67 pub fn statvfs<P: path::Arg>(path: P) -> io::Result<StatVfs> { in statvfs() functions
68 path.into_with_c_str(backend::fs::syscalls::statvfs) in statvfs()
/third_party/ltp/testcases/kernel/syscalls/fsync/
H A Dfsync02.c16 #include <sys/statvfs.h>
32 struct statvfs stat_buf;
/third_party/ntfs-3g/include/fuse-lite/
H A Dfuse.h24 #include <sys/statvfs.h>
184 * Replaced 'struct statfs' parameter with 'struct statvfs' in
187 int (*statfs) (const char *, struct statvfs *);
586 int fuse_fs_statfs(struct fuse_fs *fs, const char *path, struct statvfs *buf);
/third_party/toybox/lib/
H A Dportability.c49 // Get list of mounted filesystems, including stat and statvfs info.
79 statvfs(me->f_mntonname, &(mt->statvfs)); in xgetmountlist()
171 statvfs(me->mnt_dir, &(mt->statvfs)); in xgetmountlist()
/third_party/musl/libc-test/src/functionalext/supplement/stat/stat_gtest/
H A Dstat_statvfs64_test.cpp2 #include <sys/statvfs.h>

Completed in 7 milliseconds

12345