Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for minherit() libc function #15770

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/liblibc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,10 @@ pub mod consts {
pub static MINCORE_MODIFIED_OTHER : c_int = 0x10;
pub static MINCORE_SUPER : c_int = 0x20;

pub static INHERIT_SHARE ; c_int = 0x0;
pub static INHERIT_COPY ; c_int = 0x1;
pub static INHERIT_NONE ; c_int = 0x2;

pub static AF_INET: c_int = 2;
pub static AF_INET6: c_int = 28;
pub static AF_UNIX: c_int = 1;
Expand Down Expand Up @@ -3409,6 +3413,10 @@ pub mod consts {
pub static MINCORE_REFERENCED_OTHER : c_int = 0x8;
pub static MINCORE_MODIFIED_OTHER : c_int = 0x10;

pub static VM_INHERIT_SHARE ; c_int = 0x0;
pub static VM_INHERIT_COPY ; c_int = 0x1;
pub static VM_INHERIT_NONE ; c_int = 0x2;

pub static AF_UNIX: c_int = 1;
pub static AF_INET: c_int = 2;
pub static AF_INET6: c_int = 30;
Expand Down Expand Up @@ -4239,6 +4247,8 @@ pub mod funcs {
-> c_int;
pub fn mincore(addr: *mut c_void, len: size_t, vec: *mut c_uchar)
-> c_int;
pub fn minherit(addr: *mut c_void, len: size_t, inherit: c_int)
-> c_int;
}
}

Expand Down