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

Brian Burkhalter brian.burkhalter at oracle.com
Fri Aug 3 15:11:48 UTC 2018


Hi Matthias,

No, I don’t know either whether this matters in reality but I will check it out. As long as I am fooling around in this area we might as well try to get it clean.


Thanks,

Brian

On Aug 2, 2018, at 11:57 PM, Baesken, Matthias <matthias.baesken at sap.com> wrote:

> Hi Brian ,  looks  like the  function
>  
> struct dirent64 *readdir64 (DIR64 *DirectoryPointer);
>  
> returns   dirent64*   ( according to https://www.ibm.com/support/knowledgecenter/no/ssw_aix_72/com.ibm.aix.basetrf1/opendir.htm   )
>  
> and  some of  the files below  still have  dirent* on AIX  ( at some places it is redefined ).
>  
> For example  :
>  
> http://cr.openjdk.java.net/~bpb/8207744/webrev.02/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c.frames.html
>  
> 508 jint unix_getChildren(JNIEnv *env, jlong jpid, jlongArray jarray,
> 509                       jlongArray jparentArray, jlongArray jstimesArray) {
> 510     DIR* dir;
> 511     struct dirent* ptr;
>  
>  
> Not sure if this is really an issue  in “real life”  ….



More information about the core-libs-dev mailing list