unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/3] <fd_to_filename.h> improvements
Date: Fri, 14 Feb 2020 19:10:49 +0100	[thread overview]
Message-ID: <cover.1581703185.git.fweimer@redhat.com> (raw)

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%)

-- 
2.24.1


             reply	other threads:[~2020-02-14 18:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 18:10 Florian Weimer [this message]
2020-02-14 18:11 ` [PATCH 1/3] <fd_to_filename.h>: Add type safety and port to Hurd Florian Weimer
2020-02-14 18:43   ` Samuel Thibault
2020-02-14 19:08   ` Adhemerval Zanella
2020-02-14 20:21     ` Florian Weimer
2020-02-14 20:28   ` Paul Eggert
2020-02-15 13:16     ` Florian Weimer
2020-02-16  0:02       ` Paul Eggert
2020-02-17 15:18         ` Florian Weimer
2020-02-17 18:26           ` Paul Eggert
2020-02-17 18:59             ` Adhemerval Zanella
2020-02-17 19:14               ` Paul Eggert
2020-02-14 18:11 ` [PATCH 2/3] Linux: Port ttyname, ttyname_r to <fd_file_name.h> Florian Weimer
2020-02-14 18:11 ` [PATCH 3/3] Linux: Port fexecve to <fd_to_filename.h> Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1581703185.git.fweimer@redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).