Lines Matching refs:fsbuf
30 __internal_statvfs (struct statvfs *buf, const struct statfs *fsbuf) in __internal_statvfs() argument
33 buf->f_bsize = fsbuf->f_bsize; in __internal_statvfs()
36 buf->f_frsize = fsbuf->f_frsize ?: fsbuf->f_bsize; in __internal_statvfs()
37 buf->f_blocks = fsbuf->f_blocks; in __internal_statvfs()
38 buf->f_bfree = fsbuf->f_bfree; in __internal_statvfs()
39 buf->f_bavail = fsbuf->f_bavail; in __internal_statvfs()
40 buf->f_files = fsbuf->f_files; in __internal_statvfs()
41 buf->f_ffree = fsbuf->f_ffree; in __internal_statvfs()
42 if (sizeof (buf->f_fsid) == sizeof (fsbuf->f_fsid)) in __internal_statvfs()
47 buf->f_fsid = ((fsbuf->f_fsid.__val[0] in __internal_statvfs()
48 & ((1ULL << (8 * sizeof (fsbuf->f_fsid.__val[0]))) - 1)) in __internal_statvfs()
49 | ((unsigned long long int) fsbuf->f_fsid.__val[1] in __internal_statvfs()
51 - sizeof (fsbuf->f_fsid.__val[0]))))); in __internal_statvfs()
55 buf->f_fsid = fsbuf->f_fsid.__val[0]; in __internal_statvfs()
59 buf->f_namemax = fsbuf->f_namelen; in __internal_statvfs()
67 buf->f_flag = fsbuf->f_flags ^ ST_VALID; in __internal_statvfs()
72 __internal_statvfs64 (struct statvfs64 *buf, const struct statfs64 *fsbuf) in __internal_statvfs64() argument
75 buf->f_bsize = fsbuf->f_bsize; in __internal_statvfs64()
78 buf->f_frsize = fsbuf->f_frsize ?: fsbuf->f_bsize; in __internal_statvfs64()
79 buf->f_blocks = fsbuf->f_blocks; in __internal_statvfs64()
80 buf->f_bfree = fsbuf->f_bfree; in __internal_statvfs64()
81 buf->f_bavail = fsbuf->f_bavail; in __internal_statvfs64()
82 buf->f_files = fsbuf->f_files; in __internal_statvfs64()
83 buf->f_ffree = fsbuf->f_ffree; in __internal_statvfs64()
84 if (sizeof (buf->f_fsid) == sizeof (fsbuf->f_fsid)) in __internal_statvfs64()
89 buf->f_fsid = ((fsbuf->f_fsid.__val[0] in __internal_statvfs64()
90 & ((1ULL << (8 * sizeof (fsbuf->f_fsid.__val[0]))) - 1)) in __internal_statvfs64()
91 | ((unsigned long long int) fsbuf->f_fsid.__val[1] in __internal_statvfs64()
93 - sizeof (fsbuf->f_fsid.__val[0]))))); in __internal_statvfs64()
97 buf->f_fsid = fsbuf->f_fsid.__val[0]; in __internal_statvfs64()
101 buf->f_namemax = fsbuf->f_namelen; in __internal_statvfs64()
109 buf->f_flag = fsbuf->f_flags ^ ST_VALID; in __internal_statvfs64()