<fd_to_filename.h>: Add type safety and port to Hurd
authorFlorian Weimer <fweimer@redhat.com>
Tue, 18 Feb 2020 12:02:37 +0000 (13:02 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 18 Feb 2020 12:42:29 +0000 (13:42 +0100)
commitfa185f0d4529c6d70f690306f431ca23662b9138
treead2719a1dd633d74a7a61ad59eefd08c944e19c6
parente4a399921390509418826e8e8995d2441f29e243
<fd_to_filename.h>: Add type safety and port to Hurd

The new type struct fd_to_filename makes the allocation of the
backing storage explicit.

Hurd uses /dev/fd, not /proc/self/fd.

Co-Authored-By: Paul Eggert <eggert@cs.ucla.edu>
libio/freopen.c
libio/freopen64.c
misc/Makefile
misc/fd_to_filename.c [new file with mode: 0644]
misc/tst-fd_to_filename.c [new file with mode: 0644]
sysdeps/generic/arch-fd_to_filename.h [new file with mode: 0644]
sysdeps/generic/fd_to_filename.h
sysdeps/mach/hurd/arch-fd_to_filename.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/arch-fd_to_filename.h [moved from sysdeps/unix/sysv/linux/fd_to_filename.h with 58% similarity]