Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linux: Add memfd_create(2)
  • Loading branch information
ricotz committed Oct 28, 2019
1 parent de90c80 commit 3760d61
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vapi/linux.vapi
Expand Up @@ -1280,6 +1280,17 @@ namespace Linux {
[CCode (cheader_filename = "sys/mman.h")]
public void *mremap (void *old_address, size_t old_size, size_t new_size, MremapFlags flags);

// memfd_create(2)
[CCode (cname = "unsigned int", cheader_filename = "linux/memfd.h", cprefix = "MFD_", has_type_id = false)]
public enum MemfdFlags {
CLOEXEC,
ALLOW_SEALING,
HUGETLB
}

[CCode (cheader_filename = "sys/mman.h", feature_test_macro = "_GNU_SOURCE")]
public int memfd_create (string name, MemfdFlags flags);

/*
* Network
*/
Expand Down

0 comments on commit 3760d61

Please sign in to comment.