[Bug 247102] getlogin_r(): Sort of a typo: int is actually a size_t
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 13 01:45:08 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247102
--- Comment #11 from commit-hook at FreeBSD.org ---
A commit references this bug:
Author: kevans
Date: Sun Sep 13 01:44:32 UTC 2020
New revision: 365682
URL: https://svnweb.freebsd.org/changeset/base/365682
Log:
MFC r365506 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
Changes:
_U stable/12/
stable/12/include/unistd.h
stable/12/lib/libc/gen/Symbol.map
stable/12/lib/libc/gen/getlogin.c
stable/12/lib/libc/sys/getlogin.2
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list