Érico Nogueira 05ae46ee7a 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>
2021-05-07 13:56:02 -03:00
..
2016-10-28 22:40:16 -04:00
2021-01-05 11:33:16 -03:00
2017-04-07 07:45:53 -04:00
2021-01-05 11:33:16 -03:00
2021-01-04 08:42:04 -03:00
2017-11-22 22:21:10 +00:00
2019-05-02 11:42:51 +02:00
2021-03-26 13:36:16 -03:00
2019-10-09 17:48:41 -03:00
2020-07-21 07:34:50 +02:00
2020-12-31 16:55:21 +05:30
2019-11-06 09:20:52 -03:00