[LTP] [PATCH v3] gethostname02: Accept EOVERFLOW on alpha

Andrea Cervesato andrea.cervesato@suse.com
Tue Jun 9 10:11:49 CEST 2026


Hi Panzhe,

> Hi Cyril,
> 
> Thanks for your review.
> 
> The ENAMETOOLONG note in man describes the mainstream glibc implementation based on uname(2), but alpha has its own arch-specific implementation calling raw gethostname syscall and returning EOVERFLOW.
> Alpha glibc source:
> https://codebrowser.dev/glibc/glibc/sysdeps/unix/sysv/linux/alpha/gethostname.c.html
> 
> POSIX does not specify required errno here, this is existing upstream glibc behavior. I suggest accepting both errnos to resolve alpha test failures.
> 
> 
> Regards,
> panzhe
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

for context, it was useful to add the following patch to the discussion:
https://patchwork.ozlabs.org/project/glibc/patch/20260604092410.185621-1-panzhe@kylinos.cn/

For me it's ok, but we need to see this patch being merged to glibc, before
updating LTP upstream. Please ping us when this will be official.

Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list