Skip to content

Commit 15e401b

Browse files
committed
Use libc for FFI functions and constants
1 parent 4e9dd25 commit 15e401b

File tree

3 files changed

+202
-178
lines changed

3 files changed

+202
-178
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2727
`statvfs::vfs` module. Additionally `(f)statvfs()` now return the struct
2828
directly. And the returned `Statvfs` struct now exposes its data through
2929
accessor methods. ([#729](https://github.com/nix-rust/nix/pull/729))
30+
- The `addr` argument to `madvise` and `msync` is now `*mut` to better match the
31+
libc API. ([#731](https://github.com/nix-rust/nix/pull/731))
32+
- `shm_open` and `shm_unlink` are no longer exposed on Android targets, where
33+
they are not officially supported. ([#731](https://github.com/nix-rust/nix/pull/731))
34+
- `MapFlags`, `MmapAdvise`, and `MsFlags` expose some more variants and only
35+
officially-supported variants are provided for each target.
36+
([#731](https://github.com/nix-rust/nix/pull/731))
3037

3138
# Fixed
3239
- Fix compilation and tests for OpenBSD targets

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515
]
1616

1717
[dependencies]
18-
libc = { git = "https://github.com/rust-lang/libc" }
18+
libc = { git = "https://github.com/susurrus/libc", branch = "mman_constants" }
1919
bitflags = "0.9"
2020
cfg-if = "0.1.0"
2121
void = "1.0.2"

0 commit comments

Comments
 (0)