bsd unlockpt: unlockpt needs to fail with EINVAL, not ENOTTY
commitdfe2e7a5627f2c7bdc298fc714dbf12f7666fa2a
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 8 Nov 2020 14:06:56 +0000 (8 14:06 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 8 Nov 2020 14:06:56 +0000 (8 14:06 +0000)
treed8aa01f9d6de9672feec3741118be9e6ca030129
parentaa11ab99530aea57fa2b8fa934a7c9dd0bfa9131
bsd unlockpt: unlockpt needs to fail with EINVAL, not ENOTTY

The EINVAL error code is mandated by POSIX, while ptsname_r returns
ENOTTY, so we need to translate.
sysdeps/unix/bsd/unlockpt.c