]> granicus.if.org Git - strace/commit
Print the first argument of memfd_create syscall as a path
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 18 Nov 2017 00:19:31 +0000 (00:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 18 Nov 2017 00:19:31 +0000 (00:19 +0000)
commitc75392f67a6518b8a55f0ed72de97172643bf20e
tree81266f34d8e009556dab0b6341097acc33d5ead5
parent596662a61d7dda6110bcb25418ccad784730c4cd
Print the first argument of memfd_create syscall as a path

The limit imposed by the kernel on the length of memfd_create first
argument is NAME_MAX - strlen("memfd:").

* memfd_create.c (SYS_FUNC(memfd_create)): Print the first argument
using printpathn.
* tests/memfd_create.c: Check it.
memfd_create.c
tests/memfd_create.c