Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 12 of 12) sorted by relevance

/stdlib/
A Dtst-setcontext9.c25 static ucontext_t ctx[5]; variable
34 if (swapcontext (&ctx[4], &ctx[2]) != 0) in f2()
63 if (getcontext (&ctx[2]) != 0) in f1a()
68 ctx[2].uc_stack.ss_sp = st2; in f1a()
70 ctx[2].uc_link = &ctx[0]; in f1a()
98 if (getcontext (&ctx[0]) != 0) in do_test()
103 if (getcontext (&ctx[1]) != 0) in do_test()
108 ctx[1].uc_stack.ss_sp = st1; in do_test()
110 ctx[1].uc_link = &ctx[0]; in do_test()
113 if (swapcontext (&ctx[3], &ctx[1]) != 0) in do_test()
[all …]
A Dtst-setcontext7.c25 static ucontext_t ctx[5]; variable
34 if (getcontext (&ctx[2]) != 0) in f1()
42 if (setcontext (&ctx[3]) != 0) in f1()
51 if (swapcontext (&ctx[4], &ctx[2]) != 0) in f1()
65 if (getcontext (&ctx[0]) != 0) in do_test()
70 if (getcontext (&ctx[1]) != 0) in do_test()
75 ctx[1].uc_stack.ss_sp = st1; in do_test()
76 ctx[1].uc_stack.ss_size = sizeof st1; in do_test()
77 ctx[1].uc_link = &ctx[0]; in do_test()
80 if (swapcontext (&ctx[3], &ctx[1]) != 0) in do_test()
[all …]
A Dtst-setcontext6.c25 static ucontext_t ctx[3]; variable
34 if (getcontext (&ctx[2]) != 0) in f1()
43 if (setcontext (&ctx[2]) != 0) in f1()
55 if (getcontext (&ctx[0]) != 0) in do_test()
60 if (getcontext (&ctx[1]) != 0) in do_test()
65 ctx[1].uc_stack.ss_sp = st1; in do_test()
66 ctx[1].uc_stack.ss_size = sizeof st1; in do_test()
67 ctx[1].uc_link = &ctx[0]; in do_test()
68 makecontext (&ctx[1], (void (*) (void)) f1, 0); in do_test()
69 if (setcontext (&ctx[1]) != 0) in do_test()
A Dtst-setcontext8.c25 static ucontext_t ctx[3]; variable
34 if (setcontext (&ctx[2]) != 0) in f2()
45 if (getcontext (&ctx[2]) != 0) in f1()
60 if (getcontext (&ctx[0]) != 0) in do_test()
65 if (getcontext (&ctx[1]) != 0) in do_test()
70 ctx[1].uc_stack.ss_sp = st1; in do_test()
71 ctx[1].uc_stack.ss_size = sizeof st1; in do_test()
72 ctx[1].uc_link = &ctx[0]; in do_test()
73 makecontext (&ctx[1], (void (*) (void)) f1, 0); in do_test()
74 if (setcontext (&ctx[1]) != 0) in do_test()
A Dtst-setcontext.c26 static ucontext_t ctx[3]; variable
44 if (swapcontext (&ctx[1], &ctx[2]) != 0) in f1()
67 if (swapcontext (&ctx[2], &ctx[1]) != 0) in f2()
153 if (getcontext (&ctx[1]) != 0) in main()
180 ctx[1].uc_stack.ss_sp = st1; in main()
182 ctx[1].uc_link = &ctx[0]; in main()
188 if (memcmp (&tempctx, &ctx[1], sizeof ctx[1]) == 0) in main()
200 ctx[2].uc_stack.ss_sp = st2; in main()
202 ctx[2].uc_link = &ctx[1]; in main()
203 makecontext (&ctx[2], f2, 0); in main()
[all …]
A Dtst-setcontext5.c24 static ucontext_t ctx[2]; variable
42 if (setcontext (&ctx[1]) != 0) in f2()
56 if (setcontext (&ctx[0]) != 0) in f3()
69 if (getcontext (&ctx[0]) != 0) in do_test()
74 if (getcontext (&ctx[1]) != 0) in do_test()
79 ctx[1].uc_stack.ss_sp = st1; in do_test()
80 ctx[1].uc_stack.ss_size = sizeof st1; in do_test()
81 ctx[1].uc_link = &ctx[0]; in do_test()
82 makecontext (&ctx[1], (void (*) (void)) f3, 0); in do_test()
A Dtst-setcontext3.c36 static ucontext_t ctx; variable
89 ucontext_t tempctx = ctx; in do_test()
102 if (getcontext (&ctx) != 0) in do_test()
115 ctx.uc_stack.ss_sp = st1; in do_test()
116 ctx.uc_stack.ss_size = sizeof (st1); in do_test()
117 ctx.uc_link = 0; in do_test()
118 makecontext (&ctx, cf, 0); in do_test()
121 if (memcmp (&tempctx, &ctx, sizeof ctx) == 0) in do_test()
127 ret = setcontext (&ctx); in do_test()
A Dtst-makecontext3.c25 static ucontext_t ctx[3]; variable
78 if (flag && swapcontext (&ctx[1], &ctx[2]) != 0) in f1()
92 if (swapcontext (&ctx[2], &ctx[1]) != 0) in f2()
126 if (getcontext (&ctx[0]) != 0) in main()
138 if (getcontext (&ctx[1]) != 0) in main()
144 ctx[1].uc_stack.ss_sp = st1; in main()
146 ctx[1].uc_link = &ctx[0]; in main()
193 ctx[2].uc_stack.ss_sp = st2; in main()
195 ctx[2].uc_link = &ctx[1]; in main()
196 makecontext (&ctx[2], f2, 0); in main()
[all …]
A Dbug-getcontext.c42 ucontext_t ctx; in do_test() local
43 status = getcontext(&ctx); in do_test()
A Dtst-setcontext4.c90 ucontext_t ctx, oldctx; in do_test() local
108 if (getcontext (&ctx) != 0) in do_test()
138 if (setcontext (&ctx) != 0) in do_test()
175 if (swapcontext (&oldctx, &ctx) != 0) in do_test()
A Dtst-setcontext2.c90 ucontext_t ctx, oldctx; in do_test() local
108 if (getcontext (&ctx) != 0) in do_test()
138 if (setcontext (&ctx) != 0) in do_test()
175 if (swapcontext (&oldctx, &ctx) != 0) in do_test()
A Dtst-makecontext.c40 backtrace_helper (struct _Unwind_Context *ctx, void *a) in backtrace_helper() argument

Completed in 19 milliseconds