Skip to content

Commit 11cc752

Browse files
committed
musl: time64: update {IPC,MSG,SEM}_STAT definitions
This is primarily based on a small part of bminor/musl@3814333. This also integrates bminor/musl@3c02bac, which update MSG_STAT, SEM_STAT, SEM_STAT_ANY. These are based on the value of IPC_STAT, however we can just use `cfg` as it is effectively the same.
1 parent 1c715f2 commit 11cc752

File tree

1 file changed

+12
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+12
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,8 +2850,14 @@ pub const IPC_NOWAIT: c_int = 0o4000;
28502850

28512851
pub const IPC_RMID: c_int = 0;
28522852
pub const IPC_SET: c_int = 1;
2853+
#[cfg(musl_time64)]
2854+
pub const IPC_STAT: c_int = 0x102;
2855+
#[cfg(not(musl_time64))]
28532856
pub const IPC_STAT: c_int = 2;
28542857
pub const IPC_INFO: c_int = 3;
2858+
#[cfg(musl_time64)]
2859+
pub const MSG_STAT: c_int = 0x10b;
2860+
#[cfg(not(musl_time64))]
28552861
pub const MSG_STAT: c_int = 11;
28562862
pub const MSG_INFO: c_int = 12;
28572863
pub const MSG_NOTIFICATION: c_int = 0x8000;
@@ -2869,8 +2875,14 @@ pub const GETNCNT: c_int = 14;
28692875
pub const GETZCNT: c_int = 15;
28702876
pub const SETVAL: c_int = 16;
28712877
pub const SETALL: c_int = 17;
2878+
#[cfg(musl_time64)]
2879+
pub const SEM_STAT: c_int = 0x112;
2880+
#[cfg(not(musl_time64))]
28722881
pub const SEM_STAT: c_int = 18;
28732882
pub const SEM_INFO: c_int = 19;
2883+
#[cfg(musl_time64)]
2884+
pub const SEM_STAT_ANY: c_int = 0x114;
2885+
#[cfg(not(musl_time64))]
28742886
pub const SEM_STAT_ANY: c_int = 20;
28752887

28762888
pub const SHM_R: c_int = 0o400;

0 commit comments

Comments
 (0)