OpenCoverage

dd.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/dd.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static struct option const long_options[] =-
8{-
9 {-
10 ((void *)0)-
11 , 0, -
12 ((void *)0)-
13 , 0}-
14};-
15enum-
16 {-
17 C_ASCII = 01,-
18-
19 C_EBCDIC = 02,-
20 C_IBM = 04,-
21 C_BLOCK = 010,-
22 C_UNBLOCK = 020,-
23 C_LCASE = 040,-
24 C_UCASE = 0100,-
25 C_SWAB = 0200,-
26 C_NOERROR = 0400,-
27 C_NOTRUNC = 01000,-
28 C_SYNC = 02000,-
29-
30-
31-
32 C_TWOBUFS = 04000,-
33-
34 C_NOCREAT = 010000,-
35 C_EXCL = 020000,-
36 C_FDATASYNC = 040000,-
37 C_FSYNC = 0100000,-
38-
39 C_SPARSE = 0200000-
40 };-
41-
42-
43enum-
44 {-
45 STATUS_NONE = 1,-
46 STATUS_NOXFER = 2,-
47 STATUS_DEFAULT = 3,-
48 STATUS_PROGRESS = 4-
49 };-
50-
51-
52static char const *input_file = -
53 ((void *)0)-
54 ;-
55-
56-
57static char const *output_file = -
58 ((void *)0)-
59 ;-
60-
61-
62static size_t page_size;-
63-
64-
65static size_t input_blocksize = 0;-
66-
67-
68static size_t output_blocksize = 0;-
69-
70-
71static size_t conversion_blocksize = 0;-
72-
73-
74static uintmax_t skip_records = 0;-
75-
76-
77-
78static size_t skip_bytes = 0;-
79-
80-
81static uintmax_t seek_records = 0;-
82-
83-
84-
85static uintmax_t seek_bytes = 0;-
86-
87-
88static -
89 _Bool -
90 final_op_was_seek;-
91-
92-
93static uintmax_t max_records = (uintmax_t) -1;-
94-
95-
96static size_t max_bytes = 0;-
97-
98-
99static int conversions_mask = 0;-
100-
101-
102static int input_flags = 0;-
103static int output_flags = 0;-
104-
105-
106static int status_level = STATUS_DEFAULT;-
107-
108-
109static -
110 _Bool -
111 translation_needed = -
112 0-
113 ;-
114-
115-
116static uintmax_t w_partial = 0;-
117-
118-
119static uintmax_t w_full = 0;-
120-
121-
122static uintmax_t r_partial = 0;-
123-
124-
125static uintmax_t r_full = 0;-
126-
127-
128static uintmax_t w_bytes = 0;-
129-
130-
131static xtime_t start_time;-
132-
133-
134static xtime_t next_time;-
135-
136-
137static int progress_len;-
138-
139-
140static -
141 _Bool -
142 input_seekable;-
143-
144-
145-
146static int input_seek_errno;-
147-
148-
149-
150static uintmax_t input_offset;-
151static -
152 _Bool -
153 input_offset_overflow;-
154-
155-
156static -
157 _Bool -
158 warn_partial_read;-
159-
160-
161static uintmax_t r_truncate = 0;-
162-
163-
164-
165static char newline_character = '\n';-
166static char space_character = ' ';-
167-
168-
169static char *ibuf;-
170-
171-
172static char *obuf;-
173-
174-
175static size_t oc = 0;-
176-
177-
178static size_t col = 0;-
179-
180-
181static sigset_t caught_signals;-
182-
183-
184static sig_atomic_t volatile interrupt_signal;-
185-
186-
187static sig_atomic_t volatile info_signal_count;-
188-
189-
190static -
191 _Bool -
192 i_nocache, o_nocache;-
193-
194-
195static -
196 _Bool -
197 i_nocache_eof, o_nocache_eof;-
198-
199-
200static ssize_t (*iread_fnc) (int fd, char *buf, size_t size);-
201-
202-
203-
204-
205-
206struct symbol_value-
207{-
208 char symbol[sizeof "count_bytes"];-
209 int value;-
210};-
211-
212-
213static struct symbol_value const conversions[] =-
214{-
215 {"ascii", C_ASCII | C_UNBLOCK | C_TWOBUFS},-
216 {"ebcdic", C_EBCDIC | C_BLOCK | C_TWOBUFS},-
217 {"ibm", C_IBM | C_BLOCK | C_TWOBUFS},-
218 {"block", C_BLOCK | C_TWOBUFS},-
219 {"unblock", C_UNBLOCK | C_TWOBUFS},-
220 {"lcase", C_LCASE | C_TWOBUFS},-
221 {"ucase", C_UCASE | C_TWOBUFS},-
222 {"sparse", C_SPARSE},-
223 {"swab", C_SWAB | C_TWOBUFS},-
224 {"noerror", C_NOERROR},-
225 {"nocreat", C_NOCREAT},-
226 {"excl", C_EXCL},-
227 {"notrunc", C_NOTRUNC},-
228 {"sync", C_SYNC},-
229 {"fdatasync", C_FDATASYNC},-
230 {"fsync", C_FSYNC},-
231 {"", 0}-
232};-
233-
234-
235enum-
236 {-
237-
238-
239 v = ~(0-
240 | -
241 02000-
242 -
243 | -
244 0-
245 -
246 | 0-
247 | -
248 040000-
249 -
250 | -
251 0200000-
252 -
253 | -
254 010000-
255 -
256 | -
257 01000000-
258 -
259 | -
260 0400-
261 -
262 | -
263 0400000-
264 -
265 | -
266 0-
267 -
268 | -
269 04000-
270 -
271 | -
272 04010000-
273 -
274 | -
275 0-
276 -
277 ),-
278-
279-
280 O_FULLBLOCK = ((v) ^ ((v) & ((v) - 1))),-
281 v2 = v ^ O_FULLBLOCK,-
282-
283 O_NOCACHE = ((v2) ^ ((v2) & ((v2) - 1))),-
284 v3 = v2 ^ O_NOCACHE,-
285-
286 O_COUNT_BYTES = ((v3) ^ ((v3) & ((v3) - 1))),-
287 v4 = v3 ^ O_COUNT_BYTES,-
288-
289 O_SKIP_BYTES = ((v4) ^ ((v4) & ((v4) - 1))),-
290 v5 = v4 ^ O_SKIP_BYTES,-
291-
292 O_SEEK_BYTES = ((v5) ^ ((v5) & ((v5) - 1)))-
293 };-
294-
295-
296_Static_assert (O_FULLBLOCK != 0, "verify (" "O_FULLBLOCK != 0" ")");-
297_Static_assert (O_NOCACHE != 0, "verify (" "O_NOCACHE != 0" ")");-
298_Static_assert (O_COUNT_BYTES != 0, "verify (" "O_COUNT_BYTES != 0" ")");-
299_Static_assert (O_SKIP_BYTES != 0, "verify (" "O_SKIP_BYTES != 0" ")");-
300_Static_assert (O_SEEK_BYTES != 0, "verify (" "O_SEEK_BYTES != 0" ")");-
301-
302-
303-
304-
305_Static_assert (! (((O_FULLBLOCK) & ((O_FULLBLOCK) - 1)) != 0), "verify (" "! MULTIPLE_BITS_SET (O_FULLBLOCK)" ")");-
306_Static_assert (! (((O_NOCACHE) & ((O_NOCACHE) - 1)) != 0), "verify (" "! MULTIPLE_BITS_SET (O_NOCACHE)" ")");-
307_Static_assert (! (((O_COUNT_BYTES) & ((O_COUNT_BYTES) - 1)) != 0), "verify (" "! MULTIPLE_BITS_SET (O_COUNT_BYTES)" ")");-
308_Static_assert (! (((O_SKIP_BYTES) & ((O_SKIP_BYTES) - 1)) != 0), "verify (" "! MULTIPLE_BITS_SET (O_SKIP_BYTES)" ")");-
309_Static_assert (! (((O_SEEK_BYTES) & ((O_SEEK_BYTES) - 1)) != 0), "verify (" "! MULTIPLE_BITS_SET (O_SEEK_BYTES)" ")");-
310-
311-
312static struct symbol_value const flags[] =-
313{-
314 {"append", -
315 02000-
316 },-
317 {"binary", -
318 0-
319 },-
320 {"cio", 0},-
321 {"direct", -
322 040000-
323 },-
324 {"directory", -
325 0200000-
326 },-
327 {"dsync", -
328 010000-
329 },-
330 {"noatime", -
331 01000000-
332 },-
333 {"nocache", O_NOCACHE},-
334 {"noctty", -
335 0400-
336 },-
337 {"nofollow", 1 ? -
338 0400000 -
339 : 0},-
340 {"nolinks", -
341 0-
342 },-
343 {"nonblock", -
344 04000-
345 },-
346 {"sync", -
347 04010000-
348 },-
349 {"text", -
350 0-
351 },-
352 {"fullblock", O_FULLBLOCK},-
353 {"count_bytes", O_COUNT_BYTES},-
354 {"skip_bytes", O_SKIP_BYTES},-
355 {"seek_bytes", O_SEEK_BYTES},-
356 {"", 0}-
357};-
358-
359-
360static struct symbol_value const statuses[] =-
361{-
362 {"none", STATUS_NONE},-
363 {"noxfer", STATUS_NOXFER},-
364 {"progress", STATUS_PROGRESS},-
365 {"", 0}-
366};-
367-
368-
369static unsigned char trans_table[256];-
370-
371-
372-
373-
374-
375-
376static char const ascii_to_ebcdic[] =-
377{-
378 '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057',-
379 '\026', '\005', '\045', '\013', '\014', '\015', '\016', '\017',-
380 '\020', '\021', '\022', '\023', '\074', '\075', '\062', '\046',-
381 '\030', '\031', '\077', '\047', '\034', '\035', '\036', '\037',-
382 '\100', '\132', '\177', '\173', '\133', '\154', '\120', '\175',-
383 '\115', '\135', '\134', '\116', '\153', '\140', '\113', '\141',-
384 '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',-
385 '\370', '\371', '\172', '\136', '\114', '\176', '\156', '\157',-
386 '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307',-
387 '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326',-
388 '\327', '\330', '\331', '\342', '\343', '\344', '\345', '\346',-
389 '\347', '\350', '\351', '\255', '\340', '\275', '\232', '\155',-
390 '\171', '\201', '\202', '\203', '\204', '\205', '\206', '\207',-
391 '\210', '\211', '\221', '\222', '\223', '\224', '\225', '\226',-
392 '\227', '\230', '\231', '\242', '\243', '\244', '\245', '\246',-
393 '\247', '\250', '\251', '\300', '\117', '\320', '\137', '\007',-
394 '\040', '\041', '\042', '\043', '\044', '\025', '\006', '\027',-
395 '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033',-
396 '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010',-
397 '\070', '\071', '\072', '\073', '\004', '\024', '\076', '\341',-
398 '\101', '\102', '\103', '\104', '\105', '\106', '\107', '\110',-
399 '\111', '\121', '\122', '\123', '\124', '\125', '\126', '\127',-
400 '\130', '\131', '\142', '\143', '\144', '\145', '\146', '\147',-
401 '\150', '\151', '\160', '\161', '\162', '\163', '\164', '\165',-
402 '\166', '\167', '\170', '\200', '\212', '\213', '\214', '\215',-
403 '\216', '\217', '\220', '\152', '\233', '\234', '\235', '\236',-
404 '\237', '\240', '\252', '\253', '\254', '\112', '\256', '\257',-
405 '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',-
406 '\270', '\271', '\272', '\273', '\274', '\241', '\276', '\277',-
407 '\312', '\313', '\314', '\315', '\316', '\317', '\332', '\333',-
408 '\334', '\335', '\336', '\337', '\352', '\353', '\354', '\355',-
409 '\356', '\357', '\372', '\373', '\374', '\375', '\376', '\377'-
410};-
411-
412static char const ascii_to_ibm[] =-
413{-
414 '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057',-
415 '\026', '\005', '\045', '\013', '\014', '\015', '\016', '\017',-
416 '\020', '\021', '\022', '\023', '\074', '\075', '\062', '\046',-
417 '\030', '\031', '\077', '\047', '\034', '\035', '\036', '\037',-
418 '\100', '\132', '\177', '\173', '\133', '\154', '\120', '\175',-
419 '\115', '\135', '\134', '\116', '\153', '\140', '\113', '\141',-
420 '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',-
421 '\370', '\371', '\172', '\136', '\114', '\176', '\156', '\157',-
422 '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307',-
423 '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326',-
424 '\327', '\330', '\331', '\342', '\343', '\344', '\345', '\346',-
425 '\347', '\350', '\351', '\255', '\340', '\275', '\137', '\155',-
426 '\171', '\201', '\202', '\203', '\204', '\205', '\206', '\207',-
427 '\210', '\211', '\221', '\222', '\223', '\224', '\225', '\226',-
428 '\227', '\230', '\231', '\242', '\243', '\244', '\245', '\246',-
429 '\247', '\250', '\251', '\300', '\117', '\320', '\241', '\007',-
430 '\040', '\041', '\042', '\043', '\044', '\025', '\006', '\027',-
431 '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033',-
432 '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010',-
433 '\070', '\071', '\072', '\073', '\004', '\024', '\076', '\341',-
434 '\101', '\102', '\103', '\104', '\105', '\106', '\107', '\110',-
435 '\111', '\121', '\122', '\123', '\124', '\125', '\126', '\127',-
436 '\130', '\131', '\142', '\143', '\144', '\145', '\146', '\147',-
437 '\150', '\151', '\160', '\161', '\162', '\163', '\164', '\165',-
438 '\166', '\167', '\170', '\200', '\212', '\213', '\214', '\215',-
439 '\216', '\217', '\220', '\232', '\233', '\234', '\235', '\236',-
440 '\237', '\240', '\252', '\253', '\254', '\255', '\256', '\257',-
441 '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',-
442 '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',-
443 '\312', '\313', '\314', '\315', '\316', '\317', '\332', '\333',-
444 '\334', '\335', '\336', '\337', '\352', '\353', '\354', '\355',-
445 '\356', '\357', '\372', '\373', '\374', '\375', '\376', '\377'-
446};-
447-
448static char const ebcdic_to_ascii[] =-
449{-
450 '\000', '\001', '\002', '\003', '\234', '\011', '\206', '\177',-
451 '\227', '\215', '\216', '\013', '\014', '\015', '\016', '\017',-
452 '\020', '\021', '\022', '\023', '\235', '\205', '\010', '\207',-
453 '\030', '\031', '\222', '\217', '\034', '\035', '\036', '\037',-
454 '\200', '\201', '\202', '\203', '\204', '\012', '\027', '\033',-
455 '\210', '\211', '\212', '\213', '\214', '\005', '\006', '\007',-
456 '\220', '\221', '\026', '\223', '\224', '\225', '\226', '\004',-
457 '\230', '\231', '\232', '\233', '\024', '\025', '\236', '\032',-
458 '\040', '\240', '\241', '\242', '\243', '\244', '\245', '\246',-
459 '\247', '\250', '\325', '\056', '\074', '\050', '\053', '\174',-
460 '\046', '\251', '\252', '\253', '\254', '\255', '\256', '\257',-
461 '\260', '\261', '\041', '\044', '\052', '\051', '\073', '\176',-
462 '\055', '\057', '\262', '\263', '\264', '\265', '\266', '\267',-
463 '\270', '\271', '\313', '\054', '\045', '\137', '\076', '\077',-
464 '\272', '\273', '\274', '\275', '\276', '\277', '\300', '\301',-
465 '\302', '\140', '\072', '\043', '\100', '\047', '\075', '\042',-
466 '\303', '\141', '\142', '\143', '\144', '\145', '\146', '\147',-
467 '\150', '\151', '\304', '\305', '\306', '\307', '\310', '\311',-
468 '\312', '\152', '\153', '\154', '\155', '\156', '\157', '\160',-
469 '\161', '\162', '\136', '\314', '\315', '\316', '\317', '\320',-
470 '\321', '\345', '\163', '\164', '\165', '\166', '\167', '\170',-
471 '\171', '\172', '\322', '\323', '\324', '\133', '\326', '\327',-
472 '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',-
473 '\340', '\341', '\342', '\343', '\344', '\135', '\346', '\347',-
474 '\173', '\101', '\102', '\103', '\104', '\105', '\106', '\107',-
475 '\110', '\111', '\350', '\351', '\352', '\353', '\354', '\355',-
476 '\175', '\112', '\113', '\114', '\115', '\116', '\117', '\120',-
477 '\121', '\122', '\356', '\357', '\360', '\361', '\362', '\363',-
478 '\134', '\237', '\123', '\124', '\125', '\126', '\127', '\130',-
479 '\131', '\132', '\364', '\365', '\366', '\367', '\370', '\371',-
480 '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',-
481 '\070', '\071', '\372', '\373', '\374', '\375', '\376', '\377'-
482};-
483-
484-
485static -
486 _Bool -
487 close_stdout_required = -
488 1-
489 ;-
490static void-
491maybe_close_stdout (void)-
492{-
493 if (close_stdout_required
close_stdout_requiredDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 633 times by 1 test
Evaluated by:
  • dd
)
25-633
494 close_stdout ();
executed 25 times by 1 test: close_stdout ();
Executed by:
  • dd
25
495 else if (close_stream (
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 633 times by 1 test
Evaluated by:
  • dd
0-633
496 stderr
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 633 times by 1 test
Evaluated by:
  • dd
0-633
497 ) != 0
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 633 times by 1 test
Evaluated by:
  • dd
)
0-633
498 _exit (
never executed: _exit ( 1 );
0
499 1
never executed: _exit ( 1 );
0
500 );
never executed: _exit ( 1 );
0
501}
executed 658 times by 1 test: end of block
Executed by:
  • dd
658
502-
503-
504-
505static void __attribute__ ((__format__ (__printf__, 3, 4)))-
506nl_error (int status, int errnum, const char *fmt, ...)-
507{-
508 if (0 < progress_len
0 < progress_lenDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • dd
)
0-20
509 {-
510 fputc_unlocked ('\n',-
511 stderr-
512 );-
513 progress_len = 0;-
514 }
never executed: end of block
0
515-
516 va_list ap;-
517 -
518 __builtin_va_start(-
519 ap-
520 ,-
521 fmt-
522 )-
523 ;-
524 verror (status, errnum, fmt, ap);-
525 -
526 __builtin_va_end(-
527 ap-
528 )-
529 ;-
530}
executed 13 times by 1 test: end of block
Executed by:
  • dd
13
531-
532-
533-
534void-
535usage (int status)-
536{-
537 if (status !=
status != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 4 times by 1 test
Evaluated by:
  • dd
4
538 0
status != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 4 times by 1 test
Evaluated by:
  • dd
4
539 )-
540 do { fprintf (-
541 stderr-
542 , -
543 dcgettext (((void *)0), -
544 "Try '%s --help' for more information.\n"-
545 , 5)-
546 , program_name); }
executed 4 times by 1 test: end of block
Executed by:
  • dd
while (0);
4
547 else-
548 {-
549 printf (-
550 dcgettext (((void *)0), -
551 "Usage: %s [OPERAND]...\n or: %s OPTION\n"-
552 , 5)-
553-
554-
555 -
556 ,-
557 program_name, program_name);-
558 fputs_unlocked (-
559 dcgettext (((void *)0), -
560 "Copy a file, converting and formatting according to the operands.\n\n bs=BYTES read and write up to BYTES bytes at a time (default: 512);\n overrides ibs and obs\n cbs=BYTES convert BYTES bytes at a time\n conv=CONVS convert the file as per the comma separated symbol list\n count=N copy only N input blocks\n ibs=BYTES read up to BYTES bytes at a time (default: 512)\n"-
561 , 5)-
562 ,-
563 stdout-
564 )-
565 ;-
566 fputs_unlocked (-
567 dcgettext (((void *)0), -
568 " if=FILE read from FILE instead of stdin\n iflag=FLAGS read as per the comma separated symbol list\n obs=BYTES write BYTES bytes at a time (default: 512)\n of=FILE write to FILE instead of stdout\n oflag=FLAGS write as per the comma separated symbol list\n seek=N skip N obs-sized blocks at start of output\n skip=N skip N ibs-sized blocks at start of input\n status=LEVEL The LEVEL of information to print to stderr;\n 'none' suppresses everything but error messages,\n 'noxfer' suppresses the final transfer statistics,\n 'progress' shows periodic transfer statistics\n"-
569 , 5)-
570 ,-
571 stdout-
572 )-
573 ;-
574 fputs_unlocked (-
575 dcgettext (((void *)0), -
576 "\nN and BYTES may be followed by the following multiplicative suffixes:\nc =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M,\nGB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E, Z, Y.\n\nEach CONV symbol may be:\n\n"-
577 , 5)-
578 ,-
579 stdout-
580 )-
581-
582-
583-
584-
585-
586-
587-
588 ;-
589 fputs_unlocked (-
590 dcgettext (((void *)0), -
591 " ascii from EBCDIC to ASCII\n ebcdic from ASCII to EBCDIC\n ibm from ASCII to alternate EBCDIC\n block pad newline-terminated records with spaces to cbs-size\n unblock replace trailing spaces in cbs-size records with newline\n lcase change upper case to lower case\n ucase change lower case to upper case\n sparse try to seek rather than write the output for NUL input blocks\n swab swap every pair of input bytes\n sync pad every input block with NULs to ibs-size; when used\n with block or unblock, pad with spaces rather than NULs\n"-
592 , 5)-
593 ,-
594 stdout-
595 )-
596 ;-
597 fputs_unlocked (-
598 dcgettext (((void *)0), -
599 " excl fail if the output file already exists\n nocreat do not create the output file\n notrunc do not truncate the output file\n noerror continue after read errors\n fdatasync physically write output file data before finishing\n fsync likewise, but also write metadata\n"-
600 , 5)-
601 ,-
602 stdout-
603 )-
604-
605-
606-
607-
608-
609-
610 ;-
611 fputs_unlocked (-
612 dcgettext (((void *)0), -
613 "\nEach FLAG symbol may be:\n\n append append mode (makes sense only for output; conv=notrunc suggested)\n"-
614 , 5)-
615 ,-
616 stdout-
617 )-
618-
619-
620-
621-
622 ;-
623 if (0)-
624 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
625 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
626 " cio use concurrent I/O for data\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
627 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
628 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
629 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
630 );
dead code: fputs_unlocked ( dcgettext (((void *)0), " cio use concurrent I/O for data\n" , 5) , stdout );
-
631 if (-
632 040000-
633 )-
634 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
635 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
636 " direct use direct I/O for data\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
637 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
638 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
639 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
640 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " direct use direct I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
641 if (-
642 0200000-
643 )-
644 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
645 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
646 " directory fail unless a directory\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
647 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
648 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
649 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
650 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " directory fail unless a directory\n" , 5) , stdout );
Executed by:
  • dd
4
651 if (-
652 010000-
653 )-
654 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
655 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
656 " dsync use synchronized I/O for data\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
657 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
658 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
659 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
660 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " dsync use synchronized I/O for data\n" , 5) , stdout );
Executed by:
  • dd
4
661 if (-
662 04010000-
663 )-
664 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
665 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
666 " sync likewise, but also for metadata\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
667 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
668 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
669 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
670 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " sync likewise, but also for metadata\n" , 5) , stdout );
Executed by:
  • dd
4
671 fputs_unlocked (-
672 dcgettext (((void *)0), -
673 " fullblock accumulate full blocks of input (iflag only)\n"-
674 , 5)-
675 ,-
676 stdout-
677 )-
678 ;-
679 if (-
680 04000-
681 )-
682 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
683 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
684 " nonblock use non-blocking I/O\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
685 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
686 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
687 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
688 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nonblock use non-blocking I/O\n" , 5) , stdout );
Executed by:
  • dd
4
689 if (-
690 01000000-
691 )-
692 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
693 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
694 " noatime do not update access time\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
695 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
696 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
697 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
698 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noatime do not update access time\n" , 5) , stdout );
Executed by:
  • dd
4
699-
700 if (O_NOCACHE
O_NOCACHEDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-4
701 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
702 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
703 " nocache Request to drop cache. See also oflag=sync\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
704 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
705 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
706 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
707 )
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
708 ;
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nocache Request to drop cache. See also oflag=sync\n" , 5) , stdout ) ;
Executed by:
  • dd
4
709-
710 if (-
711 0400-
712 )-
713 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
714 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
715 " noctty do not assign controlling terminal from file\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
716 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
717 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
718 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
719 )
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
720 ;
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " noctty do not assign controlling terminal from file\n" , 5) , stdout ) ;
Executed by:
  • dd
4
721 if (1)-
722 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
723 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
724 " nofollow do not follow symlinks\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
725 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
726 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
727 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
728 );
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " nofollow do not follow symlinks\n" , 5) , stdout );
Executed by:
  • dd
4
729 if (-
730 0-
731 )-
732 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
733 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
734 " nolinks fail if multiply-linked\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
735 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
736 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
737 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
738 );
dead code: fputs_unlocked ( dcgettext (((void *)0), " nolinks fail if multiply-linked\n" , 5) , stdout );
-
739 if (-
740 0-
741 )-
742 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
743 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
744 " binary use binary I/O for data\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
745 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
746 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
747 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
748 );
dead code: fputs_unlocked ( dcgettext (((void *)0), " binary use binary I/O for data\n" , 5) , stdout );
-
749 if (-
750 0-
751 )-
752 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
753 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
754 " text use text I/O for data\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
755 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
756 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
757 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
758 );
dead code: fputs_unlocked ( dcgettext (((void *)0), " text use text I/O for data\n" , 5) , stdout );
-
759 if (O_COUNT_BYTES
O_COUNT_BYTESDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-4
760 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
761 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
762 " count_bytes treat 'count=N' as a byte count (iflag only)\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
763 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
764 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
765 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
766 )
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
767 ;
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " count_bytes treat 'count=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
768 if (O_SKIP_BYTES
O_SKIP_BYTESDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-4
769 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
770 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
771 " skip_bytes treat 'skip=N' as a byte count (iflag only)\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
772 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
773 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
774 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
775 )
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
776 ;
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " skip_bytes treat 'skip=N' as a byte count (iflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
777 if (O_SEEK_BYTES
O_SEEK_BYTESDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-4
778 fputs_unlocked (
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
779 dcgettext (((void *)0),
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
780 " seek_bytes treat 'seek=N' as a byte count (oflag only)\n"
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
781 , 5)
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
782 ,
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
783 stdout
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
784 )
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
785 ;
executed 4 times by 1 test: fputs_unlocked ( dcgettext (((void *)0), " seek_bytes treat 'seek=N' as a byte count (oflag only)\n" , 5) , stdout ) ;
Executed by:
  • dd
4
786-
787 {-
788 printf (-
789 dcgettext (((void *)0), -
790 "\nSending a %s signal to a running 'dd' process makes it\nprint I/O statistics to standard error and then resume copying.\n\nOptions are:\n\n"-
791 , 5)-
792-
793-
794-
795-
796-
797-
798 -
799 , -
800 10 -
801 == -
802 10 -
803 ? "USR1" : "INFO");-
804 }-
805-
806 fputs_unlocked (-
807 dcgettext (((void *)0), -
808 " --help display this help and exit\n"-
809 , 5)-
810 ,-
811 stdout-
812 );-
813 fputs_unlocked (-
814 dcgettext (((void *)0), -
815 " --version output version information and exit\n"-
816 , 5)-
817 ,-
818 stdout-
819 );-
820 emit_ancillary_info ("dd");-
821 }
executed 4 times by 1 test: end of block
Executed by:
  • dd
4
822 exit (status);
executed 8 times by 1 test: exit (status);
Executed by:
  • dd
8
823}-
824-
825-
826-
827enum { human_opts = (human_autoscale | human_round_to_nearest-
828 | human_space_before_unit | human_SI | human_B) };-
829-
830-
831-
832static void-
833alloc_ibuf (void)-
834{-
835 if (ibuf
ibufDescription
TRUEevaluated 531 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 600 times by 1 test
Evaluated by:
  • dd
)
531-600
836 return;
executed 531 times by 1 test: return;
Executed by:
  • dd
531
837-
838 char *real_buf = malloc (input_blocksize + (2 * 2 + 2 * page_size - 1));-
839 if (!real_buf
!real_bufDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 597 times by 1 test
Evaluated by:
  • dd
)
3-597
840 {-
841 uintmax_t ibs = input_blocksize;-
842 char hbuf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * (-
843 16 -
844 + 1) - -
845 16 -
846 + 1 + 3) + 1];-
847 ((!!sizeof (struct { _Static_assert (-
848 1-
849 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"memory exhausted by input buffer of size %\"\"l\" \"u\"\" bytes (%s)\", 5), ibs, human_readable (input_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), assume (false))" ")"); int _gl_dummy; })) ? ((nl_error (-
850 1-
851 , 0, -
852 dcgettext (((void *)0), -
853 "memory exhausted by input buffer of size %"-
854 "l" "u"-
855 " bytes (%s)"-
856 , 5)-
857 , ibs, human_readable (input_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), ((-
858 0-
859 ) ? (void) 0 : __builtin_unreachable ()))) : ((nl_error (-
860 1-
861 , 0, -
862 dcgettext (((void *)0), -
863 "memory exhausted by input buffer of size %"-
864 "l" "u"-
865 " bytes (%s)"-
866 , 5)-
867 , ibs, human_readable (input_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), ((-
868 0-
869 ) ? (void) 0 : __builtin_unreachable ()))))-
870-
871-
872-
873 ;-
874 }
never executed: end of block
0
875-
876 real_buf += 2;-
877-
878 ibuf = ptr_align (real_buf, page_size);-
879}
executed 597 times by 1 test: end of block
Executed by:
  • dd
597
880-
881-
882-
883static void-
884alloc_obuf (void)-
885{-
886 if (obuf
obufDescription
TRUEnever evaluated
FALSEevaluated 597 times by 1 test
Evaluated by:
  • dd
)
0-597
887 return;
never executed: return;
0
888-
889 if (conversions_mask & C_TWOBUFS
conversions_mask & C_TWOBUFSDescription
TRUEevaluated 67 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 530 times by 1 test
Evaluated by:
  • dd
)
67-530
890 {-
891-
892 char *real_obuf = malloc (output_blocksize + (page_size - 1));-
893 if (!real_obuf
!real_obufDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 66 times by 1 test
Evaluated by:
  • dd
)
1-66
894 {-
895 uintmax_t obs = output_blocksize;-
896 char hbuf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * (-
897 16 -
898 + 1) - -
899 16 -
900 + 1 + 3) + 1];-
901 ((!!sizeof (struct { _Static_assert (-
902 1-
903 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"memory exhausted by output buffer of size %\"\"l\" \"u\" \" bytes (%s)\", 5), obs, human_readable (output_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), assume (false))" ")"); int _gl_dummy; })) ? ((nl_error (-
904 1-
905 , 0, -
906 dcgettext (((void *)0), -
907 "memory exhausted by output buffer of size %"-
908 "l" "u" -
909 " bytes (%s)"-
910 , 5)-
911 , obs, human_readable (output_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), ((-
912 0-
913 ) ? (void) 0 : __builtin_unreachable ()))) : ((nl_error (-
914 1-
915 , 0, -
916 dcgettext (((void *)0), -
917 "memory exhausted by output buffer of size %"-
918 "l" "u" -
919 " bytes (%s)"-
920 , 5)-
921 , obs, human_readable (output_blocksize, hbuf, human_opts | human_base_1024, 1, 1)), ((-
922 0-
923 ) ? (void) 0 : __builtin_unreachable ()))))-
924-
925-
926-
927-
928 ;-
929 }
never executed: end of block
0
930 obuf = ptr_align (real_obuf, page_size);-
931 }
executed 66 times by 1 test: end of block
Executed by:
  • dd
66
932 else-
933 {-
934 alloc_ibuf ();-
935 obuf = ibuf;-
936 }
executed 529 times by 1 test: end of block
Executed by:
  • dd
529
937}-
938-
939static void-
940translate_charset (char const *new_trans)-
941{-
942 for (int i = 0; i < 256
i < 256Description
TRUEevaluated 256 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
; i++)
1-256
943 trans_table[i] = new_trans[trans_table[i]];
executed 256 times by 1 test: trans_table[i] = new_trans[trans_table[i]];
Executed by:
  • dd
256
944 translation_needed = -
945 1-
946 ;-
947}
executed 1 time by 1 test: end of block
Executed by:
  • dd
1
948-
949-
950-
951static inline -
952 _Bool-
953-
954multiple_bits_set (int i)-
955{-
956 return
executed 3773 times by 1 test: return (((i) & ((i) - 1)) != 0);
Executed by:
  • dd
(((i) & ((i) - 1)) != 0);
executed 3773 times by 1 test: return (((i) & ((i) - 1)) != 0);
Executed by:
  • dd
3773
957}-
958-
959static -
960 _Bool-
961-
962abbreviation_lacks_prefix (char const *message)-
963{-
964 return
executed 233 times by 1 test: return message[strlen (message) - 2] == ' ';
Executed by:
  • dd
message[strlen (message) - 2] == ' ';
executed 233 times by 1 test: return message[strlen (message) - 2] == ' ';
Executed by:
  • dd
233
965}-
966-
967-
968-
969static void-
970print_xfer_stats (xtime_t progress_time)-
971{-
972 xtime_t now = progress_time
progress_timeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 149 times by 1 test
Evaluated by:
  • dd
? progress_time : gethrxtime ();
1-149
973 static char const slash_s[] = "/s";-
974 char hbuf[3][((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * (-
975 16 -
976 + 1) - -
977 16 -
978 + 1 + 3) + sizeof slash_s];-
979 double delta_s;-
980 char const *bytes_per_second;-
981 char const *si = human_readable (w_bytes, hbuf[0], human_opts, 1, 1);-
982 char const *iec = human_readable (w_bytes, hbuf[1],-
983 human_opts | human_base_1024, 1, 1);-
984-
985-
986-
987 char *bpsbuf = hbuf[2];-
988 int bpsbufsize = sizeof hbuf[2];-
989 if (start_time < now
start_time < nowDescription
TRUEevaluated 150 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-150
990 {-
991 double XTIME_PRECISIONe0 = 1000000000;-
992 uintmax_t delta_xtime = now;-
993 delta_xtime -= start_time;-
994 delta_s = delta_xtime / XTIME_PRECISIONe0;-
995 bytes_per_second = human_readable (w_bytes, bpsbuf, human_opts,-
996 1000000000, delta_xtime);-
997 strcat (bytes_per_second - bpsbuf + bpsbuf, slash_s);-
998 }
executed 150 times by 1 test: end of block
Executed by:
  • dd
150
999 else-
1000 {-
1001 delta_s = 0;-
1002 snprintf (bpsbuf, bpsbufsize, "%s B/s", -
1003 dcgettext (((void *)0), -
1004 "Infinity"-
1005 , 5)-
1006 );-
1007 bytes_per_second = bpsbuf;-
1008 }
never executed: end of block
0
1009-
1010 if (progress_time
progress_timeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 149 times by 1 test
Evaluated by:
  • dd
)
1-149
1011 fputc_unlocked ('\r',
executed 1 time by 1 test: fputc_unlocked ('\r', stderr );
Executed by:
  • dd
1
1012 stderr
executed 1 time by 1 test: fputc_unlocked ('\r', stderr );
Executed by:
  • dd
1
1013 );
executed 1 time by 1 test: fputc_unlocked ('\r', stderr );
Executed by:
  • dd
1
1014-
1015-
1016-
1017-
1018-
1019-
1020 char delta_s_buf[24];-
1021 snprintf (delta_s_buf, sizeof delta_s_buf,-
1022 progress_time ? "%.0f s" : "%g s", delta_s);-
1023-
1024 int stats_len-
1025 = (abbreviation_lacks_prefix (si)
abbreviation_lacks_prefix (si)Description
TRUEevaluated 67 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 83 times by 1 test
Evaluated by:
  • dd
67-83
1026 ? fprintf (-
1027 stderr-
1028 ,-
1029 -
1030 dcngettext (((void *)0), -
1031 "%"-
1032 "l" "u"-
1033 " byte copied, %s, %s"-
1034 , -
1035 "%"-
1036 "l" "u"-
1037 " bytes copied, %s, %s"-
1038 , -
1039 select_plural (w_bytes)-
1040 , 5)-
1041-
1042 -
1043 ,-
1044 w_bytes, delta_s_buf, bytes_per_second)-
1045 : abbreviation_lacks_prefix (iec)
abbreviation_l...s_prefix (iec)Description
TRUEnever evaluated
FALSEevaluated 83 times by 1 test
Evaluated by:
  • dd
0-83
1046 ? fprintf (-
1047 stderr-
1048 ,-
1049 -
1050 dcgettext (((void *)0), -
1051 "%"-
1052 "l" "u"-
1053 " bytes (%s) copied, %s, %s"-
1054 , 5)-
1055 ,-
1056 w_bytes, si, delta_s_buf, bytes_per_second)-
1057 : fprintf (-
1058 stderr-
1059 ,-
1060 -
1061 dcgettext (((void *)0), -
1062 "%"-
1063 "l" "u"-
1064 " bytes (%s, %s) copied, %s, %s"-
1065 , 5)-
1066 ,-
1067 w_bytes, si, iec, delta_s_buf, bytes_per_second));-
1068-
1069 if (progress_time
progress_timeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 149 times by 1 test
Evaluated by:
  • dd
)
1-149
1070 {-
1071-
1072-
1073-
1074-
1075-
1076-
1077 if (0 <= stats_len
0 <= stats_lenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& stats_len < progress_len
stats_len < progress_lenDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
)
0-1
1078 fprintf (
never executed: fprintf ( stderr , "%*s", progress_len - stats_len, "");
0
1079 stderr
never executed: fprintf ( stderr , "%*s", progress_len - stats_len, "");
0
1080 , "%*s", progress_len - stats_len, "");
never executed: fprintf ( stderr , "%*s", progress_len - stats_len, "");
0
1081 progress_len = stats_len;-
1082 }
executed 1 time by 1 test: end of block
Executed by:
  • dd
1
1083 else-
1084 fputc_unlocked ('\n',
executed 149 times by 1 test: fputc_unlocked ('\n', stderr );
Executed by:
  • dd
149
1085 stderr
executed 149 times by 1 test: fputc_unlocked ('\n', stderr );
Executed by:
  • dd
149
1086 );
executed 149 times by 1 test: fputc_unlocked ('\n', stderr );
Executed by:
  • dd
149
1087}-
1088-
1089static void-
1090print_stats (void)-
1091{-
1092 if (status_level == STATUS_NONE
status_level == STATUS_NONEDescription
TRUEevaluated 505 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 174 times by 1 test
Evaluated by:
  • dd
)
174-505
1093 return;
executed 505 times by 1 test: return;
Executed by:
  • dd
505
1094-
1095 if (0 < progress_len
0 < progress_lenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 173 times by 1 test
Evaluated by:
  • dd
)
1-173
1096 {-
1097 fputc_unlocked ('\n',-
1098 stderr-
1099 );-
1100 progress_len = 0;-
1101 }
executed 1 time by 1 test: end of block
Executed by:
  • dd
1
1102-
1103 fprintf (-
1104 stderr-
1105 ,-
1106 -
1107 dcgettext (((void *)0), -
1108 "%"-
1109 "l" "u"-
1110 "+%"-
1111 "l" "u"-
1112 " records in\n" "%"-
1113 "l" "u"-
1114 "+%"-
1115 "l" "u"-
1116 " records out\n"-
1117 , 5)-
1118 -
1119 ,-
1120 r_full, r_partial, w_full, w_partial);-
1121-
1122 if (r_truncate != 0
r_truncate != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 173 times by 1 test
Evaluated by:
  • dd
)
1-173
1123 fprintf (
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1124 stderr
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1125 ,
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1126
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1127 dcngettext (((void *)0),
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1128 "%"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1129 "l" "u"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1130 " truncated record\n"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1131 ,
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1132 "%"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1133 "l" "u"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1134 " truncated records\n"
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1135 ,
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1136 select_plural (r_truncate)
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1137 , 5)
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
11381
1139
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1140 ,
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1141 r_truncate);
executed 1 time by 1 test: fprintf ( stderr , dcngettext (((void *)0), "%" "l" "u" " truncated record\n" , "%" "l" "u" " truncated records\n" , select_plural (r_truncate) , 5) , r_truncate);
Executed by:
  • dd
1
1142-
1143 if (status_level == STATUS_NOXFER
status_level == STATUS_NOXFERDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 149 times by 1 test
Evaluated by:
  • dd
)
25-149
1144 return;
executed 25 times by 1 test: return;
Executed by:
  • dd
25
1145-
1146 print_xfer_stats (0);-
1147}
executed 149 times by 1 test: end of block
Executed by:
  • dd
149
1148-
1149-
1150-
1151static void-
1152interrupt_handler (int sig)-
1153{-
1154 if (!
! 0x80000000Description
TRUEnever evaluated
FALSEnever evaluated
0
1155 0x80000000
! 0x80000000Description
TRUEnever evaluated
FALSEnever evaluated
0
1156 )-
1157 signal (sig,
dead code: signal (sig, ((__sighandler_t) 0) );
-
1158 ((__sighandler_t) 0)
dead code: signal (sig, ((__sighandler_t) 0) );
-
1159 );
dead code: signal (sig, ((__sighandler_t) 0) );
-
1160 interrupt_signal = sig;-
1161}
never executed: end of block
0
1162-
1163-
1164-
1165static void-
1166siginfo_handler (int sig)-
1167{-
1168 if (!
! 1Description
TRUEnever evaluated
FALSEevaluated 59 times by 1 test
Evaluated by:
  • dd
0-59
1169 1
! 1Description
TRUEnever evaluated
FALSEevaluated 59 times by 1 test
Evaluated by:
  • dd
0-59
1170 )-
1171 signal (sig, siginfo_handler);
dead code: signal (sig, siginfo_handler);
-
1172 info_signal_count++;-
1173}
executed 59 times by 1 test: end of block
Executed by:
  • dd
59
1174-
1175-
1176-
1177static void-
1178install_signal_handlers (void)-
1179{-
1180 -
1181 _Bool -
1182 catch_siginfo = ! (-
1183 10
10 == 10Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1184 ==
10 == 10Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1185 10
10 == 10Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1186 && getenv ("POSIXLY_CORRECT")
getenv ("POSIXLY_CORRECT")Description
TRUEnever evaluated
FALSEevaluated 658 times by 1 test
Evaluated by:
  • dd
);
0-658
1187-
1188-
1189-
1190 struct sigaction act;-
1191 sigemptyset (&caught_signals);-
1192 if (catch_siginfo
catch_siginfoDescription
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-658
1193 sigaddset (&caught_signals,
executed 658 times by 1 test: sigaddset (&caught_signals, 10 );
Executed by:
  • dd
658
1194 10
executed 658 times by 1 test: sigaddset (&caught_signals, 10 );
Executed by:
  • dd
658
1195 );
executed 658 times by 1 test: sigaddset (&caught_signals, 10 );
Executed by:
  • dd
658
1196 sigaction (-
1197 2-
1198 , -
1199 ((void *)0)-
1200 , &act);-
1201 if (act.
act. __sigacti...ghandler_t) 1)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1202 __sigaction_handler.sa_handler
act. __sigacti...ghandler_t) 1)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1203 !=
act. __sigacti...ghandler_t) 1)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1204 ((__sighandler_t) 1)
act. __sigacti...ghandler_t) 1)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1205 )-
1206 sigaddset (&caught_signals,
executed 658 times by 1 test: sigaddset (&caught_signals, 2 );
Executed by:
  • dd
658
1207 2
executed 658 times by 1 test: sigaddset (&caught_signals, 2 );
Executed by:
  • dd
658
1208 );
executed 658 times by 1 test: sigaddset (&caught_signals, 2 );
Executed by:
  • dd
658
1209 act.sa_mask = caught_signals;-
1210-
1211 if (sigismember (&caught_signals,
sigismember (&..._signals, 10 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1212 10
sigismember (&..._signals, 10 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1213 )
sigismember (&..._signals, 10 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-658
1214 {-
1215 act.-
1216 __sigaction_handler.sa_handler -
1217 = siginfo_handler;-
1218-
1219-
1220-
1221 act.sa_flags = 0;-
1222 sigaction (-
1223 10-
1224 , &act, -
1225 ((void *)0)-
1226 );-
1227 }
executed 658 times by 1 test: end of block
Executed by:
  • dd
658
1228-
1229 if (sigismember (&caught_signals,
sigismember (&...t_signals, 2 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1230 2
sigismember (&...t_signals, 2 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-658
1231 )
sigismember (&...t_signals, 2 )Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-658
1232 {-
1233 act.-
1234 __sigaction_handler.sa_handler -
1235 = interrupt_handler;-
1236 act.sa_flags = -
1237 0x40000000 -
1238 | -
1239 0x80000000-
1240 ;-
1241 sigaction (-
1242 2-
1243 , &act, -
1244 ((void *)0)-
1245 );-
1246 }
executed 658 times by 1 test: end of block
Executed by:
  • dd
658
1247}
executed 658 times by 1 test: end of block
Executed by:
  • dd
658
1248-
1249static void-
1250cleanup (void)-
1251{-
1252 if (close (
close ( 0 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
0-622
1253 0
close ( 0 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
0-622
1254 ) < 0
close ( 0 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
)
0-622
1255 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1256 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1257 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_dummy; })) ? ((nl_error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1258 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1259 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1260 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1261 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1262 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1263 "closing input file %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1264 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1265 , quotearg_style (shell_escape_always_quoting_style, input_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1266 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1267 ) ? (void) 0 : __builtin_unreachable ()))) : ((nl_error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1268 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1269 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1270 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1271 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1272 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1273 "closing input file %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1274 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1275 , quotearg_style (shell_escape_always_quoting_style, input_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1276 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1277 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing input file %s\", 5), quotearg_style (shell_escape_always_quoting_style, input_file)), assume (false))" ")"); int _gl_d... ? (void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing input file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, input_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1278-
1279-
1280-
1281-
1282 if (close (
close ( 1 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
0-622
1283 1
close ( 1 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
0-622
1284 ) < 0
close ( 1 ) < 0Description
TRUEnever evaluated
FALSEevaluated 622 times by 1 test
Evaluated by:
  • dd
)
0-622
1285 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1286 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1287 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl_dummy; })) ? ((nl_error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1288 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1289 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1290 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1291 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1292 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1293 "closing output file %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1294 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1295 , quotearg_style (shell_escape_always_quoting_style, output_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1296 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1297 ) ? (void) 0 : __builtin_unreachable ()))) : ((nl_error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1298 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1299 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1300 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1301 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1302 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1303 "closing output file %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1304 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1305 , quotearg_style (shell_escape_always_quoting_style, output_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1306 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1307 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1308 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing output file %s\", 5), quotearg_style (shell_escape_always_quoting_style, output_file)), assume (false))" ")"); int _gl...(void) 0 : __builtin_unreachable ()))) : ((nl_error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing output file %s" , 5) , quotearg_style (shell_escape_always_quoting_style, output_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1309}
executed 622 times by 1 test: end of block
Executed by:
  • dd
622
1310-
1311-
1312-
1313-
1314-
1315static void-
1316process_signals (void)-
1317{-
1318 while (interrupt_signal
interrupt_signalDescription
TRUEnever evaluated
FALSEevaluated 7843 times by 1 test
Evaluated by:
  • dd
|| info_signal_count
info_signal_countDescription
TRUEevaluated 57 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 7786 times by 1 test
Evaluated by:
  • dd
)
0-7843
1319 {-
1320 int interrupt;-
1321 int infos;-
1322 sigset_t oldset;-
1323-
1324 sigprocmask (-
1325 0-
1326 , &caught_signals, &oldset);-
1327-
1328-
1329-
1330 interrupt = interrupt_signal;-
1331 infos = info_signal_count;-
1332-
1333 if (infos
infosDescription
TRUEevaluated 57 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-57
1334 info_signal_count = infos - 1;
executed 57 times by 1 test: info_signal_count = infos - 1;
Executed by:
  • dd
57
1335-
1336 sigprocmask (-
1337 2-
1338 , &oldset, -
1339 ((void *)0)-
1340 );-
1341-
1342 if (interrupt
interruptDescription
TRUEnever evaluated
FALSEevaluated 57 times by 1 test
Evaluated by:
  • dd
)
0-57
1343 cleanup ();
never executed: cleanup ();
0
1344 print_stats ();-
1345 if (interrupt
interruptDescription
TRUEnever evaluated
FALSEevaluated 57 times by 1 test
Evaluated by:
  • dd
)
0-57
1346 raise (interrupt);
never executed: raise (interrupt);
0
1347 }
executed 57 times by 1 test: end of block
Executed by:
  • dd
57
1348}
executed 7786 times by 1 test: end of block
Executed by:
  • dd
7786
1349-
1350static void-
1351finish_up (void)-
1352{-
1353 cleanup ();-
1354 print_stats ();-
1355 process_signals ();-
1356}
executed 622 times by 1 test: end of block
Executed by:
  • dd
622
1357-
1358static void __attribute__ ((__noreturn__))-
1359quit (int code)-
1360{-
1361 finish_up ();-
1362 exit (code);
executed 2 times by 1 test: exit (code);
Executed by:
  • dd
2
1363}-
1364-
1365-
1366-
1367-
1368-
1369-
1370static off_t-
1371cache_round (int fd, off_t len)-
1372{-
1373 static off_t i_pending, o_pending;-
1374 off_t *pending = (fd ==
fd == 0Description
TRUEevaluated 432 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 123 times by 1 test
Evaluated by:
  • dd
123-432
1375 0
fd == 0Description
TRUEevaluated 432 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 123 times by 1 test
Evaluated by:
  • dd
123-432
1376 ? &i_pending : &o_pending);-
1377-
1378 if (len
lenDescription
TRUEevaluated 519 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 36 times by 1 test
Evaluated by:
  • dd
)
36-519
1379 {-
1380 uintmax_t c_pending = *pending + len;-
1381 *pending = c_pending % IO_BUFSIZE;-
1382 if (c_pending > *pending
c_pending > *pendingDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 509 times by 1 test
Evaluated by:
  • dd
)
10-509
1383 len = c_pending - *pending;
executed 10 times by 1 test: len = c_pending - *pending;
Executed by:
  • dd
10
1384 else-
1385 len = 0;
executed 509 times by 1 test: len = 0;
Executed by:
  • dd
509
1386 }-
1387 else-
1388 len = *pending;
executed 36 times by 1 test: len = *pending;
Executed by:
  • dd
36
1389-
1390 return
executed 555 times by 1 test: return len;
Executed by:
  • dd
len;
executed 555 times by 1 test: return len;
Executed by:
  • dd
555
1391}-
1392-
1393-
1394-
1395-
1396-
1397static -
1398 _Bool-
1399-
1400invalidate_cache (int fd, off_t len)-
1401{-
1402 int adv_ret = -1;-
1403 off_t offset;-
1404 -
1405 _Bool -
1406 nocache_eof = (fd ==
fd == 0Description
TRUEevaluated 426 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 119 times by 1 test
Evaluated by:
  • dd
119-426
1407 0
fd == 0Description
TRUEevaluated 426 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 119 times by 1 test
Evaluated by:
  • dd
119-426
1408 ? i_nocache_eof : o_nocache_eof);-
1409-
1410-
1411 off_t clen = cache_round (fd, len);-
1412 if (len
lenDescription
TRUEevaluated 519 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 26 times by 1 test
Evaluated by:
  • dd
&& !clen
!clenDescription
TRUEevaluated 509 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dd
)
10-519
1413 return
executed 509 times by 1 test: return 1 ;
Executed by:
  • dd
executed 509 times by 1 test: return 1 ;
Executed by:
  • dd
509
1414 1
executed 509 times by 1 test: return 1 ;
Executed by:
  • dd
509
1415 ;
executed 509 times by 1 test: return 1 ;
Executed by:
  • dd
509
1416 else if (! len
! lenDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dd
&& ! clen
! clenDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dd
&& ! nocache_eof
! nocache_eofDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 17 times by 1 test
Evaluated by:
  • dd
)
1-26
1417 return
executed 1 time by 1 test: return 1 ;
Executed by:
  • dd
executed 1 time by 1 test: return 1 ;
Executed by:
  • dd
1
1418 1
executed 1 time by 1 test: return 1 ;
Executed by:
  • dd
1
1419 ;
executed 1 time by 1 test: return 1 ;
Executed by:
  • dd
1
1420 off_t pending = len
lenDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 25 times by 1 test
Evaluated by:
  • dd
? cache_round (fd, 0) : 0;
10-25
1421-
1422 if (fd ==
fd == 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 19 times by 1 test
Evaluated by:
  • dd
16-19
1423 0
fd == 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 19 times by 1 test
Evaluated by:
  • dd
16-19
1424 )-
1425 {-
1426 if (input_seekable
input_seekableDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
)
1-15
1427 offset = input_offset;
executed 15 times by 1 test: offset = input_offset;
Executed by:
  • dd
15
1428 else-
1429 {-
1430 offset = -1;-
1431 -
1432 (*__errno_location ()) -
1433 = -
1434 29-
1435 ;-
1436 }
executed 1 time by 1 test: end of block
Executed by:
  • dd
1
1437 }-
1438 else-
1439 {-
1440 static off_t output_offset = -2;-
1441-
1442 if (output_offset != -1
output_offset != -1Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-19
1443 {-
1444 if (output_offset < 0
output_offset < 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dd
)
9-10
1445 output_offset = lseek (fd, 0,
executed 10 times by 1 test: output_offset = lseek (fd, 0, 1 );
Executed by:
  • dd
10
1446 1
executed 10 times by 1 test: output_offset = lseek (fd, 0, 1 );
Executed by:
  • dd
10
1447 );
executed 10 times by 1 test: output_offset = lseek (fd, 0, 1 );
Executed by:
  • dd
10
1448 else if (len
lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 7 times by 1 test
Evaluated by:
  • dd
)
2-7
1449 output_offset += clen + pending;
executed 2 times by 1 test: output_offset += clen + pending;
Executed by:
  • dd
2
1450 }
executed 19 times by 1 test: end of block
Executed by:
  • dd
19
1451-
1452 offset = output_offset;-
1453 }
executed 19 times by 1 test: end of block
Executed by:
  • dd
19
1454-
1455 if (0 <= offset
0 <= offsetDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
)
1-34
1456 {-
1457 if (! len
! lenDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dd
&& clen
clenDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 16 times by 1 test
Evaluated by:
  • dd
&& nocache_eof
nocache_eofDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2 times by 1 test
Evaluated by:
  • dd
)
2-24
1458 {-
1459 pending = clen;-
1460 clen = 0;-
1461 }
executed 6 times by 1 test: end of block
Executed by:
  • dd
6
1462-
1463-
1464-
1465-
1466-
1467-
1468 offset = offset - clen - pending;-
1469-
1470 if (clen == 0
clen == 0Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 12 times by 1 test
Evaluated by:
  • dd
)
12-22
1471 offset -= offset % page_size;
executed 22 times by 1 test: offset -= offset % page_size;
Executed by:
  • dd
22
1472 adv_ret = posix_fadvise (fd, offset, clen, -
1473 4-
1474 );-
1475-
1476-
1477-
1478 }
executed 34 times by 1 test: end of block
Executed by:
  • dd
34
1479-
1480 return
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
adv_ret != -1 ?
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
35
1481 1
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
35
1482 :
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
35
1483 0
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
35
1484 ;
executed 35 times by 1 test: return adv_ret != -1 ? 1 : 0 ;
Executed by:
  • dd
35
1485}-
1486-
1487-
1488-
1489-
1490-
1491static ssize_t-
1492iread (int fd, char *buf, size_t size)-
1493{-
1494 ssize_t nread;-
1495 static ssize_t prev_nread;-
1496-
1497 do-
1498 {-
1499 process_signals ();-
1500 nread = read (fd, buf, size);-
1501-
1502-
1503 if (nread == -1
nread == -1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 3004 times by 1 test
Evaluated by:
  • dd
&&
3-3004
1504 (*
(*__errno_location ()) == 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1505 ==
(*__errno_location ()) == 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1506 22
(*__errno_location ()) == 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1507 -
1508 && 0 < prev_nread
0 < prev_nreadDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& prev_nread < size
prev_nread < sizeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1509 && (
(input_flags & 040000 )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
input_flags &
(input_flags & 040000 )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1510 040000
(input_flags & 040000 )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1511 )
(input_flags & 040000 )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-3
1512 {-
1513 -
1514 (*__errno_location ()) -
1515 = 0;-
1516 nread = 0;-
1517 }
executed 3 times by 1 test: end of block
Executed by:
  • dd
3
1518 }
executed 3007 times by 1 test: end of block
Executed by:
  • dd
3007
1519 while (nread < 0
nread < 0Description
TRUEnever evaluated
FALSEevaluated 3007 times by 1 test
Evaluated by:
  • dd
&&
0-3007
1520 (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1521 ==
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1522 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1523 );-
1524-
1525-
1526 if (0 < nread
0 < nreadDescription
TRUEevaluated 2934 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 73 times by 1 test
Evaluated by:
  • dd
&& nread < size
nread < sizeDescription
TRUEevaluated 56 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2878 times by 1 test
Evaluated by:
  • dd
)
56-2934
1527 process_signals ();
executed 56 times by 1 test: process_signals ();
Executed by:
  • dd
56
1528-
1529 if (0 < nread
0 < nreadDescription
TRUEevaluated 2934 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 73 times by 1 test
Evaluated by:
  • dd
&& warn_partial_read
warn_partial_readDescription
TRUEevaluated 425 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2509 times by 1 test
Evaluated by:
  • dd
)
73-2934
1530 {-
1531 if (0 < prev_nread
0 < prev_nreadDescription
TRUEevaluated 407 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 18 times by 1 test
Evaluated by:
  • dd
&& prev_nread < size
prev_nread < sizeDescription
TRUEnever evaluated
FALSEevaluated 407 times by 1 test
Evaluated by:
  • dd
)
0-407
1532 {-
1533 uintmax_t prev = prev_nread;-
1534 if (status_level != STATUS_NONE
status_level != STATUS_NONEDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1535 nl_error (0, 0,
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1536 dcngettext (((void *)0),
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1537 ("warning: partial read (%"
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1538 "l" "u"
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1539 " byte); " "suggest iflag=fullblock")
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1540 ,
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1541 ("warning: partial read (%"
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1542 "l" "u"
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1543 " bytes); " "suggest iflag=fullblock")
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1544 ,
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1545 select_plural (prev)
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1546 , 5)
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
15470
15480
15490
1550
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1551 ,
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1552 prev);
never executed: nl_error (0, 0, dcngettext (((void *)0), ("warning: partial read (%" "l" "u" " byte); " "suggest iflag=fullblock") , ("warning: partial read (%" "l" "u" " bytes); " "suggest iflag=fullblock") , select_plural (prev) , 5) , prev);
0
1553 warn_partial_read = -
1554 0-
1555 ;-
1556 }
never executed: end of block
0
1557 }
executed 425 times by 1 test: end of block
Executed by:
  • dd
425
1558-
1559 prev_nread = nread;-
1560 return
executed 3007 times by 1 test: return nread;
Executed by:
  • dd
nread;
executed 3007 times by 1 test: return nread;
Executed by:
  • dd
3007
1561}-
1562-
1563-
1564static ssize_t-
1565iread_fullblock (int fd, char *buf, size_t size)-
1566{-
1567 ssize_t nread = 0;-
1568-
1569 while (0 < size
0 < sizeDescription
TRUEevaluated 1724 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1716 times by 1 test
Evaluated by:
  • dd
)
1716-1724
1570 {-
1571 ssize_t ncurr = iread (fd, buf, size);-
1572 if (ncurr < 0
ncurr < 0Description
TRUEnever evaluated
FALSEevaluated 1724 times by 1 test
Evaluated by:
  • dd
)
0-1724
1573 return
never executed: return ncurr;
ncurr;
never executed: return ncurr;
0
1574 if (ncurr == 0
ncurr == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 1723 times by 1 test
Evaluated by:
  • dd
)
1-1723
1575 break;
executed 1 time by 1 test: break;
Executed by:
  • dd
1
1576 nread += ncurr;-
1577 buf += ncurr;-
1578 size -= ncurr;-
1579 }
executed 1723 times by 1 test: end of block
Executed by:
  • dd
1723
1580-
1581 return
executed 1717 times by 1 test: return nread;
Executed by:
  • dd
nread;
executed 1717 times by 1 test: return nread;
Executed by:
  • dd
1717
1582}-
1583-
1584-
1585-
1586-
1587-
1588-
1589static size_t-
1590iwrite (int fd, char const *buf, size_t size)-
1591{-
1592 size_t total_written = 0;-
1593-
1594 if ((
(output_flags & 040000 )Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2854 times by 1 test
Evaluated by:
  • dd
output_flags &
(output_flags & 040000 )Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2854 times by 1 test
Evaluated by:
  • dd
54-2854
1595 040000
(output_flags & 040000 )Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2854 times by 1 test
Evaluated by:
  • dd
54-2854
1596 )
(output_flags & 040000 )Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2854 times by 1 test
Evaluated by:
  • dd
&& size < output_blocksize
size < output_blocksizeDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 49 times by 1 test
Evaluated by:
  • dd
)
5-2854
1597 {-
1598 int old_flags = -
1599 rpl_fcntl -
1600 (-
1601 1-
1602 , -
1603 3-
1604 );-
1605 if (-
1606 rpl_fcntl
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1607 (
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1608 1
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1609 ,
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1610 4
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1611 , old_flags & ~
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1612 040000
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1613 ) != 0
rpl_fcntl ( 1 ... 040000 ) != 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dd
0-5
1614 && status_level != STATUS_NONE
status_level != STATUS_NONEDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1615 nl_error (0,
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1616 (*__errno_location ())
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1617 ,
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1618 dcgettext (((void *)0),
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1619 "failed to turn off O_DIRECT: %s"
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1620 , 5)
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1621 ,
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1622 quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
never executed: nl_error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to turn off O_DIRECT: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, output_file));
0
1623-
1624-
1625-
1626-
1627-
1628-
1629 o_nocache_eof = -
1630 1-
1631 ;-
1632 invalidate_cache (-
1633 1-
1634 , 0);-
1635-
1636-
1637-
1638 conversions_mask |= C_FSYNC;-
1639-
1640-
1641-
1642 }
executed 5 times by 1 test: end of block
Executed by:
  • dd
5
1643-
1644 while (total_written < size
total_written < sizeDescription
TRUEevaluated 2958 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2908 times by 1 test
Evaluated by:
  • dd
)
2908-2958
1645 {-
1646 ssize_t nwritten = 0;-
1647 process_signals ();-
1648-
1649-
1650 final_op_was_seek = -
1651 0-
1652 ;-
1653 if ((
(conversions_mask & C_SPARSE)Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2911 times by 1 test
Evaluated by:
  • dd
conversions_mask & C_SPARSE)
(conversions_mask & C_SPARSE)Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2911 times by 1 test
Evaluated by:
  • dd
&& is_nul (buf, size)
is_nul (buf, size)Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dd
)
9-2911
1654 {-
1655 if (lseek (fd, size,
lseek (fd, size, 1 ) < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 37 times by 1 test
Evaluated by:
  • dd
1-37
1656 1
lseek (fd, size, 1 ) < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 37 times by 1 test
Evaluated by:
  • dd
1-37
1657 ) < 0
lseek (fd, size, 1 ) < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 37 times by 1 test
Evaluated by:
  • dd
)
1-37
1658 {-
1659 conversions_mask &= ~C_SPARSE;-
1660-
1661 }
executed 1 time by 1 test: end of block
Executed by:
  • dd
1
1662 else-
1663 {-
1664 final_op_was_seek = -
1665 1-
1666 ;-
1667 nwritten = size;-
1668 }
executed 37 times by 1 test: end of block
Executed by:
  • dd
37
1669 }-
1670-
1671 if (!nwritten
!nwrittenDescription
TRUEevaluated 2921 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 37 times by 1 test
Evaluated by:
  • dd
)
37-2921
1672 nwritten = write (fd, buf + total_written, size - total_written);
executed 2921 times by 1 test: nwritten = write (fd, buf + total_written, size - total_written);
Executed by:
  • dd
2921
1673-
1674 if (nwritten < 0
nwritten < 0Description
TRUEnever evaluated
FALSEevaluated 2958 times by 1 test
Evaluated by:
  • dd
)
0-2958
1675 {-
1676 if (-
1677 (*
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1678 !=
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1679 4
(*__errno_location ()) != 4Description
TRUEnever evaluated
FALSEnever evaluated
0
1680 )-
1681 break;
never executed: break;
0
1682 }
never executed: end of block
0
1683 else if (nwritten == 0
nwritten == 0Description
TRUEnever evaluated
FALSEevaluated 2958 times by 1 test
Evaluated by:
  • dd
)
0-2958
1684 {-
1685-
1686-
1687-
1688 -
1689 (*__errno_location ()) -
1690 = -
1691 28-
1692 ;-
1693 break;
never executed: break;
0
1694 }-
1695 else-
1696 total_written += nwritten;
executed 2958 times by 1 test: total_written += nwritten;
Executed by:
  • dd
2958
1697 }-
1698-
1699 if (o_nocache
o_nocacheDescription
TRUEevaluated 104 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 2804 times by 1 test
Evaluated by:
  • dd
&& total_written
total_writtenDescription
TRUEevaluated 104 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-2804
1700 invalidate_cache (fd, total_written);
executed 104 times by 1 test: invalidate_cache (fd, total_written);
Executed by:
  • dd
104
1701-
1702 return
executed 2908 times by 1 test: return total_written;
Executed by:
  • dd
total_written;
executed 2908 times by 1 test: return total_written;
Executed by:
  • dd
2908
1703}-
1704-
1705-
1706-
1707static void-
1708write_output (void)-
1709{-
1710 size_t nwritten = iwrite (-
1711 1-
1712 , obuf, output_blocksize);-
1713 w_bytes += nwritten;-
1714 if (nwritten != output_blocksize
nwritten != output_blocksizeDescription
TRUEnever evaluated
FALSEevaluated 760 times by 1 test
Evaluated by:
  • dd
)
0-760
1715 {-
1716 nl_error (0, -
1717 (*__errno_location ())-
1718 , -
1719 dcgettext (((void *)0), -
1720 "writing to %s"-
1721 , 5)-
1722 , quotearg_style (shell_escape_always_quoting_style, output_file));-
1723 if (nwritten != 0
nwritten != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1724 w_partial++;
never executed: w_partial++;
0
1725 quit (-
1726 1-
1727 );-
1728 }
never executed: end of block
0
1729 else-
1730 w_full++;
executed 760 times by 1 test: w_full++;
Executed by:
  • dd
760
1731 oc = 0;-
1732}
executed 760 times by 1 test: end of block
Executed by:
  • dd
760
1733-
1734-
1735-
1736static int-
1737ifd_reopen (int desired_fd, char const *file, int flag, mode_t mode)-
1738{-
1739 int ret;-
1740-
1741 do-
1742 {-
1743 process_signals ();-
1744 ret = fd_reopen (desired_fd, file, flag, mode);-
1745 }
executed 1125 times by 1 test: end of block
Executed by:
  • dd
1125
1746 while (ret < 0
ret < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1123 times by 1 test
Evaluated by:
  • dd
&&
2-1123
1747 (*
(*__errno_location ()) == 4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
__errno_location ())
(*__errno_location ()) == 4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
1
1748 ==
(*__errno_location ()) == 4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
1
1749 4
(*__errno_location ()) == 4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
1
1750 );-
1751-
1752 return
executed 1124 times by 1 test: return ret;
Executed by:
  • dd
ret;
executed 1124 times by 1 test: return ret;
Executed by:
  • dd
1124
1753}-
1754-
1755-
1756-
1757static int-
1758iftruncate (int fd, off_t length)-
1759{-
1760 int ret;-
1761-
1762 do-
1763 {-
1764 process_signals ();-
1765 ret = ftruncate (fd, length);-
1766 }
executed 18 times by 1 test: end of block
Executed by:
  • dd
18
1767 while (ret < 0
ret < 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 15 times by 1 test
Evaluated by:
  • dd
&&
3-15
1768 (*
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
__errno_location ())
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
0-3
1769 ==
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
0-3
1770 4
(*__errno_location ()) == 4Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
0-3
1771 );-
1772-
1773 return
executed 18 times by 1 test: return ret;
Executed by:
  • dd
ret;
executed 18 times by 1 test: return ret;
Executed by:
  • dd
18
1774}-
1775-
1776-
1777-
1778static -
1779 _Bool __attribute__ ((__pure__))-
1780-
1781operand_matches (char const *str, char const *pattern, char delim)-
1782{-
1783 while (*
*patternDescription
TRUEevaluated 67860 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 7441 times by 1 test
Evaluated by:
  • dd
pattern
*patternDescription
TRUEevaluated 67860 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 7441 times by 1 test
Evaluated by:
  • dd
)
7441-67860
1784 if (*
*str++ != *pattern++Description
TRUEevaluated 31850 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 36010 times by 1 test
Evaluated by:
  • dd
str++ != *pattern++
*str++ != *pattern++Description
TRUEevaluated 31850 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 36010 times by 1 test
Evaluated by:
  • dd
)
31850-36010
1785 return
executed 31850 times by 1 test: return 0 ;
Executed by:
  • dd
executed 31850 times by 1 test: return 0 ;
Executed by:
  • dd
31850
1786 0
executed 31850 times by 1 test: return 0 ;
Executed by:
  • dd
31850
1787 ;
executed 31850 times by 1 test: return 0 ;
Executed by:
  • dd
31850
1788 return
executed 7441 times by 1 test: return !*str || *str == delim;
Executed by:
  • dd
!*str || *str == delim;
executed 7441 times by 1 test: return !*str || *str == delim;
Executed by:
  • dd
7441
1789}-
1790-
1791-
1792-
1793-
1794-
1795static int-
1796parse_symbols (char const *str, struct symbol_value const *table,-
1797 -
1798 _Bool -
1799 exclusive, char const *error_msgid)-
1800{-
1801 int value = 0;-
1802-
1803 while (-
1804 1-
1805 )-
1806 {-
1807 char const *strcomma = -
1808 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( ',' )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-2063
1809 ','
__builtin_constant_p ( ',' )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-2063
1810 )
__builtin_constant_p ( ',' )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_constant_p ( str )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-2063
1811 str
!__builtin_constant_p ( str )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-2063
1812 )
!__builtin_constant_p ( str )Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& (
( ',' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 2063 times by 1 test
Evaluated by:
  • dd
0-2063
1813 ','
( ',' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 2063 times by 1 test
Evaluated by:
  • dd
0-2063
1814 ) == '\0'
( ',' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 2063 times by 1 test
Evaluated by:
  • dd
? (char *) __rawmemchr (
0-2063
1815 str-
1816 , -
1817 ','-
1818 ) : __builtin_strchr (-
1819 str-
1820 , -
1821 ','-
1822 )))-
1823 ;-
1824 struct symbol_value const *entry;-
1825-
1826 for (entry = table;-
1827 ! (operand_matches (str, entry->symbol, ',')
operand_matche...->symbol, ',')Description
TRUEevaluated 2063 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 13296 times by 1 test
Evaluated by:
  • dd
&& entry->value
entry->valueDescription
TRUEevaluated 2062 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
);
1-13296
1828 entry++)-
1829 {-
1830 if (! entry->symbol[0]
! entry->symbol[0]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dd
FALSEevaluated 13296 times by 1 test
Evaluated by:
  • dd
)
1-13296
1831 {-
1832 size_t slen = strcomma
strcommaDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dd
? strcomma - str : strlen (str);
0-1
1833 nl_error (0, 0, "%s: %s", -
1834 dcgettext (((void *)0), -
1835 error_msgid-
1836 , 5)-
1837 ,-
1838 quotearg_n_style_mem (0, locale_quoting_style, str, slen));-
1839 usage (-
1840 1-
1841 );-
1842 }
never executed: end of block
0
1843 }
executed 13296 times by 1 test: end of block
Executed by:
  • dd
13296
1844-
1845 if (exclusive
exclusiveDescription
TRUEevaluated 533 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1529 times by 1 test
Evaluated by:
  • dd
)
533-1529
1846 value = entry->value;
executed 533 times by 1 test: value = entry->value;
Executed by:
  • dd
533
1847 else-
1848 value |= entry->value;
executed 1529 times by 1 test: value |= entry->value;
Executed by:
  • dd
1529
1849 if (!strcomma
!strcommaDescription
TRUEevaluated 2054 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dd
)
8-2054
1850 break;
executed 2054 times by 1 test: break;
Executed by:
  • dd
2054
1851 str = strcomma + 1;-
1852 }
executed 8 times by 1 test: end of block
Executed by:
  • dd
8
1853-
1854 return
executed 2054 times by 1 test: return value;
Executed by:
  • dd
value;
executed 2054 times by 1 test: return value;
Executed by:
  • dd
2054
1855}-
1856-
1857-
1858-
1859-
1860-
1861-
1862static uintmax_t-
1863parse_integer (const char *str, strtol_error *invalid)-
1864{-
1865 uintmax_t n;-
1866 char *suffix;-
1867 strtol_error e = xstrtoumax (str, &suffix, 10, &n, "bcEGkKMPTwYZ0");-
1868-
1869 if (e == LONGINT_INVALID_SUFFIX_CHAR
e == LONGINT_I...ID_SUFFIX_CHARDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEevaluated 1180 times by 1 test
Evaluated by:
  • dd
&& *
*suffix == 'x'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
suffix == 'x'
*suffix == 'x'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
)
0-1180
1870 {-
1871 uintmax_t multiplier = parse_integer (suffix + 1, invalid);-
1872-
1873 if (multiplier != 0
multiplier != 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& n * multiplier / multiplier != n
n * multiplier...ultiplier != nDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
)
0-3
1874 {-
1875 *invalid = LONGINT_OVERFLOW;-
1876 return
never executed: return 0;
0;
never executed: return 0;
0
1877 }-
1878-
1879 if (n == 0
n == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1880 (__extension__ (__builtin_constant_p (
__builtin_cons...trlen ("0x") )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1881 strlen ("0x")
__builtin_cons...trlen ("0x") )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1882 )
__builtin_cons...trlen ("0x") )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& ((__builtin_constant_p (
__builtin_constant_p ( str )Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1883 str
__builtin_constant_p ( str )Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1884 )
__builtin_constant_p ( str )Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
&& strlen (
strlen ( str )...rlen ("0x") ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1885 str
strlen ( str )...rlen ("0x") ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1886 ) < ((size_t) (
strlen ( str )...rlen ("0x") ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1887 strlen ("0x")
strlen ( str )...rlen ("0x") ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1888 ))
strlen ( str )...rlen ("0x") ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_constant_p ( "0x" )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1889 "0x"
__builtin_constant_p ( "0x" )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1890 )
__builtin_constant_p ( "0x" )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
&& strlen (
strlen ( "0x" ...rlen ("0x") ))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1891 "0x"
strlen ( "0x" ...rlen ("0x") ))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1892 ) < ((size_t) (
strlen ( "0x" ...rlen ("0x") ))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1893 strlen ("0x")
strlen ( "0x" ...rlen ("0x") ))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1894 ))
strlen ( "0x" ...rlen ("0x") ))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • dd
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1895 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1896 ) && __builtin_constant_p (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1897 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1898 ) && (__s1_len = __builtin_strlen (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1899 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1900 ), __s2_len = __builtin_strlen (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1901 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1902 ), (!((size_t)(const void *)((
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1903 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1904 ) + 1) - (size_t)(const void *)(
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1905 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1906 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1907 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1908 ) + 1) - (size_t)(const void *)(
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1909 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1910 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1911 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1912 ,
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1913 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1914 ) : (__builtin_constant_p (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1915 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1916 ) && ((size_t)(const void *)((
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1917 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1918 ) + 1) - (size_t)(const void *)(
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1919 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1920 ) == 1) && (__s1_len = __builtin_strlen (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1921 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1922 ), __s1_len < 4) ? (__builtin_constant_p (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1923 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1924 ) && ((size_t)(const void *)((
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1925 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1926 ) + 1) - (size_t)(const void *)(
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1927 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1928 ) == 1) ? __builtin_strcmp (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1929 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1930 ,
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1931 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1932 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1933 "0x"
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1934 ); int __result = (((const unsigned char *) (const char *) (
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1935 str
( (__extension...0x") ))) == 0)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dd
FALSEnever evaluated
0-3
1936 ))[0] - __s2[0]); if (__s1_len > 0