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

Brian Burkhalter brian.burkhalter at oracle.com
Tue Aug 14 20:34:59 UTC 2018


Hi Bernard,

On Aug 14, 2018, at 4:13 AM, B. Blaser <bsrbnd at gmail.com> wrote:

Seems quite good to me, last notes:

1) dealing with 'stat/stat64' in 'UnixFileSystemmd.c' might be outside the scope of this fix (?) even if fully pertinent per [1].

It might be slightly out of scope but I think it’s OK as stat64 was defined inside an #if defined(_ALLBSD_SOURCE) conditional compilation block.

In the same file, I think '#define dirent dirent64' is probably missing for AIX.

Fixed.

2) I guess '#if defined(AIX) ...' is now missing in 'OperatingSystemImpl.c': #if defined(AIX) #define DIR DIR64 #define dirent dirent64 #define opendir opendir64 #define readdir readdir64 #define closedir closedir64 #endif

Fixed.

Webrev updated in place: http://cr.openjdk.java.net/~bpb/8207744/webrev.04/.

Checks out on Linux-x64, macOS, Solaris-sparcv9, Windows-x64.

You'll probably need some more reviews especially for other systems than Linux 64-bit.

It would not hurt. In any case I do not yet have a Reviewer approval.

Thanks,

Brian



More information about the core-libs-dev mailing list