]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Rollup merge of #74606 - cuviper:cloexec, r=sfackler
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 23 Jul 2020 07:42:14 +0000 (00:42 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 07:42:14 +0000 (00:42 -0700)
commit8909ac97d52a8b099fd334d84db1073839e16b16
tree5c22a4427333f6b7ddf4c081383d513aa66aeb96
parentbea2eedcb5cb08c08069db554abe7880a3dfd693
parentae06e13b8de23722d8bf2fb0143581df07848aa8
Rollup merge of #74606 - cuviper:cloexec, r=sfackler

Remove Linux workarounds for missing CLOEXEC support

Now that #74163 updated the minimum Linux kernel to 2.6.32, we can
assume the availability of APIs that open file descriptors that are
already set to close on exec, including the flags `O_CLOEXEC`,
`SOCK_CLOEXEC`, and `F_DUPFD_CLOEXEC`.

Closes #74519.
src/libstd/sys/unix/fd.rs