[PATCH] alpha: Fix gethostname errno for a too-small buffer
Magnus Lindholm
linmag7@gmail.com
Sun Aug 9 21:53:20 GMT 2026
On Sun, Aug 9, 2026 at 11:01 PM Florian Weimer <fw@deneb.enyo.de> wrote:
> What happens if you delete the function? Won't the uname-based
> variant just work?
Yes you're right that works, the file contains nothing but __gethostname and
its weak_alias, so removing the function means removing the file, and the
sysdeps search then falls through to sysdeps/posix/gethostname.c. I've tested
that on alpha: the generic implementation is used and misc/tst-gethostname
passes. I'll post a v2 posted separately.
Magnus
More information about the Libc-alpha
mailing list