From: Dmitry V. Levin Date: Wed, 13 Sep 2017 15:50:37 +0000 (+0000) Subject: Update MFD_* constants X-Git-Tag: v4.20~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53ddcf0fd6d81c8a8196aa34f42acd17c14c25e5;p=strace 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. --- diff --git a/NEWS b/NEWS index 416bbc28..352b8e03 100644 --- a/NEWS +++ b/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) =============================================== diff --git a/tests/memfd_create.c b/tests/memfd_create.c index 480fd177..4559b426 100644 --- a/tests/memfd_create.c +++ b/tests/memfd_create.c @@ -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; diff --git a/xlat/memfd_create_flags.in b/xlat/memfd_create_flags.in index 04a1b47a..9dd625fb 100644 --- a/xlat/memfd_create_flags.in +++ b/xlat/memfd_create_flags.in @@ -1,2 +1,3 @@ MFD_CLOEXEC 1 MFD_ALLOW_SEALING 2 +MFD_HUGETLB 4