Skip to content

Commit ff96aa4

Browse files
committed
musl: struct ipc_perm: rename __ipc_perm_key to __key
This isn't strictly related to musl 1.2.3, however now presents a good time to change it, before the 1.0 release.
1 parent 2d89604 commit ff96aa4

File tree

11 files changed

+88
-0
lines changed

11 files changed

+88
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ s! {
5555
}
5656

5757
pub struct ipc_perm {
58+
#[cfg(musl_v1_2_3)]
59+
pub __key: crate::key_t,
60+
#[cfg(not(musl_v1_2_3))]
61+
#[deprecated(
62+
since = "0.2.173",
63+
note = "This field is incorrectly named and will be changed
64+
to __key in a future release."
65+
)]
5866
pub __ipc_perm_key: crate::key_t,
5967
pub uid: crate::uid_t,
6068
pub gid: crate::gid_t,

src/unix/linux_like/linux/musl/b32/hexagon.rs

+8
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ s! {
3434
}
3535

3636
pub struct ipc_perm {
37+
#[cfg(musl_v1_2_3)]
38+
pub __key: crate::key_t,
39+
#[cfg(not(musl_v1_2_3))]
40+
#[deprecated(
41+
since = "0.2.173",
42+
note = "This field is incorrectly named and will be changed
43+
to __key in a future release"
44+
)]
3745
pub __ipc_perm_key: crate::key_t,
3846
pub uid: crate::uid_t,
3947
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ s! {
5757
}
5858

5959
pub struct ipc_perm {
60+
#[cfg(musl_v1_2_3)]
61+
pub __key: crate::key_t,
62+
#[cfg(not(musl_v1_2_3))]
63+
#[deprecated(
64+
since = "0.2.173",
65+
note = "This field is incorrectly named and will be changed
66+
to __key in a future release."
67+
)]
6068
pub __ipc_perm_key: crate::key_t,
6169
pub uid: crate::uid_t,
6270
pub gid: crate::gid_t,

src/unix/linux_like/linux/musl/b32/powerpc.rs

+8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ s! {
5353
}
5454

5555
pub struct ipc_perm {
56+
#[cfg(musl_v1_2_3)]
57+
pub __key: crate::key_t,
58+
#[cfg(not(musl_v1_2_3))]
59+
#[deprecated(
60+
since = "0.2.173",
61+
note = "This field is incorrectly named and will be changed
62+
to __key in a future release."
63+
)]
5664
pub __ipc_perm_key: crate::key_t,
5765
pub uid: crate::uid_t,
5866
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ s! {
5959
}
6060

6161
pub struct ipc_perm {
62+
#[cfg(musl_v1_2_3)]
63+
pub __key: crate::key_t,
64+
#[cfg(not(musl_v1_2_3))]
65+
#[deprecated(
66+
since = "0.2.173",
67+
note = "This field is incorrectly named and will be changed
68+
to __key in a future release."
69+
)]
6270
pub __ipc_perm_key: crate::key_t,
6371
pub uid: crate::uid_t,
6472
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ s! {
6060
}
6161

6262
pub struct ipc_perm {
63+
#[cfg(musl_v1_2_3)]
64+
pub __key: crate::key_t,
65+
#[cfg(not(musl_v1_2_3))]
66+
#[deprecated(
67+
since = "0.2.173",
68+
note = "This field is incorrectly named and will be changed
69+
to __key in a future release."
70+
)]
6371
pub __ipc_perm_key: crate::key_t,
6472
pub uid: crate::uid_t,
6573
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ s! {
5757
}
5858

5959
pub struct ipc_perm {
60+
#[cfg(musl_v1_2_3)]
61+
pub __key: crate::key_t,
62+
#[cfg(not(musl_v1_2_3))]
63+
#[deprecated(
64+
since = "0.2.173",
65+
note = "This field is incorrectly named and will be changed
66+
to __key in a future release."
67+
)]
6068
pub __ipc_perm_key: crate::key_t,
6169
pub uid: crate::uid_t,
6270
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ s! {
5151
}
5252

5353
pub struct ipc_perm {
54+
#[cfg(musl_v1_2_3)]
55+
pub __key: crate::key_t,
56+
#[cfg(not(musl_v1_2_3))]
57+
#[deprecated(
58+
since = "0.2.173",
59+
note = "This field is incorrectly named and will be changed
60+
to __key in a future release."
61+
)]
5462
pub __ipc_perm_key: crate::key_t,
5563
pub uid: crate::uid_t,
5664
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ pub type __s64 = i64;
1010

1111
s! {
1212
pub struct ipc_perm {
13+
#[cfg(musl_v1_2_3)]
14+
pub __key: crate::key_t,
15+
#[cfg(not(musl_v1_2_3))]
16+
#[deprecated(
17+
since = "0.2.173",
18+
note = "This field is incorrectly named and will be changed
19+
to __key in a future release."
20+
)]
1321
pub __ipc_perm_key: crate::key_t,
1422
pub uid: crate::uid_t,
1523
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ s! {
5353
}
5454

5555
pub struct ipc_perm {
56+
#[cfg(musl_v1_2_3)]
57+
pub __key: crate::key_t,
58+
#[cfg(not(musl_v1_2_3))]
59+
#[deprecated(
60+
since = "0.2.173",
61+
note = "This field is incorrectly named and will be changed
62+
to __key in a future release."
63+
)]
5664
pub __ipc_perm_key: crate::key_t,
5765
pub uid: crate::uid_t,
5866
pub gid: crate::gid_t,

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

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ s! {
112112
}
113113

114114
pub struct ipc_perm {
115+
#[cfg(musl_v1_2_3)]
116+
pub __key: crate::key_t,
117+
#[cfg(not(musl_v1_2_3))]
118+
#[deprecated(
119+
since = "0.2.173",
120+
note = "This field is incorrectly named and will be changed
121+
to __key in a future release."
122+
)]
115123
pub __ipc_perm_key: crate::key_t,
116124
pub uid: crate::uid_t,
117125
pub gid: crate::gid_t,

0 commit comments

Comments
 (0)