Skip to content

Commit f1bd231

Browse files
author
Johannes Wellhöfer
committed
Add memfd_create to linux
1 parent 2638ea2 commit f1bd231

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)