JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... t () の使用方法の例を示すものである。 このプログラムを実行すると、以下のような出力が得られる: $ ./a.out main: swapcontext(&uctx_main, &uctx_func2) func2: started func2: swapcontext(&uctx_func2, &uctx_func1) func1: started func1: swapcontext(&uctx_fun ... c1, &uctx_func2) func2: returning func1: returning main: exiting プログラムのソース #include < ucontext.h > #include < stdio.h > #in ... clude < stdlib.h > static ucontext_t uctx_main, uctx_func1, uctx_func2; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void fu ... ... t () の使用方法の例を示すものである。 このプログラムを実行すると、以下のような出力が得られる: $ ./a.out main: swapcontext(&uctx_main, &uctx_func2) func2: started func2: swapcontext(&uctx_func2, &uctx_func1) func1: started func1: swapcontext(&uctx_fun ... c1, &uctx_func2) func2: returning func1: returning main: exiting プログラムのソース #include < ucontext.h > #include < stdio.h > #in ... clude < stdlib.h > static ucontext_t uctx_main, uctx_func1, uctx_func2; #define handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void fu ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。