[PATCH 9/9] uClibc: introduce UCLIBC_HAS_CONTEXT_FUNCS configuration symbol

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 9 12:40:34 UTC 2013


On 31 December 2012 15:38, Florian Fainelli <florian at openwrt.org> wrote:
> This option is introduced to conditionnaly enable the support for the
> {get,set,swap,make}context functions. Based on a initial patch by Carmelo
> Amoroso.
>
> Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
> Signed-off-by: Florian Fainelli <florian at openwrt.org>
> ---
>  extra/Configs/Config.in |   14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
> index d0204bb..342f9c3 100644
> --- a/extra/Configs/Config.in
> +++ b/extra/Configs/Config.in
> @@ -681,6 +681,20 @@ config UCLIBC_SUSV3_LEGACY
>
>           WARNING! ABI incompatibility.
>
> +config UCLIBC_HAS_CONTEXT_FUNCS
> +       bool "Use obsolescent context control functions"
> +       default n

IIRC default defaults to n so this is redundant.

> +       depends on UCLIBC_SUSV3_LEGACY && ARCH_HAS_UCONTEXT
> +       help
> +         Add into library the SuSv3 obsolescent functions used for context
> +         control. The setcontext family allows the implementation in C of
> +         advanced control flow patterns such as iterators, fibers, and
> +         coroutines. They may be viewed as an advanced version of
> +         setjmp/longjmp; whereas the latter allows only a single non-local jump
> +         up the stack, setcontext allows the creation of multiple cooperative
> +         threads of control, each with its own stack.
> +         These functions are: setcontext, getcontext, makecontext, swapcontext.
> +
>  config UCLIBC_SUSV3_LEGACY_MACROS
>         bool "Enable SuSv3 LEGACY macros"
>         help
> --
> 1.7.10.4
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc


More information about the uClibc mailing list