[RFC] 4950302: (fs spec) Random write produces different results on Linux vs Windows from same .class
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Nov 22 15:51:34 UTC 2019
> On Nov 22, 2019, at 7:38 AM, David Lloyd <david.lloyd at redhat.com> wrote:
>
> On Thu, Nov 21, 2019 at 4:08 PM Brian Burkhalter
> <brian.burkhalter at oracle.com <mailto:brian.burkhalter at oracle.com>> wrote:
>> You are probably correct, but RWF_APPEND does not show up in the Ubuntu 18.04.3 man page [1] but is in 19.04 [2]. I did verify however that pwritev2(2) with RWF_APPEND does have the desired behavior in Ubuntu 19.04. The symbols had to be enabled by defining __USE_GNU:
>>
>> #define __USE_GNU
>> #include <sys/uio.h>
>>
>> Thanks,
>>
>> Brian
>>
>> [1] http://manpages.ubuntu.com/manpages/bionic/man2/readv.2.html <http://manpages.ubuntu.com/manpages/bionic/man2/readv.2.html>
>> [2] http://manpages.ubuntu.com/manpages/disco/man2/readv.2.html <http://manpages.ubuntu.com/manpages/disco/man2/readv.2.html>
>
> I think that's probably not correct (relying on impl details) - rather
> you should use _GNU_SOURCE (also used already in a couple other places
> it seems).
I imagine you are right. I was just playing around with it to sanity test. Probably for now I’ll just document the possible fixes in the bug report.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191122/75e27632/attachment.html>
More information about the nio-dev
mailing list