(AIX) 8207744: Clean up inconsistent use of opendir/closedir versus opendir64/closedir64
bsrbnd at gmail.com
Fri Jul 27 14:16:30 UTC 2018
On 26 July 2018 at 22:13, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> This change simply adds
> #if defined(_AIX)
> #define DIR DIR64
> #define opendir opendir64
> #define closedir closedir64
> to each of
> src/java.base/share/native/libjli/wildcard.c src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c src/java.base/unix/native/libjava/TimeZone_md.c
> If someone who builds OpenJDK on AIX would try this out that would be great as I can only verify that it does not cause problems on the platforms that we support (currently in progress).
I cannot experiment on AIX myself but as mentioned in , shouldn't
this also/only be necessary in 'OperatingSystemImpl.c' &
I guess the problem on AIX is that 'readdir64' needs
'openddir64/closedir64/DIR64' while these methods don't exist and are
de-facto not necessary on Linux (at least with glibc 2.26 64-bit).
The other files you suggest to fix seem to use 'readdir' so I believe
'opendir/closedir' are well deserved here.
What do you think?
More information about the core-libs-dev