Update jnr-constants for fixes after the updated generation logic#5316
Update jnr-constants for fixes after the updated generation logic#5316headius merged 7 commits intojruby:masterfrom
Conversation
Thanks to @ahorek for help getting these regenerated.
|
these tests should be updated jruby/test/jruby/test_system_error.rb Line 8 in 4e8bb26 and some failures are probably related to missing "O_TMPFILE" maybe related? |
|
also after this change I have a strange error on windows (master 7ea2895 works) reproduction |
This allows setting _GNU_SOURCE as needed to get the Linux- specific O_TMPFILE back into constants. See: http://lists.busybox.net/pipermail/buildroot/2016-August/171072.html jruby/jruby#5316 (comment)
I just removed it. It wasn't a large test and there's considerably better coverage for system errors elsewhere.
I've just pushed jnr/jnr-constants@6539638 which adds _GNU_SOURCE for OpenFlags, but I wonder if there's a better way to isolate this per env (without having "if Linux..." all over the generator files). I'll update OpenFlags and see if it helps. |
At least BINARY and TMPFILE now may have a zero value if they are not defined on the current platform, so comparing a mask with 0 to 0 obviously is not right here.
|
I went ahead with the merge. Master went red with my O_CLOEXEC tweak...but only because it had the wrong O_CLOEXEC for Linux. That's resolved by this PR, so it should pass fine now. 🤞 |
Thanks to @ahorek for help getting these regenerated.