Mercurial > hg > octave-lyh > gnulib-hg
changeset 16301:816f46a9f53b
maint: enable sc_prohibit_cloexec_without_use
* cfg.mk: Enable sc_prohibit_cloexec_without_use.
* lib/dup-safer-flag.c: Don't include "cloexec.h". Not needed.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 17 Jan 2012 18:30:09 +0100 |
parents | 6d8330e7c259 |
children | 43fb268b5b29 |
files | ChangeLog cfg.mk lib/dup-safer-flag.c |
diffstat | 3 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-01-17 Jim Meyering <meyering@redhat.com> + + maint: enable sc_prohibit_cloexec_without_use + * cfg.mk: Enable sc_prohibit_cloexec_without_use. + * lib/dup-safer-flag.c: Don't include "cloexec.h". Not needed. + 2012-01-17 Jim Meyering <meyering@redhat.com> maint: enable sc_prohibit_intprops_without_use
--- a/cfg.mk +++ b/cfg.mk @@ -23,7 +23,6 @@ sc_prohibit_always-defined_macros \ sc_prohibit_atoi_atof \ sc_prohibit_c_ctype_without_use \ - sc_prohibit_cloexec_without_use \ sc_prohibit_dirent_without_use \ sc_prohibit_error_without_use \ sc_prohibit_getopt_without_use \
--- a/lib/dup-safer-flag.c +++ b/lib/dup-safer-flag.c @@ -26,8 +26,6 @@ #include <fcntl.h> #include <unistd.h> -#include "cloexec.h" - /* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO. If FLAG contains O_CLOEXEC, behave like fcntl(F_DUPFD_CLOEXEC) rather than fcntl(F_DUPFD). */