[git commit master] CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failure

Mike Frysinger vapier at gentoo.org
Sun Sep 6 21:43:23 UTC 2009


On Sun, Sep 6, 2009 at 3:56 PM, Denys Vlasenko wrote:
> Then I do not understand what exactly you are saying.

i'll break it down.  these things need to happen:
 - revert all this #ifndef O_CLOEXEC
 - import __ASSUME_O_CLOEXEC from glibc into our kernel-features.h
 - remove the #if 0 in all the bits/fcntl.h around O_CLOEXEC
 - change the logic from "if (O_CLOEXEC == 0)" to "#ifndef __ASSUME_O_CLOEXEC"

as a wider discussion point, we may want to revise the __ASSUME_XXX
interface so we can integrate it better into C code (to do "if
(__ASSUME_XXX)")
-mike


More information about the uClibc mailing list