File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -596,6 +596,14 @@ MADV_NORMAL
596596MADV_RANDOM
597597MADV_SEQUENTIAL
598598MADV_WILLNEED
599+ MAP_ALIGNMENT_16MB
600+ MAP_ALIGNMENT_1TB
601+ MAP_ALIGNMENT_256TB
602+ MAP_ALIGNMENT_4GB
603+ MAP_ALIGNMENT_64KB
604+ MAP_ALIGNMENT_64PB
605+ MAP_ALIGNMENT_MASK
606+ MAP_ALIGNMENT_SHIFT
599607MAP_FILE
600608MAP_HASSEMAPHORE
601609MAP_NORESERVE
Original file line number Diff line number Diff line change @@ -1395,6 +1395,15 @@ pub const MAP_NORESERVE: ::c_int = 0x40;
13951395pub const MAP_HASSEMAPHORE : :: c_int = 0x200 ;
13961396pub const MAP_WIRED : :: c_int = 0x800 ;
13971397pub const MAP_STACK : :: c_int = 0x2000 ;
1398+ // map alignment aliases for MAP_ALIGNED
1399+ pub const MAP_ALIGNMENT_SHIFT : :: c_int = 24 ;
1400+ pub const MAP_ALIGNMENT_MASK : :: c_int = 0xff << MAP_ALIGNMENT_SHIFT ;
1401+ pub const MAP_ALIGNMENT_64KB : :: c_int = 16 << MAP_ALIGNMENT_SHIFT ;
1402+ pub const MAP_ALIGNMENT_16MB : :: c_int = 24 << MAP_ALIGNMENT_SHIFT ;
1403+ pub const MAP_ALIGNMENT_4GB : :: c_int = 32 << MAP_ALIGNMENT_SHIFT ;
1404+ pub const MAP_ALIGNMENT_1TB : :: c_int = 40 << MAP_ALIGNMENT_SHIFT ;
1405+ pub const MAP_ALIGNMENT_256TB : :: c_int = 48 << MAP_ALIGNMENT_SHIFT ;
1406+ pub const MAP_ALIGNMENT_64PB : :: c_int = 56 << MAP_ALIGNMENT_SHIFT ;
13981407// mremap flag
13991408pub const MAP_REMAPDUP : :: c_int = 0x004 ;
14001409
You can’t perform that action at this time.
0 commit comments