Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/async/arch/async_posix.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | - | |||||||
9 | int ASYNC_is_capable(void) | - | ||||||
10 | { | - | ||||||
11 | ucontext_t ctx; | - | ||||||
12 | - | |||||||
13 | - | |||||||
14 | - | |||||||
15 | - | |||||||
16 | - | |||||||
17 | return executed 1 time by 1 test: getcontext(&ctx) == 0;return getcontext(&ctx) == 0; Executed by:
executed 1 time by 1 test: return getcontext(&ctx) == 0; Executed by:
| 1 | ||||||
18 | } | - | ||||||
19 | - | |||||||
20 | void async_local_cleanup(void) | - | ||||||
21 | { | - | ||||||
22 | } | - | ||||||
23 | - | |||||||
24 | int async_fibre_makecontext(async_fibre *fibre) | - | ||||||
25 | { | - | ||||||
26 | fibre->env_init = 0; | - | ||||||
27 | if (getcontext(&fibre->fibre) == 0
| 0-6 | ||||||
28 | fibre->fibre.uc_stack.ss_sp = CRYPTO_malloc(32768, __FILE__, 39); | - | ||||||
29 | if (fibre->fibre.uc_stack.ss_sp !=
| 0-6 | ||||||
30 | ((void *)0)
| 0-6 | ||||||
31 | ) { | - | ||||||
32 | fibre->fibre.uc_stack.ss_size = 32768; | - | ||||||
33 | fibre->fibre.uc_link = | - | ||||||
34 | ((void *)0) | - | ||||||
35 | ; | - | ||||||
36 | makecontext(&fibre->fibre, async_start_func, 0); | - | ||||||
37 | return executed 6 times by 1 test: 1;return 1; Executed by:
executed 6 times by 1 test: return 1; Executed by:
| 6 | ||||||
38 | } | - | ||||||
39 | } never executed: else {end of block | 0 | ||||||
40 | fibre->fibre.uc_stack.ss_sp = | - | ||||||
41 | ((void *)0) | - | ||||||
42 | ; | - | ||||||
43 | } never executed: end of block | 0 | ||||||
44 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
45 | } | - | ||||||
46 | - | |||||||
47 | void async_fibre_free(async_fibre *fibre) | - | ||||||
48 | { | - | ||||||
49 | CRYPTO_free(fibre->fibre.uc_stack.ss_sp, __FILE__, 54); | - | ||||||
50 | fibre->fibre.uc_stack.ss_sp = | - | ||||||
51 | ((void *)0) | - | ||||||
52 | ; | - | ||||||
53 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||
Switch to Source code | Preprocessed file |