linux: Split tst-ttyname
commita9fed5ea811c3fe3d5186d260494710d424786ef
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 12 Jun 2023 18:30:13 +0000 (12 15:30 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 28 Jun 2023 12:18:23 +0000 (28 09:18 -0300)
tree01188bdab053b998c850d0d37ccd3d3b289afb4e
parentaaa208502c97707119aea9e03a988bec26ad7817
linux: Split tst-ttyname

The tst-ttyname-direct.c checks the ttyname with procfs mounted in
bind mode (MS_BIND|MS_REC), while tst-ttyname-namespace.c checks
with procfs mount with MS_NOSUID|MS_NOEXEC|MS_NODEV in a new
namespace.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-ttyname-common.c [moved from sysdeps/unix/sysv/linux/tst-ttyname.c with 68% similarity]
sysdeps/unix/sysv/linux/tst-ttyname-direct.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-ttyname-namespace.c [new file with mode: 0644]