HomeFreeBSD

MFS r365682: getlogin_r: fix the type of len

Description

MFS r365682: getlogin_r: fix the type of len

getlogin_r is specified by POSIX to to take a size_t len, not int. Fix our
version to do the same, bump the symbol version due to ABI change and
provide compat.

This was reported to break compilation of Ruby 2.8.

Some discussion about the necessity of the ABI compat did take place in the
review. While many 64-bit platforms would likely be passing it in a 64-bit
register and zero-extended and thus, not notice ABI breakage, some do
sign-extend (e.g. mips).

PR: 247102
Approved by: re (gjb)

Details

Provenance
kevansAuthored on
Parents
rS365683: MFS r365681: certctl: fix hashed link generation with duplicate subjects
Branches
Unknown
Tags
Unknown