[PATCH] Deprecate SIGSTKSZ/MINSIGSTKSZ with _SC_SIGSTKSZ_SOURCE

Joseph Myers joseph@codesourcery.com
Thu Oct 15 19:59:08 GMT 2020


On Thu, 15 Oct 2020, H.J. Lu via Libc-alpha wrote:

> +__attribute_deprecated_msg__ ("Use sysconf (_SC_SIGSTKSZ) instead")
> +__extern_always_inline long
> +SIGSTKSZ_is_deprecated (void)
> +{
> +  return sysconf (_SC_SIGSTKSZ);
> +}
> +
> +__attribute_deprecated_msg__ ("Use sysconf (_SC_MINSIGSTKSZ) instead")
> +__extern_always_inline long
> +MINSIGSTKSZ_is_deprecated (void)
> +{
> +  return sysconf (_SC_SIGSTKSZ);
> +}

Those function names should start with '__' rather than claiming the names 
SIGSTKSZ_is_deprecated and MINSIGSTKSZ_is_deprecated from the user's 
namespace.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list