OpenCoverage

bsd-signal.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-signal.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8mysig_t-
9mysignal(int sig, mysig_t act)-
10{-
11-
12 struct sigaction sa, osa;-
13-
14 if (sigaction(sig,
sigaction(sig,... , &osa) == -1Description
TRUEnever evaluated
FALSEevaluated 648 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
0-648
15 ((void *)0)
sigaction(sig,... , &osa) == -1Description
TRUEnever evaluated
FALSEevaluated 648 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
0-648
16 , &osa) == -1
sigaction(sig,... , &osa) == -1Description
TRUEnever evaluated
FALSEevaluated 648 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
)
0-648
17 return
never executed: return (mysig_t) -1;
(mysig_t) -1;
never executed: return (mysig_t) -1;
0
18 if (osa.
osa. __sigacti...handler != actDescription
TRUEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
FALSEevaluated 575 times by 7 tests
Evaluated by:
  • test_bitmap
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
73-575
19 __sigaction_handler.sa_handler
osa. __sigacti...handler != actDescription
TRUEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
FALSEevaluated 575 times by 7 tests
Evaluated by:
  • test_bitmap
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
73-575
20 != act
osa. __sigacti...handler != actDescription
TRUEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
FALSEevaluated 575 times by 7 tests
Evaluated by:
  • test_bitmap
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
) {
73-575
21 memset(&sa, 0, sizeof(sa));-
22 sigemptyset(&sa.sa_mask);-
23 sa.sa_flags = 0;-
24-
25 if (sig ==
sig == 14Description
TRUEnever evaluated
FALSEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
0-73
26 14
sig == 14Description
TRUEnever evaluated
FALSEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
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,
sigaction(sig,...d *)0) ) == -1Description
TRUEnever evaluated
FALSEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
0-73
36 ((void *)0)
sigaction(sig,...d *)0) ) == -1Description
TRUEnever evaluated
FALSEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
0-73
37 ) == -1
sigaction(sig,...d *)0) ) == -1Description
TRUEnever evaluated
FALSEevaluated 73 times by 8 tests
Evaluated by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
)
0-73
38 return
never executed: return (mysig_t) -1;
(mysig_t) -1;
never executed: return (mysig_t) -1;
0
39 }
executed 73 times by 8 tests: end of block
Executed by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
73
40 return
executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );
Executed by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
(osa.
executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );
Executed by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
648
41 __sigaction_handler.sa_handler
executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );
Executed by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
648
42 );
executed 648 times by 8 tests: return (osa. __sigaction_handler.sa_handler );
Executed by:
  • test_bitmap
  • test_conversion
  • test_hostkeys
  • test_kex
  • test_match
  • test_sshbuf
  • test_sshkey
  • test_utf8
648
43-
44-
45-
46}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2