diff options
| author | Corey Richardson <corey@octayn.net> | 2013-11-13 05:21:38 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-24 22:30:00 -0800 |
| commit | dee7fa58dd4203a19b83ad47c3b0a0efb92c0e9a (patch) | |
| tree | adb1ec1b8219633b3a7d65611cd2a1648d658f61 /src/libstd/libc.rs | |
| parent | 462f09e9494481456b22630cb42a3c0544a08625 (diff) | |
Use `mmap` to map in task stacks and guard page
Also implement caching of stacks.
Diffstat (limited to 'src/libstd/libc.rs')
| -rw-r--r-- | src/libstd/libc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs index a398835824b..d5f185880fa 100644 --- a/src/libstd/libc.rs +++ b/src/libstd/libc.rs @@ -2863,6 +2863,7 @@ pub mod consts { pub static MAP_PRIVATE : c_int = 0x0002; pub static MAP_FIXED : c_int = 0x0010; pub static MAP_ANON : c_int = 0x1000; + pub static MAP_STACK : c_int = 0; pub static MAP_FAILED : *c_void = -1 as *c_void; |
