]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/fileutils: Add new dup_fd_cloexec function
authorGuillem Jover <guillem@hadrons.org>
Sat, 6 Jun 2015 04:19:05 +0000 (06:19 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jun 2015 10:10:02 +0000 (12:10 +0200)
commit8e86d93d1e3f0c11b3fdca3246c4f3a267acf8eb
tree50db242d8bde7b5c63807a6bac6a3b36360d9be3
parentc4417ee9d32ad383ea557745e8af18598676ad88
lib/fileutils: Add new dup_fd_cloexec function

This function duplicates and marks a file descriptor as close-on-exec.
Takes care of build and run-time support for the fcntl F_DUPFD_CLOEXEC
command, and other errors.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
include/fileutils.h
lib/fileutils.c