File tree Expand file tree Collapse file tree 3 files changed +1
-2
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ pub const O_NDELAY: c_int = 0x800;
191
191
pub const MADV_SOFT_OFFLINE : c_int = 101 ;
192
192
pub const MAP_LOCKED : c_int = 0x02000 ;
193
193
pub const MAP_NORESERVE : c_int = 0x04000 ;
194
- pub const MAP_32BIT : c_int = 0x0040 ;
195
194
pub const MAP_ANON : c_int = 0x0020 ;
196
195
pub const MAP_ANONYMOUS : c_int = 0x0020 ;
197
196
pub const MAP_DENYWRITE : c_int = 0x0800 ;
Original file line number Diff line number Diff line change 72
72
}
73
73
74
74
pub const MADV_SOFT_OFFLINE : c_int = 101 ;
75
+ #[ deprecated = "Linux does not define MAP_32BIT on any architectures other than x86 and x86_64, this constant will be removed in the future" ]
75
76
pub const MAP_32BIT : c_int = 0x0040 ;
76
77
pub const O_APPEND : c_int = 1024 ;
77
78
pub const O_DIRECT : c_int = 0x20000 ;
Original file line number Diff line number Diff line change @@ -441,7 +441,6 @@ pub const SYS_set_mempolicy_home_node: c_long = 450;
441
441
pub const SYS_fadvise : c_long = SYS_fadvise64 ;
442
442
443
443
pub const MADV_SOFT_OFFLINE : c_int = 101 ;
444
- pub const MAP_32BIT : c_int = 0x0040 ;
445
444
pub const O_APPEND : c_int = 1024 ;
446
445
pub const O_DIRECT : c_int = 0x4000 ;
447
446
pub const O_DIRECTORY : c_int = 0x10000 ;
You can’t perform that action at this time.
0 commit comments