@@ -38,7 +38,7 @@ libc_bitflags! {
38
38
/// Additional parameters for [`mmap`].
39
39
pub struct MapFlags : c_int {
40
40
/// Compatibility flag. Ignored.
41
- #[ cfg( not( target_os = "solaris" ) ) ]
41
+ #[ cfg( not( any ( target_os = "solaris" , target_os = "redox" ) ) ) ]
42
42
MAP_FILE ;
43
43
/// Share this mapping. Mutually exclusive with `MAP_PRIVATE`.
44
44
MAP_SHARED ;
@@ -82,7 +82,7 @@ libc_bitflags! {
82
82
/// Do not reserve swap space for this mapping.
83
83
///
84
84
/// This was removed in FreeBSD 11 and is unused in DragonFlyBSD.
85
- #[ cfg( not( any( freebsdlike, target_os = "aix" , target_os = "hurd" ) ) ) ]
85
+ #[ cfg( not( any( freebsdlike, target_os = "aix" , target_os = "hurd" , target_os = "redox" ) ) ) ]
86
86
MAP_NORESERVE ;
87
87
/// Populate page tables for a mapping.
88
88
#[ cfg( linux_android) ]
@@ -281,7 +281,7 @@ libc_enum! {
281
281
#[ cfg( linux_android) ]
282
282
MADV_DODUMP ,
283
283
/// Specify that the application no longer needs the pages in the given range.
284
- #[ cfg( not( any( target_os = "aix" , target_os = "hurd" , target_os = "cygwin" ) ) ) ]
284
+ #[ cfg( not( any( target_os = "aix" , target_os = "hurd" , target_os = "cygwin" , target_os = "redox" ) ) ) ]
285
285
MADV_FREE ,
286
286
/// Request that the system not flush the current range to disk unless it needs to.
287
287
#[ cfg( freebsdlike) ]
@@ -357,7 +357,7 @@ libc_bitflags! {
357
357
}
358
358
}
359
359
360
- #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" ) ) ) ]
360
+ #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" , target_os = "redox" ) ) ) ]
361
361
libc_bitflags ! {
362
362
/// Flags for [`mlockall`].
363
363
pub struct MlockAllFlags : c_int {
@@ -400,7 +400,7 @@ pub unsafe fn munlock(addr: NonNull<c_void>, length: size_t) -> Result<()> {
400
400
/// Locked pages never move to the swap area. For more information, see [`mlockall(2)`].
401
401
///
402
402
/// [`mlockall(2)`]: https://man7.org/linux/man-pages/man2/mlockall.2.html
403
- #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" ) ) ) ]
403
+ #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" , target_os = "redox" ) ) ) ]
404
404
pub fn mlockall ( flags : MlockAllFlags ) -> Result < ( ) > {
405
405
unsafe { Errno :: result ( libc:: mlockall ( flags. bits ( ) ) ) } . map ( drop)
406
406
}
@@ -410,7 +410,7 @@ pub fn mlockall(flags: MlockAllFlags) -> Result<()> {
410
410
/// For more information, see [`munlockall(2)`].
411
411
///
412
412
/// [`munlockall(2)`]: https://man7.org/linux/man-pages/man2/munlockall.2.html
413
- #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" ) ) ) ]
413
+ #[ cfg( not( any( target_os = "haiku" , target_os = "cygwin" , target_os = "redox" ) ) ) ]
414
414
pub fn munlockall ( ) -> Result < ( ) > {
415
415
unsafe { Errno :: result ( libc:: munlockall ( ) ) } . map ( drop)
416
416
}
0 commit comments