We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e49e9bb + 545f67d commit b42798dCopy full SHA for b42798d
src/unix/notbsd/linux/mod.rs
@@ -558,6 +558,9 @@ pub const LIO_NOP: ::c_int = 2;
558
pub const LIO_WAIT: ::c_int = 0;
559
pub const LIO_NOWAIT: ::c_int = 1;
560
561
+pub const MREMAP_MAYMOVE: ::c_int = 1;
562
+pub const MREMAP_FIXED: ::c_int = 2;
563
+
564
f! {
565
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
566
for slot in cpuset.bits.iter_mut() {
@@ -773,6 +776,12 @@ extern {
773
776
nbytes: ::off64_t, flags: ::c_uint) -> ::c_int;
774
777
pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
775
778
pub fn freeifaddrs(ifa: *mut ::ifaddrs);
779
780
+ pub fn mremap(addr: *mut ::c_void,
781
+ len: ::size_t,
782
+ new_len: ::size_t,
783
+ flags: ::c_int,
784
+ ...) -> *mut ::c_void;
785
}
786
787
cfg_if! {
0 commit comments