about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/getpt.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-10-07 10:48:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-10-07 10:56:00 +0200
commit0f9793a556675d67d7c1897553f92e7152d1e598 (patch)
tree4f938bc2e03c843f8651a7b3afb0022fdd268ced /sysdeps/unix/sysv/linux/getpt.c
parentc42b7058a2f8dea5c0b95e64aa82ee1d62a2ba14 (diff)
downloadglibc-0f9793a556675d67d7c1897553f92e7152d1e598.tar.gz
glibc-0f9793a556675d67d7c1897553f92e7152d1e598.tar.xz
glibc-0f9793a556675d67d7c1897553f92e7152d1e598.zip
Linux: unlockpt needs to fail with EINVAL, not ENOTTY (bug 26053)
The EINVAL error code is mandated by POSIX and documented in the
manual.  Also clean up the unlockpt implementation a bit, assuming
that TIOCSPTLCK is always defined.

Enhance login/tst-grantpt to cover unlockpt corner cases.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/getpt.c')
0 files changed, 0 insertions, 0 deletions