Skip to content

Commit afd3951

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 a06f6bc + f1bd231 commit afd3951

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+2
-0
lines changed

src/unix/linux_like/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3914,6 +3914,8 @@ extern "C" {
39143914
needlelen: ::size_t,
39153915
) -> *mut ::c_void;
39163916
pub fn sched_getcpu() -> ::c_int;
3917+
3918+
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
39173919
}
39183920

39193921
cfg_if! {

0 commit comments

Comments
 (0)