Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/uname.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | static struct option const uname_long_options[] = | - | ||||||||||||
11 | { | - | ||||||||||||
12 | {"all", | - | ||||||||||||
13 | 0 | - | ||||||||||||
14 | , | - | ||||||||||||
15 | ((void *)0) | - | ||||||||||||
16 | , 'a'}, | - | ||||||||||||
17 | {"kernel-name", | - | ||||||||||||
18 | 0 | - | ||||||||||||
19 | , | - | ||||||||||||
20 | ((void *)0) | - | ||||||||||||
21 | , 's'}, | - | ||||||||||||
22 | {"sysname", | - | ||||||||||||
23 | 0 | - | ||||||||||||
24 | , | - | ||||||||||||
25 | ((void *)0) | - | ||||||||||||
26 | , 's'}, | - | ||||||||||||
27 | {"nodename", | - | ||||||||||||
28 | 0 | - | ||||||||||||
29 | , | - | ||||||||||||
30 | ((void *)0) | - | ||||||||||||
31 | , 'n'}, | - | ||||||||||||
32 | {"kernel-release", | - | ||||||||||||
33 | 0 | - | ||||||||||||
34 | , | - | ||||||||||||
35 | ((void *)0) | - | ||||||||||||
36 | , 'r'}, | - | ||||||||||||
37 | {"release", | - | ||||||||||||
38 | 0 | - | ||||||||||||
39 | , | - | ||||||||||||
40 | ((void *)0) | - | ||||||||||||
41 | , 'r'}, | - | ||||||||||||
42 | {"kernel-version", | - | ||||||||||||
43 | 0 | - | ||||||||||||
44 | , | - | ||||||||||||
45 | ((void *)0) | - | ||||||||||||
46 | , 'v'}, | - | ||||||||||||
47 | {"machine", | - | ||||||||||||
48 | 0 | - | ||||||||||||
49 | , | - | ||||||||||||
50 | ((void *)0) | - | ||||||||||||
51 | , 'm'}, | - | ||||||||||||
52 | {"processor", | - | ||||||||||||
53 | 0 | - | ||||||||||||
54 | , | - | ||||||||||||
55 | ((void *)0) | - | ||||||||||||
56 | , 'p'}, | - | ||||||||||||
57 | {"hardware-platform", | - | ||||||||||||
58 | 0 | - | ||||||||||||
59 | , | - | ||||||||||||
60 | ((void *)0) | - | ||||||||||||
61 | , 'i'}, | - | ||||||||||||
62 | {"operating-system", | - | ||||||||||||
63 | 0 | - | ||||||||||||
64 | , | - | ||||||||||||
65 | ((void *)0) | - | ||||||||||||
66 | , 'o'}, | - | ||||||||||||
67 | {"help", | - | ||||||||||||
68 | 0 | - | ||||||||||||
69 | , | - | ||||||||||||
70 | ((void *)0) | - | ||||||||||||
71 | , GETOPT_HELP_CHAR}, | - | ||||||||||||
72 | {"version", | - | ||||||||||||
73 | 0 | - | ||||||||||||
74 | , | - | ||||||||||||
75 | ((void *)0) | - | ||||||||||||
76 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||
77 | { | - | ||||||||||||
78 | ((void *)0) | - | ||||||||||||
79 | , 0, | - | ||||||||||||
80 | ((void *)0) | - | ||||||||||||
81 | , 0} | - | ||||||||||||
82 | }; | - | ||||||||||||
83 | - | |||||||||||||
84 | static struct option const arch_long_options[] = | - | ||||||||||||
85 | { | - | ||||||||||||
86 | {"help", | - | ||||||||||||
87 | 0 | - | ||||||||||||
88 | , | - | ||||||||||||
89 | ((void *)0) | - | ||||||||||||
90 | , GETOPT_HELP_CHAR}, | - | ||||||||||||
91 | {"version", | - | ||||||||||||
92 | 0 | - | ||||||||||||
93 | , | - | ||||||||||||
94 | ((void *)0) | - | ||||||||||||
95 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||
96 | { | - | ||||||||||||
97 | ((void *)0) | - | ||||||||||||
98 | , 0, | - | ||||||||||||
99 | ((void *)0) | - | ||||||||||||
100 | , 0} | - | ||||||||||||
101 | }; | - | ||||||||||||
102 | - | |||||||||||||
103 | void | - | ||||||||||||
104 | usage (int status) | - | ||||||||||||
105 | { | - | ||||||||||||
106 | if (status !=
| 3-21 | ||||||||||||
107 | 0
| 3-21 | ||||||||||||
108 | ) | - | ||||||||||||
109 | do { fprintf ( | - | ||||||||||||
110 | stderr | - | ||||||||||||
111 | , | - | ||||||||||||
112 | dcgettext (((void *)0), | - | ||||||||||||
113 | "Try '%s --help' for more information.\n" | - | ||||||||||||
114 | , 5) | - | ||||||||||||
115 | , program_name); } executed 3 times by 1 test: while (0);end of block Executed by:
| 3 | ||||||||||||
116 | else | - | ||||||||||||
117 | { | - | ||||||||||||
118 | printf ( | - | ||||||||||||
119 | dcgettext (((void *)0), | - | ||||||||||||
120 | "Usage: %s [OPTION]...\n" | - | ||||||||||||
121 | , 5) | - | ||||||||||||
122 | , program_name); | - | ||||||||||||
123 | - | |||||||||||||
124 | if (uname_mode == 1
| 0-21 | ||||||||||||
125 | { | - | ||||||||||||
126 | fputs_unlocked ( | - | ||||||||||||
127 | dcgettext (((void *)0), | - | ||||||||||||
128 | "Print certain system information. With no OPTION, same as -s.\n\n -a, --all print all information, in the following order,\n except omit -p and -i if unknown:\n -s, --kernel-name print the kernel name\n -n, --nodename print the network node hostname\n -r, --kernel-release print the kernel release\n" | - | ||||||||||||
129 | , 5) | - | ||||||||||||
130 | , | - | ||||||||||||
131 | stdout | - | ||||||||||||
132 | ) | - | ||||||||||||
133 | - | |||||||||||||
134 | - | |||||||||||||
135 | - | |||||||||||||
136 | - | |||||||||||||
137 | - | |||||||||||||
138 | - | |||||||||||||
139 | - | |||||||||||||
140 | ; | - | ||||||||||||
141 | fputs_unlocked ( | - | ||||||||||||
142 | dcgettext (((void *)0), | - | ||||||||||||
143 | " -v, --kernel-version print the kernel version\n -m, --machine print the machine hardware name\n -p, --processor print the processor type (non-portable)\n -i, --hardware-platform print the hardware platform (non-portable)\n -o, --operating-system print the operating system\n" | - | ||||||||||||
144 | , 5) | - | ||||||||||||
145 | , | - | ||||||||||||
146 | stdout | - | ||||||||||||
147 | ) | - | ||||||||||||
148 | - | |||||||||||||
149 | - | |||||||||||||
150 | - | |||||||||||||
151 | - | |||||||||||||
152 | - | |||||||||||||
153 | ; | - | ||||||||||||
154 | } executed 21 times by 1 test: end of block Executed by:
| 21 | ||||||||||||
155 | else | - | ||||||||||||
156 | { | - | ||||||||||||
157 | fputs_unlocked ( | - | ||||||||||||
158 | dcgettext (((void *)0), | - | ||||||||||||
159 | "Print machine architecture.\n\n" | - | ||||||||||||
160 | , 5) | - | ||||||||||||
161 | , | - | ||||||||||||
162 | stdout | - | ||||||||||||
163 | ) | - | ||||||||||||
164 | - | |||||||||||||
165 | - | |||||||||||||
166 | ; | - | ||||||||||||
167 | } never executed: end of block | 0 | ||||||||||||
168 | - | |||||||||||||
169 | fputs_unlocked ( | - | ||||||||||||
170 | dcgettext (((void *)0), | - | ||||||||||||
171 | " --help display this help and exit\n" | - | ||||||||||||
172 | , 5) | - | ||||||||||||
173 | , | - | ||||||||||||
174 | stdout | - | ||||||||||||
175 | ); | - | ||||||||||||
176 | fputs_unlocked ( | - | ||||||||||||
177 | dcgettext (((void *)0), | - | ||||||||||||
178 | " --version output version information and exit\n" | - | ||||||||||||
179 | , 5) | - | ||||||||||||
180 | , | - | ||||||||||||
181 | stdout | - | ||||||||||||
182 | ); | - | ||||||||||||
183 | emit_ancillary_info ((uname_mode == 1 ? "uname" : "arch")); | - | ||||||||||||
184 | } executed 21 times by 1 test: end of block Executed by:
| 21 | ||||||||||||
185 | exit (status); executed 24 times by 1 test: exit (status); Executed by:
| 24 | ||||||||||||
186 | } | - | ||||||||||||
187 | - | |||||||||||||
188 | - | |||||||||||||
189 | - | |||||||||||||
190 | - | |||||||||||||
191 | static void | - | ||||||||||||
192 | print_element (char const *element) | - | ||||||||||||
193 | { | - | ||||||||||||
194 | static | - | ||||||||||||
195 | _Bool | - | ||||||||||||
196 | printed; | - | ||||||||||||
197 | if (printed
| 0-2 | ||||||||||||
198 | putchar_unlocked (' '); never executed: putchar_unlocked (' '); | 0 | ||||||||||||
199 | printed = | - | ||||||||||||
200 | 1 | - | ||||||||||||
201 | ; | - | ||||||||||||
202 | fputs_unlocked (element, | - | ||||||||||||
203 | stdout | - | ||||||||||||
204 | ); | - | ||||||||||||
205 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||
206 | - | |||||||||||||
207 | - | |||||||||||||
208 | - | |||||||||||||
209 | - | |||||||||||||
210 | - | |||||||||||||
211 | static int | - | ||||||||||||
212 | decode_switches (int argc, char **argv) | - | ||||||||||||
213 | { | - | ||||||||||||
214 | int c; | - | ||||||||||||
215 | unsigned int toprint = 0; | - | ||||||||||||
216 | - | |||||||||||||
217 | if (uname_mode == 2
| 0-29 | ||||||||||||
218 | { | - | ||||||||||||
219 | while ((
| 0 | ||||||||||||
220 | arch_long_options,
| 0 | ||||||||||||
221 | ((void *)0)
| 0 | ||||||||||||
222 | )) != -1
| 0 | ||||||||||||
223 | { | - | ||||||||||||
224 | switch (c) | - | ||||||||||||
225 | { | - | ||||||||||||
226 | case never executed: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: never executed: usage (case GETOPT_HELP_CHAR: | 0 | ||||||||||||
227 | 0 | - | ||||||||||||
228 | ); break; never executed: ;break; | 0 | ||||||||||||
229 | - | |||||||||||||
230 | case never executed: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: never executed: version_etc (case GETOPT_VERSION_CHAR: | 0 | ||||||||||||
231 | stdout | - | ||||||||||||
232 | , (uname_mode == 1 ? "uname" : "arch"), "GNU coreutils", Version, "David MacKenzie", "Karel Zak", (char *) | - | ||||||||||||
233 | ((void *)0) | - | ||||||||||||
234 | ); exit ( never executed: exit ( 0 ); | 0 | ||||||||||||
235 | 0 never executed: exit ( 0 ); | 0 | ||||||||||||
236 | ); never executed: break;exit ( 0 ); never executed: ;break; | 0 | ||||||||||||
237 | - | |||||||||||||
238 | default never executed: :default: never executed: default: | 0 | ||||||||||||
239 | usage ( | - | ||||||||||||
240 | 1 | - | ||||||||||||
241 | ); | - | ||||||||||||
242 | } never executed: end of block | 0 | ||||||||||||
243 | } | - | ||||||||||||
244 | toprint = 16; | - | ||||||||||||
245 | } never executed: end of block | 0 | ||||||||||||
246 | else | - | ||||||||||||
247 | { | - | ||||||||||||
248 | while ((
| 2-45 | ||||||||||||
249 | uname_long_options,
| 2-45 | ||||||||||||
250 | ((void *)0)
| 2-45 | ||||||||||||
251 | )) != -1
| 2-45 | ||||||||||||
252 | { | - | ||||||||||||
253 | switch (c) | - | ||||||||||||
254 | { | - | ||||||||||||
255 | case executed 2 times by 1 test: 'a':case 'a': Executed by:
executed 2 times by 1 test: case 'a': Executed by:
| 2 | ||||||||||||
256 | toprint = | - | ||||||||||||
257 | (0x7fffffff * 2U + 1U) | - | ||||||||||||
258 | ; | - | ||||||||||||
259 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
260 | - | |||||||||||||
261 | case executed 2 times by 1 test: 's':case 's': Executed by:
executed 2 times by 1 test: case 's': Executed by:
| 2 | ||||||||||||
262 | toprint |= 1; | - | ||||||||||||
263 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
264 | - | |||||||||||||
265 | case executed 2 times by 1 test: 'n':case 'n': Executed by:
executed 2 times by 1 test: case 'n': Executed by:
| 2 | ||||||||||||
266 | toprint |= 2; | - | ||||||||||||
267 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
268 | - | |||||||||||||
269 | case executed 2 times by 1 test: 'r':case 'r': Executed by:
executed 2 times by 1 test: case 'r': Executed by:
| 2 | ||||||||||||
270 | toprint |= 4; | - | ||||||||||||
271 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
272 | - | |||||||||||||
273 | case executed 2 times by 1 test: 'v':case 'v': Executed by:
executed 2 times by 1 test: case 'v': Executed by:
| 2 | ||||||||||||
274 | toprint |= 8; | - | ||||||||||||
275 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
276 | - | |||||||||||||
277 | case executed 2 times by 1 test: 'm':case 'm': Executed by:
executed 2 times by 1 test: case 'm': Executed by:
| 2 | ||||||||||||
278 | toprint |= 16; | - | ||||||||||||
279 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
280 | - | |||||||||||||
281 | case executed 2 times by 1 test: 'p':case 'p': Executed by:
executed 2 times by 1 test: case 'p': Executed by:
| 2 | ||||||||||||
282 | toprint |= 32; | - | ||||||||||||
283 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
284 | - | |||||||||||||
285 | case executed 2 times by 1 test: 'i':case 'i': Executed by:
executed 2 times by 1 test: case 'i': Executed by:
| 2 | ||||||||||||
286 | toprint |= 64; | - | ||||||||||||
287 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
288 | - | |||||||||||||
289 | case executed 2 times by 1 test: 'o':case 'o': Executed by:
executed 2 times by 1 test: case 'o': Executed by:
| 2 | ||||||||||||
290 | toprint |= 128; | - | ||||||||||||
291 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||
292 | - | |||||||||||||
293 | case executed 21 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 21 times by 1 test: usage (case GETOPT_HELP_CHAR: Executed by:
| 21 | ||||||||||||
294 | 0 | - | ||||||||||||
295 | ); break; never executed: ;break; | 0 | ||||||||||||
296 | - | |||||||||||||
297 | case executed 3 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: Executed by:
executed 3 times by 1 test: version_etc (case GETOPT_VERSION_CHAR: Executed by:
| 3 | ||||||||||||
298 | stdout | - | ||||||||||||
299 | , (uname_mode == 1 ? "uname" : "arch"), "GNU coreutils", Version, ("David MacKenzie"), (char *) | - | ||||||||||||
300 | ((void *)0) | - | ||||||||||||
301 | ); exit ( executed 3 times by 1 test: exit ( 0 ); Executed by:
| 3 | ||||||||||||
302 | 0 executed 3 times by 1 test: exit ( 0 ); Executed by:
| 3 | ||||||||||||
303 | ); executed 3 times by 1 test: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-3 | ||||||||||||
304 | - | |||||||||||||
305 | default executed 3 times by 1 test: :default: Executed by:
executed 3 times by 1 test: default: Executed by:
| 3 | ||||||||||||
306 | usage ( | - | ||||||||||||
307 | 1 | - | ||||||||||||
308 | ); | - | ||||||||||||
309 | } never executed: end of block | 0 | ||||||||||||
310 | } | - | ||||||||||||
311 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||
312 | - | |||||||||||||
313 | if (argc != optind
| 0-2 | ||||||||||||
314 | { | - | ||||||||||||
315 | error (0, 0, | - | ||||||||||||
316 | dcgettext (((void *)0), | - | ||||||||||||
317 | "extra operand %s" | - | ||||||||||||
318 | , 5) | - | ||||||||||||
319 | , quote (argv[optind])); | - | ||||||||||||
320 | usage ( | - | ||||||||||||
321 | 1 | - | ||||||||||||
322 | ); | - | ||||||||||||
323 | } never executed: end of block | 0 | ||||||||||||
324 | - | |||||||||||||
325 | return executed 2 times by 1 test: toprint;return toprint; Executed by:
executed 2 times by 1 test: return toprint; Executed by:
| 2 | ||||||||||||
326 | } | - | ||||||||||||
327 | - | |||||||||||||
328 | int | - | ||||||||||||
329 | main (int argc, char **argv) | - | ||||||||||||
330 | { | - | ||||||||||||
331 | static char const unknown[] = "unknown"; | - | ||||||||||||
332 | - | |||||||||||||
333 | - | |||||||||||||
334 | unsigned int toprint = 0; | - | ||||||||||||
335 | - | |||||||||||||
336 | ; | - | ||||||||||||
337 | set_program_name (argv[0]); | - | ||||||||||||
338 | setlocale ( | - | ||||||||||||
339 | 6 | - | ||||||||||||
340 | , ""); | - | ||||||||||||
341 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||
342 | textdomain ("coreutils"); | - | ||||||||||||
343 | - | |||||||||||||
344 | atexit (close_stdout); | - | ||||||||||||
345 | - | |||||||||||||
346 | toprint = decode_switches (argc, argv); | - | ||||||||||||
347 | - | |||||||||||||
348 | if (toprint == 0
| 0-2 | ||||||||||||
349 | toprint = 1; executed 2 times by 1 test: toprint = 1; Executed by:
| 2 | ||||||||||||
350 | - | |||||||||||||
351 | if (toprint
| 0-2 | ||||||||||||
352 | & (1 | 2 | 4
| 0-2 | ||||||||||||
353 | | 8 | 16)
| 0-2 | ||||||||||||
354 | { | - | ||||||||||||
355 | struct utsname name; | - | ||||||||||||
356 | - | |||||||||||||
357 | if (uname (&name) == -1
| 0-2 | ||||||||||||
358 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
359 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
360 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
361 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
362 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
363 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
364 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
365 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
366 | "cannot get system name" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
367 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
368 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
369 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
370 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
371 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
372 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
373 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
374 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
375 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
376 | "cannot get system name" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
377 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
378 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
379 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
380 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot get system name\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot get system name" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||
381 | - | |||||||||||||
382 | if (toprint & 1
| 0-2 | ||||||||||||
383 | print_element (name.sysname); executed 2 times by 1 test: print_element (name.sysname); Executed by:
| 2 | ||||||||||||
384 | if (toprint & 2
| 0-2 | ||||||||||||
385 | print_element (name.nodename); never executed: print_element (name.nodename); | 0 | ||||||||||||
386 | if (toprint & 4
| 0-2 | ||||||||||||
387 | print_element (name.release); never executed: print_element (name.release); | 0 | ||||||||||||
388 | if (toprint & 8
| 0-2 | ||||||||||||
389 | print_element (name.version); never executed: print_element (name.version); | 0 | ||||||||||||
390 | if (toprint & 16
| 0-2 | ||||||||||||
391 | print_element (name.machine); never executed: print_element (name.machine); | 0 | ||||||||||||
392 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||
393 | - | |||||||||||||
394 | if (toprint & 32
| 0-2 | ||||||||||||
395 | { | - | ||||||||||||
396 | char const *element = unknown; | - | ||||||||||||
397 | if (! (toprint ==
| 0 | ||||||||||||
398 | (0x7fffffff * 2U + 1U)
| 0 | ||||||||||||
399 | && element == unknown
| 0 | ||||||||||||
400 | print_element (element); never executed: print_element (element); | 0 | ||||||||||||
401 | } never executed: end of block | 0 | ||||||||||||
402 | - | |||||||||||||
403 | if (toprint & 64
| 0-2 | ||||||||||||
404 | { | - | ||||||||||||
405 | char const *element = unknown; | - | ||||||||||||
406 | if (! (toprint ==
| 0 | ||||||||||||
407 | (0x7fffffff * 2U + 1U)
| 0 | ||||||||||||
408 | && element == unknown
| 0 | ||||||||||||
409 | print_element (element); never executed: print_element (element); | 0 | ||||||||||||
410 | } never executed: end of block | 0 | ||||||||||||
411 | - | |||||||||||||
412 | if (toprint & 128
| 0-2 | ||||||||||||
413 | print_element ("GNU/Linux"); never executed: print_element ("GNU/Linux"); | 0 | ||||||||||||
414 | - | |||||||||||||
415 | putchar_unlocked ('\n'); | - | ||||||||||||
416 | - | |||||||||||||
417 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||
418 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||
419 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||
420 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |