Skip to content

Commit 0ee3de5

Browse files
committed
Deprecate the sigevent_0_2_126 structures
1 parent f092e8d commit 0ee3de5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,10 @@ s! {
10021002
// structure exists for backwards-compatibility with consumers that still
10031003
// try to access that one member.
10041004
#[doc(hidden)]
1005+
#[deprecated(
1006+
since = "0.2.127",
1007+
note = "Use sigevent instead"
1008+
)]
10051009
pub struct sigevent_0_2_126 {
10061010
pub sigev_notify: ::c_int,
10071011
pub sigev_signo: ::c_int,
@@ -1229,6 +1233,7 @@ s_no_extra_traits! {
12291233
}
12301234
}
12311235

1236+
#[allow(deprecated)]
12321237
impl ::core::ops::Deref for sigevent {
12331238
type Target = sigevent_0_2_126;
12341239

@@ -1237,6 +1242,7 @@ impl ::core::ops::Deref for sigevent {
12371242
}
12381243
}
12391244

1245+
#[allow(deprecated)]
12401246
impl ::core::ops::DerefMut for sigevent {
12411247
fn deref_mut(&mut self) -> &mut Self::Target {
12421248
unsafe { &mut *(self as *mut Self as *mut sigevent_0_2_126) }

src/unix/linux_like/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ s! {
220220
// structure exists for backwards-compatibility with consumers that still
221221
// try to access that one member.
222222
#[doc(hidden)]
223+
#[deprecated(
224+
since = "0.2.127",
225+
note = "Use sigevent instead"
226+
)]
223227
pub struct sigevent_0_2_126 {
224228
pub sigev_value: ::sigval,
225229
pub sigev_signo: ::c_int,
@@ -290,6 +294,7 @@ s_no_extra_traits! {
290294
}
291295
}
292296

297+
#[allow(deprecated)]
293298
impl ::core::ops::Deref for sigevent {
294299
type Target = sigevent_0_2_126;
295300

@@ -298,6 +303,7 @@ impl ::core::ops::Deref for sigevent {
298303
}
299304
}
300305

306+
#[allow(deprecated)]
301307
impl ::core::ops::DerefMut for sigevent {
302308
fn deref_mut(&mut self) -> &mut Self::Target {
303309
unsafe { &mut *(self as *mut Self as *mut sigevent_0_2_126) }

0 commit comments

Comments
 (0)