#
9772eadb |
|
11-Jan-2015 |
Rich Felker <dalias@aerifal.cx> |
simplify ctermid opening /dev/tty then using ttyname_r on it does not produce a canonical terminal name; it simply yields "/dev/tty". it would be possible to make ctermid determine the actual controlling terminal device via field 7 of /proc/self/stat, but doing so would introduce a buffer overflow into applications built with L_ctermid==9, which glibc defines, adversely affecting the quality of ABI compat.
|
#
57174444 |
|
11-Dec-2013 |
Szabolcs Nagy <nsz@port70.net> |
include cleanups: remove unused headers and add feature test macros
|
#
b6218764 |
|
08-Jul-2013 |
Rich Felker <dalias@aerifal.cx> |
fix bogus lazy allocation in ctermid and missing malloc failure check also clean up, optimize, and simplify the code, removing branches by simply pre-setting the result string to an empty string, which will be preserved if other operations fail.
|
#
cdf0f53f |
|
08-Jul-2013 |
Rich Felker <dalias@aerifal.cx> |
fix fd leak on races and cancellation in ctermid
|
#
0b44a031 |
|
11-Feb-2011 |
Rich Felker <dalias@aerifal.cx> |
initial check-in, version 0.5.0
|