| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-signal.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | mysig_t | - | ||||||
| 9 | mysignal(int sig, mysig_t act) | - | ||||||
| 10 | { | - | ||||||
| 11 | - | |||||||
| 12 | struct sigaction sa, osa; | - | ||||||
| 13 | - | |||||||
| 14 | if (sigaction(sig,
| 0-648 | ||||||
| 15 | ((void *)0)
| 0-648 | ||||||
| 16 | , &osa) == -1
| 0-648 | ||||||
| 17 | return never executed: (mysig_t) -1;return (mysig_t) -1;never executed: return (mysig_t) -1; | 0 | ||||||
| 18 | if (osa.
| 73-575 | ||||||
| 19 | __sigaction_handler.sa_handler
| 73-575 | ||||||
| 20 | != act
| 73-575 | ||||||
| 21 | memset(&sa, 0, sizeof(sa)); | - | ||||||
| 22 | sigemptyset(&sa.sa_mask); | - | ||||||
| 23 | sa.sa_flags = 0; | - | ||||||
| 24 | - | |||||||
| 25 | if (sig ==
| 0-73 | ||||||
| 26 | 14
| 0-73 | ||||||
| 27 | ) | - | ||||||
| 28 | sa.sa_flags |= never executed: sa.sa_flags |= 0x20000000 ; | 0 | ||||||
| 29 | 0x20000000 never executed: sa.sa_flags |= 0x20000000 ; | 0 | ||||||
| 30 | ; never executed: sa.sa_flags |= 0x20000000 ; | 0 | ||||||
| 31 | - | |||||||
| 32 | sa. | - | ||||||
| 33 | __sigaction_handler.sa_handler | - | ||||||
| 34 | = act; | - | ||||||
| 35 | if (sigaction(sig, &sa,
| 0-73 | ||||||
| 36 | ((void *)0)
| 0-73 | ||||||
| 37 | ) == -1
| 0-73 | ||||||
| 38 | return never executed: (mysig_t) -1;return (mysig_t) -1;never executed: return (mysig_t) -1; | 0 | ||||||
| 39 | } executed 73 times by 8 tests: end of blockExecuted by:
| 73 | ||||||
| 40 | return executed 648 times by 8 tests: (osa.return (osa. __sigaction_handler.sa_handler );Executed by:
executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );Executed by:
| 648 | ||||||
| 41 | __sigaction_handler.sa_handler executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );Executed by:
| 648 | ||||||
| 42 | ); executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );Executed by:
| 648 | ||||||
| 43 | - | |||||||
| 44 | - | |||||||
| 45 | - | |||||||
| 46 | } | - | ||||||
| Switch to Source code | Preprocessed file |