[PATCH v2 0/5] Fixup linux ttyname and ttyname_r [BZ #22145]

Luke Shumaker lukeshu@parabola.nu
Thu Nov 2 18:53:00 GMT 2017


The theme of this patchset is to fixup the changes made in 15e9a4f.
Fix a bug [BZ #22145] introduced in the commit (and add tests for both
the bug it fixed and the bug it introduced!), update documentation to
reflect the behavior introduced in the commit.

The FSF should have my copyright assignment paperwork on file (though
I never received a confirmation from them that everything was in
order).

Changes from v1 of this patchset are enumerated in each commit's
message.

Luke Shumaker (5):
  manual: Update to mention ENODEV for ttyname and ttyname_r
  linux ttyname: Update a reference to kernel docs for kernel 4.10
  linux ttyname and ttyname_r: Make the TTY equivalence tests consistent
    [BZ #22145]
  linux ttyname and ttyname_r: Don't bail prematurely [BZ #22145]
  linux ttyname and ttyname_r: Add tests [BZ #22145]

 ChangeLog                             |  23 ++
 manual/terminal.texi                  |   5 +
 sysdeps/unix/sysv/linux/Makefile      |   3 +-
 sysdeps/unix/sysv/linux/tst-ttyname.c | 582 ++++++++++++++++++++++++++++++++++
 sysdeps/unix/sysv/linux/ttyname.c     |  59 ++--
 sysdeps/unix/sysv/linux/ttyname.h     |  17 +-
 sysdeps/unix/sysv/linux/ttyname_r.c   |  61 ++--
 7 files changed, 668 insertions(+), 82 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname.c

-- 
2.15.0



More information about the Libc-alpha mailing list