Lines Matching refs:buf
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()
50 << (8 * (sizeof (buf->f_fsid) in __internal_statvfs()
55 buf->f_fsid = fsbuf->f_fsid.__val[0]; in __internal_statvfs()
57 buf->__f_unused = 0; in __internal_statvfs()
59 buf->f_namemax = fsbuf->f_namelen; in __internal_statvfs()
60 memset (buf->__f_spare, '\0', sizeof (buf->__f_spare)); in __internal_statvfs()
65 buf->f_favail = buf->f_ffree; 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()
92 << (8 * (sizeof (buf->f_fsid) in __internal_statvfs64()
97 buf->f_fsid = fsbuf->f_fsid.__val[0]; in __internal_statvfs64()
99 buf->__f_unused = 0; in __internal_statvfs64()
101 buf->f_namemax = fsbuf->f_namelen; in __internal_statvfs64()
102 memset (buf->__f_spare, '\0', sizeof (buf->__f_spare)); in __internal_statvfs64()
107 buf->f_favail = buf->f_ffree; in __internal_statvfs64()
109 buf->f_flag = fsbuf->f_flags ^ ST_VALID; in __internal_statvfs64()