[0/3] <fd_to_filename.h> improvements
mbox series

Message ID cover.1581703185.git.fweimer@redhat.com
Headers show
Series
  • <fd_to_filename.h> improvements
Related show

Message

Florian Weimer Feb. 14, 2020, 6:10 p.m. UTC
This series ports fd_to_filename to Hurd and adds more type safety (to
reduce the risk of buffer overflows).

Florian Weimer (3):
  <fd_to_filename.h>: Add type safety and port to Hurd
  Linux: Port ttyname, ttyname_r to <fd_file_name.h>
  Linux: Port fexecve to <fd_to_filename.h>

 libio/freopen.c                               |   4 +-
 libio/freopen64.c                             |   4 +-
 misc/Makefile                                 |   6 +-
 misc/fd_to_filename.c                         | 104 +++++++++++++++++
 misc/tst-fd_to_filename.c                     | 106 ++++++++++++++++++
 sysdeps/generic/arch-fd_to_filename.h         |  19 ++++
 sysdeps/generic/fd_to_filename.h              |  25 +++--
 sysdeps/mach/hurd/arch-fd_to_filename.h       |  19 ++++
 ...fd_to_filename.h => arch-fd_to_filename.h} |  22 +---
 sysdeps/unix/sysv/linux/fexecve.c             |   6 +-
 sysdeps/unix/sysv/linux/ttyname.c             |   7 +-
 sysdeps/unix/sysv/linux/ttyname_r.c           |   7 +-
 12 files changed, 285 insertions(+), 44 deletions(-)
 create mode 100644 misc/fd_to_filename.c
 create mode 100644 misc/tst-fd_to_filename.c
 create mode 100644 sysdeps/generic/arch-fd_to_filename.h
 create mode 100644 sysdeps/mach/hurd/arch-fd_to_filename.h
 rename sysdeps/unix/sysv/linux/{fd_to_filename.h => arch-fd_to_filename.h} (58%)