[RFC] 4950302: (fs spec) Random write produces different results on Linux vs Windows from same .class
David Lloyd
david.lloyd at redhat.com
Fri Nov 22 15:38:30 UTC 2019
On Thu, Nov 21, 2019 at 4:08 PM Brian Burkhalter
<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
> [2] 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).
--
- DML
More information about the nio-dev
mailing list