On Wed, 23 Sep 2026 14:36:37 GMT, Chris Plummer <[email protected]> wrote:
>> The manpage says 'return 0 on success and a non-zero error code on failure.' >> https://man7.org/linux/man-pages/man3/pthread_key_create.3.html >> but is it really cross platform always the same error code that strerror >> expects? >> I would guess so, but I am not sure. > > I suppose the error code could change from platform to platform and so could > the actual error text for the error code, but it should be providing the > appropriate text for the error code on the platform it is running on. If you > aren't comfortable with it, you can just stick with what you have. The errors are Posix defined so strerror can be used to convert them from numeric to text. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32999#discussion_r4089067123
