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" {
13361336 pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
13371337
13381338 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 ;
13391340}
13401341
13411342extern "C" {
Original file line number Diff line number Diff line change @@ -3534,7 +3534,6 @@ extern "C" {
35343534 pub fn seekdir ( dirp : * mut :: DIR , loc : :: c_long ) ;
35353535
35363536 pub fn telldir ( dirp : * mut :: DIR ) -> :: c_long ;
3537- pub fn mlock2 ( addr : * const :: c_void , len : :: size_t , flags : :: c_uint ) -> :: c_int ;
35383537 pub fn madvise ( addr : * mut :: c_void , len : :: size_t , advice : :: c_int ) -> :: c_int ;
35393538
35403539 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" {
772772 pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
773773
774774 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 ;
775776}
776777
777778cfg_if ! {
You can’t perform that action at this time.
0 commit comments