File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ libc_enum!{
299
299
#[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" ) ) ]
300
300
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
301
301
MADV_CORE ,
302
+ /// This process should not be killed when swap space is exhausted.
302
303
#[ cfg( any( target_os = "freebsd" ) ) ]
303
304
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
304
305
MADV_PROTECT ,
@@ -314,14 +315,18 @@ libc_enum!{
314
315
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
315
316
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
316
317
MADV_ZERO_WIRED_PAGES ,
318
+ /// Pages can be reused (by anyone).
317
319
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
318
320
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
319
321
MADV_FREE_REUSABLE ,
322
+ /// Caller wants to reuse those pages.
320
323
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
321
324
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
322
325
MADV_FREE_REUSE ,
326
+ // Darwin doesn't document this flag's behavior.
323
327
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
324
328
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
329
+ #[ allow( missing_docs) ]
325
330
MADV_CAN_REUSE ,
326
331
}
327
332
}
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ feature! {
55
55
#[ cfg( not( target_os = "redox" ) ) ]
56
56
feature ! {
57
57
#![ feature = "mman" ]
58
- #[ allow( missing_docs) ]
59
58
pub mod mman;
60
59
}
61
60
You can’t perform that action at this time.
0 commit comments