[PATCH v7 0/6] Fixup linux ttyname and ttyname_r [BZ #22145]

Christian Brauner christian.brauner@mailbox.org
Tue Nov 14 10:12:00 GMT 2017


On Mon, Nov 13, 2017 at 04:28:35PM -0500, Luke Shumaker wrote:
> From: Luke Shumaker <lukeshu@parabola.nu>
> 
> 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.
> 
> tst-ttyname still has variables being introduced in the middle of
> scopes (gcc "-Wdeclaration-after-statement", which is off by default
> for "-std=c99" and later), since I think it's more readable that way,
> and it seems to be permissible (but uncommon) in glibc.  However, if
> I'm reading that wrong, and it isn't permissible in new code, just let
> me know; I have the change stashed.
> 
> The FSF has my copyright assignment on file.
> 
> v2:
>  - See individual commit messages
> v3:
>  - Revise commit messages
>  - Revise ChangeLog messages
>  - Split one of the commits in to 2 separate commits
>  - Fix style of comments (no "*" on continued lines, 2 spaces after
>    trailing period)
>  - Fix whitespace style in the definition of is_mytty
> v4:
>  - Revise tst-ttyname
> v5:
>  - Revise tst-ttyname
> v6:
>  - No change, but resubmit entire patchset with new version
> v7:
>  - ttyname.h: Include <stdbool.h>
>  - tst-ttyname: Rename xtouch -> touch
>  - tst-ttyname: Rename xreadlink -> proc_fd_readlink
> 
> Luke Shumaker (6):
>   manual: Update to mention ENODEV for ttyname and ttyname_r
>   linux ttyname: Update a reference to kernel docs for kernel 4.10
>   linux ttyname: Change return type of is_pty from int to bool
>   linux ttyname and ttyname_r: Make the TTY equivalence checks
>     consistent
>   linux ttyname and ttyname_r: Don't bail prematurely [BZ #22145]
>   linux ttyname and ttyname_r: Add tests
> 
>  ChangeLog                             |  26 ++
>  manual/terminal.texi                  |   5 +
>  sysdeps/unix/sysv/linux/Makefile      |   3 +-
>  sysdeps/unix/sysv/linux/tst-ttyname.c | 625 ++++++++++++++++++++++++++++++++++
>  sysdeps/unix/sysv/linux/ttyname.c     |  59 ++--
>  sysdeps/unix/sysv/linux/ttyname.h     |  18 +-
>  sysdeps/unix/sysv/linux/ttyname_r.c   |  61 ++--
>  7 files changed, 715 insertions(+), 82 deletions(-)
>  create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname.c

Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
(For patch 1-5)

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
(For patch 6)

Any further comments on the patches?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171114/42c1d525/attachment.sig>


More information about the Libc-alpha mailing list