Skip to content

Commit f0bf0bf

Browse files
committed
chore: wip
1 parent f2b8fb9 commit f0bf0bf

2 files changed

Lines changed: 11 additions & 18 deletions

File tree

src/unix/linux_like/l4re/mod.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,23 @@ pub type pthread_spinlock_t = c_int;
2020

2121
#[deprecated(
2222
since = "0.2.187",
23-
note = "Use `ino_t` instead. This type is defined as either one of an alias to the unsuffixed \
24-
type (musl) or is the source of the unsuffixed type (uClibc). The `libc` crate is \
25-
phasing out support for suffixed variants of types."
23+
note = "Use `ino_t` instead. 64-bit targets alias both types."
2624
)]
2725
pub type ino64_t = u64;
2826
#[deprecated(
2927
since = "0.2.187",
30-
note = "Use `off_t` instead. This type is defined as either one of an alias to the unsuffixed \
31-
type (musl) or is the source of the unsuffixed type (uClibc). The `libc` crate is \
32-
phasing out support for suffixed variants of types."
28+
note = "Use `off_t` instead. No matter the target platform, off_t is always 64-bits wide, and \
29+
the `libc` crate is phasing out support for unsuffixed types."
3330
)]
3431
pub type off64_t = i64;
3532
#[deprecated(
3633
since = "0.2.187",
37-
note = "Use `blkcnt_t` instead. This type is defined as either one of an alias to the \
38-
unsuffixed type (musl) or is the source of the unsuffixed type (uClibc). The `libc` \
39-
crate is phasing out support for suffixed variants of types."
34+
note = "Use `blkcnt_t` instead. 64-bit targets alias both types."
4035
)]
4136
pub type blkcnt64_t = i64;
4237
#[deprecated(
4338
since = "0.2.187",
44-
note = "Use `rlim_t` instead. This type is defined as either one of an alias to the unsuffixed \
45-
type (musl) or is the source of the unsuffixed type (uClibc). The `libc` crate is \
46-
phasing out support for suffixed variants of types."
39+
note = "Use `rlim_t` instead. 64-bit targets alias both types."
4740
)]
4841
pub type rlim64_t = u64;
4942

src/unix/linux_like/l4re/uclibc/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ s! {
7171
#[cfg(target_pointer_width = "64")]
7272
pub mode: c_uint,
7373
#[cfg(target_pointer_width = "32")]
74-
__pad1: c_ushort,
74+
__pad1: Padding<c_ushort>,
7575
pub __seq: c_ushort,
76-
__pad2: c_ushort,
77-
__unused1: c_ulong,
78-
__unused2: c_ulong,
76+
__pad2: Padding<c_ushort>,
77+
__unused1: Padding<c_ulong>,
78+
__unused2: Padding<c_ulong>,
7979
}
8080

8181
pub struct statvfs {
@@ -90,10 +90,10 @@ s! {
9090
pub f_favail: crate::fsfilcnt_t,
9191
pub f_fsid: c_ulong,
9292
#[cfg(target_pointer_width = "32")]
93-
__f_unused: c_int,
93+
__f_unused: Padding<c_int>,
9494
pub f_flag: c_ulong,
9595
pub f_namemax: c_ulong,
96-
__f_spare: [c_int; 6],
96+
__f_spare: Padding<[c_int; 6]>,
9797
}
9898

9999
pub struct sysinfo {

0 commit comments

Comments
 (0)