Skip to content

Commit e81cfde

Browse files
author
Bryant Mairs
committed
Add MFD_ constants for memfd_create
1 parent 833e67f commit e81cfde

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ fn main() {
248248
if !uclibc && !musl && !emscripten {
249249
cfg.header("linux/dccp.h");
250250
}
251+
252+
cfg.header("linux/memfd.h");
251253
}
252254

253255
if linux {

src/unix/notbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,9 @@ pub const POLLNVAL: ::c_short = 0x20;
803803
pub const POLLRDNORM: ::c_short = 0x040;
804804
pub const POLLRDBAND: ::c_short = 0x080;
805805

806+
pub const MFD_CLOEXEC: ::c_uint = 0x0001;
807+
pub const MFD_ALLOW_SEALING: ::c_uint = 0x0002;
808+
806809
f! {
807810
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
808811
let fd = fd as usize;

0 commit comments

Comments
 (0)