• Dridi Boukelmoune's avatar
    Revert "On linux, use close_range() if available and prefer it over closefrom()" · 31baed29
    Dridi Boukelmoune authored
    This reverts commit 0c1aef58.
    
    The close_range(2) system call is too recent and not recognized by the
    host system on CircleCI, so the fedora-latest container detects it but
    is denied execution (EPERM) from the host's libseccomp.
    
    Also, on platforms with neither close_range(2) nor closefrom(2) we ended
    up not including <dirent.h> and failing virtually everywhere in our CI.
    
    The ifdef dance could have looked like this:
    
        #ifdef HAVE_LINUX_CLOSE_RANGE_H
        #  include <linux/close_range.h>
        #elif HAVE_CLOSEFROM
        #else
        #  include <dirent.h>
        #endif
    
    Note the extra #else missing from the original patch.
    
    This is reverted for now because we need to check that close_range(2)
    works at configure time to circumvent the host mismatch problem.
    31baed29
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
contrib Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
vmod Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...
wflags.py Loading commit data...