Skip to content

Commit 5f03e36

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. See also: #4422
1 parent a6c35b0 commit 5f03e36

File tree

11 files changed

+132
-0
lines changed

11 files changed

+132
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ 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 as part of an effort \
65+
to update the API to newer musl versions. \
66+
You can test these changes now by setting the \
67+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
68+
when building. See #4442 for more info."
69+
)]
5870
pub __ipc_perm_key: crate::key_t,
5971
pub uid: crate::uid_t,
6072
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ 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 as part of an effort \
44+
to update the API to newer musl versions. \
45+
You can test these changes now by setting the \
46+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
47+
when building. See #4442 for more info."
48+
)]
3749
pub __ipc_perm_key: crate::key_t,
3850
pub uid: crate::uid_t,
3951
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ 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 as part of an effort \
67+
to update the API to newer musl versions. \
68+
You can test these changes now by setting the \
69+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
70+
when building. See #4442 for more info."
71+
)]
6072
pub __ipc_perm_key: crate::key_t,
6173
pub uid: crate::uid_t,
6274
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ 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 as part of an effort \
63+
to update the API to newer musl versions. \
64+
You can test these changes now by setting the \
65+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
66+
when building. See #4442 for more info."
67+
)]
5668
pub __ipc_perm_key: crate::key_t,
5769
pub uid: crate::uid_t,
5870
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ 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 as part of an effort \
69+
to update the API to newer musl versions. \
70+
You can test these changes now by setting the \
71+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
72+
when building. See #4442 for more info."
73+
)]
6274
pub __ipc_perm_key: crate::key_t,
6375
pub uid: crate::uid_t,
6476
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ 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 as part of an effort \
70+
to update the API to newer musl versions. \
71+
You can test these changes now by setting the \
72+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
73+
when building. See #4442 for more info."
74+
)]
6375
pub __ipc_perm_key: crate::key_t,
6476
pub uid: crate::uid_t,
6577
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ 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 as part of an effort \
67+
to update the API to newer musl versions. \
68+
You can test these changes now by setting the \
69+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
70+
when building. See #4442 for more info."
71+
)]
6072
pub __ipc_perm_key: crate::key_t,
6173
pub uid: crate::uid_t,
6274
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ 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 as part of an effort \
61+
to update the API to newer musl versions. \
62+
You can test these changes now by setting the \
63+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
64+
when building. See #4442 for more info."
65+
)]
5466
pub __ipc_perm_key: crate::key_t,
5567
pub uid: crate::uid_t,
5668
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ 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 as part of an effort \
20+
to update the API to newer musl versions. \
21+
You can test these changes now by setting the \
22+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
23+
when building. See #4442 for more info."
24+
)]
1325
pub __ipc_perm_key: crate::key_t,
1426
pub uid: crate::uid_t,
1527
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ 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 as part of an effort \
63+
to update the API to newer musl versions. \
64+
You can test these changes now by setting the \
65+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
66+
when building. See #4442 for more info."
67+
)]
5668
pub __ipc_perm_key: crate::key_t,
5769
pub uid: crate::uid_t,
5870
pub gid: crate::gid_t,

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

+12
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ 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 as part of an effort \
122+
to update the API to newer musl versions. \
123+
You can test these changes now by setting the \
124+
RUST_LIBC_UNSTABLE_MUSL_1_2_3 environment variable \
125+
when building. See #4442 for more info."
126+
)]
115127
pub __ipc_perm_key: crate::key_t,
116128
pub uid: crate::uid_t,
117129
pub gid: crate::gid_t,

0 commit comments

Comments
 (0)