about summary refs log tree commit diff
path: root/soft-fp/subtf3.c
diff options
context:
space:
mode:
authorÉrico Nogueira <ericonr@disroot.org>2021-05-03 22:51:52 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-05-07 13:56:02 -0300
commit05ae46ee7a70b158d58b2c8581451fed9c18da2a (patch)
tree31682c37355eb9be6ae35bc16b1738afe7800deb /soft-fp/subtf3.c
parent0fb3dadca2548df348904d083b4d911fa25503f5 (diff)
downloadglibc-05ae46ee7a70b158d58b2c8581451fed9c18da2a.tar.gz
glibc-05ae46ee7a70b158d58b2c8581451fed9c18da2a.tar.xz
glibc-05ae46ee7a70b158d58b2c8581451fed9c18da2a.zip
linux: implement ttyname as a wrapper around ttyname_r.
Big win in binary size and avoids duplicating the logic in multiple
places.

On x86_64, dropped from 1883206 to 1881790, a 1416 byte decrease.

Also changed logic to track if ttyname_buf has been allocated by
checking if it's NULL instead of tracking buflen as an additional
variable.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'soft-fp/subtf3.c')
0 files changed, 0 insertions, 0 deletions