Update MFD_* constants

* xlat/memfd_create_flags.in: Add MFD_HUGETLB introduced
by kernel commit v4.14-rc1~126^2~17.
* NEWS: Mention this.
* tests/memfd_create.c (main): Update expected output.
This commit is contained in:
Дмитрий Левин 2017-09-13 15:50:37 +00:00
parent 23dc62bb8b
commit 53ddcf0fd6
3 changed files with 7 additions and 5 deletions

4
NEWS

@ -2,8 +2,8 @@ Noteworthy changes in release ?.?? (????-??-??)
===============================================
* Improvements
* Updated lists of ARPHRD_*, BPF_*, ETH_P_*, MADV_*, SO_*, SOL_* and TCP_*
constants.
* Updated lists of ARPHRD_*, BPF_*, ETH_P_*, MADV_*, MFD_*, SO_*, SOL_*,
and TCP_* constants.
Noteworthy changes in release 4.19 (2017-09-05)
===============================================

@ -11,10 +11,11 @@ int
main(void)
{
static const char text[] = "strace";
int rc = syscall(__NR_memfd_create, text, 7);
int rc = syscall(__NR_memfd_create, text, 0xf);
printf("memfd_create(\"%s\", %s) = %d %s (%m)\n",
text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|0x4", rc, errno2name());
printf("memfd_create(\"%s\", %s) = %s\n",
text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB|0x8",
sprintrc(rc));
puts("+++ exited with 0 +++");
return 0;

@ -1,2 +1,3 @@
MFD_CLOEXEC 1
MFD_ALLOW_SEALING 2
MFD_HUGETLB 4