Skip to content

Commit dee57aa

Browse files
author
Johannes Wellhöfer
committed
Add memfd_create to linux and android
1 parent db71a57 commit dee57aa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,6 +2823,8 @@ extern "C" {
28232823
pub fn regfree(preg: *mut ::regex_t);
28242824

28252825
pub fn android_set_abort_message(msg: *const ::c_char);
2826+
2827+
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int ;
28262828
}
28272829

28282830
cfg_if! {

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,8 @@ extern "C" {
35913591
outbytesleft: *mut ::size_t,
35923592
) -> ::size_t;
35933593
pub fn iconv_close(cd: iconv_t) -> ::c_int;
3594+
3595+
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int ;
35943596
}
35953597

35963598
cfg_if! {

0 commit comments

Comments
 (0)