OpenCoverage

netconn.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/lib/sh/netconn.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16int-
17isnetconn (fd)-
18 int fd;-
19{-
20-
21 int rv;-
22 socklen_t l;-
23 struct sockaddr sa;-
24-
25 l = sizeof(sa);-
26 rv = getpeername(fd, &sa, &l);-
27-
28 return
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
((rv < 0 && (
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
29 (*__errno_location ())
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
30 ==
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
31 88
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
32 ||
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
33 (*__errno_location ())
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
34 ==
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
35 107
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
36 ||
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
37 (*__errno_location ())
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
38 ==
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
39 22
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
40 ||
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
41 (*__errno_location ())
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
42 ==
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
43 9
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
44 )) ? 0 : 1);
executed 138 times by 1 test: return ((rv < 0 && ( (*__errno_location ()) == 88 || (*__errno_location ()) == 107 || (*__errno_location ()) == 22 || (*__errno_location ()) == 9 )) ? 0 : 1);
Executed by:
  • Self test
138
45}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2