diff options
author | Érico Nogueira <ericonr@disroot.org> | 2021-05-03 22:51:52 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-05-07 13:56:02 -0300 |
commit | 05ae46ee7a70b158d58b2c8581451fed9c18da2a (patch) | |
tree | 31682c37355eb9be6ae35bc16b1738afe7800deb /sysdeps/unix/sysv/linux/sh/bits/procfs.h | |
parent | 0fb3dadca2548df348904d083b4d911fa25503f5 (diff) | |
download | glibc-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 'sysdeps/unix/sysv/linux/sh/bits/procfs.h')
0 files changed, 0 insertions, 0 deletions