[LTP] [PATCH v2 2/2] Rewrite utsname testing suite

Petr Vorel pvorel@suse.cz
Mon Oct 31 13:59:16 CET 2022


Hi Andrea,

> +#define _GNU_SOURCE
> +
> +#include "tst_test.h"
> +#include "utsname.h"
> +
> +#define HLEN 100
Could this definition be in utsname.h?
Also, although getconf HOST_NAME_MAX returns 64 on my machine, maybe using from
HOST_NAME_MAX would be safer (that can be up to 255).
Also maybe HOSTLEN (readability)?

Kind regards,
Petr


More information about the ltp mailing list