Skip to content

Commit 6c0952e

Browse files
tgross35bossmc
andcommitted
musl: Reorganize some statfs-related types for a cleaner diff
This moves similar types together (e.g. statfs and statfs64) so removing them is cleaner. Co-authored-by: Andy Caldwell <andycaldwell@microsoft.com>
1 parent ca3a399 commit 6c0952e

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

src/unix/linux_like/linux/musl/b32/x86/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ s! {
4646
pub st_ino: ::ino_t,
4747
}
4848

49+
pub struct mcontext_t {
50+
__private: [u32; 22],
51+
}
52+
4953
pub struct stack_t {
5054
pub ss_sp: *mut ::c_void,
5155
pub ss_flags: ::c_int,
@@ -112,10 +116,6 @@ s! {
112116
pub f_spare: [::c_ulong; 4],
113117
}
114118

115-
pub struct mcontext_t {
116-
__private: [u32; 22],
117-
}
118-
119119
pub struct siginfo_t {
120120
pub si_signo: ::c_int,
121121
pub si_errno: ::c_int,

src/unix/linux_like/linux/musl/b64/mod.rs

+30-30
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,6 @@ pub type c_ulong = u64;
33
pub type regoff_t = ::c_long;
44

55
s! {
6-
pub struct statfs64 {
7-
pub f_type: ::c_ulong,
8-
pub f_bsize: ::c_ulong,
9-
pub f_blocks: ::fsblkcnt_t,
10-
pub f_bfree: ::fsblkcnt_t,
11-
pub f_bavail: ::fsblkcnt_t,
12-
pub f_files: ::fsfilcnt_t,
13-
pub f_ffree: ::fsfilcnt_t,
14-
pub f_fsid: ::fsid_t,
15-
pub f_namelen: ::c_ulong,
16-
pub f_frsize: ::c_ulong,
17-
pub f_flags: ::c_ulong,
18-
pub f_spare: [::c_ulong; 4],
19-
}
20-
21-
pub struct statvfs64 {
22-
pub f_bsize: ::c_ulong,
23-
pub f_frsize: ::c_ulong,
24-
pub f_blocks: u64,
25-
pub f_bfree: u64,
26-
pub f_bavail: u64,
27-
pub f_files: u64,
28-
pub f_ffree: u64,
29-
pub f_favail: u64,
30-
pub f_fsid: ::c_ulong,
31-
pub f_flag: ::c_ulong,
32-
pub f_namemax: ::c_ulong,
33-
__f_spare: [::c_int; 6],
34-
}
35-
366
pub struct stack_t {
377
pub ss_sp: *mut ::c_void,
388
pub ss_flags: ::c_int,
@@ -89,6 +59,36 @@ s! {
8959
pub f_spare: [::c_ulong; 4],
9060
}
9161

62+
pub struct statfs64 {
63+
pub f_type: ::c_ulong,
64+
pub f_bsize: ::c_ulong,
65+
pub f_blocks: ::fsblkcnt_t,
66+
pub f_bfree: ::fsblkcnt_t,
67+
pub f_bavail: ::fsblkcnt_t,
68+
pub f_files: ::fsfilcnt_t,
69+
pub f_ffree: ::fsfilcnt_t,
70+
pub f_fsid: ::fsid_t,
71+
pub f_namelen: ::c_ulong,
72+
pub f_frsize: ::c_ulong,
73+
pub f_flags: ::c_ulong,
74+
pub f_spare: [::c_ulong; 4],
75+
}
76+
77+
pub struct statvfs64 {
78+
pub f_bsize: ::c_ulong,
79+
pub f_frsize: ::c_ulong,
80+
pub f_blocks: u64,
81+
pub f_bfree: u64,
82+
pub f_bavail: u64,
83+
pub f_files: u64,
84+
pub f_ffree: u64,
85+
pub f_favail: u64,
86+
pub f_fsid: ::c_ulong,
87+
pub f_flag: ::c_ulong,
88+
pub f_namemax: ::c_ulong,
89+
__f_spare: [::c_int; 6],
90+
}
91+
9292
pub struct msghdr {
9393
pub msg_name: *mut ::c_void,
9494
pub msg_namelen: ::socklen_t,

0 commit comments

Comments
 (0)