Skip to content

Commit b536ebb

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

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3914,6 +3914,9 @@ 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;
3919+
39173920
}
39183921

39193922
cfg_if! {

0 commit comments

Comments
 (0)