Skip to content

Commit 89eb7d2

Browse files
committed
gnu x86_64: Make type statvfs64 an alias for struct statvfs
1 parent 63e08b1 commit 89eb7d2

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3382,7 +3382,7 @@ fn test_linux(target: &str) {
33823382
// LFS64 types have been removed in musl 1.2.4+
33833383
"off64_t" if musl => "off_t".to_string(),
33843384
// In some gnu targets `stat64` is a typedef to `stat`
3385-
"stat64" | "statfs64" if gnu => format!("struct {}", ty),
3385+
"stat64" | "statfs64" | "statvfs64" if gnu => format!("struct {}", ty),
33863386

33873387
// typedefs don't need any keywords
33883388
t if t.ends_with("_t") => t.to_string(),

src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub type __u64 = ::c_ulonglong;
1010
pub type __s64 = ::c_longlong;
1111

1212
pub type statfs64 = statfs;
13+
pub type statvfs64 = statvfs;
1314

1415
s! {
1516
pub struct sigaction {
@@ -116,21 +117,6 @@ s! {
116117
__reserved: [i64; 3],
117118
}
118119

119-
pub struct statvfs64 {
120-
pub f_bsize: ::c_ulong,
121-
pub f_frsize: ::c_ulong,
122-
pub f_blocks: u64,
123-
pub f_bfree: u64,
124-
pub f_bavail: u64,
125-
pub f_files: u64,
126-
pub f_ffree: u64,
127-
pub f_favail: u64,
128-
pub f_fsid: ::c_ulong,
129-
pub f_flag: ::c_ulong,
130-
pub f_namemax: ::c_ulong,
131-
__f_spare: [::c_int; 6],
132-
}
133-
134120
pub struct pthread_attr_t {
135121
#[cfg(target_pointer_width = "32")]
136122
__size: [u32; 8],

0 commit comments

Comments
 (0)