]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 17:04:39 +0000 (17:04 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 17:04:39 +0000 (17:04 +0000)
(ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
* sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
(__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
ENOTTY.
* io/Makefile: Add rules to build and run tst-ttyname_r test.
* io/tst-ttyname_r.c: New test.

ChangeLog

index d4805f1c221dcfea715423b57ffe8a0ef9ca4999..80a95fe2a9376bbdee28b5621a9ef61ce93d2cbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-12-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
+       (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
+       * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
+       (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
+       ENOTTY.
+       * io/Makefile: Add rules to build and run tst-ttyname_r test.
+       * io/tst-ttyname_r.c: New test.
+
 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
 
        * elf/dl-support.c: Include dl-procinfo.h.