]> git.lizzy.rs Git - rust.git/commit
auto merge of #8602 : sanxiyn/rust/sysconf, r=graydon
authorbors <bors@rust-lang.org>
Wed, 21 Aug 2013 13:31:44 +0000 (06:31 -0700)
committerbors <bors@rust-lang.org>
Wed, 21 Aug 2013 13:31:44 +0000 (06:31 -0700)
commit9765f337a944b6c09d3b1f86fd0288f73f5b0e2f
treebe632d2e1095bd50a57a2ac434ff4e6f29252611
parent4c75e926126435c3ea65b027ea9669213cfdae33
parent337c406b8097c02dc222bd3bd43bb98b9e119328
auto merge of #8602 : sanxiyn/rust/sysconf, r=graydon

Linux and Android share the kernel, but not the C library, so sysconf constants are different. For example, _SC_PAGESIZE is 30 on Linux, but 39 on Android.

This patch
* splits sysconf constants to sysconf module
* merges non-MIPS and MIPS sysconf constants (they are same)
* adds Android sysconf constants

This patch also lets mmap tests to pass on Android.
src/libstd/libc.rs