On 12/12/2014 08:02 PM, Jeff Law wrote:
It'd probably work for the specific cases Florian wants to tackle, but
I'd consider it highly non-portable.
I agree, that's why I asked for something “GCC-portable”.
What problem are you trying to tackle here Florian?
I want a simple and robust fix for this glibc bug:
<https://sourceware.org/bugzilla/show_bug.cgi?id=17523>
Summary: Kernel and glibc disagree when the mode argument is needed. I
don't like to special-case O_CREAT, O_TMPFILE, and potential other flag
combinations.
--
Florian Weimer / Red Hat Product Security