[12] (AIX) 8207744: Clean up inconsistent use of opendir/closedir versus opendir64/closedir64

Brian Burkhalter brian.burkhalter at oracle.com
Thu Aug 2 14:59:09 UTC 2018


Hi Matthias,

Thanks for the build + test.

I will take a look at what you observed. The whole process is a bit protracted since I cannot build and test but your assistance is appreciated.

Thanks,

Brian

On Aug 2, 2018, at 5:24 AM, Baesken, Matthias <matthias.baesken at sap.com> wrote:

> builds + tests  ( with your  change  included)    last night on AIX were good .
>  
> However while looking into the coding a bit more, I noticed the following :
>  
> IBM states for AIX  :
>  
> https://www.ibm.com/support/knowledgecenter/no/ssw_aix_72/com.ibm.aix.basetrf1/opendir.htm
>  
> Note An open directory by opendir64subroutine must always be closed with theclosedir64 subroutine to ensure that the next attempt to open that directory is successful. In addition,
> it must be operated using the 64-bit interfaces (readdir64, telldir64, seekdir64,rewinddir64, and closedir64) to obtain the correct directory information.
>  
>  
> However this is  currently not the case everywhere  : for example I see in
>  
> http://cr.openjdk.java.net/~bpb/8207744/webrev.01/src/java.base/share/native/libjli/wildcard.c.frames.html
>  
> a readdir   (without 64).
>  
> Same for
> http://cr.openjdk.java.net/~bpb/8207744/webrev.01/raw_files/new/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c



More information about the core-libs-dev mailing list