pthread: Remove alloca usage from __sem_check_add_mapping
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 3 Feb 2021 17:19:27 +0000 (14:19 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 8 Feb 2021 17:10:42 +0000 (14:10 -0300)
commitc1f46f9db723d88082899ee703aa00779230d510
tree934e273f6ba6db7165bad773f031741d00da5667
parentda4aea0b5e60ec2351367b0facee24e6035a7129
pthread: Remove alloca usage from __sem_check_add_mapping

sem_open already returns EINVAL for input names larger than NAME_MAX,
so it can assume the largest name length with tfind.

Checked on x86_64-linux-gnu.
sysdeps/pthread/sem_routines.c