/external/toybox/toys/other/ |
D | stat.c | 48 struct statfs sf; 137 struct statfs *statfs = (struct statfs *)&TT.stat; in print_statfs() local 139 if (type == 'a') out('u', statfs->f_bavail); in print_statfs() 140 else if (type == 'b') out('u', statfs->f_blocks); in print_statfs() 141 else if (type == 'c') out('u', statfs->f_files); in print_statfs() 142 else if (type == 'd') out('u', statfs->f_ffree); in print_statfs() 143 else if (type == 'f') out('u', statfs->f_bfree); in print_statfs() 145 else if (type == 't') out('x', statfs->f_type); in print_statfs() 146 else if (type == 'T') strout(fs_type_name(statfs)); in print_statfs() 148 int *val = (int *) &statfs->f_fsid; in print_statfs() [all …]
|
D | switch_root.c | 48 struct statfs stfs; in switch_root_main() 54 if (statfs("/", &stfs) || in switch_root_main()
|
/external/openssh/openbsd-compat/ |
D | bsd-statvfs.c | 43 copy_statfs_to_statvfs(struct statvfs *to, struct statfs *from) in copy_statfs_to_statvfs() 67 struct statfs fs; in statvfs() 70 if (statfs(path, &fs) == -1) in statvfs() 85 struct statfs fs; in fstatvfs()
|
/external/ltp/testcases/kernel/syscalls/statfs/ |
D | statfs02.c | 55 static struct statfs buf; 59 struct statfs *buf; 67 {TEST_FILE, (struct statfs *)-1, EFAULT}, 119 TEST(statfs(test->path, test->buf)); in statfs_verify()
|
D | statfs01.c | 128 struct statfs stats; 143 TEST(statfs(fname, &stats)); in main()
|
D | statfs03.c | 69 struct statfs buf; 86 TEST(statfs(path, &buf)); in main()
|
/external/toybox/lib/ |
D | portability.h | 221 static inline long statfs_bsize(struct statfs *sf) { return sf->f_iosize; } in statfs_bsize() 222 static inline long statfs_frsize(struct statfs *sf) { return sf->f_bsize; } in statfs_frsize() 224 static inline long statfs_bsize(struct statfs *sf) { return sf->f_bsize; } in statfs_bsize() 225 static inline long statfs_frsize(struct statfs *sf) { return sf->f_frsize; } in statfs_frsize() 371 char *fs_type_name(struct statfs *statfs);
|
D | portability.c | 59 struct statfs *entries; in xgetmountlist() 70 struct statfs *me = &entries[i]; in xgetmountlist() 570 char *fs_type_name(struct statfs *statfs) in fs_type_name() argument 575 return statfs->f_fstypename; in fs_type_name() 591 if (nn[i].num == statfs->f_type) s = nn[i].name; in fs_type_name() 592 if (!s) sprintf(s = libbuf, "0x%x", (unsigned)statfs->f_type); in fs_type_name()
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/ |
D | mod.rs | 44 pub struct statfs { 74 impl PartialEq for statfs { 75 fn eq(&self, other: &statfs) -> bool { 106 impl Eq for statfs {} 107 impl ::fmt::Debug for statfs { 130 impl ::hash::Hash for statfs {
|
/external/tcpdump/lbl/ |
D | os-sunos4.h | 79 struct statfs; 81 int fstatfs(int, struct statfs *); 167 int statfs(char *, struct statfs *);
|
/external/libpcap/lbl/ |
D | os-sunos4.h | 78 struct statfs; 80 int fstatfs(int, struct statfs *); 165 int statfs(char *, struct statfs *);
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/ |
D | mod.rs | 43 pub struct statfs { 71 impl PartialEq for statfs { 72 fn eq(&self, other: &statfs) -> bool { 103 impl Eq for statfs {} 104 impl ::fmt::Debug for statfs { 127 impl ::hash::Hash for statfs {
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/ |
D | mod.rs | 43 pub struct statfs { 71 impl PartialEq for statfs { 72 fn eq(&self, other: &statfs) -> bool { 103 impl Eq for statfs {} 104 impl ::fmt::Debug for statfs { 127 impl ::hash::Hash for statfs {
|
/external/ltp/lib/ |
D | tst_fs_has_free.c | 32 struct statfs sf; in tst_fs_has_free_() 34 if (statfs(path, &sf)) { in tst_fs_has_free_()
|
D | tst_fs_type.c | 35 struct statfs sbuf; in tst_fs_type_() 37 if (statfs(path, &sbuf)) { in tst_fs_type_()
|
/external/rust/crates/nix/test/ |
D | test_fcntl.rs | 241 let statfs = nix::sys::statfs::fstatfs(&tmp).unwrap(); in test_ofd_write_lock() localVariable 242 if statfs.filesystem_type() == nix::sys::statfs::OVERLAYFS_SUPER_MAGIC { in test_ofd_write_lock() 283 let statfs = nix::sys::statfs::fstatfs(&tmp).unwrap(); in test_ofd_read_lock() localVariable 284 if statfs.filesystem_type() == nix::sys::statfs::OVERLAYFS_SUPER_MAGIC { in test_ofd_read_lock()
|
/external/libchrome/base/files/ |
D | file_util_linux.cc | 17 struct statfs statfs_buf; in GetFileSystemType() 18 if (statfs(path.value().c_str(), &statfs_buf) < 0) { in GetFileSystemType()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | noatime.h | 79 struct statfs _statfs; in mounted_noatime() 81 if (statfs(path, &_statfs) == -1) { in mounted_noatime()
|
/external/libbrillo/brillo/namespaces/ |
D | platform.cc | 30 struct statfs buff; in FileSystemIsNsfs() 31 if (statfs(ns_path.value().c_str(), &buff) < 0) { in FileSystemIsNsfs()
|
/external/ltp/testcases/kernel/syscalls/fstatfs/ |
D | fstatfs02.c | 36 static struct statfs buf; 40 struct statfs *sbuf;
|
/external/libchrome/base/ |
D | sys_info_posix.cc | 29 #define statvfs statfs // Android uses a statvfs-like statfs struct and call. 88 struct statfs stats; in IsStatsZeroIfUnlimited() 90 if (HANDLE_EINTR(statfs(path.value().c_str(), &stats)) != 0) in IsStatsZeroIfUnlimited()
|
/external/rust/crates/nix/src/sys/ |
D | statfs.rs | 16 pub struct Statfs(libc::statfs); 454 pub fn statfs<P: ?Sized + NixPath>(path: &P) -> Result<Statfs> { in statfs() function 456 let mut stat = mem::MaybeUninit::<libc::statfs>::uninit(); in statfs() 457 let res = path.with_nix_path(|path| libc::statfs(path.as_ptr(), stat.as_mut_ptr()))?; in statfs() 464 let mut stat = mem::MaybeUninit::<libc::statfs>::uninit(); in fstatfs() 474 use crate::sys::statfs::*; 509 let fs = statfs(path.as_bytes()).unwrap(); in check_statfs() 556 let fs = statfs(path.as_bytes()); in check_statfs_strict()
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify.h | 141 struct statfs stats; in fanotify_get_fid() 143 if (statfs(path, &stats) == -1) in fanotify_get_fid()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 11-4.c | 67 struct statfs buf; in main() 69 if (statfs("/tmp", &buf)) { in main()
|
/external/selinux/libselinux/src/ |
D | init.c | 34 struct statfs sfbuf; in verify_selinuxmnt() 38 rc = statfs(mnt, &sfbuf); in verify_selinuxmnt()
|