File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1336,6 +1336,7 @@ extern "C" {
1336
1336
pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
1337
1337
1338
1338
pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
1339
+ pub fn mlock2 ( addr : * const :: c_void , len : :: size_t , flags : :: c_uint ) -> :: c_int ;
1339
1340
}
1340
1341
1341
1342
extern "C" {
Original file line number Diff line number Diff line change @@ -3534,7 +3534,6 @@ extern "C" {
3534
3534
pub fn seekdir ( dirp : * mut :: DIR , loc : :: c_long ) ;
3535
3535
3536
3536
pub fn telldir ( dirp : * mut :: DIR ) -> :: c_long ;
3537
- pub fn mlock2 ( addr : * const :: c_void , len : :: size_t , flags : :: c_uint ) -> :: c_int ;
3538
3537
pub fn madvise ( addr : * mut :: c_void , len : :: size_t , advice : :: c_int ) -> :: c_int ;
3539
3538
3540
3539
pub fn msync ( addr : * mut :: c_void , len : :: size_t , flags : :: c_int ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -772,6 +772,7 @@ extern "C" {
772
772
pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
773
773
774
774
pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
775
+ pub fn mlock2 ( addr : * const :: c_void , len : :: size_t , flags : :: c_uint ) -> :: c_int ;
775
776
}
776
777
777
778
cfg_if ! {
You can’t perform that action at this time.
0 commit comments