[PATCH] Remove gethostname from sysdeps/unix/syscalls.list
Matt Turner
mattst88@gmail.com
Wed Sep 30 01:06:59 GMT 2026
On Sat, Sep 26, 2026 at 5:24 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Sep 25 2026, Matt Turner wrote:
>
> > Commit 9d7d648088 ("alpha: Use the generic gethostname") removed the
> > alpha gethostname.c to use sysdeps/posix/gethostname.c, but
> > sysdeps/unix precedes sysdeps/posix and its syscalls.list has a
> > gethostname entry. alpha is the only Linux target defining
> > __NR_gethostname, so it now gets a raw syscall wrapper. The kernel
> > truncates the name and returns 0, so a too-small buffer is no longer
> > an error:
>
> That's a conforming implemention of gethostname.
Interesting, thank you. I did not know that. So I suppose our test is
a bit too strict.
More information about the Libc-alpha
mailing list