On Mon, 19 Feb 2024 13:55:58 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:

>> In this special case here I would not use errno, but the string returned in 
>> ebuf, in case the result is nullptr.
>
> Argh, I keep forgetting `dlopen` does not set errno (at least its not 
> guaranteed by the standard).
> 
> Ok, in this case, I would not analyze the string either because it may be 
> locale-dependent.
> 
> Never mind then; I'd thought this would be easy. One could probably use 
> load() instead of dlopen() on AIX, but that change would require more 
> investigations to see if load() and dlopen() are equivalent.
> 
> Okay, in that case just skip the errno test and call the second dlopen 
> directly. Lets hope for the best then.

Sure .thank for all the info. This is great learning.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16604#discussion_r1494859583

Reply via email to