Re: [PATCH] alpha: Fix gethostname errno for a too-small buffer
Magnus Lindholm <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <CA+=Fv5SWVwm-oJeXiM04bBtGpQbiGo7=yhNUtfJwmyGTDdNEzA@mail.gmail.com> |
On Sun, Aug 9, 2026 at 11:01 PM Florian Weimer <[email protected]> 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