OpenCoverage

dircolors.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/dircolors.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4enum Shell_syntax-
5{-
6 SHELL_SYNTAX_BOURNE,-
7 SHELL_SYNTAX_C,-
8 SHELL_SYNTAX_UNKNOWN-
9};-
10static struct obstack lsc_obstack;-
11-
12static const char *const slack_codes[] =-
13{-
14 "NORMAL", "NORM", "FILE", "RESET", "DIR", "LNK", "LINK",-
15 "SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK", "BLK", "BLOCK",-
16 "CHR", "CHAR", "DOOR", "EXEC", "LEFT", "LEFTCODE", "RIGHT", "RIGHTCODE",-
17 "END", "ENDCODE", "SUID", "SETUID", "SGID", "SETGID", "STICKY",-
18 "OTHER_WRITABLE", "OWR", "STICKY_OTHER_WRITABLE", "OWT", "CAPABILITY",-
19 "MULTIHARDLINK", "CLRTOEOL", -
20 ((void *)0)-
21-
22};-
23-
24static const char *const ls_codes[] =-
25{-
26 "no", "no", "fi", "rs", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi",-
27 "so", "bd", "bd", "cd", "cd", "do", "ex", "lc", "lc", "rc", "rc", "ec", "ec",-
28 "su", "su", "sg", "sg", "st", "ow", "ow", "tw", "tw", "ca", "mh", "cl", -
29 ((void *)0)-
30-
31};-
32_Static_assert ((sizeof (slack_codes) / sizeof *(slack_codes)) == (sizeof (ls_codes) / sizeof *(ls_codes)), "verify (" "ARRAY_CARDINALITY (slack_codes) == ARRAY_CARDINALITY (ls_codes)" ")");-
33-
34static struct option const long_options[] =-
35 {-
36 {"bourne-shell", -
37 0-
38 , -
39 ((void *)0)-
40 , 'b'},-
41 {"sh", -
42 0-
43 , -
44 ((void *)0)-
45 , 'b'},-
46 {"csh", -
47 0-
48 , -
49 ((void *)0)-
50 , 'c'},-
51 {"c-shell", -
52 0-
53 , -
54 ((void *)0)-
55 , 'c'},-
56 {"print-database", -
57 0-
58 , -
59 ((void *)0)-
60 , 'p'},-
61 {"help", -
62 0-
63 , -
64 ((void *)0)-
65 , GETOPT_HELP_CHAR},-
66 {"version", -
67 0-
68 , -
69 ((void *)0)-
70 , GETOPT_VERSION_CHAR},-
71 {-
72 ((void *)0)-
73 , 0, -
74 ((void *)0)-
75 , 0}-
76 };-
77-
78void-
79usage (int status)-
80{-
81 if (status !=
status != 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 11 times by 1 test
Evaluated by:
  • dircolors
3-11
82 0
status != 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 11 times by 1 test
Evaluated by:
  • dircolors
3-11
83 )-
84 do { fprintf (-
85 stderr-
86 , -
87 dcgettext (((void *)0), -
88 "Try '%s --help' for more information.\n"-
89 , 5)-
90 , program_name); }
executed 3 times by 1 test: end of block
Executed by:
  • dircolors
while (0);
3
91 else-
92 {-
93 printf (-
94 dcgettext (((void *)0), -
95 "Usage: %s [OPTION]... [FILE]\n"-
96 , 5)-
97 , program_name);-
98 fputs_unlocked (-
99 dcgettext (((void *)0), -
100 "Output commands to set the LS_COLORS environment variable.\n\nDetermine format of output:\n -b, --sh, --bourne-shell output Bourne shell code to set LS_COLORS\n -c, --csh, --c-shell output C shell code to set LS_COLORS\n -p, --print-database output defaults\n"-
101 , 5)-
102 ,-
103 stdout-
104 )-
105-
106-
107-
108-
109-
110-
111 ;-
112 fputs_unlocked (-
113 dcgettext (((void *)0), -
114 " --help display this help and exit\n"-
115 , 5)-
116 ,-
117 stdout-
118 );-
119 fputs_unlocked (-
120 dcgettext (((void *)0), -
121 " --version output version information and exit\n"-
122 , 5)-
123 ,-
124 stdout-
125 );-
126 fputs_unlocked (-
127 dcgettext (((void *)0), -
128 "\nIf FILE is specified, read it to determine which colors to use for which\nfile types and extensions. Otherwise, a precompiled database is used.\nFor details on the format of these files, run 'dircolors --print-database'.\n"-
129 , 5)-
130 ,-
131 stdout-
132 )-
133-
134-
135-
136-
137 ;-
138 emit_ancillary_info ("dircolors");-
139 }
executed 11 times by 1 test: end of block
Executed by:
  • dircolors
11
140-
141 exit (status);
executed 14 times by 1 test: exit (status);
Executed by:
  • dircolors
14
142}-
143-
144-
145-
146-
147static enum Shell_syntax-
148guess_shell_syntax (void)-
149{-
150 char *shell;-
151-
152 shell = getenv ("SHELL");-
153 if (shell ==
shell == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
154 ((void *)0)
shell == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
155 || *
*shell == '\0'Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
shell == '\0'
*shell == '\0'Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
)
0-1
156 return
never executed: return SHELL_SYNTAX_UNKNOWN;
SHELL_SYNTAX_UNKNOWN;
never executed: return SHELL_SYNTAX_UNKNOWN;
0
157-
158 shell = last_component (shell);-
159-
160 if ((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
161 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
162 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
163 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
164 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
165 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
166 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
167 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
168 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
169 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
170 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
171 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
172 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
173 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
174 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
175 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
176 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
177 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
178 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
179 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
180 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
181 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
182 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
183 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
184 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
185 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
186 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
187 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
188 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
189 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
190 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
191 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
192 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
193 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
194 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
195 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
196 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
197 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
198 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
199 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
200 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
201 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
202 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
203 ))[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
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
204 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
205 ))[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
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
206 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
207 ))[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 *) ( shell ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
208 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( shell ))[3] - __s2[3]);
0-1
209 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( shell ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
210 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
211 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
212 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
213 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
214 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
215 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
216 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
217 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
218 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
219 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
220 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
221 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
222 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
223 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
224 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
225 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
226 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
227 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
228 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
229 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
230 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
231 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
232 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
233 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
234 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
235 ))[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 *) ( "csh" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
236 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( "csh" ))[3] - __s2[3]);
0-1
237 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( "csh" ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
238 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
239 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
240 "csh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
241 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
242 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
|| (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
243 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
244 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
245 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
246 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
247 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
248 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
249 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
250 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
251 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
252 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
253 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
254 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
255 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
256 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
257 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
258 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
259 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
260 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
261 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
262 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
263 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
264 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
265 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
266 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
267 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
268 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
269 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
270 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
271 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
272 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
273 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
274 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
275 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
276 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
277 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
278 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
279 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
280 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
281 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
282 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
283 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
284 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
285 ))[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
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
286 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
287 ))[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
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
288 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
289 ))[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 *) ( shell ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
290 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( shell ))[3] - __s2[3]);
0-1
291 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( shell ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
292 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
293 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
294 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
295 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
296 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
297 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
298 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
299 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
300 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
301 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
302 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
303 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
304 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
305 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
306 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
307 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
308 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
309 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
310 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
311 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
312 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
313 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
314 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
315 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
316 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
317 ))[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 *) ( "tcsh" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
318 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( "tcsh" ))[3] - __s2[3]);
0-1
319 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
never executed: __result = (((const unsigned char *) (const char *) ( "tcsh" ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
320 shell
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
321 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
322 "tcsh"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
323 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
0-1
324 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
)
0-1
325 return
never executed: return SHELL_SYNTAX_C;
SHELL_SYNTAX_C;
never executed: return SHELL_SYNTAX_C;
0
326-
327 return
executed 1 time by 1 test: return SHELL_SYNTAX_BOURNE;
Executed by:
  • dircolors
SHELL_SYNTAX_BOURNE;
executed 1 time by 1 test: return SHELL_SYNTAX_BOURNE;
Executed by:
  • dircolors
1
328}-
329-
330static void-
331parse_line (char const *line, char **keyword, char **arg)-
332{-
333 char const *p;-
334 char const *keyword_start;-
335 char const *arg_start;-
336-
337 *keyword = -
338 ((void *)0)-
339 ;-
340 *arg = -
341 ((void *)0)-
342 ;-
343-
344 for (p = line; -
345 ((*
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
4-414
346 to_uchar (*p)
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
4-414
347 ))] & (unsigned short int) _ISspace)
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
4-414
348 ; ++p)-
349 continue;
executed 4 times by 1 test: continue;
Executed by:
  • dircolors
4
350-
351-
352 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 414 times by 1 test
Evaluated by:
  • dircolors
|| *
*p == '#'Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
p == '#'
*p == '#'Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
)
0-414
353 return;
executed 78 times by 1 test: return;
Executed by:
  • dircolors
78
354-
355 keyword_start = p;-
356-
357 while (!
! ((*__ctype_b...int) _ISspace)Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
336-1489
358 ((*__ctype_b_loc ())[(int) ((
! ((*__ctype_b...int) _ISspace)Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
336-1489
359 to_uchar (*p)
! ((*__ctype_b...int) _ISspace)Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
336-1489
360 ))] & (unsigned short int) _ISspace)
! ((*__ctype_b...int) _ISspace)Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
336-1489
361 && *
*p != '\0'Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
p != '\0'
*p != '\0'Description
TRUEevaluated 1489 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
)
0-1489
362 {-
363 ++p;-
364 }
executed 1489 times by 1 test: end of block
Executed by:
  • dircolors
1489
365-
366 *keyword = xstrndup (keyword_start, p - keyword_start);-
367 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
)
0-336
368 return;
never executed: return;
0
369-
370 do-
371 {-
372 ++p;-
373 }
executed 336 times by 1 test: end of block
Executed by:
  • dircolors
336
374 while (-
375 ((*
((*__ctype_b_l...int) _ISspace)Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISspace)Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
0-336
376 to_uchar (*p)
((*__ctype_b_l...int) _ISspace)Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
0-336
377 ))] & (unsigned short int) _ISspace)
((*__ctype_b_l...int) _ISspace)Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
0-336
378 );-
379-
380 if (*
*p == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
p == '\0'
*p == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
|| *
*p == '#'Description
TRUEnever evaluated
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
p == '#'
*p == '#'Description
TRUEnever evaluated
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
)
0-335
381 return;
executed 1 time by 1 test: return;
Executed by:
  • dircolors
1
382-
383 arg_start = p;-
384-
385 while (*
*p != '\0'Description
TRUEevaluated 1810 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 301 times by 1 test
Evaluated by:
  • dircolors
p != '\0'
*p != '\0'Description
TRUEevaluated 1810 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 301 times by 1 test
Evaluated by:
  • dircolors
&& *
*p != '#'Description
TRUEevaluated 1776 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 34 times by 1 test
Evaluated by:
  • dircolors
p != '#'
*p != '#'Description
TRUEevaluated 1776 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 34 times by 1 test
Evaluated by:
  • dircolors
)
34-1810
386 ++
executed 1776 times by 1 test: ++p;
Executed by:
  • dircolors
p;
executed 1776 times by 1 test: ++p;
Executed by:
  • dircolors
1776
387-
388 for (--p; -
389 ((*
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
61-335
390 to_uchar (*p)
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
61-335
391 ))] & (unsigned short int) _ISspace)
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
61-335
392 ; --p)-
393 continue;
executed 61 times by 1 test: continue;
Executed by:
  • dircolors
61
394 ++p;-
395-
396 *arg = xstrndup (arg_start, p - arg_start);-
397}
executed 335 times by 1 test: end of block
Executed by:
  • dircolors
335
398-
399-
400-
401-
402static void-
403append_quoted (const char *str)-
404{-
405 -
406 _Bool -
407 need_backslash = -
408 1-
409 ;-
410-
411 while (*
*str != '\0'Description
TRUEevaluated 89 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
str != '\0'
*str != '\0'Description
TRUEevaluated 89 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
)
21-89
412 {-
413 switch (*str)-
414 {-
415 case
executed 2 times by 1 test: case '\'':
Executed by:
  • dircolors
'\'':
executed 2 times by 1 test: case '\'':
Executed by:
  • dircolors
2
416 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('\''))); });
0-2
417 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('\\'))); });
0-2
418 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('\''))); });
0-2
419 need_backslash = -
420 1-
421 ;-
422 break;
executed 2 times by 1 test: break;
Executed by:
  • dircolors
2
423-
424 case
never executed: case '\\':
'\\':
never executed: case '\\':
0
425 case
never executed: case '^':
'^':
never executed: case '^':
0
426 need_backslash = !need_backslash;-
427 break;
never executed: break;
0
428-
429 case
executed 1 time by 1 test: case ':':
Executed by:
  • dircolors
':':
executed 1 time by 1 test: case ':':
Executed by:
  • dircolors
1
430 case
never executed: case '=':
'=':
never executed: case '=':
0
431 if (need_backslash
need_backslashDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
)
0-1
432 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('\\'))); });
executed 1 time by 1 test: __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1) _obstack_newchunk (__o, 1); ((void) (*((__o)->next_free)++ = ('\\'))); });
Executed by:
  • dircolors
0-1
433 ((void) 0);-
434-
435 default
executed 86 times by 1 test: default:
Executed by:
  • dircolors
:
executed 86 times by 1 test: default:
Executed by:
  • dircolors
code before this statement executed 1 time by 1 test: default:
Executed by:
  • dircolors
1-86
436 need_backslash = -
437 1-
438 ;-
439 break;
executed 87 times by 1 test: break;
Executed by:
  • dircolors
87
440 }-
441-
442 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 89 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (*str))); });
0-89
443 ++str;-
444 }
executed 89 times by 1 test: end of block
Executed by:
  • dircolors
89
445}
executed 21 times by 1 test: end of block
Executed by:
  • dircolors
21
446static -
447 _Bool-
448-
449dc_parse_stream (FILE *fp, const char *filename)-
450{-
451 size_t line_number = 0;-
452 char const *next_G_line = G_line;-
453 char *input_line = -
454 ((void *)0)-
455 ;-
456 size_t input_line_size = 0;-
457 char const *line;-
458 char const *term;-
459 -
460 _Bool -
461 ok = -
462 1-
463 ;-
464-
465-
466 enum { ST_TERMNO, ST_TERMYES, ST_TERMSURE, ST_GLOBAL } state = ST_GLOBAL;-
467-
468-
469 term = getenv ("TERM");-
470 if (term ==
term == ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-10
471 ((void *)0)
term == ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-10
472 || *
*term == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
term == '\0'
*term == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
473 term = "none";
executed 10 times by 1 test: term = "none";
Executed by:
  • dircolors
10
474-
475 while (1)-
476 {-
477 char *keywd, *arg;-
478 -
479 _Bool -
480 unrecognized;-
481-
482 ++line_number;-
483-
484 if (fp
fpDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 388 times by 1 test
Evaluated by:
  • dircolors
)
36-388
485 {-
486 if (getline (&input_line, &input_line_size, fp) <= 0
getline (&inpu...size, fp) <= 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 28 times by 1 test
Evaluated by:
  • dircolors
)
8-28
487 {-
488 free (input_line);-
489 break;
executed 8 times by 1 test: break;
Executed by:
  • dircolors
8
490 }-
491 line = input_line;-
492 }
executed 28 times by 1 test: end of block
Executed by:
  • dircolors
28
493 else-
494 {-
495 if (next_G_line == G_line + sizeof G_line
next_G_line ==... sizeof G_lineDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 386 times by 1 test
Evaluated by:
  • dircolors
)
2-386
496 break;
executed 2 times by 1 test: break;
Executed by:
  • dircolors
2
497 line = next_G_line;-
498 next_G_line += strlen (next_G_line) + 1;-
499 }
executed 386 times by 1 test: end of block
Executed by:
  • dircolors
386
500-
501 parse_line (line, &keywd, &arg);-
502-
503 if (keywd ==
keywd == ((void *)0)Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
78-336
504 ((void *)0)
keywd == ((void *)0)Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 336 times by 1 test
Evaluated by:
  • dircolors
78-336
505 )-
506 continue;
executed 78 times by 1 test: continue;
Executed by:
  • dircolors
78
507-
508 if (arg ==
arg == ((void *)0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
1-335
509 ((void *)0)
arg == ((void *)0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 335 times by 1 test
Evaluated by:
  • dircolors
1-335
510 )-
511 {-
512 error (0, 0, -
513 dcgettext (((void *)0), -
514 "%s:%lu: invalid line; missing second token"-
515 , 5)-
516 ,-
517 quotearg_n_style_colon (0, shell_escape_quoting_style, filename), (unsigned long int) line_number);-
518 ok = -
519 0-
520 ;-
521 free (keywd);-
522 continue;
executed 1 time by 1 test: continue;
Executed by:
  • dircolors
1
523 }-
524-
525 unrecognized = -
526 0-
527 ;-
528 if (c_strcasecmp (keywd, "TERM") == 0
c_strcasecmp (..., "TERM") == 0Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 283 times by 1 test
Evaluated by:
  • dircolors
)
52-283
529 {-
530 if (fnmatch (arg, term, 0) == 0
fnmatch (arg, term, 0) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 50 times by 1 test
Evaluated by:
  • dircolors
)
2-50
531 state = ST_TERMSURE;
executed 2 times by 1 test: state = ST_TERMSURE;
Executed by:
  • dircolors
2
532 else if (state != ST_TERMSURE
state != ST_TERMSUREDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
)
0-50
533 state = ST_TERMNO;
executed 50 times by 1 test: state = ST_TERMNO;
Executed by:
  • dircolors
50
534 }
executed 52 times by 1 test: end of block
Executed by:
  • dircolors
52
535 else-
536 {-
537 if (state == ST_TERMSURE
state == ST_TERMSUREDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 281 times by 1 test
Evaluated by:
  • dircolors
)
2-281
538 state = ST_TERMYES;
executed 2 times by 1 test: state = ST_TERMYES;
Executed by:
  • dircolors
2
539-
540 if (state != ST_TERMNO
state != ST_TERMNODescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 262 times by 1 test
Evaluated by:
  • dircolors
)
21-262
541 {-
542 if (keywd[0] == '.'
keywd[0] == '.'Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
)
0-21
543 {-
544 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEnever evaluated
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('*'))); });
0
545 append_quoted (keywd);-
546 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEnever evaluated
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('='))); });
0
547 append_quoted (arg);-
548 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEnever evaluated
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (':'))); });
0
549 }
never executed: end of block
0
550 else if (keywd[0] == '*'
keywd[0] == '*'Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
)
0-21
551 {-
552 append_quoted (keywd);-
553 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEnever evaluated
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('='))); });
0
554 append_quoted (arg);-
555 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEnever evaluated
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (':'))); });
0
556 }
never executed: end of block
0
557 else if (c_strcasecmp (keywd, "OPTIONS") == 0
c_strcasecmp (...OPTIONS") == 0Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
0-21
558 || c_strcasecmp (keywd, "COLOR") == 0
c_strcasecmp (... "COLOR") == 0Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
0-21
559 || c_strcasecmp (keywd, "EIGHTBIT") == 0
c_strcasecmp (...IGHTBIT") == 0Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
)
0-21
560 {-
561-
562 }
never executed: end of block
0
563 else-
564 {-
565 int i;-
566-
567 for (i = 0; slack_codes[i] !=
slack_codes[i] != ((void *)0)Description
TRUEevaluated 458 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-458
568 ((void *)0)
slack_codes[i] != ((void *)0)Description
TRUEevaluated 458 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-458
569 ; ++i)-
570 if (c_strcasecmp (keywd, slack_codes[i]) == 0
c_strcasecmp (...codes[i]) == 0Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 437 times by 1 test
Evaluated by:
  • dircolors
)
21-437
571 break;
executed 21 times by 1 test: break;
Executed by:
  • dircolors
21
572-
573 if (slack_codes[i] !=
slack_codes[i] != ((void *)0)Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-21
574 ((void *)0)
slack_codes[i] != ((void *)0)Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-21
575 )-
576 {-
577 do { __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (ls_codes[i][0]))); }); __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (ls_codes[i][1]))); }); } while (0);
0-21
578 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = ('='))); });
0-21
579 append_quoted (arg);-
580 __extension__ ({ struct obstack *__o = (&lsc_obstack); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < 1
__extension__ ..._free); }) < 1Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • dircolors
) _obstack_newchunk (__o, 1);
never executed: _obstack_newchunk (__o, 1);
((void) (*((__o)->next_free)++ = (':'))); });
0-21
581 }
executed 21 times by 1 test: end of block
Executed by:
  • dircolors
21
582 else-
583 {-
584 unrecognized = -
585 1-
586 ;-
587 }
never executed: end of block
0
588 }-
589 }-
590 else-
591 {-
592 unrecognized = -
593 1-
594 ;-
595 }
executed 262 times by 1 test: end of block
Executed by:
  • dircolors
262
596 }-
597-
598 if (unrecognized
unrecognizedDescription
TRUEevaluated 262 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 73 times by 1 test
Evaluated by:
  • dircolors
&& (state == ST_TERMSURE
state == ST_TERMSUREDescription
TRUEnever evaluated
FALSEevaluated 262 times by 1 test
Evaluated by:
  • dircolors
|| state == ST_TERMYES
state == ST_TERMYESDescription
TRUEnever evaluated
FALSEevaluated 262 times by 1 test
Evaluated by:
  • dircolors
))
0-262
599 {-
600 error (0, 0, -
601 dcgettext (((void *)0), -
602 "%s:%lu: unrecognized keyword %s"-
603 , 5)-
604 ,-
605 (filename ? quotearg_n_style_colon (0, shell_escape_quoting_style, filename) : -
606 dcgettext (((void *)0), -
607 "<internal>"-
608 , 5)-
609 ),-
610 (unsigned long int) line_number, keywd);-
611 ok = -
612 0-
613 ;-
614 }
never executed: end of block
0
615-
616 free (keywd);-
617 free (arg);-
618 }
executed 335 times by 1 test: end of block
Executed by:
  • dircolors
335
619-
620 return
executed 10 times by 1 test: return ok;
Executed by:
  • dircolors
ok;
executed 10 times by 1 test: return ok;
Executed by:
  • dircolors
10
621}-
622-
623static -
624 _Bool-
625-
626dc_parse_file (const char *filename)-
627{-
628 -
629 _Bool -
630 ok;-
631-
632 if (! (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
633 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
634 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
635 ) && __builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
636 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
637 ) && (__s1_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
638 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
639 ), __s2_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
640 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
641 ), (!((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
642 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
643 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
644 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
645 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
646 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
647 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
648 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
649 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
650 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
651 ,
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
652 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
653 ) : (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
654 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
655 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
656 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
657 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
658 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
659 ) == 1) && (__s1_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
660 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
661 ), __s1_len < 4) ? (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
662 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
663 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
664 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
665 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
666 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
667 ) == 1) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
668 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
669 ,
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
670 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
671 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
672 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
673 ); int __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
674 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
675 ))[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 *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
676 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
677 ))[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 *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
678 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
679 ))[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 *) ( filename ))[3] - __s2[3]);
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
680 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
0-8
681 ))[3] - __s2[3]);
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
682 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
683 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
684 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
685 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
686 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
687 ) == 1) && (__s2_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
688 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
689 ), __s2_len < 4) ? (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
690 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
691 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
692 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
693 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
694 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
695 ) == 1) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
696 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
697 ,
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
698 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
699 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
700 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
701 ); int __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
702 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
703 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
704 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
705 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
706 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
707 ))[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]);
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
708 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0-8
709 ))[3] - __s2[3]);
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
710 filename
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
711 ,
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
712 "-"
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
713 )))); })
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
0-8
714 == 0)
! ( __extensio...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
&& freopen_safer (filename, "r",
freopen_safer ...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
715 stdin
freopen_safer ...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
716 ) ==
freopen_safer ...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
717 ((void *)0)
freopen_safer ...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
718 )-
719 {-
720 error (0, -
721 (*__errno_location ())-
722 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename));-
723 return
never executed: return 0 ;
never executed: return 0 ;
0
724 0
never executed: return 0 ;
0
725 ;
never executed: return 0 ;
0
726 }-
727-
728 ok = dc_parse_stream (-
729 stdin-
730 , filename);-
731-
732 if (-
733 rpl_fclose
rpl_fclose ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
734 (
rpl_fclose ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
735 stdin
rpl_fclose ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
0-8
736 ) != 0
rpl_fclose ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
)
0-8
737 {-
738 error (0, -
739 (*__errno_location ())-
740 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename));-
741 return
never executed: return 0 ;
never executed: return 0 ;
0
742 0
never executed: return 0 ;
0
743 ;
never executed: return 0 ;
0
744 }-
745-
746 return
executed 8 times by 1 test: return ok;
Executed by:
  • dircolors
ok;
executed 8 times by 1 test: return ok;
Executed by:
  • dircolors
8
747}-
748-
749int-
750main (int argc, char **argv)-
751{-
752 -
753 _Bool -
754 ok = -
755 1-
756 ;-
757 int optc;-
758 enum Shell_syntax syntax = SHELL_SYNTAX_UNKNOWN;-
759 -
760 _Bool -
761 print_database = -
762 0-
763 ;-
764-
765 ;-
766 set_program_name (argv[0]);-
767 setlocale (-
768 6-
769 , "");-
770 bindtextdomain ("coreutils", "/usr/local/share/locale");-
771 textdomain ("coreutils");-
772-
773 atexit (close_stdout);-
774-
775 while ((
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
optc = getopt_long (argc, argv, "bcp", long_options,
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
10-35
776 ((void *)0)
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
10-35
777 )) != -1
(optc = getopt... *)0) )) != -1Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
)
10-35
778 switch (optc)-
779 {-
780 case
executed 12 times by 1 test: case 'b':
Executed by:
  • dircolors
'b':
executed 12 times by 1 test: case 'b':
Executed by:
  • dircolors
12
781 syntax = SHELL_SYNTAX_BOURNE;-
782 break;
executed 12 times by 1 test: break;
Executed by:
  • dircolors
12
783-
784 case
executed 3 times by 1 test: case 'c':
Executed by:
  • dircolors
'c':
executed 3 times by 1 test: case 'c':
Executed by:
  • dircolors
3
785 syntax = SHELL_SYNTAX_C;-
786 break;
executed 3 times by 1 test: break;
Executed by:
  • dircolors
3
787-
788 case
executed 2 times by 1 test: case 'p':
Executed by:
  • dircolors
'p':
executed 2 times by 1 test: case 'p':
Executed by:
  • dircolors
2
789 print_database = -
790 1-
791 ;-
792 break;
executed 2 times by 1 test: break;
Executed by:
  • dircolors
2
793-
794 case
executed 11 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • dircolors
GETOPT_HELP_CHAR:
executed 11 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • dircolors
usage (
11
795 0-
796 ); break;
never executed: break;
;
0
797-
798 case
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • dircolors
GETOPT_VERSION_CHAR:
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • dircolors
version_etc (
4
799 stdout-
800 , "dircolors", "GNU coreutils", Version, ("H. Peter Anvin"), (char *) -
801 ((void *)0)-
802 ); exit (
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • dircolors
4
803 0
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • dircolors
4
804 );
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • dircolors
break;
never executed: break;
;
0-4
805-
806 default
executed 3 times by 1 test: default:
Executed by:
  • dircolors
:
executed 3 times by 1 test: default:
Executed by:
  • dircolors
3
807 usage (-
808 1-
809 );-
810 }
never executed: end of block
0
811-
812 argc -= optind;-
813 argv += optind;-
814-
815-
816-
817 if (print_database
print_databaseDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
&& syntax != SHELL_SYNTAX_UNKNOWN
syntax != SHELL_SYNTAX_UNKNOWNDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-10
818 {-
819 error (0, 0,-
820 -
821 dcgettext (((void *)0), -
822 "the options to output dircolors' internal database and\n" "to select a shell syntax are mutually exclusive"-
823 , 5)-
824 -
825 );-
826 usage (-
827 1-
828 );-
829 }
never executed: end of block
0
830-
831 if ((
(!print_database) < argcDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
!print_database) < argc
(!print_database) < argcDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
)
0-10
832 {-
833 error (0, 0, -
834 dcgettext (((void *)0), -
835 "extra operand %s"-
836 , 5)-
837 , quote (argv[!print_database]));-
838 if (print_database
print_databaseDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
839 fprintf (
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
840 stderr
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
841 , "%s\n",
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
842
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
843 dcgettext (((void *)0),
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
844 "file operands cannot be combined with " "--print-database (-p)"
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
845 , 5)
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
846
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
847 );
never executed: fprintf ( stderr , "%s\n", dcgettext (((void *)0), "file operands cannot be combined with " "--print-database (-p)" , 5) );
0
848 usage (-
849 1-
850 );-
851 }
never executed: end of block
0
852-
853 if (print_database
print_databaseDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • dircolors
)
0-10
854 {-
855 char const *p = G_line;-
856 while (p - G_line < sizeof G_line
p - G_line < sizeof G_lineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
857 {-
858 puts (p);-
859 p += strlen (p) + 1;-
860 }
never executed: end of block
0
861 }
never executed: end of block
0
862 else-
863 {-
864-
865 if (syntax == SHELL_SYNTAX_UNKNOWN
syntax == SHELL_SYNTAX_UNKNOWNDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
)
1-9
866 {-
867 syntax = guess_shell_syntax ();-
868 if (syntax == SHELL_SYNTAX_UNKNOWN
syntax == SHELL_SYNTAX_UNKNOWNDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
)
0-1
869 {-
870 ((!!sizeof (struct { _Static_assert (-
871 1-
872 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no SHELL environment variable, and no shell type option given\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
873 1-
874 , 0, -
875 dcgettext (((void *)0), -
876 "no SHELL environment variable, and no shell type option given"-
877 , 5)-
878 ), ((-
879 0-
880 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
881 1-
882 , 0, -
883 dcgettext (((void *)0), -
884 "no SHELL environment variable, and no shell type option given"-
885 , 5)-
886 ), ((-
887 0-
888 ) ? (void) 0 : __builtin_unreachable ()))))-
889 ;-
890 }
never executed: end of block
0
891 }
executed 1 time by 1 test: end of block
Executed by:
  • dircolors
1
892-
893 _obstack_begin ((&lsc_obstack), 0, 0, (malloc), (free));-
894 if (argc == 0
argc == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 8 times by 1 test
Evaluated by:
  • dircolors
)
2-8
895 ok = dc_parse_stream (
executed 2 times by 1 test: ok = dc_parse_stream ( ((void *)0) , ((void *)0) );
Executed by:
  • dircolors
2
896 ((void *)0)
executed 2 times by 1 test: ok = dc_parse_stream ( ((void *)0) , ((void *)0) );
Executed by:
  • dircolors
2
897 ,
executed 2 times by 1 test: ok = dc_parse_stream ( ((void *)0) , ((void *)0) );
Executed by:
  • dircolors
2
898 ((void *)0)
executed 2 times by 1 test: ok = dc_parse_stream ( ((void *)0) , ((void *)0) );
Executed by:
  • dircolors
2
899 );
executed 2 times by 1 test: ok = dc_parse_stream ( ((void *)0) , ((void *)0) );
Executed by:
  • dircolors
2
900 else-
901 ok = dc_parse_file (argv[0]);
executed 8 times by 1 test: ok = dc_parse_file (argv[0]);
Executed by:
  • dircolors
8
902-
903 if (ok
okDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 1 time by 1 test
Evaluated by:
  • dircolors
)
1-9
904 {-
905 size_t len = __extension__ ({ struct obstack const *__o = (&lsc_obstack); (size_t) (__o->next_free - __o->object_base); });-
906 char *s = __extension__ ({ struct obstack *__o1 = (&lsc_obstack); void *__value = (void *) __o1->object_base; if (__o1->next_free == __value
__o1->next_free == __valueDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 5 times by 1 test
Evaluated by:
  • dircolors
) __o1->maybe_empty_object = 1;
executed 4 times by 1 test: __o1->maybe_empty_object = 1;
Executed by:
  • dircolors
__o1->next_free = ((sizeof (ptrdiff_t) < sizeof (void *)
sizeof (ptrdif...izeof (void *)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
? (__o1->object_base) : (char *) 0) + (((__o1->next_free) - (sizeof (ptrdiff_t) < sizeof (void *)
sizeof (ptrdif...izeof (void *)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
? (__o1->object_base) : (char *) 0) + (__o1->alignment_mask)) & ~(__o1->alignment_mask))); if ((
(size_t) (__o1...) __o1->chunk)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
size_t) (__o1->next_free - (char *) __o1->chunk) > (size_t) (__o1->chunk_limit - (char *) __o1->chunk)
(size_t) (__o1...) __o1->chunk)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
) __o1->next_free = __o1->chunk_limit;
never executed: __o1->next_free = __o1->chunk_limit;
__o1->object_base = __o1->next_free; __value; });
0-9
907 const char *prefix;-
908 const char *suffix;-
909-
910 if (syntax == SHELL_SYNTAX_BOURNE
syntax == SHELL_SYNTAX_BOURNEDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • dircolors
FALSEnever evaluated
)
0-9
911 {-
912 prefix = "LS_COLORS='";-
913 suffix = "';\nexport LS_COLORS\n";-
914 }
executed 9 times by 1 test: end of block
Executed by:
  • dircolors
9
915 else-
916 {-
917 prefix = "setenv LS_COLORS '";-
918 suffix = "'\n";-
919 }
never executed: end of block
0
920 fputs_unlocked (prefix,-
921 stdout-
922 );-
923 -
924 (__extension__ ((__builtin_constant_p (-
925 1-
926 ) && __builtin_constant_p (-
927 len-
928 ) && (size_t) (-
929 1-
930 ) * (size_t) (-
931 len-
932 ) <= 8 && (size_t) (-
933 1-
934 ) != 0) ? ({ const char *__ptr = (const char *) (-
935 s-
936 ); FILE *__stream = (stdout); size_t __cnt; for (__cnt = (size_t) (-
937 1-
938 ) * (size_t) (-
939 len-
940 ); __cnt > 0
__cnt > 0Description
TRUEnever evaluated
FALSEnever evaluated
; --__cnt) if ((
(__builtin_exp...r++))) == (-1)Description
TRUEnever evaluated
FALSEnever evaluated
__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0)
__builtin_expe...write_end), 0)Description
TRUEnever evaluated
FALSEnever evaluated
? __overflow (__stream, (unsigned char) (*__ptr++)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (*__ptr++))) == (-1)
(__builtin_exp...r++))) == (-1)Description
TRUEnever evaluated
FALSEnever evaluated
) break;
never executed: break;
((size_t) (
0
941 1-
942 ) * (size_t) (-
943 len-
944 ) - __cnt) / (size_t) (-
945 1-
946 ); }) : (((__builtin_constant_p (-
947 1-
948 ) && (size_t) (-
949 1-
950 ) == 0) || (__builtin_constant_p (-
951 len-
952 ) && (size_t) (-
953 len-
954 ) == 0)) ? ((void) (-
955 s-
956 ), (void) (stdout), (void) (-
957 1-
958 ), (void) (-
959 len-
960 ), (size_t) 0) : fwrite_unlocked (-
961 s-
962 , -
963 1-
964 , -
965 len-
966 , stdout))))-
967 ;-
968 fputs_unlocked (suffix,-
969 stdout-
970 );-
971 }
executed 9 times by 1 test: end of block
Executed by:
  • dircolors
9
972 }
executed 10 times by 1 test: end of block
Executed by:
  • dircolors
10
973-
974 return
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
ok ?
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
10
975 0
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
10
976 :
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
10
977 1
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
10
978 ;
executed 10 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • dircolors
10
979}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2