File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pub type wchar_t = i32;
7
7
pub type greg_t = u64 ;
8
8
pub type __u64 = u64 ;
9
9
pub type __s64 = i64 ;
10
+ pub type statfs64 = statfs ;
10
11
11
12
s ! {
12
13
pub struct ipc_perm {
68
69
pub st_blocks: crate :: blkcnt64_t,
69
70
__unused: [ c_long; 3 ] ,
70
71
}
72
+
73
+ pub struct statfs {
74
+ pub f_type: c_uint,
75
+ pub f_bsize: c_uint,
76
+ pub f_blocks: crate :: fsblkcnt_t,
77
+ pub f_bfree: crate :: fsblkcnt_t,
78
+ pub f_bavail: crate :: fsblkcnt_t,
79
+ pub f_files: crate :: fsfilcnt_t,
80
+ pub f_ffree: crate :: fsfilcnt_t,
81
+ pub f_fsid: crate :: fsid_t,
82
+ pub f_namelen: c_uint,
83
+ pub f_frsize: c_uint,
84
+ pub f_flags: c_uint,
85
+ pub f_spare: [ c_uint; 4 ] ,
86
+ }
71
87
}
72
88
73
89
s_no_extra_traits ! {
Original file line number Diff line number Diff line change 372
372
pub tcpi_snd_wnd: u32 ,
373
373
}
374
374
375
- // MIPS implementation is special (see mips arch folders)
376
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips64" ) ) ) ]
375
+ // MIPS/s390x implementation is special (see arch folders)
376
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips64" , target_arch = "s390x" ) ) ) ]
377
377
pub struct statfs {
378
378
pub f_type: c_ulong,
379
379
pub f_bsize: c_ulong,
389
389
pub f_spare: [ c_ulong; 4 ] ,
390
390
}
391
391
392
- // MIPS implementation is special (see mips arch folders)
393
- #[ cfg( not( any( target_arch = "mips" , target_arch = "mips64" ) ) ) ]
392
+ // MIPS/s390x implementation is special (see arch folders)
393
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "mips64" , target_arch = "s390x" ) ) ) ]
394
394
pub struct statfs64 {
395
395
pub f_type: c_ulong,
396
396
pub f_bsize: c_ulong,
You can’t perform that action at this time.
0 commit comments