Skip to content

Commit cbd37d8

Browse files
committed
[BREAKING] Rename two instances of MAP_NONRESERVE
To the correct MAP_NORESERVE. Every other thing is known as MAP_NORESERVE, so this is just a basic typo. I really doubt this will break anybody's but my own code.
1 parent b1eadf3 commit cbd37d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liblibc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ pub mod consts {
32983298
pub const MAP_DENYWRITE : c_int = 0x0800;
32993299
pub const MAP_EXECUTABLE : c_int = 0x01000;
33003300
pub const MAP_LOCKED : c_int = 0x02000;
3301-
pub const MAP_NONRESERVE : c_int = 0x04000;
3301+
pub const MAP_NORESERVE : c_int = 0x04000;
33023302
pub const MAP_POPULATE : c_int = 0x08000;
33033303
pub const MAP_NONBLOCK : c_int = 0x010000;
33043304
pub const MAP_STACK : c_int = 0x020000;
@@ -3325,7 +3325,7 @@ pub mod consts {
33253325
pub const MAP_DENYWRITE : c_int = 0x02000;
33263326
pub const MAP_EXECUTABLE : c_int = 0x04000;
33273327
pub const MAP_LOCKED : c_int = 0x08000;
3328-
pub const MAP_NONRESERVE : c_int = 0x0400;
3328+
pub const MAP_NORESERVE : c_int = 0x0400;
33293329
pub const MAP_POPULATE : c_int = 0x010000;
33303330
pub const MAP_NONBLOCK : c_int = 0x020000;
33313331
pub const MAP_STACK : c_int = 0x040000;

0 commit comments

Comments
 (0)