diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-06-17 17:14:55 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-06-18 01:27:42 -0400 |
| commit | bb0a42745f7a951c298b7bc2e07f7ba1fee14100 (patch) | |
| tree | 0ba014610e3d3160d8ef17e337634d94753d33ea /src/liblibc | |
| parent | 2fd618e77accd37426819952ad443e50bb3c9015 (diff) | |
| download | rust-bb0a42745f7a951c298b7bc2e07f7ba1fee14100.tar.gz rust-bb0a42745f7a951c298b7bc2e07f7ba1fee14100.zip | |
fix signatures of mmap-related functions from libc
Diffstat (limited to 'src/liblibc')
| -rw-r--r-- | src/liblibc/lib.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 05d9988a139..2a464d82fd9 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -2057,7 +2057,7 @@ pub mod consts { pub static MAP_FIXED : c_int = 0x0010; pub static MAP_ANON : c_int = 0x0020; - pub static MAP_FAILED : *c_void = -1 as *c_void; + pub static MAP_FAILED : *mut c_void = -1 as *mut c_void; pub static MCL_CURRENT : c_int = 0x0001; pub static MCL_FUTURE : c_int = 0x0002; @@ -2268,7 +2268,7 @@ pub mod consts { pub static MAP_FIXED : c_int = 0x0010; pub static MAP_ANON : c_int = 0x0800; - pub static MAP_FAILED : *c_void = -1 as *c_void; + pub static MAP_FAILED : *mut c_void = -1 as *mut c_void; pub static MCL_CURRENT : c_int = 0x0001; pub static MCL_FUTURE : c_int = 0x0002; @@ -2804,7 +2804,7 @@ pub mod consts { pub static MAP_FIXED : c_int = 0x0010; pub static MAP_ANON : c_int = 0x1000; - pub static MAP_FAILED : *c_void = -1 as *c_void; + pub static MAP_FAILED : *mut c_void = -1 as *mut c_void; pub static MCL_CURRENT : c_int = 0x0001; pub static MCL_FUTURE : c_int = 0x0002; @@ -3192,7 +3192,7 @@ pub mod consts { pub static MAP_FIXED : c_int = 0x0010; pub static MAP_ANON : c_int = 0x1000; - pub static MAP_FAILED : *c_void = -1 as *c_void; + pub static MAP_FAILED : *mut c_void = -1 as *mut c_void; pub static MCL_CURRENT : c_int = 0x0001; pub static MCL_FUTURE : c_int = 0x0002; @@ -3951,19 +3951,19 @@ pub mod funcs { pub fn mlockall(flags: c_int) -> c_int; pub fn munlockall() -> c_int; - pub fn mmap(addr: *c_void, + pub fn mmap(addr: *mut c_void, len: size_t, prot: c_int, flags: c_int, fd: c_int, offset: off_t) -> *mut c_void; - pub fn munmap(addr: *c_void, len: size_t) -> c_int; + pub fn munmap(addr: *mut c_void, len: size_t) -> c_int; - pub fn mprotect(addr: *c_void, len: size_t, prot: c_int) + pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int; - pub fn msync(addr: *c_void, len: size_t, flags: c_int) + pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int; pub fn shm_open(name: *c_char, oflag: c_int, mode: mode_t) -> c_int; @@ -4208,9 +4208,9 @@ pub mod funcs { extern { pub fn getdtablesize() -> c_int; - pub fn madvise(addr: *c_void, len: size_t, advice: c_int) + pub fn madvise(addr: *mut c_void, len: size_t, advice: c_int) -> c_int; - pub fn mincore(addr: *c_void, len: size_t, vec: *c_uchar) + pub fn mincore(addr: *mut c_void, len: size_t, vec: *mut c_uchar) -> c_int; } } |
