HomeFreeBSD

MFC r220376: Allow strerror(0) and strerror_r(0, ...).
rS220759Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

MFC r220376: Allow strerror(0) and strerror_r(0, ...).

Of course, strerror_r() may still fail with ERANGE.

Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.

PR: standards/151316

Details

Provenance
jillesAuthored on
Parents
rS220758: MFC of r220448
Branches
Unknown
Tags
Unknown

Event Timeline