[PATCH v3] posix: Fix getconf symbolic constants defined in limits.h (BZ# 29147)

Yury Khrustalev yury.khrustalev@arm.com
Wed Dec 10 15:46:42 GMT 2025


On Tue, Dec 09, 2025 at 10:45:24AM -0300, Adhemerval Zanella wrote:
> From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
> 
> POSIX-1.2018 defines that getconf utility shall print symbolic constant
> listed under the heading Maximum value and Minimum Values [1], however
> current behaviour is to print the values using pathconf or sysconf,
> which represents the specific implementation values instead of the
> system agnostics ones.
> 
> Another issue is for such the symbolic constants, getconf handles them
> as a path_var which requires an additional pathname (which does not
> make sense for constants values).
> 
> The patch fixes it adding a new internal type, LIMITS_H, which only
> prints the constant symbolic without requiring an additional path.
> Only the values define in glibc provided limits.h plust the GNU
> extensions are handled.
> 
> Checked on x86_64-linux-gnu.

Checked on AArch64. Tested-by: Yury Khrustalev <yury.khrustalev@arm.com>

LGTM. Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>

Thanks,
Yury



More information about the Libc-alpha mailing list