Skip to content

Commit 0177682

Browse files
committed
Auto merge of #2069 - jwellhofer:master, r=Amanieu
Add memfd_create to linux and android Android only added the wrapper in API level 30, i.e. Android 11. Should this have libc::syscall implementation for android ?
2 parents db71a57 + 429cef2 commit 0177682

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)