Skip to content
Open
9 changes: 5 additions & 4 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Linux-specific definitions for linux-like values
use core::cfg;

use crate::prelude::*;
use crate::{
Expand Down Expand Up @@ -2767,9 +2768,9 @@ pub const IPC_NOWAIT: c_int = 0o4000;

pub const IPC_RMID: c_int = 0;
pub const IPC_SET: c_int = 1;
pub const IPC_STAT: c_int = 2;
pub const IPC_STAT: c_int = if cfg!(musl32_time64) { 0x102 } else { 2 };
pub const IPC_INFO: c_int = 3;
pub const MSG_STAT: c_int = 11;
pub const MSG_STAT: c_int = if cfg!(musl32_time64) { 0x10b } else { 11 };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pub const MSG_INFO: c_int = 12;
pub const MSG_NOTIFICATION: c_int = 0x8000;

Expand All @@ -2786,9 +2787,9 @@ pub const GETNCNT: c_int = 14;
pub const GETZCNT: c_int = 15;
pub const SETVAL: c_int = 16;
pub const SETALL: c_int = 17;
pub const SEM_STAT: c_int = 18;
pub const SEM_STAT: c_int = if cfg!(musl32_time64) { 0x112 } else { 18 };
pub const SEM_INFO: c_int = 19;
pub const SEM_STAT_ANY: c_int = 20;
pub const SEM_STAT_ANY: c_int = if cfg!(musl32_time64) { 0x114 } else { 20 };
Comment on lines -2789 to +2792
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


pub const SHM_R: c_int = 0o400;
pub const SHM_W: c_int = 0o200;
Expand Down