]> git.ipfire.org Git - thirdparty/glibc.git/commit
alpha: Use the generic gethostname master
authorMagnus Lindholm <linmag7@gmail.com>
Sun, 9 Aug 2026 22:08:02 +0000 (00:08 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 10 Aug 2026 09:26:21 +0000 (11:26 +0200)
commit9d7d6480880064cb5219aa267894ffabd0c2b20c
tree4943202c33edce35600b72dcdec6f140948f6abd
parentbd57d3231d7e700d03424854bd8b50b6ce169cc6
alpha: Use the generic gethostname

alpha was the only target implementing gethostname with the syscall
rather than through uname. Its only behavioural difference was the errno
for a too-small buffer: it reported EOVERFLOW where the generic
implementation, gethostname(2) and misc/tst-gethostname expect
ENAMETOOLONG, so alpha failed that test:

  tst-gethostname.c:96: numeric comparison failure
     left: 112 (0x70, EOVERFLOW); from: errno
    right: 63 (0x3f); from: ENAMETOOLONG

The file contains nothing but that function, so removing it lets the
sysdeps search fall through to sysdeps/posix/gethostname.c, which
produces the same buffer contents and the expected errno.
misc/tst-gethostname passes on alpha with it.

Suggested-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/alpha/gethostname.c [deleted file]