File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -546,6 +546,7 @@ MADV_WILLNEED
546
546
MAP_FILE
547
547
MAP_HASSEMAPHORE
548
548
MAP_NORESERVE
549
+ MAP_REMAPDUP
549
550
MAP_RENAME
550
551
MAP_WIRED
551
552
MAXFREQ
Original file line number Diff line number Diff line change 213
213
pub flags: u32 ,
214
214
pub fflags: u32 ,
215
215
pub data: i64 ,
216
- pub udata: :: intptr_t,
216
+ pub udata: :: intptr_t, /* FIXME: NetBSD 10.0 will finally have same layout as other BSD */
217
217
}
218
218
219
219
pub struct dqblk {
@@ -1204,6 +1204,8 @@ pub const MAP_RENAME: ::c_int = 0x20;
1204
1204
pub const MAP_NORESERVE : :: c_int = 0x40 ;
1205
1205
pub const MAP_HASSEMAPHORE : :: c_int = 0x200 ;
1206
1206
pub const MAP_WIRED : :: c_int = 0x800 ;
1207
+ // mremap flag
1208
+ pub const MAP_REMAPDUP : :: c_int = 0x004 ;
1207
1209
1208
1210
pub const DCCP_TYPE_REQUEST : :: c_int = 0 ;
1209
1211
pub const DCCP_TYPE_RESPONSE : :: c_int = 1 ;
@@ -2116,6 +2118,13 @@ extern "C" {
2116
2118
pub fn consttime_memequal ( a : * const :: c_void , b : * const :: c_void , len : :: size_t ) -> :: c_int ;
2117
2119
2118
2120
pub fn setproctitle ( fmt : * const :: c_char , ...) ;
2121
+ pub fn mremap (
2122
+ oldp : * mut :: c_void ,
2123
+ oldsize : :: size_t ,
2124
+ newp : * mut :: c_void ,
2125
+ newsize : :: size_t ,
2126
+ flags : :: c_int ,
2127
+ ) -> * mut :: c_void ;
2119
2128
}
2120
2129
2121
2130
#[ link( name = "util" ) ]
You can’t perform that action at this time.
0 commit comments