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" {
13331333 pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
13341334
13351335 pub fn sethostid ( hostid : :: c_long ) -> :: c_int ;
1336+
1337+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
13361338}
13371339
13381340extern "C" {
Original file line number Diff line number Diff line change @@ -3923,8 +3923,6 @@ extern "C" {
39233923 needlelen : :: size_t ,
39243924 ) -> * mut :: c_void ;
39253925 pub fn sched_getcpu ( ) -> :: c_int ;
3926-
3927- pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
39283926}
39293927
39303928cfg_if ! {
Original file line number Diff line number Diff line change @@ -770,6 +770,8 @@ extern "C" {
770770 pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
771771
772772 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 ;
773775}
774776
775777cfg_if ! {
You can’t perform that action at this time.
0 commit comments