[PATCH] Move is_valid_fd to filedescriptor.c file.

Martin Liška mliska@suse.cz
Fri Aug 9 07:31:00 GMT 2019


Hi.

As Jakub correctly noted, I used a piggy backing to put the new function
to a file that is supposed to contain different functions. So that
I'm suggesting a new file. Moreover, I'm also adding dup2 fallback.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

libiberty/ChangeLog:

2019-08-08  Martin Liska  <mliska@suse.cz>

	* Makefile.in: Add filedescriptor.c.
	* filedescriptor.c: New file.
	* lrealpath.c (is_valid_fd): Remove.
---
 libiberty/Makefile.in      | 14 +++++++++++-
 libiberty/filedescriptor.c | 47 ++++++++++++++++++++++++++++++++++++++
 libiberty/lrealpath.c      | 16 -------------
 3 files changed, 60 insertions(+), 17 deletions(-)
 create mode 100644 libiberty/filedescriptor.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Move-is_valid_fd-to-filedescriptor.c-file.patch
Type: text/x-patch
Size: 4267 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190809/a6eef066/attachment.bin>


More information about the Gcc-patches mailing list