auto merge of #7257 : indutny/rust/feature/libc-mman, r=cmr

Add functions and constants required to be able to use `mmap` and friends.
This commit is contained in:
bors 2013-06-24 21:01:56 -07:00
commit 237ca7dc58
2 changed files with 867 additions and 311 deletions

File diff suppressed because it is too large Load Diff

View File

@ -758,7 +758,7 @@ pub fn list_dir(p: &Path) -> ~[~str] {
FindFirstFileW(
path_ptr,
::cast::transmute(wfd_ptr));
if find_handle as int != INVALID_HANDLE_VALUE {
if find_handle as libc::c_int != INVALID_HANDLE_VALUE {
let mut more_files = 1 as libc::c_int;
while more_files != 0 {
let fp_buf = rust_list_dir_wfd_fp_buf(wfd_ptr);