| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/touch.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | static int change_times; | - | ||||||||||||||||||
| 4 | - | |||||||||||||||||||
| 5 | - | |||||||||||||||||||
| 6 | static | - | ||||||||||||||||||
| 7 | _Bool | - | ||||||||||||||||||
| 8 | no_create; | - | ||||||||||||||||||
| 9 | - | |||||||||||||||||||
| 10 | - | |||||||||||||||||||
| 11 | static | - | ||||||||||||||||||
| 12 | _Bool | - | ||||||||||||||||||
| 13 | use_ref; | - | ||||||||||||||||||
| 14 | - | |||||||||||||||||||
| 15 | - | |||||||||||||||||||
| 16 | static | - | ||||||||||||||||||
| 17 | _Bool | - | ||||||||||||||||||
| 18 | no_dereference; | - | ||||||||||||||||||
| 19 | - | |||||||||||||||||||
| 20 | - | |||||||||||||||||||
| 21 | - | |||||||||||||||||||
| 22 | - | |||||||||||||||||||
| 23 | - | |||||||||||||||||||
| 24 | - | |||||||||||||||||||
| 25 | static | - | ||||||||||||||||||
| 26 | _Bool | - | ||||||||||||||||||
| 27 | amtime_now; | - | ||||||||||||||||||
| 28 | - | |||||||||||||||||||
| 29 | - | |||||||||||||||||||
| 30 | static struct timespec newtime[2]; | - | ||||||||||||||||||
| 31 | - | |||||||||||||||||||
| 32 | - | |||||||||||||||||||
| 33 | static char *ref_file; | - | ||||||||||||||||||
| 34 | - | |||||||||||||||||||
| 35 | - | |||||||||||||||||||
| 36 | - | |||||||||||||||||||
| 37 | enum | - | ||||||||||||||||||
| 38 | { | - | ||||||||||||||||||
| 39 | TIME_OPTION = 0x7f + 1 | - | ||||||||||||||||||
| 40 | }; | - | ||||||||||||||||||
| 41 | - | |||||||||||||||||||
| 42 | static 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 | - | |||||||||||||||||||
| 87 | static char const* const time_args[] = | - | ||||||||||||||||||
| 88 | { | - | ||||||||||||||||||
| 89 | "atime", "access", "use", "mtime", "modify", | - | ||||||||||||||||||
| 90 | ((void *)0) | - | ||||||||||||||||||
| 91 | - | |||||||||||||||||||
| 92 | }; | - | ||||||||||||||||||
| 93 | - | |||||||||||||||||||
| 94 | - | |||||||||||||||||||
| 95 | static int const time_masks[] = | - | ||||||||||||||||||
| 96 | { | - | ||||||||||||||||||
| 97 | 1, 1, 1, 2, 2 | - | ||||||||||||||||||
| 98 | }; | - | ||||||||||||||||||
| 99 | - | |||||||||||||||||||
| 100 | - | |||||||||||||||||||
| 101 | - | |||||||||||||||||||
| 102 | - | |||||||||||||||||||
| 103 | static void | - | ||||||||||||||||||
| 104 | get_reldate (struct timespec *result, | - | ||||||||||||||||||
| 105 | char const *flex_date, struct timespec const *now) | - | ||||||||||||||||||
| 106 | { | - | ||||||||||||||||||
| 107 | if (! parse_datetime (result, flex_date, now)
| 0-41 | ||||||||||||||||||
| 108 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ()))));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 blockExecuted by:
| 41 | ||||||||||||||||||
| 128 | - | |||||||||||||||||||
| 129 | - | |||||||||||||||||||
| 130 | - | |||||||||||||||||||
| 131 | - | |||||||||||||||||||
| 132 | static | - | ||||||||||||||||||
| 133 | _Bool | - | ||||||||||||||||||
| 134 | - | |||||||||||||||||||
| 135 | touch (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 ((
| 8-222850 | ||||||||||||||||||
| 145 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 8-222850 | ||||||||||||||||||
| 146 | file
| 8-222850 | ||||||||||||||||||
| 147 | ) && __builtin_constant_p (
| 8-222850 | ||||||||||||||||||
| 148 | "-"
| 8-222850 | ||||||||||||||||||
| 149 | ) && (__s1_len = __builtin_strlen (
| 8-222850 | ||||||||||||||||||
| 150 | file
| 8-222850 | ||||||||||||||||||
| 151 | ), __s2_len = __builtin_strlen (
| 8-222850 | ||||||||||||||||||
| 152 | "-"
| 8-222850 | ||||||||||||||||||
| 153 | ), (!((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 154 | file
| 8-222850 | ||||||||||||||||||
| 155 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 156 | file
| 8-222850 | ||||||||||||||||||
| 157 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 158 | "-"
| 8-222850 | ||||||||||||||||||
| 159 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 160 | "-"
| 8-222850 | ||||||||||||||||||
| 161 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 8-222850 | ||||||||||||||||||
| 162 | file
| 8-222850 | ||||||||||||||||||
| 163 | ,
| 8-222850 | ||||||||||||||||||
| 164 | "-"
| 8-222850 | ||||||||||||||||||
| 165 | ) : (__builtin_constant_p (
| 8-222850 | ||||||||||||||||||
| 166 | file
| 8-222850 | ||||||||||||||||||
| 167 | ) && ((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 168 | file
| 8-222850 | ||||||||||||||||||
| 169 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 170 | file
| 8-222850 | ||||||||||||||||||
| 171 | ) == 1) && (__s1_len = __builtin_strlen (
| 8-222850 | ||||||||||||||||||
| 172 | file
| 8-222850 | ||||||||||||||||||
| 173 | ), __s1_len < 4) ? (__builtin_constant_p (
| 8-222850 | ||||||||||||||||||
| 174 | "-"
| 8-222850 | ||||||||||||||||||
| 175 | ) && ((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 176 | "-"
| 8-222850 | ||||||||||||||||||
| 177 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 178 | "-"
| 8-222850 | ||||||||||||||||||
| 179 | ) == 1) ? __builtin_strcmp (
| 8-222850 | ||||||||||||||||||
| 180 | file
| 8-222850 | ||||||||||||||||||
| 181 | ,
| 8-222850 | ||||||||||||||||||
| 182 | "-"
| 8-222850 | ||||||||||||||||||
| 183 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 8-222850 | ||||||||||||||||||
| 184 | "-"
| 8-222850 | ||||||||||||||||||
| 185 | ); int __result = (((const unsigned char *) (const char *) (
| 8-222850 | ||||||||||||||||||
| 186 | file
| 8-222850 | ||||||||||||||||||
| 187 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-222850 | ||||||||||||||||||
| 188 | file
| 8-222850 | ||||||||||||||||||
| 189 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-222850 | ||||||||||||||||||
| 190 | file
| 8-222850 | ||||||||||||||||||
| 191 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);
| 0-222850 | ||||||||||||||||||
| 192 | file
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]); | 0-222850 | ||||||||||||||||||
| 193 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-222850 | ||||||||||||||||||
| 194 | "-"
| 8-222850 | ||||||||||||||||||
| 195 | ) && ((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 196 | "-"
| 8-222850 | ||||||||||||||||||
| 197 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 198 | "-"
| 8-222850 | ||||||||||||||||||
| 199 | ) == 1) && (__s2_len = __builtin_strlen (
| 8-222850 | ||||||||||||||||||
| 200 | "-"
| 8-222850 | ||||||||||||||||||
| 201 | ), __s2_len < 4) ? (__builtin_constant_p (
| 8-222850 | ||||||||||||||||||
| 202 | file
| 8-222850 | ||||||||||||||||||
| 203 | ) && ((size_t)(const void *)((
| 8-222850 | ||||||||||||||||||
| 204 | file
| 8-222850 | ||||||||||||||||||
| 205 | ) + 1) - (size_t)(const void *)(
| 8-222850 | ||||||||||||||||||
| 206 | file
| 8-222850 | ||||||||||||||||||
| 207 | ) == 1) ? __builtin_strcmp (
| 8-222850 | ||||||||||||||||||
| 208 | file
| 8-222850 | ||||||||||||||||||
| 209 | ,
| 8-222850 | ||||||||||||||||||
| 210 | "-"
| 8-222850 | ||||||||||||||||||
| 211 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 8-222850 | ||||||||||||||||||
| 212 | file
| 8-222850 | ||||||||||||||||||
| 213 | ); int __result = (((const unsigned char *) (const char *) (
| 8-222850 | ||||||||||||||||||
| 214 | "-"
| 8-222850 | ||||||||||||||||||
| 215 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-222858 | ||||||||||||||||||
| 216 | "-"
| 8-222850 | ||||||||||||||||||
| 217 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-222850 | ||||||||||||||||||
| 218 | "-"
| 8-222850 | ||||||||||||||||||
| 219 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-222850 | ||||||||||||||||||
| 220 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-222850 | ||||||||||||||||||
| 221 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-222850 | ||||||||||||||||||
| 222 | file
| 8-222850 | ||||||||||||||||||
| 223 | ,
| 8-222850 | ||||||||||||||||||
| 224 | "-"
| 8-222850 | ||||||||||||||||||
| 225 | )))); })
| 8-222850 | ||||||||||||||||||
| 226 | == 0)
| 8-222850 | ||||||||||||||||||
| 227 | fd = executed 8 times by 1 test: fd = 1 ;Executed by:
| 8 | ||||||||||||||||||
| 228 | 1 executed 8 times by 1 test: fd = 1 ;Executed by:
| 8 | ||||||||||||||||||
| 229 | ; executed 8 times by 1 test: fd = 1 ;Executed by:
| 8 | ||||||||||||||||||
| 230 | else if (! (no_create
| 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
| 12-222818 | ||||||||||||||||||
| 263 | (*
| 3-9 | ||||||||||||||||||
| 264 | !=
| 3-9 | ||||||||||||||||||
| 265 | 21
| 3-9 | ||||||||||||||||||
| 266 | && | - | ||||||||||||||||||
| 267 | (*
| 0-3 | ||||||||||||||||||
| 268 | !=
| 0-3 | ||||||||||||||||||
| 269 | 22
| 0-3 | ||||||||||||||||||
| 270 | && | - | ||||||||||||||||||
| 271 | (*
| 0-3 | ||||||||||||||||||
| 272 | !=
| 0-3 | ||||||||||||||||||
| 273 | 1
| 0-3 | ||||||||||||||||||
| 274 | ) | - | ||||||||||||||||||
| 275 | open_errno = executed 3 times by 1 test: open_errno = (*__errno_location ()) ;Executed by:
| 3 | ||||||||||||||||||
| 276 | (*__errno_location ()) executed 3 times by 1 test: open_errno = (*__errno_location ()) ;Executed by:
| 3 | ||||||||||||||||||
| 277 | ; executed 3 times by 1 test: open_errno = (*__errno_location ()) ;Executed by:
| 3 | ||||||||||||||||||
| 278 | } executed 222830 times by 1 test: end of blockExecuted by:
| 222830 | ||||||||||||||||||
| 279 | - | |||||||||||||||||||
| 280 | if (change_times != (1 | 2)
| 13-222845 | ||||||||||||||||||
| 281 | { | - | ||||||||||||||||||
| 282 | - | |||||||||||||||||||
| 283 | if (change_times == 2
| 6-7 | ||||||||||||||||||
| 284 | newtime[0].tv_nsec = executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;Executed by:
| 7 | ||||||||||||||||||
| 285 | ((1l << 30) - 2l) executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;Executed by:
| 7 | ||||||||||||||||||
| 286 | ; executed 7 times by 1 test: newtime[0].tv_nsec = ((1l << 30) - 2l) ;Executed by:
| 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 blockExecuted by:
| 6 | ||||||||||||||||||
| 300 | } | - | ||||||||||||||||||
| 301 | - | |||||||||||||||||||
| 302 | if (amtime_now
| 54-222804 | ||||||||||||||||||
| 303 | { | - | ||||||||||||||||||
| 304 | - | |||||||||||||||||||
| 305 | - | |||||||||||||||||||
| 306 | t = | - | ||||||||||||||||||
| 307 | ((void *)0) | - | ||||||||||||||||||
| 308 | ; | - | ||||||||||||||||||
| 309 | } executed 222804 times by 1 test: end of blockExecuted by:
| 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 ==
| 40-222818 | ||||||||||||||||||
| 324 | 0
| 40-222818 | ||||||||||||||||||
| 325 | ) | - | ||||||||||||||||||
| 326 | { | - | ||||||||||||||||||
| 327 | if (close (
| 0-222818 | ||||||||||||||||||
| 328 | 0
| 0-222818 | ||||||||||||||||||
| 329 | ) != 0
| 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 blockExecuted by:
| 222818 | ||||||||||||||||||
| 343 | else if (fd ==
| 8-32 | ||||||||||||||||||
| 344 | 1
| 8-32 | ||||||||||||||||||
| 345 | ) | - | ||||||||||||||||||
| 346 | { | - | ||||||||||||||||||
| 347 | - | |||||||||||||||||||
| 348 | if (!ok
| 3-5 | ||||||||||||||||||
| 349 | (*
| 0-5 | ||||||||||||||||||
| 350 | ==
| 0-5 | ||||||||||||||||||
| 351 | 9
| 0-5 | ||||||||||||||||||
| 352 | && no_create
| 1-4 | ||||||||||||||||||
| 353 | return executed 4 times by 1 test: return 1 ;Executed by:
executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||
| 354 | 1 executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||
| 355 | ; executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||
| 356 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||
| 357 | - | |||||||||||||||||||
| 358 | if (!ok
| 18-222836 | ||||||||||||||||||
| 359 | { | - | ||||||||||||||||||
| 360 | if (open_errno
| 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 blockExecuted by:
| 1 | ||||||||||||||||||
| 372 | else | - | ||||||||||||||||||
| 373 | { | - | ||||||||||||||||||
| 374 | if (no_create
| 8-9 | ||||||||||||||||||
| 375 | (*
| 3-6 | ||||||||||||||||||
| 376 | ==
| 3-6 | ||||||||||||||||||
| 377 | 2
| 3-6 | ||||||||||||||||||
| 378 | ) | - | ||||||||||||||||||
| 379 | return executed 6 times by 1 test: return 1 ;Executed by:
executed 6 times by 1 test: return 1 ;Executed by:
| 6 | ||||||||||||||||||
| 380 | 1 executed 6 times by 1 test: return 1 ;Executed by:
| 6 | ||||||||||||||||||
| 381 | ; executed 6 times by 1 test: return 1 ;Executed by:
| 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 blockExecuted by:
| 11 | ||||||||||||||||||
| 390 | return executed 12 times by 1 test: return 0 ;Executed by:
executed 12 times by 1 test: return 0 ;Executed by:
| 12 | ||||||||||||||||||
| 391 | 0 executed 12 times by 1 test: return 0 ;Executed by:
| 12 | ||||||||||||||||||
| 392 | ; executed 12 times by 1 test: return 0 ;Executed by:
| 12 | ||||||||||||||||||
| 393 | } | - | ||||||||||||||||||
| 394 | - | |||||||||||||||||||
| 395 | return executed 222836 times by 1 test: return 1 ;Executed by:
executed 222836 times by 1 test: return 1 ;Executed by:
| 222836 | ||||||||||||||||||
| 396 | 1 executed 222836 times by 1 test: return 1 ;Executed by:
| 222836 | ||||||||||||||||||
| 397 | ; executed 222836 times by 1 test: return 1 ;Executed by:
| 222836 | ||||||||||||||||||
| 398 | } | - | ||||||||||||||||||
| 399 | - | |||||||||||||||||||
| 400 | void | - | ||||||||||||||||||
| 401 | usage (int status) | - | ||||||||||||||||||
| 402 | { | - | ||||||||||||||||||
| 403 | if (status !=
| 4-14 | ||||||||||||||||||
| 404 | 0
| 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: while (0);end of blockExecuted by:
| 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 blockExecuted by:
| 14 | ||||||||||||||||||
| 501 | exit (status); executed 18 times by 1 test: exit (status);Executed by:
| 18 | ||||||||||||||||||
| 502 | } | - | ||||||||||||||||||
| 503 | - | |||||||||||||||||||
| 504 | int | - | ||||||||||||||||||
| 505 | main (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 ((
| 134-3319 | ||||||||||||||||||
| 538 | ((void *)0)
| 134-3319 | ||||||||||||||||||
| 539 | )) != -1
| 134-3319 | ||||||||||||||||||
| 540 | { | - | ||||||||||||||||||
| 541 | switch (c) | - | ||||||||||||||||||
| 542 | { | - | ||||||||||||||||||
| 543 | case executed 7 times by 1 test: 'a':case 'a':Executed by:
executed 7 times by 1 test: case 'a':Executed by:
| 7 | ||||||||||||||||||
| 544 | change_times |= 1; | - | ||||||||||||||||||
| 545 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||
| 546 | - | |||||||||||||||||||
| 547 | case executed 18 times by 1 test: 'c':case 'c':Executed by:
executed 18 times by 1 test: case 'c':Executed by:
| 18 | ||||||||||||||||||
| 548 | no_create = | - | ||||||||||||||||||
| 549 | 1 | - | ||||||||||||||||||
| 550 | ; | - | ||||||||||||||||||
| 551 | break; executed 18 times by 1 test: break;Executed by:
| 18 | ||||||||||||||||||
| 552 | - | |||||||||||||||||||
| 553 | case executed 42 times by 1 test: 'd':case 'd':Executed by:
executed 42 times by 1 test: case 'd':Executed by:
| 42 | ||||||||||||||||||
| 554 | flex_date = optarg; | - | ||||||||||||||||||
| 555 | break; executed 42 times by 1 test: break;Executed by:
| 42 | ||||||||||||||||||
| 556 | - | |||||||||||||||||||
| 557 | case executed 1 time by 1 test: 'f':case 'f':Executed by:
executed 1 time by 1 test: case 'f':Executed by:
| 1 | ||||||||||||||||||
| 558 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||
| 559 | - | |||||||||||||||||||
| 560 | case executed 14 times by 1 test: 'h':case 'h':Executed by:
executed 14 times by 1 test: case 'h':Executed by:
| 14 | ||||||||||||||||||
| 561 | no_dereference = | - | ||||||||||||||||||
| 562 | 1 | - | ||||||||||||||||||
| 563 | ; | - | ||||||||||||||||||
| 564 | break; executed 14 times by 1 test: break;Executed by:
| 14 | ||||||||||||||||||
| 565 | - | |||||||||||||||||||
| 566 | case executed 8 times by 1 test: 'm':case 'm':Executed by:
executed 8 times by 1 test: case 'm':Executed by:
| 8 | ||||||||||||||||||
| 567 | change_times |= 2; | - | ||||||||||||||||||
| 568 | break; executed 8 times by 1 test: break;Executed by:
| 8 | ||||||||||||||||||
| 569 | - | |||||||||||||||||||
| 570 | case executed 5 times by 1 test: 'r':case 'r':Executed by:
executed 5 times by 1 test: case 'r':Executed by:
| 5 | ||||||||||||||||||
| 571 | use_ref = | - | ||||||||||||||||||
| 572 | 1 | - | ||||||||||||||||||
| 573 | ; | - | ||||||||||||||||||
| 574 | ref_file = optarg; | - | ||||||||||||||||||
| 575 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||||||||
| 576 | - | |||||||||||||||||||
| 577 | case executed 2 times by 1 test: 't':case 't':Executed by:
executed 2 times by 1 test: case 't':Executed by:
| 2 | ||||||||||||||||||
| 578 | if (! posixtime (&newtime[0].tv_sec, optarg,
| 1 | ||||||||||||||||||
| 579 | 0 | 2 | 4)
| 1 | ||||||||||||||||||
| 580 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||
| 606 | - | |||||||||||||||||||
| 607 | case executed 1 time by 1 test: TIME_OPTION:case TIME_OPTION:Executed by:
executed 1 time by 1 test: case TIME_OPTION:Executed by:
| 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: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 14 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 14 | ||||||||||||||||||
| 613 | 0 | - | ||||||||||||||||||
| 614 | ); break; never executed: ;break; | 0 | ||||||||||||||||||
| 615 | - | |||||||||||||||||||
| 616 | case executed 19 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 19 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 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:
| 19 | ||||||||||||||||||
| 621 | 0 executed 19 times by 1 test: exit ( 0 );Executed by:
| 19 | ||||||||||||||||||
| 622 | ); executed 19 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-19 | ||||||||||||||||||
| 623 | - | |||||||||||||||||||
| 624 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||||||||
| 625 | usage ( | - | ||||||||||||||||||
| 626 | 1 | - | ||||||||||||||||||
| 627 | ); | - | ||||||||||||||||||
| 628 | } never executed: end of block | 0 | ||||||||||||||||||
| 629 | } | - | ||||||||||||||||||
| 630 | - | |||||||||||||||||||
| 631 | if (change_times == 0
| 13-3306 | ||||||||||||||||||
| 632 | change_times = 1 | 2; executed 3306 times by 1 test: change_times = 1 | 2;Executed by:
| 3306 | ||||||||||||||||||
| 633 | - | |||||||||||||||||||
| 634 | if (date_set
| 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
| 3-3316 | ||||||||||||||||||
| 647 | { | - | ||||||||||||||||||
| 648 | struct stat ref_stats; | - | ||||||||||||||||||
| 649 | - | |||||||||||||||||||
| 650 | - | |||||||||||||||||||
| 651 | if (no_dereference
| 0-3 | ||||||||||||||||||
| 652 | : stat (ref_file, &ref_stats)
| 0-3 | ||||||||||||||||||
| 653 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ;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
| 1-2 | ||||||||||||||||||
| 683 | { | - | ||||||||||||||||||
| 684 | if (change_times & 1
| 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:
| 1 | ||||||||||||||||||
| 686 | if (change_times & 2
| 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:
| 1 | ||||||||||||||||||
| 688 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||
| 689 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||
| 690 | else | - | ||||||||||||||||||
| 691 | { | - | ||||||||||||||||||
| 692 | if (flex_date
| 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)
| 8-31 | ||||||||||||||||||
| 706 | && newtime[0].tv_sec == now.tv_sec
| 0-31 | ||||||||||||||||||
| 707 | && newtime[0].tv_nsec == now.tv_nsec
| 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 (¬now1, flex_date, ¬now); | - | ||||||||||||||||||
| 715 | if (notnow1.tv_sec == notnow.tv_sec
| 0 | ||||||||||||||||||
| 716 | && notnow1.tv_nsec == notnow.tv_nsec
| 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 blockExecuted by:
| 39 | ||||||||||||||||||
| 722 | } executed 3316 times by 1 test: end of blockExecuted by:
| 3316 | ||||||||||||||||||
| 723 | - | |||||||||||||||||||
| 724 | - | |||||||||||||||||||
| 725 | - | |||||||||||||||||||
| 726 | if (!date_set
| 5-3276 | ||||||||||||||||||
| 727 | && posixtime (&newtime[0].tv_sec, argv[optind],
| 1-4 | ||||||||||||||||||
| 728 | 1 | 8)
| 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")
| 0-4 | ||||||||||||||||||
| 737 | { | - | ||||||||||||||||||
| 738 | struct tm const *tm = localtime (&newtime[0].tv_sec); | - | ||||||||||||||||||
| 739 | - | |||||||||||||||||||
| 740 | - | |||||||||||||||||||
| 741 | - | |||||||||||||||||||
| 742 | - | |||||||||||||||||||
| 743 | - | |||||||||||||||||||
| 744 | if (tm
| 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 blockExecuted by:
| 4 | ||||||||||||||||||
| 759 | - | |||||||||||||||||||
| 760 | if (!date_set
| 47-3272 | ||||||||||||||||||
| 761 | { | - | ||||||||||||||||||
| 762 | if (change_times == (1 | 2)
| 5-3267 | ||||||||||||||||||
| 763 | amtime_now = executed 3267 times by 1 test: amtime_now = 1 ;Executed by:
| 3267 | ||||||||||||||||||
| 764 | 1 executed 3267 times by 1 test: amtime_now = 1 ;Executed by:
| 3267 | ||||||||||||||||||
| 765 | ; executed 3267 times by 1 test: amtime_now = 1 ;Executed by:
| 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:
| 5 | ||||||||||||||||||
| 768 | ((1l << 30) - 1l) executed 5 times by 1 test: newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l) ;Executed by:
| 5 | ||||||||||||||||||
| 769 | ; executed 5 times by 1 test: newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l) ;Executed by:
| 5 | ||||||||||||||||||
| 770 | } | - | ||||||||||||||||||
| 771 | - | |||||||||||||||||||
| 772 | if (optind == argc
| 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
| 3319-222858 | ||||||||||||||||||
| 785 | ok &= touch (argv[optind]); executed 222858 times by 1 test: ok &= touch (argv[optind]);Executed by:
| 222858 | ||||||||||||||||||
| 786 | - | |||||||||||||||||||
| 787 | return executed 3319 times by 1 test: ok ? return ok ? 0 : 1 ;Executed by:
executed 3319 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 3319 | ||||||||||||||||||
| 788 | 0 executed 3319 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 3319 | ||||||||||||||||||
| 789 | : executed 3319 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 3319 | ||||||||||||||||||
| 790 | 1 executed 3319 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 3319 | ||||||||||||||||||
| 791 | ; executed 3319 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 3319 | ||||||||||||||||||
| 792 | } | - | ||||||||||||||||||
| Switch to Source code | Preprocessed file |