Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/xprintf.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | int | - | ||||||||||||
10 | xprintf (char const *__restrict format, ...) | - | ||||||||||||
11 | { | - | ||||||||||||
12 | va_list args; | - | ||||||||||||
13 | int retval; | - | ||||||||||||
14 | - | |||||||||||||
15 | __builtin_va_start( | - | ||||||||||||
16 | args | - | ||||||||||||
17 | , | - | ||||||||||||
18 | format | - | ||||||||||||
19 | ) | - | ||||||||||||
20 | ; | - | ||||||||||||
21 | retval = xvprintf (format, args); | - | ||||||||||||
22 | - | |||||||||||||
23 | __builtin_va_end( | - | ||||||||||||
24 | args | - | ||||||||||||
25 | ) | - | ||||||||||||
26 | ; | - | ||||||||||||
27 | - | |||||||||||||
28 | return executed 20688 times by 2 tests: retval;return retval; Executed by:
executed 20688 times by 2 tests: return retval; Executed by:
| 20688 | ||||||||||||
29 | } | - | ||||||||||||
30 | - | |||||||||||||
31 | - | |||||||||||||
32 | - | |||||||||||||
33 | int | - | ||||||||||||
34 | xvprintf (char const *__restrict format, va_list args) | - | ||||||||||||
35 | { | - | ||||||||||||
36 | int retval = vprintf (format, args); | - | ||||||||||||
37 | if (retval < 0
| 0-20688 | ||||||||||||
38 | stdout
| 0-1 | ||||||||||||
39 | )
| 0-1 | ||||||||||||
40 | error (exit_failure, executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
41 | (*__errno_location ()) executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
42 | , executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
43 | dcgettext (((void *)0), executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
44 | "cannot perform formatted output" executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
45 | , 5) executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
46 | ); executed 1 time by 1 test: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); Executed by:
| 1 | ||||||||||||
47 | - | |||||||||||||
48 | return executed 20688 times by 2 tests: retval;return retval; Executed by:
executed 20688 times by 2 tests: return retval; Executed by:
| 20688 | ||||||||||||
49 | } | - | ||||||||||||
50 | - | |||||||||||||
51 | - | |||||||||||||
52 | - | |||||||||||||
53 | int | - | ||||||||||||
54 | xfprintf (FILE *__restrict stream, char const *__restrict format, ...) | - | ||||||||||||
55 | { | - | ||||||||||||
56 | va_list args; | - | ||||||||||||
57 | int retval; | - | ||||||||||||
58 | - | |||||||||||||
59 | __builtin_va_start( | - | ||||||||||||
60 | args | - | ||||||||||||
61 | , | - | ||||||||||||
62 | format | - | ||||||||||||
63 | ) | - | ||||||||||||
64 | ; | - | ||||||||||||
65 | retval = xvfprintf (stream, format, args); | - | ||||||||||||
66 | - | |||||||||||||
67 | __builtin_va_end( | - | ||||||||||||
68 | args | - | ||||||||||||
69 | ) | - | ||||||||||||
70 | ; | - | ||||||||||||
71 | - | |||||||||||||
72 | return never executed: retval;return retval; never executed: return retval; | 0 | ||||||||||||
73 | } | - | ||||||||||||
74 | - | |||||||||||||
75 | - | |||||||||||||
76 | - | |||||||||||||
77 | int | - | ||||||||||||
78 | xvfprintf (FILE *__restrict stream, char const *__restrict format, va_list args) | - | ||||||||||||
79 | { | - | ||||||||||||
80 | int retval = vfprintf (stream, format, args); | - | ||||||||||||
81 | if (retval < 0
| 0 | ||||||||||||
82 | error (exit_failure, never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
83 | (*__errno_location ()) never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
84 | , never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
85 | dcgettext (((void *)0), never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
86 | "cannot perform formatted output" never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
87 | , 5) never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
88 | ); never executed: error (exit_failure, (*__errno_location ()) , dcgettext (((void *)0), "cannot perform formatted output" , 5) ); | 0 | ||||||||||||
89 | - | |||||||||||||
90 | return never executed: retval;return retval; never executed: return retval; | 0 | ||||||||||||
91 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |