[klibc] [PATCH] fix non-RT sigsuspend()

H. Peter Anvin hpa at zytor.com
Mon May 14 15:32:51 PDT 2012


On 05/05/2012 02:32 PM, Thorsten Glaser wrote:
> +
> +#if defined(_KLIBC_SIGSUSPEND_I_1)
> +extern int __n_sigsuspend(sigset_t);
> +#define SIGSUSPEND_1
> +#elif defined(_KLIBC_SIGSUSPEND_L_1)
> +extern long __n_sigsuspend(sigset_t);
> +#define SIGSUSPEND_1
> +#elif defined(_KLIBC_SIGSUSPEND_I_II1)
> +extern int __n_sigsuspend(int, int, sigset_t);
> +#define SIGSUSPEND_001
> +#elif defined(_KLIBC_SIGSUSPEND_L_II1)
> +extern long __n_sigsuspend(int, int, sigset_t);
> +#define SIGSUSPEND_001
> +#elif defined(_KLIBC_SIGSUSPEND_I_IUL1)
> +extern int __n_sigsuspend(int, unsigned long, sigset_t);
> +#define SIGSUSPEND_001
> +#else
> +#error unknown architecture
> +#endif
> +

As you might have noticed, klibc configuration use #if, not #ifdef, with
the defaults *and documentation* defined in <klibc/sysconfig.h>.  I have
to admit to finding this maze completely opaque.

	-hpa



More information about the klibc mailing list