Lines Matching refs:ctx
29 static ucontext_t ctx[5]; variable
38 if (setcontext (&ctx[2]) != 0) in f2()
49 if (getcontext (&ctx[2]) != 0) in f1()
64 if (getcontext (&ctx[0]) != 0) in do_test()
69 if (getcontext (&ctx[1]) != 0) in do_test()
75 ctx[3].uc_stack.ss_sp = st1; in do_test()
76 ctx[3].uc_stack.ss_size = sizeof st1; in do_test()
77 ctx[3].uc_link = &ctx[0]; in do_test()
78 makecontext (&ctx[3], (void (*) (void)) f1, 0); in do_test()
80 ctx[1].uc_stack.ss_sp = st1; in do_test()
81 ctx[1].uc_stack.ss_size = sizeof st1; in do_test()
82 ctx[1].uc_link = &ctx[0]; in do_test()
83 makecontext (&ctx[1], (void (*) (void)) f1, 0); in do_test()
85 ctx[4].uc_stack.ss_sp = st1; in do_test()
86 ctx[4].uc_stack.ss_size = sizeof st1; in do_test()
87 ctx[4].uc_link = &ctx[0]; in do_test()
88 makecontext (&ctx[4], (void (*) (void)) f1, 0); in do_test()
102 if (ctx[3].__ssp[1] != 0 in do_test()
103 && munmap ((void *) (uintptr_t) ctx[3].__ssp[1], in do_test()
104 (size_t) ctx[3].__ssp[2]) != 0) in do_test()
110 if (ctx[4].__ssp[1] != 0 in do_test()
111 && munmap ((void *) (uintptr_t) ctx[4].__ssp[1], in do_test()
112 (size_t) ctx[4].__ssp[2]) != 0) in do_test()
119 if (setcontext (&ctx[1]) != 0) in do_test()