File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1333,6 +1333,8 @@ extern "C" {
1333
1333
pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
1334
1334
1335
1335
pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
1336
+
1337
+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
1336
1338
}
1337
1339
1338
1340
extern "C" {
Original file line number Diff line number Diff line change @@ -3923,8 +3923,6 @@ extern "C" {
3923
3923
needlelen : :: size_t ,
3924
3924
) -> * mut :: c_void ;
3925
3925
pub fn sched_getcpu ( ) -> :: c_int ;
3926
-
3927
- pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
3928
3926
}
3929
3927
3930
3928
cfg_if ! {
Original file line number Diff line number Diff line change @@ -770,6 +770,8 @@ extern "C" {
770
770
pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
771
771
772
772
pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
773
+
774
+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
773
775
}
774
776
775
777
cfg_if ! {
You can’t perform that action at this time.
0 commit comments