OpenCoverage

touch.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/touch.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static int change_times;-
4-
5-
6static -
7 _Bool -
8 no_create;-
9-
10-
11static -
12 _Bool -
13 use_ref;-
14-
15-
16static -
17 _Bool -
18 no_dereference;-
19-
20-
21-
22-
23-
24-
25static -
26 _Bool -
27 amtime_now;-
28-
29-
30static struct timespec newtime[2];-
31-
32-
33static char *ref_file;-
34-
35-
36-
37enum-
38{-
39 TIME_OPTION = 0x7f + 1-
40};-
41-
42static struct option const longopts[] =-
43{-
44 {"time", -
45 1-
46 , -
47 ((void *)0)-
48 , TIME_OPTION},-
49 {"no-create", -
50 0-
51 , -
52 ((void *)0)-
53 , 'c'},-
54 {"date", -
55 1-
56 , -
57 ((void *)0)-
58 , 'd'},-
59 {"reference", -
60 1-
61 , -
62 ((void *)0)-
63 , 'r'},-
64 {"no-dereference", -
65 0-
66 , -
67 ((void *)0)-
68 , 'h'},-
69 {"help", -
70 0-
71 , -
72 ((void *)0)-
73 , GETOPT_HELP_CHAR},-
74 {"version", -
75 0-
76 , -
77 ((void *)0)-
78 , GETOPT_VERSION_CHAR},-
79 {-
80 ((void *)0)-
81 , 0, -
82 ((void *)0)-
83 , 0}-
84};-
85-
86-
87static char const* const time_args[] =-
88{-
89 "atime", "access", "use", "mtime", "modify", -
90 ((void *)0)-
91-
92};-
93-
94-
95static int const time_masks[] =-
96{-
97 1, 1, 1, 2, 2-
98};-
99-
100-
101-
102-
103static void-
104get_reldate (struct timespec *result,-
105 char const *flex_date, struct timespec const *now)-
106{-
107 if (! parse_datetime (result, flex_date, now)
! parse_dateti...lex_date, now)Description
TRUEnever evaluated
FALSEevaluated 41 times by 1 test
Evaluated by:
  • touch
)
0-41
108 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
109 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
110 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
111 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
112 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
113 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
114 "invalid date format %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
115 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
116 , quote (flex_date)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
117 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
118 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
119 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
120 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
121 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
122 "invalid date format %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
123 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
124 , quote (flex_date)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
125 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
126 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (flex_date)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (flex_date)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
127}
executed 41 times by 1 test: end of block
Executed by:
  • touch
41
128-
129-
130-
131-
132static -
133 _Bool-
134-
135touch (const char *file)-
136{-
137 -
138 _Bool -
139 ok;-
140 int fd = -1;-
141 int open_errno = 0;-
142 struct timespec const *t = newtime;-
143-
144 if ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
145 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
146 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
147 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
148 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
149 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
150 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
151 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
152 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
153 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
154 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
155 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
156 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
157 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
158 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
159 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
160 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
161 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
162 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
163 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
164 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
165 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
166 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
167 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
168 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
169 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
170 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
171 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
172 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
173 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
174 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
175 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
176 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
177 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
178 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
179 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
180 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
181 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
182 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
183 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
184 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
185 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
186 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
187 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
188 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
189 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
190 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
191 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
192 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);
0-222850
193 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
194 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
195 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
196 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
197 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
198 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
199 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
200 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
201 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
202 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
203 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
204 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
205 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
206 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
207 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
208 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
209 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
210 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
211 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
212 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
213 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
214 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
215 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 222858 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222808 times by 1 test
Evaluated by:
  • touch
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222858
216 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
217 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 50 times by 1 test
Evaluated by:
  • touch
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
218 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
219 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
220 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0-222850
221 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
} __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
0-222850
222 file
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
223 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
224 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
225 )))); })
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
8-222850
226 == 0)
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222850 times by 1 test
Evaluated by:
  • touch
)
8-222850
227 fd =
executed 8 times by 1 test: fd = 1 ;
Executed by:
  • touch
8
228 1
executed 8 times by 1 test: fd = 1 ;
Executed by:
  • touch
8
229 ;
executed 8 times by 1 test: fd = 1 ;
Executed by:
  • touch
8
230 else if (! (no_create
no_createDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222838 times by 1 test
Evaluated by:
  • touch
|| no_dereference
no_dereferenceDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222830 times by 1 test
Evaluated by:
  • touch
))
8-222838
231 {-
232-
233 fd = fd_reopen (-
234 0-
235 , file,-
236 -
237 01 -
238 | -
239 0100 -
240 | -
241 04000 -
242 | -
243 0400-
244 , (-
245 0400 -
246 | -
247 0200 -
248 | -
249 (0400 >> 3) -
250 | -
251 (0200 >> 3) -
252 | -
253 ((0400 >> 3) >> 3) -
254 | -
255 ((0200 >> 3) >> 3)-
256 ));-
257-
258-
259-
260-
261-
262 if (fd == -1
fd == -1Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222818 times by 1 test
Evaluated by:
  • touch
&&
12-222818
263 (*
(*__errno_location ()) != 21Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 9 times by 1 test
Evaluated by:
  • touch
__errno_location ())
(*__errno_location ()) != 21Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 9 times by 1 test
Evaluated by:
  • touch
3-9
264 !=
(*__errno_location ()) != 21Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 9 times by 1 test
Evaluated by:
  • touch
3-9
265 21
(*__errno_location ()) != 21Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 9 times by 1 test
Evaluated by:
  • touch
3-9
266 && -
267 (*
(*__errno_location ()) != 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) != 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
268 !=
(*__errno_location ()) != 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
269 22
(*__errno_location ()) != 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
270 && -
271 (*
(*__errno_location ()) != 1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) != 1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
272 !=
(*__errno_location ()) != 1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
273 1
(*__errno_location ()) != 1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-3
274 )-
275 open_errno =
executed 3 times by 1 test: open_errno = (*__errno_location ()) ;
Executed by:
  • touch
3
276 (*__errno_location ())
executed 3 times by 1 test: open_errno = (*__errno_location ()) ;
Executed by:
  • touch
3
277 ;
executed 3 times by 1 test: open_errno = (*__errno_location ()) ;
Executed by:
  • touch
3
278 }
executed 222830 times by 1 test: end of block
Executed by:
  • touch
222830
279-
280 if (change_times != (1 | 2)
change_times != (1 | 2)Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222845 times by 1 test
Evaluated by:
  • touch
)
13-222845
281 {-
282-
283 if (change_times == 2
change_times == 2Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 6 times by 1 test
Evaluated by:
  • touch
)
6-7
284 newtime[0].tv_nsec =
executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;
Executed by:
  • touch
7
285 ((1l << 30) - 2l)
executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;
Executed by:
  • touch
7
286 ;
executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;
Executed by:
  • touch
7
287 else-
288 {-
289 -
290 ((-
291 change_times == 1-
292 ) ? (void) (0) : __assert_fail (-
293 "change_times == CH_ATIME"-
294 , "src/touch.c", 153, __PRETTY_FUNCTION__))-
295 ;-
296 newtime[1].tv_nsec = -
297 ((1l << 30) - 2l)-
298 ;-
299 }
executed 6 times by 1 test: end of block
Executed by:
  • touch
6
300 }-
301-
302 if (amtime_now
amtime_nowDescription
TRUEevaluated 222804 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 54 times by 1 test
Evaluated by:
  • touch
)
54-222804
303 {-
304-
305-
306 t = -
307 ((void *)0)-
308 ;-
309 }
executed 222804 times by 1 test: end of block
Executed by:
  • touch
222804
310-
311 ok = (fdutimensat (fd, -
312 -100-
313 , (fd == -
314 1 -
315 ? -
316 ((void *)0) -
317 : file), t,-
318 (no_dereference && fd == -1) ? -
319 0x100 -
320 : 0)-
321 == 0);-
322-
323 if (fd ==
fd == 0Description
TRUEevaluated 222818 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 40 times by 1 test
Evaluated by:
  • touch
40-222818
324 0
fd == 0Description
TRUEevaluated 222818 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 40 times by 1 test
Evaluated by:
  • touch
40-222818
325 )-
326 {-
327 if (close (
close ( 0 ) != 0Description
TRUEnever evaluated
FALSEevaluated 222818 times by 1 test
Evaluated by:
  • touch
0-222818
328 0
close ( 0 ) != 0Description
TRUEnever evaluated
FALSEevaluated 222818 times by 1 test
Evaluated by:
  • touch
0-222818
329 ) != 0
close ( 0 ) != 0Description
TRUEnever evaluated
FALSEevaluated 222818 times by 1 test
Evaluated by:
  • touch
)
0-222818
330 {-
331 error (0, -
332 (*__errno_location ())-
333 , -
334 dcgettext (((void *)0), -
335 "failed to close %s"-
336 , 5)-
337 , quotearg_style (shell_escape_always_quoting_style, file));-
338 return
never executed: return 0 ;
never executed: return 0 ;
0
339 0
never executed: return 0 ;
0
340 ;
never executed: return 0 ;
0
341 }-
342 }
executed 222818 times by 1 test: end of block
Executed by:
  • touch
222818
343 else if (fd ==
fd == 1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 32 times by 1 test
Evaluated by:
  • touch
8-32
344 1
fd == 1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 32 times by 1 test
Evaluated by:
  • touch
8-32
345 )-
346 {-
347-
348 if (!ok
!okDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
&&
3-5
349 (*
(*__errno_location ()) == 9Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 9Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-5
350 ==
(*__errno_location ()) == 9Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-5
351 9
(*__errno_location ()) == 9Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
0-5
352 && no_create
no_createDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
)
1-4
353 return
executed 4 times by 1 test: return 1 ;
Executed by:
  • touch
executed 4 times by 1 test: return 1 ;
Executed by:
  • touch
4
354 1
executed 4 times by 1 test: return 1 ;
Executed by:
  • touch
4
355 ;
executed 4 times by 1 test: return 1 ;
Executed by:
  • touch
4
356 }
executed 4 times by 1 test: end of block
Executed by:
  • touch
4
357-
358 if (!ok
!okDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222836 times by 1 test
Evaluated by:
  • touch
)
18-222836
359 {-
360 if (open_errno
open_errnoDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEevaluated 17 times by 1 test
Evaluated by:
  • touch
)
1-17
361 {-
362-
363-
364-
365-
366 error (0, open_errno, -
367 dcgettext (((void *)0), -
368 "cannot touch %s"-
369 , 5)-
370 , quotearg_style (shell_escape_always_quoting_style, file));-
371 }
executed 1 time by 1 test: end of block
Executed by:
  • touch
1
372 else-
373 {-
374 if (no_create
no_createDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 8 times by 1 test
Evaluated by:
  • touch
&&
8-9
375 (*
(*__errno_location ()) == 2Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
__errno_location ())
(*__errno_location ()) == 2Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
3-6
376 ==
(*__errno_location ()) == 2Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
3-6
377 2
(*__errno_location ()) == 2Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
3-6
378 )-
379 return
executed 6 times by 1 test: return 1 ;
Executed by:
  • touch
executed 6 times by 1 test: return 1 ;
Executed by:
  • touch
6
380 1
executed 6 times by 1 test: return 1 ;
Executed by:
  • touch
6
381 ;
executed 6 times by 1 test: return 1 ;
Executed by:
  • touch
6
382 error (0, -
383 (*__errno_location ())-
384 , -
385 dcgettext (((void *)0), -
386 "setting times of %s"-
387 , 5)-
388 , quotearg_style (shell_escape_always_quoting_style, file));-
389 }
executed 11 times by 1 test: end of block
Executed by:
  • touch
11
390 return
executed 12 times by 1 test: return 0 ;
Executed by:
  • touch
executed 12 times by 1 test: return 0 ;
Executed by:
  • touch
12
391 0
executed 12 times by 1 test: return 0 ;
Executed by:
  • touch
12
392 ;
executed 12 times by 1 test: return 0 ;
Executed by:
  • touch
12
393 }-
394-
395 return
executed 222836 times by 1 test: return 1 ;
Executed by:
  • touch
executed 222836 times by 1 test: return 1 ;
Executed by:
  • touch
222836
396 1
executed 222836 times by 1 test: return 1 ;
Executed by:
  • touch
222836
397 ;
executed 222836 times by 1 test: return 1 ;
Executed by:
  • touch
222836
398}-
399-
400void-
401usage (int status)-
402{-
403 if (status !=
status != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 14 times by 1 test
Evaluated by:
  • touch
4-14
404 0
status != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 14 times by 1 test
Evaluated by:
  • touch
4-14
405 )-
406 do { fprintf (-
407 stderr-
408 , -
409 dcgettext (((void *)0), -
410 "Try '%s --help' for more information.\n"-
411 , 5)-
412 , program_name); }
executed 4 times by 1 test: end of block
Executed by:
  • touch
while (0);
4
413 else-
414 {-
415 printf (-
416 dcgettext (((void *)0), -
417 "Usage: %s [OPTION]... FILE...\n"-
418 , 5)-
419 , program_name);-
420 fputs_unlocked (-
421 dcgettext (((void *)0), -
422 "Update the access and modification times of each FILE to the current time.\n\nA FILE argument that does not exist is created empty, unless -c or -h\nis supplied.\n\nA FILE argument string of - is handled specially and causes touch to\nchange the times of the file associated with standard output.\n"-
423 , 5)-
424 ,-
425 stdout-
426 )-
427-
428-
429-
430-
431-
432-
433-
434 ;-
435-
436 emit_mandatory_arg_note ();-
437-
438 fputs_unlocked (-
439 dcgettext (((void *)0), -
440 " -a change only the access time\n -c, --no-create do not create any files\n -d, --date=STRING parse STRING and use it instead of current time\n -f (ignored)\n"-
441 , 5)-
442 ,-
443 stdout-
444 )-
445-
446-
447-
448-
449 ;-
450 fputs_unlocked (-
451 dcgettext (((void *)0), -
452 " -h, --no-dereference affect each symbolic link instead of any referenced\n file (useful only on systems that can change the\n timestamps of a symlink)\n -m change only the modification time\n"-
453 , 5)-
454 ,-
455 stdout-
456 )-
457-
458-
459-
460-
461 ;-
462 fputs_unlocked (-
463 dcgettext (((void *)0), -
464 " -r, --reference=FILE use this file's times instead of current time\n -t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time\n --time=WORD change the specified time:\n WORD is access, atime, or use: equivalent to -a\n WORD is modify or mtime: equivalent to -m\n"-
465 , 5)-
466 ,-
467 stdout-
468 )-
469-
470-
471-
472-
473-
474 ;-
475 fputs_unlocked (-
476 dcgettext (((void *)0), -
477 " --help display this help and exit\n"-
478 , 5)-
479 ,-
480 stdout-
481 );-
482 fputs_unlocked (-
483 dcgettext (((void *)0), -
484 " --version output version information and exit\n"-
485 , 5)-
486 ,-
487 stdout-
488 );-
489 fputs_unlocked (-
490 dcgettext (((void *)0), -
491 "\nNote that the -d and -t options accept different time-date formats.\n"-
492 , 5)-
493 ,-
494 stdout-
495 )-
496-
497-
498 ;-
499 emit_ancillary_info ("touch");-
500 }
executed 14 times by 1 test: end of block
Executed by:
  • touch
14
501 exit (status);
executed 18 times by 1 test: exit (status);
Executed by:
  • touch
18
502}-
503-
504int-
505main (int argc, char **argv)-
506{-
507 int c;-
508 -
509 _Bool -
510 date_set = -
511 0-
512 ;-
513 -
514 _Bool -
515 ok = -
516 1-
517 ;-
518 char const *flex_date = -
519 ((void *)0)-
520 ;-
521-
522 ;-
523 set_program_name (argv[0]);-
524 setlocale (-
525 6-
526 , "");-
527 bindtextdomain ("coreutils", "/usr/local/share/locale");-
528 textdomain ("coreutils");-
529-
530 atexit (close_stdout);-
531-
532 change_times = 0;-
533 no_create = use_ref = -
534 0-
535 ;-
536-
537 while ((
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
c = getopt_long (argc, argv, "acd:fhmr:t:", longopts,
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
134-3319
538 ((void *)0)
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
134-3319
539 )) != -1
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 134 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
)
134-3319
540 {-
541 switch (c)-
542 {-
543 case
executed 7 times by 1 test: case 'a':
Executed by:
  • touch
'a':
executed 7 times by 1 test: case 'a':
Executed by:
  • touch
7
544 change_times |= 1;-
545 break;
executed 7 times by 1 test: break;
Executed by:
  • touch
7
546-
547 case
executed 18 times by 1 test: case 'c':
Executed by:
  • touch
'c':
executed 18 times by 1 test: case 'c':
Executed by:
  • touch
18
548 no_create = -
549 1-
550 ;-
551 break;
executed 18 times by 1 test: break;
Executed by:
  • touch
18
552-
553 case
executed 42 times by 1 test: case 'd':
Executed by:
  • touch
'd':
executed 42 times by 1 test: case 'd':
Executed by:
  • touch
42
554 flex_date = optarg;-
555 break;
executed 42 times by 1 test: break;
Executed by:
  • touch
42
556-
557 case
executed 1 time by 1 test: case 'f':
Executed by:
  • touch
'f':
executed 1 time by 1 test: case 'f':
Executed by:
  • touch
1
558 break;
executed 1 time by 1 test: break;
Executed by:
  • touch
1
559-
560 case
executed 14 times by 1 test: case 'h':
Executed by:
  • touch
'h':
executed 14 times by 1 test: case 'h':
Executed by:
  • touch
14
561 no_dereference = -
562 1-
563 ;-
564 break;
executed 14 times by 1 test: break;
Executed by:
  • touch
14
565-
566 case
executed 8 times by 1 test: case 'm':
Executed by:
  • touch
'm':
executed 8 times by 1 test: case 'm':
Executed by:
  • touch
8
567 change_times |= 2;-
568 break;
executed 8 times by 1 test: break;
Executed by:
  • touch
8
569-
570 case
executed 5 times by 1 test: case 'r':
Executed by:
  • touch
'r':
executed 5 times by 1 test: case 'r':
Executed by:
  • touch
5
571 use_ref = -
572 1-
573 ;-
574 ref_file = optarg;-
575 break;
executed 5 times by 1 test: break;
Executed by:
  • touch
5
576-
577 case
executed 2 times by 1 test: case 't':
Executed by:
  • touch
't':
executed 2 times by 1 test: case 't':
Executed by:
  • touch
2
578 if (! posixtime (&newtime[0].tv_sec, optarg,
! posixtime (&...rg, 0 | 2 | 4)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
1
579 0 | 2 | 4)
! posixtime (&...rg, 0 | 2 | 4)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
)
1
580 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
581 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
582 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
583 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
584 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
585 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
586 "invalid date format %s"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
587 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
588 , quote (optarg)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
589 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
590 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
591 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
592 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
593 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
594 "invalid date format %s"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
595 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
596 , quote (optarg)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
597 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
598 ) ? (void) 0 : __builtin_unreachable ()))))
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
599 ;
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid date format %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid date format %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • touch
1
600 newtime[0].tv_nsec = 0;-
601 newtime[1] = newtime[0];-
602 date_set = -
603 1-
604 ;-
605 break;
executed 1 time by 1 test: break;
Executed by:
  • touch
1
606-
607 case
executed 1 time by 1 test: case TIME_OPTION:
Executed by:
  • touch
TIME_OPTION:
executed 1 time by 1 test: case TIME_OPTION:
Executed by:
  • touch
1
608 change_times |= ((time_masks) [__xargmatch_internal ("--time", optarg, time_args, (char const *) (time_masks), sizeof *(time_masks), argmatch_die)])-
609 ;-
610 break;
never executed: break;
0
611-
612 case
executed 14 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • touch
GETOPT_HELP_CHAR:
executed 14 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • touch
usage (
14
613 0-
614 ); break;
never executed: break;
;
0
615-
616 case
executed 19 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • touch
GETOPT_VERSION_CHAR:
executed 19 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • touch
version_etc (
19
617 stdout-
618 , "touch", "GNU coreutils", Version, ("Paul Rubin"), ("Arnold Robbins"), ("Jim Kingdon"), ("David MacKenzie"), ("Randy Smith"), (char *) -
619 ((void *)0)-
620 ); exit (
executed 19 times by 1 test: exit ( 0 );
Executed by:
  • touch
19
621 0
executed 19 times by 1 test: exit ( 0 );
Executed by:
  • touch
19
622 );
executed 19 times by 1 test: exit ( 0 );
Executed by:
  • touch
break;
never executed: break;
;
0-19
623-
624 default
executed 3 times by 1 test: default:
Executed by:
  • touch
:
executed 3 times by 1 test: default:
Executed by:
  • touch
3
625 usage (-
626 1-
627 );-
628 }
never executed: end of block
0
629 }-
630-
631 if (change_times == 0
change_times == 0Description
TRUEevaluated 3306 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 13 times by 1 test
Evaluated by:
  • touch
)
13-3306
632 change_times = 1 | 2;
executed 3306 times by 1 test: change_times = 1 | 2;
Executed by:
  • touch
3306
633-
634 if (date_set
date_setDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEevaluated 3318 times by 1 test
Evaluated by:
  • touch
&& (use_ref
use_refDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
|| flex_date
flex_dateDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
))
0-3318
635 {-
636 error (0, 0, -
637 dcgettext (((void *)0), -
638 "cannot specify times from more than one source"-
639 , 5)-
640 );-
641 usage (-
642 1-
643 );-
644 }
never executed: end of block
0
645-
646 if (use_ref
use_refDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3316 times by 1 test
Evaluated by:
  • touch
)
3-3316
647 {-
648 struct stat ref_stats;-
649-
650-
651 if (no_dereference
no_dereferenceDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
? lstat (ref_file, &ref_stats)
no_dereference...e, &ref_stats)Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
0-3
652 : stat (ref_file, &ref_stats)
no_dereference...e, &ref_stats)Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • touch
)
0-3
653 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_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), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
654 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
655 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
656 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
657 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
658 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
659 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
660 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
661 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
662 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
663 , quotearg_style (shell_escape_always_quoting_style, ref_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
664 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
665 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
666 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
667 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
668 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
669 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
670 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
671 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
672 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
673 , quotearg_style (shell_escape_always_quoting_style, ref_file)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
674 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
675 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
676 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, ref_file)), assume (false))" ")"); in...oid) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, ref_file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
677 newtime[0] = get_stat_atime (&ref_stats);-
678 newtime[1] = get_stat_mtime (&ref_stats);-
679 date_set = -
680 1-
681 ;-
682 if (flex_date
flex_dateDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEevaluated 2 times by 1 test
Evaluated by:
  • touch
)
1-2
683 {-
684 if (change_times & 1
change_times & 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
)
0-1
685 get_reldate (&newtime[0], flex_date, &newtime[0]);
executed 1 time by 1 test: get_reldate (&newtime[0], flex_date, &newtime[0]);
Executed by:
  • touch
1
686 if (change_times & 2
change_times & 2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • touch
FALSEnever evaluated
)
0-1
687 get_reldate (&newtime[1], flex_date, &newtime[1]);
executed 1 time by 1 test: get_reldate (&newtime[1], flex_date, &newtime[1]);
Executed by:
  • touch
1
688 }
executed 1 time by 1 test: end of block
Executed by:
  • touch
1
689 }
executed 3 times by 1 test: end of block
Executed by:
  • touch
3
690 else-
691 {-
692 if (flex_date
flex_dateDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3277 times by 1 test
Evaluated by:
  • touch
)
39-3277
693 {-
694 struct timespec now;-
695 gettime (&now);-
696 get_reldate (&newtime[0], flex_date, &now);-
697 newtime[1] = newtime[0];-
698 date_set = -
699 1-
700 ;-
701-
702-
703-
704-
705 if (change_times == (1 | 2)
change_times == (1 | 2)Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 8 times by 1 test
Evaluated by:
  • touch
8-31
706 && newtime[0].tv_sec == now.tv_sec
newtime[0].tv_... == now.tv_secDescription
TRUEnever evaluated
FALSEevaluated 31 times by 1 test
Evaluated by:
  • touch
0-31
707 && newtime[0].tv_nsec == now.tv_nsec
newtime[0].tv_...== now.tv_nsecDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
708 {-
709-
710-
711 struct timespec notnow, notnow1;-
712 notnow.tv_sec = now.tv_sec ^ 1;-
713 notnow.tv_nsec = now.tv_nsec;-
714 get_reldate (&notnow1, flex_date, &notnow);-
715 if (notnow1.tv_sec == notnow.tv_sec
notnow1.tv_sec... notnow.tv_secDescription
TRUEnever evaluated
FALSEnever evaluated
0
716 && notnow1.tv_nsec == notnow.tv_nsec
notnow1.tv_nse...notnow.tv_nsecDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
717 date_set =
never executed: date_set = 0 ;
0
718 0
never executed: date_set = 0 ;
0
719 ;
never executed: date_set = 0 ;
0
720 }
never executed: end of block
0
721 }
executed 39 times by 1 test: end of block
Executed by:
  • touch
39
722 }
executed 3316 times by 1 test: end of block
Executed by:
  • touch
3316
723-
724-
725-
726 if (!date_set
!date_setDescription
TRUEevaluated 3276 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 43 times by 1 test
Evaluated by:
  • touch
&& 2 <= argc - optind
2 <= argc - optindDescription
TRUEevaluated 194 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3082 times by 1 test
Evaluated by:
  • touch
&& posix2_version () < 200112
posix2_version () < 200112Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 189 times by 1 test
Evaluated by:
  • touch
5-3276
727 && posixtime (&newtime[0].tv_sec, argv[optind],
posixtime (&ne...ptind], 1 | 8)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
1-4
728 1 | 8)
posixtime (&ne...ptind], 1 | 8)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 1 time by 1 test
Evaluated by:
  • touch
)
1-4
729 {-
730 newtime[0].tv_nsec = 0;-
731 newtime[1] = newtime[0];-
732 date_set = -
733 1-
734 ;-
735-
736 if (! getenv ("POSIXLY_CORRECT")
! getenv ("POSIXLY_CORRECT")Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • touch
)
0-4
737 {-
738 struct tm const *tm = localtime (&newtime[0].tv_sec);-
739-
740-
741-
742-
743-
744 if (tm
tmDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
745 error (0, 0,
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
746
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
747 dcgettext (((void *)0),
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
748 "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'"
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
749 , 5)
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
750
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
751 ,
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
752 argv[optind],
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
753 tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday,
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
754 tm->tm_hour, tm->tm_min, tm->tm_sec);
never executed: error (0, 0, dcgettext (((void *)0), "warning: 'touch %s' is obsolete; use " "'touch -t %04ld%02d%02d%02d%02d.%02d'" , 5) , argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
0
755 }
never executed: end of block
0
756-
757 optind++;-
758 }
executed 4 times by 1 test: end of block
Executed by:
  • touch
4
759-
760 if (!date_set
!date_setDescription
TRUEevaluated 3272 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 47 times by 1 test
Evaluated by:
  • touch
)
47-3272
761 {-
762 if (change_times == (1 | 2)
change_times == (1 | 2)Description
TRUEevaluated 3267 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 5 times by 1 test
Evaluated by:
  • touch
)
5-3267
763 amtime_now =
executed 3267 times by 1 test: amtime_now = 1 ;
Executed by:
  • touch
3267
764 1
executed 3267 times by 1 test: amtime_now = 1 ;
Executed by:
  • touch
3267
765 ;
executed 3267 times by 1 test: amtime_now = 1 ;
Executed by:
  • touch
3267
766 else-
767 newtime[1].tv_nsec = newtime[0].tv_nsec =
executed 5 times by 1 test: newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l) ;
Executed by:
  • touch
5
768 ((1l << 30) - 1l)
executed 5 times by 1 test: newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l) ;
Executed by:
  • touch
5
769 ;
executed 5 times by 1 test: newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l) ;
Executed by:
  • touch
5
770 }-
771-
772 if (optind == argc
optind == argcDescription
TRUEnever evaluated
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
)
0-3319
773 {-
774 error (0, 0, -
775 dcgettext (((void *)0), -
776 "missing file operand"-
777 , 5)-
778 );-
779 usage (-
780 1-
781 );-
782 }
never executed: end of block
0
783-
784 for (; optind < argc
optind < argcDescription
TRUEevaluated 222858 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 3319 times by 1 test
Evaluated by:
  • touch
; ++optind)
3319-222858
785 ok &= touch (argv[optind]);
executed 222858 times by 1 test: ok &= touch (argv[optind]);
Executed by:
  • touch
222858
786-
787 return
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
ok ?
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
3319
788 0
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
3319
789 :
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
3319
790 1
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
3319
791 ;
executed 3319 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • touch
3319
792}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2