OpenCoverage

stat.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/stat.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static char const digits[] = "0123456789";-
8-
9-
10-
11-
12-
13-
14-
15static char const printf_flags[] = "'-+ #0I";-
16-
17-
18static char const fmt_terse_fs[] = "%n %i %l %t %s %S %b %f %a %c %d\n";-
19static char const fmt_terse_regular[] = "%n %s %b %f %u %g %D %i %h %t %T"-
20 " %X %Y %Z %W %o\n";-
21static char const fmt_terse_selinux[] = "%n %s %b %f %u %g %D %i %h %t %T"-
22 " %X %Y %Z %W %o %C\n";-
23-
24-
25-
26-
27-
28enum-
29{-
30 PRINTF_OPTION = 0x7f + 1-
31};-
32-
33static struct option const long_options[] =-
34{-
35 {"dereference", -
36 0-
37 , -
38 ((void *)0)-
39 , 'L'},-
40 {"file-system", -
41 0-
42 , -
43 ((void *)0)-
44 , 'f'},-
45 {"format", -
46 1-
47 , -
48 ((void *)0)-
49 , 'c'},-
50 {"printf", -
51 1-
52 , -
53 ((void *)0)-
54 , PRINTF_OPTION},-
55 {"terse", -
56 0-
57 , -
58 ((void *)0)-
59 , 't'},-
60 {"help", -
61 0-
62 , -
63 ((void *)0)-
64 , GETOPT_HELP_CHAR},-
65 {"version", -
66 0-
67 , -
68 ((void *)0)-
69 , GETOPT_VERSION_CHAR},-
70 {-
71 ((void *)0)-
72 , 0, -
73 ((void *)0)-
74 , 0}-
75};-
76-
77-
78static -
79 _Bool -
80 follow_links;-
81-
82-
83-
84static -
85 _Bool -
86 interpret_backslash_escapes;-
87-
88-
89-
90static char const *trailing_delim = "";-
91-
92-
93static char const *decimal_point;-
94static size_t decimal_point_len;-
95-
96-
97-
98-
99-
100-
101-
102static char const * __attribute__ ((__warn_unused_result__))-
103human_fstype (struct statfs const *statfsbuf)-
104{-
105-
106-
107-
108 switch (statfsbuf->f_type)-
109 {-
110 case
never executed: case 0x5A3C69F0:
0x5A3C69F0:
never executed: case 0x5A3C69F0:
0
111 return
never executed: return "aafs";
"aafs";
never executed: return "aafs";
0
112 case
never executed: case 0x61636673:
0x61636673:
never executed: case 0x61636673:
0
113 return
never executed: return "acfs";
"acfs";
never executed: return "acfs";
0
114 case
never executed: case 0xADF5:
0xADF5:
never executed: case 0xADF5:
0
115 return
never executed: return "adfs";
"adfs";
never executed: return "adfs";
0
116 case
never executed: case 0xADFF:
0xADFF:
never executed: case 0xADFF:
0
117 return
never executed: return "affs";
"affs";
never executed: return "affs";
0
118 case
never executed: case 0x5346414F:
0x5346414F:
never executed: case 0x5346414F:
0
119 return
never executed: return "afs";
"afs";
never executed: return "afs";
0
120 case
never executed: case 0x09041934:
0x09041934:
never executed: case 0x09041934:
0
121 return
never executed: return "anon-inode FS";
"anon-inode FS";
never executed: return "anon-inode FS";
0
122 case
never executed: case 0x61756673:
0x61756673:
never executed: case 0x61756673:
0
123-
124-
125-
126 return
never executed: return "aufs";
"aufs";
never executed: return "aufs";
0
127 case
never executed: case 0x0187:
0x0187:
never executed: case 0x0187:
0
128 return
never executed: return "autofs";
"autofs";
never executed: return "autofs";
0
129 case
never executed: case 0x13661366:
0x13661366:
never executed: case 0x13661366:
0
130 return
never executed: return "balloon-kvm-fs";
"balloon-kvm-fs";
never executed: return "balloon-kvm-fs";
0
131 case
never executed: case 0x42465331:
0x42465331:
never executed: case 0x42465331:
0
132 return
never executed: return "befs";
"befs";
never executed: return "befs";
0
133 case
never executed: case 0x62646576:
0x62646576:
never executed: case 0x62646576:
0
134 return
never executed: return "bdevfs";
"bdevfs";
never executed: return "bdevfs";
0
135 case
never executed: case 0x1BADFACE:
0x1BADFACE:
never executed: case 0x1BADFACE:
0
136 return
never executed: return "bfs";
"bfs";
never executed: return "bfs";
0
137 case
never executed: case 0xCAFE4A11:
0xCAFE4A11:
never executed: case 0xCAFE4A11:
0
138 return
never executed: return "bpf_fs";
"bpf_fs";
never executed: return "bpf_fs";
0
139 case
never executed: case 0x42494E4D:
0x42494E4D:
never executed: case 0x42494E4D:
0
140 return
never executed: return "binfmt_misc";
"binfmt_misc";
never executed: return "binfmt_misc";
0
141 case
never executed: case 0x9123683E:
0x9123683E:
never executed: case 0x9123683E:
0
142 return
never executed: return "btrfs";
"btrfs";
never executed: return "btrfs";
0
143 case
never executed: case 0x73727279:
0x73727279:
never executed: case 0x73727279:
0
144 return
never executed: return "btrfs_test";
"btrfs_test";
never executed: return "btrfs_test";
0
145 case
never executed: case 0x00C36400:
0x00C36400:
never executed: case 0x00C36400:
0
146 return
never executed: return "ceph";
"ceph";
never executed: return "ceph";
0
147 case
never executed: case 0x0027E0EB:
0x0027E0EB:
never executed: case 0x0027E0EB:
0
148 return
never executed: return "cgroupfs";
"cgroupfs";
never executed: return "cgroupfs";
0
149 case
never executed: case 0x63677270:
0x63677270:
never executed: case 0x63677270:
0
150 return
never executed: return "cgroup2fs";
"cgroup2fs";
never executed: return "cgroup2fs";
0
151 case
never executed: case 0xFF534D42:
0xFF534D42:
never executed: case 0xFF534D42:
0
152 return
never executed: return "cifs";
"cifs";
never executed: return "cifs";
0
153 case
never executed: case 0x73757245:
0x73757245:
never executed: case 0x73757245:
0
154 return
never executed: return "coda";
"coda";
never executed: return "coda";
0
155 case
never executed: case 0x012FF7B7:
0x012FF7B7:
never executed: case 0x012FF7B7:
0
156 return
never executed: return "coh";
"coh";
never executed: return "coh";
0
157 case
never executed: case 0x62656570:
0x62656570:
never executed: case 0x62656570:
0
158 return
never executed: return "configfs";
"configfs";
never executed: return "configfs";
0
159 case
never executed: case 0x28CD3D45:
0x28CD3D45:
never executed: case 0x28CD3D45:
0
160 return
never executed: return "cramfs";
"cramfs";
never executed: return "cramfs";
0
161 case
never executed: case 0x453DCD28:
0x453DCD28:
never executed: case 0x453DCD28:
0
162 return
never executed: return "cramfs-wend";
"cramfs-wend";
never executed: return "cramfs-wend";
0
163 case
never executed: case 0x64646178:
0x64646178:
never executed: case 0x64646178:
0
164 return
never executed: return "daxfs";
"daxfs";
never executed: return "daxfs";
0
165 case
never executed: case 0x64626720:
0x64626720:
never executed: case 0x64626720:
0
166 return
never executed: return "debugfs";
"debugfs";
never executed: return "debugfs";
0
167 case
never executed: case 0x1373:
0x1373:
never executed: case 0x1373:
0
168 return
never executed: return "devfs";
"devfs";
never executed: return "devfs";
0
169 case
never executed: case 0x1CD1:
0x1CD1:
never executed: case 0x1CD1:
0
170 return
never executed: return "devpts";
"devpts";
never executed: return "devpts";
0
171 case
never executed: case 0xF15F:
0xF15F:
never executed: case 0xF15F:
0
172 return
never executed: return "ecryptfs";
"ecryptfs";
never executed: return "ecryptfs";
0
173 case
never executed: case 0xDE5E81E4:
0xDE5E81E4:
never executed: case 0xDE5E81E4:
0
174 return
never executed: return "efivarfs";
"efivarfs";
never executed: return "efivarfs";
0
175 case
never executed: case 0x00414A53:
0x00414A53:
never executed: case 0x00414A53:
0
176 return
never executed: return "efs";
"efs";
never executed: return "efs";
0
177 case
never executed: case 0x45584653:
0x45584653:
never executed: case 0x45584653:
0
178 return
never executed: return "exfs";
"exfs";
never executed: return "exfs";
0
179 case
never executed: case 0x5DF5:
0x5DF5:
never executed: case 0x5DF5:
0
180 return
never executed: return "exofs";
"exofs";
never executed: return "exofs";
0
181 case
never executed: case 0x137D:
0x137D:
never executed: case 0x137D:
0
182 return
never executed: return "ext";
"ext";
never executed: return "ext";
0
183 case
never executed: case 0xEF53:
0xEF53:
never executed: case 0xEF53:
0
184 return
never executed: return "ext2/ext3";
"ext2/ext3";
never executed: return "ext2/ext3";
0
185 case
never executed: case 0xEF51:
0xEF51:
never executed: case 0xEF51:
0
186 return
never executed: return "ext2";
"ext2";
never executed: return "ext2";
0
187 case
never executed: case 0xF2F52010:
0xF2F52010:
never executed: case 0xF2F52010:
0
188 return
never executed: return "f2fs";
"f2fs";
never executed: return "f2fs";
0
189 case
never executed: case 0x4006:
0x4006:
never executed: case 0x4006:
0
190 return
never executed: return "fat";
"fat";
never executed: return "fat";
0
191 case
never executed: case 0x19830326:
0x19830326:
never executed: case 0x19830326:
0
192 return
never executed: return "fhgfs";
"fhgfs";
never executed: return "fhgfs";
0
193 case
never executed: case 0x65735546:
0x65735546:
never executed: case 0x65735546:
0
194 return
never executed: return "fuseblk";
"fuseblk";
never executed: return "fuseblk";
0
195 case
never executed: case 0x65735543:
0x65735543:
never executed: case 0x65735543:
0
196 return
never executed: return "fusectl";
"fusectl";
never executed: return "fusectl";
0
197 case
never executed: case 0x0BAD1DEA:
0x0BAD1DEA:
never executed: case 0x0BAD1DEA:
0
198 return
never executed: return "futexfs";
"futexfs";
never executed: return "futexfs";
0
199 case
never executed: case 0x01161970:
0x01161970:
never executed: case 0x01161970:
0
200 return
never executed: return "gfs/gfs2";
"gfs/gfs2";
never executed: return "gfs/gfs2";
0
201 case
never executed: case 0x47504653:
0x47504653:
never executed: case 0x47504653:
0
202 return
never executed: return "gpfs";
"gpfs";
never executed: return "gpfs";
0
203 case
never executed: case 0x4244:
0x4244:
never executed: case 0x4244:
0
204 return
never executed: return "hfs";
"hfs";
never executed: return "hfs";
0
205 case
never executed: case 0x482B:
0x482B:
never executed: case 0x482B:
0
206 return
never executed: return "hfs+";
"hfs+";
never executed: return "hfs+";
0
207 case
never executed: case 0x4858:
0x4858:
never executed: case 0x4858:
0
208 return
never executed: return "hfsx";
"hfsx";
never executed: return "hfsx";
0
209 case
never executed: case 0x00C0FFEE:
0x00C0FFEE:
never executed: case 0x00C0FFEE:
0
210 return
never executed: return "hostfs";
"hostfs";
never executed: return "hostfs";
0
211 case
never executed: case 0xF995E849:
0xF995E849:
never executed: case 0xF995E849:
0
212 return
never executed: return "hpfs";
"hpfs";
never executed: return "hpfs";
0
213 case
never executed: case 0x958458F6:
0x958458F6:
never executed: case 0x958458F6:
0
214 return
never executed: return "hugetlbfs";
"hugetlbfs";
never executed: return "hugetlbfs";
0
215 case
never executed: case 0x11307854:
0x11307854:
never executed: case 0x11307854:
0
216 return
never executed: return "inodefs";
"inodefs";
never executed: return "inodefs";
0
217 case
never executed: case 0x013111A8:
0x013111A8:
never executed: case 0x013111A8:
0
218 return
never executed: return "ibrix";
"ibrix";
never executed: return "ibrix";
0
219 case
never executed: case 0x2BAD1DEA:
0x2BAD1DEA:
never executed: case 0x2BAD1DEA:
0
220 return
never executed: return "inotifyfs";
"inotifyfs";
never executed: return "inotifyfs";
0
221 case
never executed: case 0x9660:
0x9660:
never executed: case 0x9660:
0
222 return
never executed: return "isofs";
"isofs";
never executed: return "isofs";
0
223 case
never executed: case 0x4004:
0x4004:
never executed: case 0x4004:
0
224 return
never executed: return "isofs";
"isofs";
never executed: return "isofs";
0
225 case
never executed: case 0x4000:
0x4000:
never executed: case 0x4000:
0
226 return
never executed: return "isofs";
"isofs";
never executed: return "isofs";
0
227 case
never executed: case 0x07C0:
0x07C0:
never executed: case 0x07C0:
0
228 return
never executed: return "jffs";
"jffs";
never executed: return "jffs";
0
229 case
never executed: case 0x72B6:
0x72B6:
never executed: case 0x72B6:
0
230 return
never executed: return "jffs2";
"jffs2";
never executed: return "jffs2";
0
231 case
never executed: case 0x3153464A:
0x3153464A:
never executed: case 0x3153464A:
0
232 return
never executed: return "jfs";
"jfs";
never executed: return "jfs";
0
233 case
never executed: case 0x6B414653:
0x6B414653:
never executed: case 0x6B414653:
0
234 return
never executed: return "k-afs";
"k-afs";
never executed: return "k-afs";
0
235 case
never executed: case 0xC97E8168:
0xC97E8168:
never executed: case 0xC97E8168:
0
236 return
never executed: return "logfs";
"logfs";
never executed: return "logfs";
0
237 case
never executed: case 0x0BD00BD0:
0x0BD00BD0:
never executed: case 0x0BD00BD0:
0
238 return
never executed: return "lustre";
"lustre";
never executed: return "lustre";
0
239 case
never executed: case 0x5346314D:
0x5346314D:
never executed: case 0x5346314D:
0
240 return
never executed: return "m1fs";
"m1fs";
never executed: return "m1fs";
0
241 case
never executed: case 0x137F:
0x137F:
never executed: case 0x137F:
0
242 return
never executed: return "minix";
"minix";
never executed: return "minix";
0
243 case
never executed: case 0x138F:
0x138F:
never executed: case 0x138F:
0
244 return
never executed: return "minix (30 char.)";
"minix (30 char.)";
never executed: return "minix (30 char.)";
0
245 case
never executed: case 0x2468:
0x2468:
never executed: case 0x2468:
0
246 return
never executed: return "minix v2";
"minix v2";
never executed: return "minix v2";
0
247 case
never executed: case 0x2478:
0x2478:
never executed: case 0x2478:
0
248 return
never executed: return "minix v2 (30 char.)";
"minix v2 (30 char.)";
never executed: return "minix v2 (30 char.)";
0
249 case
never executed: case 0x4D5A:
0x4D5A:
never executed: case 0x4D5A:
0
250 return
never executed: return "minix3";
"minix3";
never executed: return "minix3";
0
251 case
never executed: case 0x19800202:
0x19800202:
never executed: case 0x19800202:
0
252 return
never executed: return "mqueue";
"mqueue";
never executed: return "mqueue";
0
253 case
never executed: case 0x4D44:
0x4D44:
never executed: case 0x4D44:
0
254 return
never executed: return "msdos";
"msdos";
never executed: return "msdos";
0
255 case
never executed: case 0x564C:
0x564C:
never executed: case 0x564C:
0
256 return
never executed: return "novell";
"novell";
never executed: return "novell";
0
257 case
never executed: case 0x6969:
0x6969:
never executed: case 0x6969:
0
258 return
never executed: return "nfs";
"nfs";
never executed: return "nfs";
0
259 case
never executed: case 0x6E667364:
0x6E667364:
never executed: case 0x6E667364:
0
260 return
never executed: return "nfsd";
"nfsd";
never executed: return "nfsd";
0
261 case
never executed: case 0x3434:
0x3434:
never executed: case 0x3434:
0
262 return
never executed: return "nilfs";
"nilfs";
never executed: return "nilfs";
0
263 case
never executed: case 0x6E736673:
0x6E736673:
never executed: case 0x6E736673:
0
264 return
never executed: return "nsfs";
"nsfs";
never executed: return "nsfs";
0
265 case
never executed: case 0x5346544E:
0x5346544E:
never executed: case 0x5346544E:
0
266 return
never executed: return "ntfs";
"ntfs";
never executed: return "ntfs";
0
267 case
never executed: case 0x9FA1:
0x9FA1:
never executed: case 0x9FA1:
0
268 return
never executed: return "openprom";
"openprom";
never executed: return "openprom";
0
269 case
never executed: case 0x7461636F:
0x7461636F:
never executed: case 0x7461636F:
0
270 return
never executed: return "ocfs2";
"ocfs2";
never executed: return "ocfs2";
0
271 case
never executed: case 0x794C7630:
0x794C7630:
never executed: case 0x794C7630:
0
272-
273-
274-
275 return
never executed: return "overlayfs";
"overlayfs";
never executed: return "overlayfs";
0
276 case
never executed: case 0xAAD7AAEA:
0xAAD7AAEA:
never executed: case 0xAAD7AAEA:
0
277 return
never executed: return "panfs";
"panfs";
never executed: return "panfs";
0
278 case
never executed: case 0x50495045:
0x50495045:
never executed: case 0x50495045:
0
279-
280-
281-
282 return
never executed: return "pipefs";
"pipefs";
never executed: return "pipefs";
0
283 case
never executed: case 0x7C7C6673:
0x7C7C6673:
never executed: case 0x7C7C6673:
0
284 return
never executed: return "prl_fs";
"prl_fs";
never executed: return "prl_fs";
0
285 case
never executed: case 0x9FA0:
0x9FA0:
never executed: case 0x9FA0:
0
286 return
never executed: return "proc";
"proc";
never executed: return "proc";
0
287 case
never executed: case 0x6165676C:
0x6165676C:
never executed: case 0x6165676C:
0
288 return
never executed: return "pstorefs";
"pstorefs";
never executed: return "pstorefs";
0
289 case
never executed: case 0x002F:
0x002F:
never executed: case 0x002F:
0
290 return
never executed: return "qnx4";
"qnx4";
never executed: return "qnx4";
0
291 case
never executed: case 0x68191122:
0x68191122:
never executed: case 0x68191122:
0
292 return
never executed: return "qnx6";
"qnx6";
never executed: return "qnx6";
0
293 case
never executed: case 0x858458F6:
0x858458F6:
never executed: case 0x858458F6:
0
294 return
never executed: return "ramfs";
"ramfs";
never executed: return "ramfs";
0
295 case
never executed: case 0x07655821:
0x07655821:
never executed: case 0x07655821:
0
296 return
never executed: return "rdt";
"rdt";
never executed: return "rdt";
0
297 case
never executed: case 0x52654973:
0x52654973:
never executed: case 0x52654973:
0
298 return
never executed: return "reiserfs";
"reiserfs";
never executed: return "reiserfs";
0
299 case
never executed: case 0x7275:
0x7275:
never executed: case 0x7275:
0
300 return
never executed: return "romfs";
"romfs";
never executed: return "romfs";
0
301 case
never executed: case 0x67596969:
0x67596969:
never executed: case 0x67596969:
0
302 return
never executed: return "rpc_pipefs";
"rpc_pipefs";
never executed: return "rpc_pipefs";
0
303 case
never executed: case 0x73636673:
0x73636673:
never executed: case 0x73636673:
0
304 return
never executed: return "securityfs";
"securityfs";
never executed: return "securityfs";
0
305 case
never executed: case 0xF97CFF8C:
0xF97CFF8C:
never executed: case 0xF97CFF8C:
0
306 return
never executed: return "selinux";
"selinux";
never executed: return "selinux";
0
307 case
never executed: case 0x43415D53:
0x43415D53:
never executed: case 0x43415D53:
0
308 return
never executed: return "smackfs";
"smackfs";
never executed: return "smackfs";
0
309 case
never executed: case 0x517B:
0x517B:
never executed: case 0x517B:
0
310 return
never executed: return "smb";
"smb";
never executed: return "smb";
0
311 case
never executed: case 0xFE534D42:
0xFE534D42:
never executed: case 0xFE534D42:
0
312 return
never executed: return "smb2";
"smb2";
never executed: return "smb2";
0
313 case
never executed: case 0xBEEFDEAD:
0xBEEFDEAD:
never executed: case 0xBEEFDEAD:
0
314 return
never executed: return "snfs";
"snfs";
never executed: return "snfs";
0
315 case
never executed: case 0x534F434B:
0x534F434B:
never executed: case 0x534F434B:
0
316 return
never executed: return "sockfs";
"sockfs";
never executed: return "sockfs";
0
317 case
never executed: case 0x73717368:
0x73717368:
never executed: case 0x73717368:
0
318 return
never executed: return "squashfs";
"squashfs";
never executed: return "squashfs";
0
319 case
never executed: case 0x62656572:
0x62656572:
never executed: case 0x62656572:
0
320 return
never executed: return "sysfs";
"sysfs";
never executed: return "sysfs";
0
321 case
never executed: case 0x012FF7B6:
0x012FF7B6:
never executed: case 0x012FF7B6:
0
322 return
never executed: return "sysv2";
"sysv2";
never executed: return "sysv2";
0
323 case
never executed: case 0x012FF7B5:
0x012FF7B5:
never executed: case 0x012FF7B5:
0
324 return
never executed: return "sysv4";
"sysv4";
never executed: return "sysv4";
0
325 case
never executed: case 0x01021994:
0x01021994:
never executed: case 0x01021994:
0
326 return
never executed: return "tmpfs";
"tmpfs";
never executed: return "tmpfs";
0
327 case
never executed: case 0x74726163:
0x74726163:
never executed: case 0x74726163:
0
328 return
never executed: return "tracefs";
"tracefs";
never executed: return "tracefs";
0
329 case
never executed: case 0x24051905:
0x24051905:
never executed: case 0x24051905:
0
330 return
never executed: return "ubifs";
"ubifs";
never executed: return "ubifs";
0
331 case
never executed: case 0x15013346:
0x15013346:
never executed: case 0x15013346:
0
332 return
never executed: return "udf";
"udf";
never executed: return "udf";
0
333 case
never executed: case 0x00011954:
0x00011954:
never executed: case 0x00011954:
0
334 return
never executed: return "ufs";
"ufs";
never executed: return "ufs";
0
335 case
never executed: case 0x54190100:
0x54190100:
never executed: case 0x54190100:
0
336 return
never executed: return "ufs";
"ufs";
never executed: return "ufs";
0
337 case
never executed: case 0x9FA2:
0x9FA2:
never executed: case 0x9FA2:
0
338 return
never executed: return "usbdevfs";
"usbdevfs";
never executed: return "usbdevfs";
0
339 case
never executed: case 0x01021997:
0x01021997:
never executed: case 0x01021997:
0
340 return
never executed: return "v9fs";
"v9fs";
never executed: return "v9fs";
0
341 case
never executed: case 0xBACBACBC:
0xBACBACBC:
never executed: case 0xBACBACBC:
0
342 return
never executed: return "vmhgfs";
"vmhgfs";
never executed: return "vmhgfs";
0
343 case
never executed: case 0xA501FCF5:
0xA501FCF5:
never executed: case 0xA501FCF5:
0
344-
345-
346 return
never executed: return "vxfs";
"vxfs";
never executed: return "vxfs";
0
347 case
never executed: case 0x565A4653:
0x565A4653:
never executed: case 0x565A4653:
0
348 return
never executed: return "vzfs";
"vzfs";
never executed: return "vzfs";
0
349 case
never executed: case 0x53464846:
0x53464846:
never executed: case 0x53464846:
0
350 return
never executed: return "wslfs";
"wslfs";
never executed: return "wslfs";
0
351 case
never executed: case 0xABBA1974:
0xABBA1974:
never executed: case 0xABBA1974:
0
352 return
never executed: return "xenfs";
"xenfs";
never executed: return "xenfs";
0
353 case
never executed: case 0x012FF7B4:
0x012FF7B4:
never executed: case 0x012FF7B4:
0
354 return
never executed: return "xenix";
"xenix";
never executed: return "xenix";
0
355 case
never executed: case 0x58465342:
0x58465342:
never executed: case 0x58465342:
0
356 return
never executed: return "xfs";
"xfs";
never executed: return "xfs";
0
357 case
never executed: case 0x012FD16D:
0x012FD16D:
never executed: case 0x012FD16D:
0
358 return
never executed: return "xia";
"xia";
never executed: return "xia";
0
359 case
never executed: case 0x2FC12FC1:
0x2FC12FC1:
never executed: case 0x2FC12FC1:
0
360 return
never executed: return "zfs";
"zfs";
never executed: return "zfs";
0
361 case
never executed: case 0x58295829:
0x58295829:
never executed: case 0x58295829:
0
362 return
never executed: return "zsmallocfs";
"zsmallocfs";
never executed: return "zsmallocfs";
0
363 default
never executed: default:
:
never executed: default:
0
364 {-
365 unsigned long int type = statfsbuf->f_type;-
366 static char buf[sizeof "UNKNOWN (0x%lx)" - 3-
367 + (sizeof type * 8 + 3) / 4];-
368 sprintf (buf, "UNKNOWN (0x%lx)", type);-
369 return
never executed: return buf;
buf;
never executed: return buf;
0
370 }-
371 }-
372-
373}-
374-
375static char * __attribute__ ((__warn_unused_result__))-
376human_access (struct stat const *statbuf)-
377{-
378 static char modebuf[12];-
379 filemodestring (statbuf, modebuf);-
380 modebuf[10] = 0;-
381 return
executed 50 times by 1 test: return modebuf;
Executed by:
  • stat
modebuf;
executed 50 times by 1 test: return modebuf;
Executed by:
  • stat
50
382}-
383-
384static char * __attribute__ ((__warn_unused_result__))-
385human_time (struct timespec t)-
386{-
387-
388-
389-
390 static char str[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)-
391 + (((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1)))-
392 + 1-
393 + sizeof "-MM-DD HH:MM:SS.NNNNNNNNN +"];-
394 static timezone_t tz;-
395 if (!tz
!tzDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
)
2-11
396 tz = tzalloc (getenv ("TZ"));
executed 11 times by 1 test: tz = tzalloc (getenv ("TZ"));
Executed by:
  • stat
11
397 struct tm tm;-
398 int ns = t.tv_nsec;-
399 if (localtime_rz (tz, &t.tv_sec, &tm)
localtime_rz (...t.tv_sec, &tm)Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-13
400 nstrftime (str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", &tm, tz, ns);
executed 13 times by 1 test: nstrftime (str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", &tm, tz, ns);
Executed by:
  • stat
13
401 else-
402 {-
403 char secbuf[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)];-
404 sprintf (str, "%s.%09d", timetostr (t.tv_sec, secbuf), ns);-
405 }
never executed: end of block
0
406 return
executed 13 times by 1 test: return str;
Executed by:
  • stat
str;
executed 13 times by 1 test: return str;
Executed by:
  • stat
13
407}-
408-
409-
410-
411-
412-
413static void-
414make_format (char *pformat, size_t prefix_len, char const *allowed_flags,-
415 char const *suffix)-
416{-
417 char *dst = pformat + 1;-
418 char const *src;-
419 char const *srclim = pformat + prefix_len;-
420 for (src = dst; src < srclim
src < srclimDescription
TRUEevaluated 1415 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1961 times by 1 test
Evaluated by:
  • stat
&&
1415-1961
421 (
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
__extension__ (__builtin_constant_p (
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 1415 times by 1 test
Evaluated by:
  • stat
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-1415
422 *src
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 1415 times by 1 test
Evaluated by:
  • stat
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-1415
423 )
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 1415 times by 1 test
Evaluated by:
  • stat
&& !__builtin_constant_p (
!__builtin_con...printf_flags )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-1415
424 printf_flags
!__builtin_con...printf_flags )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-711
425 )
!__builtin_con...printf_flags )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-711
426 *src
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-711
427 ) == '\0'
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
0-711
428 printf_flags
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
429 ,
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
430 *src
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
431 ) : __builtin_strchr (
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
432 printf_flags
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
433 ,
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
434 *src
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
435 )))
(__extension__...ags , *src )))Description
TRUEevaluated 704 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 711 times by 1 test
Evaluated by:
  • stat
704-711
436 ; src++)-
437 if (-
438 (
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
__extension__ (__builtin_constant_p (
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 704 times by 1 test
Evaluated by:
  • stat
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-704
439 *src
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 704 times by 1 test
Evaluated by:
  • stat
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-704
440 )
__builtin_constant_p ( *src )Description
TRUEnever evaluated
FALSEevaluated 704 times by 1 test
Evaluated by:
  • stat
&& !__builtin_constant_p (
!__builtin_con...llowed_flags )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-704
441 allowed_flags
!__builtin_con...llowed_flags )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-703
442 )
!__builtin_con...llowed_flags )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-703
443 *src
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-703
444 ) == '\0'
( *src ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-703
445 allowed_flags
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
446 ,
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
447 *src
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
448 ) : __builtin_strchr (
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
449 allowed_flags
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
450 ,
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
451 *src
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
452 )))
(__extension__...ags , *src )))Description
TRUEevaluated 703 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-703
453 )-
454 *
executed 703 times by 1 test: *dst++ = *src;
Executed by:
  • stat
dst++ = *src;
executed 703 times by 1 test: *dst++ = *src;
Executed by:
  • stat
703
455 while (src < srclim
src < srclimDescription
TRUEevaluated 718 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2672 times by 1 test
Evaluated by:
  • stat
)
718-2672
456 *
executed 718 times by 1 test: *dst++ = *src++;
Executed by:
  • stat
dst++ = *src++;
executed 718 times by 1 test: *dst++ = *src++;
Executed by:
  • stat
718
457 strcpy (dst, suffix);-
458}
executed 2672 times by 1 test: end of block
Executed by:
  • stat
2672
459-
460static void-
461out_string (char *pformat, size_t prefix_len, char const *arg)-
462{-
463 make_format (pformat, prefix_len, "-", "s");-
464 printf (pformat, arg);-
465}
executed 101 times by 1 test: end of block
Executed by:
  • stat
101
466static int-
467out_int (char *pformat, size_t prefix_len, intmax_t arg)-
468{-
469 make_format (pformat, prefix_len, "'-+ 0", -
470 "l" "d"-
471 );-
472 return
executed 2360 times by 1 test: return printf (pformat, arg);
Executed by:
  • stat
printf (pformat, arg);
executed 2360 times by 1 test: return printf (pformat, arg);
Executed by:
  • stat
2360
473}-
474static int-
475out_uint (char *pformat, size_t prefix_len, uintmax_t arg)-
476{-
477 make_format (pformat, prefix_len, "'-0", -
478 "l" "u"-
479 );-
480 return
executed 201 times by 1 test: return printf (pformat, arg);
Executed by:
  • stat
printf (pformat, arg);
executed 201 times by 1 test: return printf (pformat, arg);
Executed by:
  • stat
201
481}-
482static void-
483out_uint_o (char *pformat, size_t prefix_len, uintmax_t arg)-
484{-
485 make_format (pformat, prefix_len, "-#0", -
486 "l" "o"-
487 );-
488 printf (pformat, arg);-
489}
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
490static void-
491out_uint_x (char *pformat, size_t prefix_len, uintmax_t arg)-
492{-
493 make_format (pformat, prefix_len, "-#0", -
494 "l" "x"-
495 );-
496 printf (pformat, arg);-
497}
executed 9 times by 1 test: end of block
Executed by:
  • stat
9
498static int-
499out_minus_zero (char *pformat, size_t prefix_len)-
500{-
501 make_format (pformat, prefix_len, "'-+ 0", ".0f");-
502 return
never executed: return printf (pformat, -0.25);
printf (pformat, -0.25);
never executed: return printf (pformat, -0.25);
0
503}-
504-
505-
506-
507static void-
508out_epoch_sec (char *pformat, size_t prefix_len,-
509 struct stat const *statbuf __attribute__ ((__unused__)),-
510 struct timespec arg)-
511{-
512 char *dot = memchr (pformat, '.', prefix_len);-
513 size_t sec_prefix_len = prefix_len;-
514 int width = 0;-
515 int precision = 0;-
516 -
517 _Bool -
518 frac_left_adjust = -
519 0-
520 ;-
521-
522 if (dot
dotDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 15 times by 1 test
Evaluated by:
  • stat
)
13-15
523 {-
524 sec_prefix_len = dot - pformat;-
525 pformat[prefix_len] = '\0';-
526-
527 if (((
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
unsigned int) (dot[1]) - '0' <= 9)
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
1-12
528 {-
529 long int lprec = strtol (dot + 1, -
530 ((void *)0)-
531 , 10);-
532 precision = (lprec <= 0x7fffffff
lprec <= 0x7fffffffDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
? lprec : 0x7fffffff);
0-12
533 }
executed 12 times by 1 test: end of block
Executed by:
  • stat
12
534 else-
535 {-
536 precision = 9;-
537 }
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
538-
539 if (precision
precisionDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
&& ((
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 6 times by 1 test
Evaluated by:
  • stat
unsigned int) (dot[-1]) - '0' <= 9)
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 6 times by 1 test
Evaluated by:
  • stat
)
0-13
540 {-
541-
542-
543-
544 char *p = dot;-
545 *dot = '\0';-
546-
547 do-
548 --
executed 16 times by 1 test: --p;
Executed by:
  • stat
p;
executed 16 times by 1 test: --p;
Executed by:
  • stat
16
549 while (((
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 7 times by 1 test
Evaluated by:
  • stat
unsigned int) (p[-1]) - '0' <= 9)
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 7 times by 1 test
Evaluated by:
  • stat
);
7-9
550-
551 long int lwidth = strtol (p, -
552 ((void *)0)-
553 , 10);-
554 width = (lwidth <= 0x7fffffff
lwidth <= 0x7fffffffDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
? lwidth : 0x7fffffff);
0-7
555 if (1 < width
1 < widthDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-7
556 {-
557 p += (*p == '0');-
558 sec_prefix_len = p - pformat;-
559 int w_d = (decimal_point_len < width
decimal_point_len < widthDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-7
560 ? width - decimal_point_len-
561 : 0);-
562 if (1 < w_d
1 < w_dDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-7
563 {-
564 int w = w_d - precision;-
565 if (1 < w
1 < wDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-7
566 {-
567 char *dst = pformat;-
568 for (char const *src = dst; src < p
src < pDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 7 times by 1 test
Evaluated by:
  • stat
; src++)
7-12
569 {-
570 if (*
*src == '-'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
src == '-'
*src == '-'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
)
2-10
571 frac_left_adjust =
executed 2 times by 1 test: frac_left_adjust = 1 ;
Executed by:
  • stat
2
572 1
executed 2 times by 1 test: frac_left_adjust = 1 ;
Executed by:
  • stat
2
573 ;
executed 2 times by 1 test: frac_left_adjust = 1 ;
Executed by:
  • stat
2
574 else-
575 *
executed 10 times by 1 test: *dst++ = *src;
Executed by:
  • stat
dst++ = *src;
executed 10 times by 1 test: *dst++ = *src;
Executed by:
  • stat
10
576 }-
577 sec_prefix_len =-
578 (dst - pformat-
579 + (frac_left_adjust
frac_left_adjustDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 5 times by 1 test
Evaluated by:
  • stat
? 0 : sprintf (dst, "%d", w)));
2-5
580 }
executed 7 times by 1 test: end of block
Executed by:
  • stat
7
581 }
executed 7 times by 1 test: end of block
Executed by:
  • stat
7
582 }
executed 7 times by 1 test: end of block
Executed by:
  • stat
7
583 }
executed 7 times by 1 test: end of block
Executed by:
  • stat
7
584 }
executed 13 times by 1 test: end of block
Executed by:
  • stat
13
585-
586 int divisor = 1;-
587 for (int i = precision; i < 9
i < 9Description
TRUEevaluated 161 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 28 times by 1 test
Evaluated by:
  • stat
; i++)
28-161
588 divisor *= 10;
executed 161 times by 1 test: divisor *= 10;
Executed by:
  • stat
161
589 int frac_sec = arg.tv_nsec / divisor;-
590 int int_len;-
591-
592 if ((
(! ((time_t) 0 < (time_t) -1))Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
! ((time_t) 0 < (time_t) -1))
(! ((time_t) 0 < (time_t) -1))Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-28
593 {-
594 -
595 _Bool -
596 minus_zero = -
597 0-
598 ;-
599 if (arg.tv_sec < 0
arg.tv_sec < 0Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • stat
&& arg.tv_nsec != 0
arg.tv_nsec != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-28
600 {-
601 int frac_sec_modulus = 1000000000 / divisor;-
602 frac_sec = (frac_sec_modulus - frac_sec-
603 - (arg.tv_nsec % divisor != 0));-
604 arg.tv_sec += (frac_sec != 0);-
605 minus_zero = (arg.tv_sec == 0);-
606 }
never executed: end of block
0
607 int_len = (minus_zero
minus_zeroDescription
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • stat
0-28
608 ? out_minus_zero (pformat, sec_prefix_len)-
609 : out_int (pformat, sec_prefix_len, arg.tv_sec));-
610 }
executed 28 times by 1 test: end of block
Executed by:
  • stat
28
611 else-
612 int_len = out_uint (pformat, sec_prefix_len, arg.tv_sec);
never executed: int_len = out_uint (pformat, sec_prefix_len, arg.tv_sec);
0
613-
614 if (precision
precisionDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 15 times by 1 test
Evaluated by:
  • stat
)
13-15
615 {-
616 int prec = (precision < 9
precision < 9Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 7 times by 1 test
Evaluated by:
  • stat
? precision : 9);
6-7
617 int trailing_prec = precision - prec;-
618 int ilen = (int_len < 0
int_len < 0Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • stat
? 0 : int_len);
0-13
619 int trailing_width = (ilen < width
ilen < widthDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 6 times by 1 test
Evaluated by:
  • stat
&& decimal_point_len < width - ilen
decimal_point_...< width - ilenDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-7
620 ? width - ilen - decimal_point_len - prec-
621 : 0);-
622 printf ("%s%.*d%-*.*d", decimal_point, prec, frac_sec,-
623 trailing_width, trailing_prec, 0);-
624 }
executed 13 times by 1 test: end of block
Executed by:
  • stat
13
625}
executed 28 times by 1 test: end of block
Executed by:
  • stat
28
626-
627-
628-
629static -
630 _Bool -
631 __attribute__ ((__warn_unused_result__))-
632out_file_context (char *pformat, size_t prefix_len, char const *filename)-
633{-
634 char *scontext;-
635 -
636 _Bool -
637 fail = -
638 0-
639 ;-
640-
641 if ((
(follow_links ...scontext)) < 0Description
TRUEnever evaluated
FALSEnever evaluated
follow_links
follow_linksDescription
TRUEnever evaluated
FALSEnever evaluated
(follow_links ...scontext)) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
642 ? rpl_getfilecon (filename, &scontext)
(follow_links ...scontext)) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
643 : rpl_lgetfilecon (filename, &scontext)) < 0
(follow_links ...scontext)) < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
644 {-
645 error (0, -
646 (*__errno_location ())-
647 , -
648 dcgettext (((void *)0), -
649 "failed to get security context of %s"-
650 , 5)-
651 ,-
652 quotearg_style (shell_escape_always_quoting_style, filename));-
653 scontext = -
654 ((void *)0)-
655 ;-
656 fail = -
657 1-
658 ;-
659 }
never executed: end of block
0
660 strcpy (pformat + prefix_len, "s");-
661 printf (pformat, (scontext ? scontext : "?"));-
662 if (scontext
scontextDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
663 freecon (scontext);
never executed: freecon (scontext);
0
664 return
never executed: return fail;
fail;
never executed: return fail;
0
665}-
666-
667-
668static -
669 _Bool -
670 __attribute__ ((__warn_unused_result__))-
671print_statfs (char *pformat, size_t prefix_len, unsigned int m,-
672 int fd, char const *filename,-
673 void const *data)-
674{-
675 struct statfs const *statfsbuf = data;-
676 -
677 _Bool -
678 fail = -
679 0-
680 ;-
681-
682 switch (m)-
683 {-
684 case
never executed: case 'n':
'n':
never executed: case 'n':
0
685 out_string (pformat, prefix_len, filename);-
686 break;
never executed: break;
0
687-
688 case
never executed: case 'i':
'i':
never executed: case 'i':
0
689 {-
690-
691-
692-
693 typedef unsigned int fsid_word;-
694 _Static_assert (-
695 _Alignof -
696 (struct statfs) % -
697 _Alignof -
698 (fsid_word) == 0, "verify (" "alignof (STRUCT_STATVFS) % alignof (fsid_word) == 0" ")");-
699 _Static_assert (-
700 __builtin_offsetof (-
701 struct statfs-
702 , -
703 f_fsid-
704 ) -
705 % -
706 _Alignof -
707 (fsid_word) == 0, "verify (" "offsetof (STRUCT_STATVFS, f_fsid) % alignof (fsid_word) == 0" ")");-
708 _Static_assert (sizeof statfsbuf->f_fsid % -
709 _Alignof -
710 (fsid_word) == 0, "verify (" "sizeof statfsbuf->f_fsid % alignof (fsid_word) == 0" ")");-
711 fsid_word const *p = (fsid_word *) &statfsbuf->f_fsid;-
712-
713-
714-
715 uintmax_t fsid = 0;-
716 int words = sizeof statfsbuf->f_fsid / sizeof *p;-
717 for (int i = 0; i < words
i < wordsDescription
TRUEnever evaluated
FALSEnever evaluated
&& i * sizeof *p < sizeof fsid
i * sizeof *p < sizeof fsidDescription
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
718 {-
719 uintmax_t u = p[words - 1 - i];-
720 fsid |= u << (i * 8 * sizeof *p);-
721 }
never executed: end of block
0
722-
723 out_uint_x (pformat, prefix_len, fsid);-
724 }-
725 break;
never executed: break;
0
726-
727 case
executed 3 times by 1 test: case 'l':
Executed by:
  • stat
'l':
executed 3 times by 1 test: case 'l':
Executed by:
  • stat
3
728 out_uint (pformat, prefix_len, ((statfsbuf)->f_namelen));-
729 break;
executed 3 times by 1 test: break;
Executed by:
  • stat
3
730 case
never executed: case 't':
't':
never executed: case 't':
0
731-
732 out_uint_x (pformat, prefix_len, statfsbuf->f_type);-
733-
734-
735-
736 break;
never executed: break;
0
737 case
never executed: case 'T':
'T':
never executed: case 'T':
0
738 out_string (pformat, prefix_len, human_fstype (statfsbuf));-
739 break;
never executed: break;
0
740 case
never executed: case 'b':
'b':
never executed: case 'b':
0
741 out_int (pformat, prefix_len, statfsbuf->f_blocks);-
742 break;
never executed: break;
0
743 case
never executed: case 'f':
'f':
never executed: case 'f':
0
744 out_int (pformat, prefix_len, statfsbuf->f_bfree);-
745 break;
never executed: break;
0
746 case
never executed: case 'a':
'a':
never executed: case 'a':
0
747 out_int (pformat, prefix_len, statfsbuf->f_bavail);-
748 break;
never executed: break;
0
749 case
executed 1 time by 1 test: case 's':
Executed by:
  • stat
's':
executed 1 time by 1 test: case 's':
Executed by:
  • stat
1
750 out_uint (pformat, prefix_len, statfsbuf->f_bsize);-
751 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
752 case
never executed: case 'S':
'S':
never executed: case 'S':
0
753 {-
754 uintmax_t frsize = ((statfsbuf)->f_frsize);-
755 if (! frsize
! frsizeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
756 frsize = statfsbuf->f_bsize;
never executed: frsize = statfsbuf->f_bsize;
0
757 out_uint (pformat, prefix_len, frsize);-
758 }-
759 break;
never executed: break;
0
760 case
never executed: case 'c':
'c':
never executed: case 'c':
0
761 out_uint (pformat, prefix_len, statfsbuf->f_files);-
762 break;
never executed: break;
0
763 case
never executed: case 'd':
'd':
never executed: case 'd':
0
764 out_int (pformat, prefix_len, statfsbuf->f_ffree);-
765 break;
never executed: break;
0
766 default
never executed: default:
:
never executed: default:
0
767 fputc_unlocked ('?',-
768 stdout-
769 );-
770 break;
never executed: break;
0
771 }-
772 return
executed 4 times by 1 test: return fail;
Executed by:
  • stat
fail;
executed 4 times by 1 test: return fail;
Executed by:
  • stat
4
773}-
774-
775-
776-
777-
778static char const * __attribute__ ((__warn_unused_result__))-
779find_bind_mount (char const * name)-
780{-
781 char const * bind_mount = -
782 ((void *)0)-
783 ;-
784-
785 static struct mount_entry *mount_list;-
786 static -
787 _Bool -
788 tried_mount_list = -
789 0-
790 ;-
791 if (!tried_mount_list
!tried_mount_listDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
1
792 {-
793 if (!(mount_list = read_file_system_list (
!(mount_list =...em_list ( 0 ))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-1
794 0
!(mount_list =...em_list ( 0 ))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
0-1
795 ))
!(mount_list =...em_list ( 0 ))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
0-1
796 error (0,
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
797 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
798 , "%s",
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
799 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
800 "cannot read table of mounted file systems"
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
801 , 5)
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
802 );
never executed: error (0, (*__errno_location ()) , "%s", dcgettext (((void *)0), "cannot read table of mounted file systems" , 5) );
0
803 tried_mount_list = -
804 1-
805 ;-
806 }
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
807-
808 struct stat name_stats;-
809 if (stat (name, &name_stats) != 0
stat (name, &name_stats) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
)
0-2
810 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
811 ((void *)0)
never executed: return ((void *)0) ;
0
812 ;
never executed: return ((void *)0) ;
0
813-
814 struct mount_entry *me;-
815 for (me = mount_list; me
meDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
; me = me->me_next)
2-52
816 {-
817 if (me->me_dummy
me->me_dummyDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 40 times by 1 test
Evaluated by:
  • stat
&& me->me_devname[0] == '/'
me->me_devname[0] == '/'Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • stat
0-40
818 && (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
819 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
820 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
821 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
822 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
823 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
824 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
825 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
826 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
827 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
828 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
829 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
830 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
831 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
832 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
833 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
834 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
835 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
836 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
837 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
838 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
839 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
840 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
841 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
842 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
843 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
844 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
845 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
846 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
847 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
848 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
849 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
850 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
851 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
852 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
853 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
854 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
855 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
856 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
857 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
858 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
859 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
860 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
861 ))[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
FALSEnever evaluated
0
862 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
863 ))[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
FALSEnever evaluated
0
864 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
865 ))[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 *) ( me->me_mountdir ))[3] - __s2[3]);
0
866 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]);
0
867 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
868 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
869 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
870 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
871 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
872 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
873 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
874 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
875 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
876 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
877 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
878 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
879 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
880 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
881 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
882 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
883 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
884 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
885 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
886 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
887 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
888 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
889 ))[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
FALSEnever evaluated
0
890 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
891 ))[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
FALSEnever evaluated
0
892 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
893 ))[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 *) ( name ))[3] - __s2[3]);
0
894 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]);
0
895 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
896 me->me_mountdir
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
897 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
898 name
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
899 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
900 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
901 {-
902 struct stat dev_stats;-
903-
904 if (stat (me->me_devname, &dev_stats) == 0
stat (me->me_d...ev_stats) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
905 && ((
(name_stats).s..._stats).st_inoDescription
TRUEnever evaluated
FALSEnever evaluated
name_stats).st_ino == (dev_stats).st_ino
(name_stats).s..._stats).st_inoDescription
TRUEnever evaluated
FALSEnever evaluated
&& (
(name_stats).s..._stats).st_devDescription
TRUEnever evaluated
FALSEnever evaluated
name_stats).st_dev == (dev_stats).st_dev
(name_stats).s..._stats).st_devDescription
TRUEnever evaluated
FALSEnever evaluated
))
0
906 {-
907 bind_mount = me->me_devname;-
908 break;
never executed: break;
0
909 }-
910 }
never executed: end of block
0
911 }
executed 52 times by 1 test: end of block
Executed by:
  • stat
52
912-
913 return
executed 2 times by 1 test: return bind_mount;
Executed by:
  • stat
bind_mount;
executed 2 times by 1 test: return bind_mount;
Executed by:
  • stat
2
914}-
915-
916-
917static -
918 _Bool -
919 __attribute__ ((__warn_unused_result__))-
920out_mount_point (char const *filename, char *pformat, size_t prefix_len,-
921 const struct stat *statp)-
922{-
923-
924 char const *np = "?", *bp = -
925 ((void *)0)-
926 ;-
927 char *mp = -
928 ((void *)0)-
929 ;-
930 -
931 _Bool -
932 fail = -
933 1-
934 ;-
935-
936-
937-
938 if (follow_links
follow_linksDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
|| !
! (((( statp->... == (0120000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-1
939 ((((
! (((( statp->... == (0120000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-1
940 statp->st_mode
! (((( statp->... == (0120000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-1
941 )) & 0170000) == (0120000))
! (((( statp->... == (0120000))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
0-1
942 )-
943 {-
944 char *resolved = canonicalize_file_name (filename);-
945 if (!resolved
!resolvedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
0-1
946 {-
947 error (0, -
948 (*__errno_location ())-
949 , -
950 dcgettext (((void *)0), -
951 "failed to canonicalize %s"-
952 , 5)-
953 , quotearg_style (shell_escape_always_quoting_style, filename));-
954 goto
never executed: goto print_mount_point;
print_mount_point;
never executed: goto print_mount_point;
0
955 }-
956 bp = find_bind_mount (resolved);-
957 free (resolved);-
958 if (bp
bpDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
0-1
959 {-
960 fail = -
961 0-
962 ;-
963 goto
never executed: goto print_mount_point;
print_mount_point;
never executed: goto print_mount_point;
0
964 }-
965 }
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
966-
967-
968-
969-
970-
971-
972 if ((
(mp = find_mou...ename, statp))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
mp = find_mount_point (filename, statp))
(mp = find_mou...ename, statp))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-1
973 {-
974-
975-
976 bp = find_bind_mount (mp);-
977 fail = -
978 0-
979 ;-
980 }
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
981-
982print_mount_point:
code before this statement executed 1 time by 1 test: print_mount_point:
Executed by:
  • stat
1
983-
984 out_string (pformat, prefix_len, bp ? bp : mp ? mp : np);-
985 free (mp);-
986 return
executed 1 time by 1 test: return fail;
Executed by:
  • stat
fail;
executed 1 time by 1 test: return fail;
Executed by:
  • stat
1
987}-
988-
989static struct timespec-
990get_birthtime (int fd, char const *filename, struct stat const *st)-
991{-
992 struct timespec ts = get_stat_birthtime (st);-
993 return
executed 6 times by 1 test: return ts;
Executed by:
  • stat
ts;
executed 6 times by 1 test: return ts;
Executed by:
  • stat
6
994}-
995-
996-
997static inline struct timespec-
998neg_to_zero (struct timespec ts)-
999{-
1000 if (0 <= ts.tv_nsec
0 <= ts.tv_nsecDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • stat
)
0-5
1001 return
never executed: return ts;
ts;
never executed: return ts;
0
1002 struct timespec z = {0, 0};-
1003 return
executed 5 times by 1 test: return z;
Executed by:
  • stat
z;
executed 5 times by 1 test: return z;
Executed by:
  • stat
5
1004}-
1005-
1006-
1007-
1008-
1009static void-
1010getenv_quoting_style (void)-
1011{-
1012 char const *q_style = getenv ("QUOTING_STYLE");-
1013 if (q_style
q_styleDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
)
1
1014 {-
1015 int i = argmatch (q_style, quoting_style_args, (char const *) (quoting_style_vals), sizeof *(quoting_style_vals));-
1016 if (0 <= i
0 <= iDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-1
1017 set_quoting_style (
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);
Executed by:
  • stat
1
1018 ((void *)0)
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);
Executed by:
  • stat
1
1019 , quoting_style_vals[i]);
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);
Executed by:
  • stat
1
1020 else-
1021 {-
1022 set_quoting_style (-
1023 ((void *)0)-
1024 , shell_escape_always_quoting_style);-
1025 error (0, 0, -
1026 dcgettext (((void *)0), -
1027 "ignoring invalid value of environment " "variable QUOTING_STYLE: %s"-
1028 , 5)-
1029 -
1030 , quote (q_style));-
1031 }
never executed: end of block
0
1032 }-
1033 else-
1034 set_quoting_style (
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , shell_escape_always_quoting_style);
Executed by:
  • stat
1
1035 ((void *)0)
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , shell_escape_always_quoting_style);
Executed by:
  • stat
1
1036 , shell_escape_always_quoting_style);
executed 1 time by 1 test: set_quoting_style ( ((void *)0) , shell_escape_always_quoting_style);
Executed by:
  • stat
1
1037}-
1038-
1039-
1040-
1041-
1042-
1043static -
1044 _Bool-
1045-
1046print_stat (char *pformat, size_t prefix_len, unsigned int m,-
1047 int fd, char const *filename, void const *data)-
1048{-
1049 struct stat *statbuf = (struct stat *) data;-
1050 struct passwd *pw_ent;-
1051 struct group *gw_ent;-
1052 -
1053 _Bool -
1054 fail = -
1055 0-
1056 ;-
1057-
1058 switch (m)-
1059 {-
1060 case
executed 7 times by 1 test: case 'n':
Executed by:
  • stat
'n':
executed 7 times by 1 test: case 'n':
Executed by:
  • stat
7
1061 out_string (pformat, prefix_len, filename);-
1062 break;
executed 7 times by 1 test: break;
Executed by:
  • stat
7
1063 case
executed 3 times by 1 test: case 'N':
Executed by:
  • stat
'N':
executed 3 times by 1 test: case 'N':
Executed by:
  • stat
3
1064 out_string (pformat, prefix_len, quotearg_style (get_quoting_style (-
1065 ((void *)0)-
1066 ), filename));-
1067 if (-
1068 ((((
(((( statbuf->... == (0120000))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • stat
0-3
1069 statbuf->st_mode
(((( statbuf->... == (0120000))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • stat
0-3
1070 )) & 0170000) == (0120000))
(((( statbuf->... == (0120000))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • stat
0-3
1071 )-
1072 {-
1073 char *linkname = areadlink_with_size (filename, statbuf->st_size);-
1074 if (linkname ==
linkname == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1075 ((void *)0)
linkname == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1076 )-
1077 {-
1078 error (0, -
1079 (*__errno_location ())-
1080 , -
1081 dcgettext (((void *)0), -
1082 "cannot read symbolic link %s"-
1083 , 5)-
1084 ,-
1085 quotearg_style (shell_escape_always_quoting_style, filename));-
1086 return
never executed: return 1 ;
never executed: return 1 ;
0
1087 1
never executed: return 1 ;
0
1088 ;
never executed: return 1 ;
0
1089 }-
1090 printf (" -> ");-
1091 out_string (pformat, prefix_len, quotearg_style (get_quoting_style (-
1092 ((void *)0)-
1093 ), linkname));-
1094 free (linkname);-
1095 }
never executed: end of block
0
1096 break;
executed 3 times by 1 test: break;
Executed by:
  • stat
3
1097 case
executed 65 times by 1 test: case 'd':
Executed by:
  • stat
'd':
executed 65 times by 1 test: case 'd':
Executed by:
  • stat
65
1098 out_uint (pformat, prefix_len, statbuf->st_dev);-
1099 break;
executed 65 times by 1 test: break;
Executed by:
  • stat
65
1100 case
executed 1 time by 1 test: case 'D':
Executed by:
  • stat
'D':
executed 1 time by 1 test: case 'D':
Executed by:
  • stat
1
1101 out_uint_x (pformat, prefix_len, statbuf->st_dev);-
1102 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1103 case
executed 68 times by 1 test: case 'i':
Executed by:
  • stat
'i':
executed 68 times by 1 test: case 'i':
Executed by:
  • stat
68
1104 out_uint (pformat, prefix_len, statbuf->st_ino);-
1105 break;
executed 68 times by 1 test: break;
Executed by:
  • stat
68
1106 case
executed 1 time by 1 test: case 'a':
Executed by:
  • stat
'a':
executed 1 time by 1 test: case 'a':
Executed by:
  • stat
1
1107 out_uint_o (pformat, prefix_len, statbuf->st_mode & (-
1108 04000 -
1109 | -
1110 02000 -
1111 | -
1112 01000 -
1113 | -
1114 (0400|0200|0100) -
1115 | -
1116 ((0400|0200|0100) >> 3) -
1117 | -
1118 (((0400|0200|0100) >> 3) >> 3)-
1119 ));-
1120 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1121 case
executed 50 times by 1 test: case 'A':
Executed by:
  • stat
'A':
executed 50 times by 1 test: case 'A':
Executed by:
  • stat
50
1122 out_string (pformat, prefix_len, human_access (statbuf));-
1123 break;
executed 50 times by 1 test: break;
Executed by:
  • stat
50
1124 case
executed 8 times by 1 test: case 'f':
Executed by:
  • stat
'f':
executed 8 times by 1 test: case 'f':
Executed by:
  • stat
8
1125 out_uint_x (pformat, prefix_len, statbuf->st_mode);-
1126 break;
executed 8 times by 1 test: break;
Executed by:
  • stat
8
1127 case
executed 24 times by 1 test: case 'F':
Executed by:
  • stat
'F':
executed 24 times by 1 test: case 'F':
Executed by:
  • stat
24
1128 out_string (pformat, prefix_len, file_type (statbuf));-
1129 break;
executed 24 times by 1 test: break;
Executed by:
  • stat
24
1130 case
executed 2 times by 1 test: case 'h':
Executed by:
  • stat
'h':
executed 2 times by 1 test: case 'h':
Executed by:
  • stat
2
1131 out_uint (pformat, prefix_len, statbuf->st_nlink);-
1132 break;
executed 2 times by 1 test: break;
Executed by:
  • stat
2
1133 case
executed 2 times by 1 test: case 'u':
Executed by:
  • stat
'u':
executed 2 times by 1 test: case 'u':
Executed by:
  • stat
2
1134 out_uint (pformat, prefix_len, statbuf->st_uid);-
1135 break;
executed 2 times by 1 test: break;
Executed by:
  • stat
2
1136 case
executed 1 time by 1 test: case 'U':
Executed by:
  • stat
'U':
executed 1 time by 1 test: case 'U':
Executed by:
  • stat
1
1137 pw_ent = getpwuid (statbuf->st_uid);-
1138 out_string (pformat, prefix_len,-
1139 pw_ent ? pw_ent->pw_name : "UNKNOWN");-
1140 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1141 case
executed 31 times by 1 test: case 'g':
Executed by:
  • stat
'g':
executed 31 times by 1 test: case 'g':
Executed by:
  • stat
31
1142 out_uint (pformat, prefix_len, statbuf->st_gid);-
1143 break;
executed 31 times by 1 test: break;
Executed by:
  • stat
31
1144 case
executed 1 time by 1 test: case 'G':
Executed by:
  • stat
'G':
executed 1 time by 1 test: case 'G':
Executed by:
  • stat
1
1145 gw_ent = getgrgid (statbuf->st_gid);-
1146 out_string (pformat, prefix_len,-
1147 gw_ent ? gw_ent->gr_name : "UNKNOWN");-
1148 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1149 case
never executed: case 't':
't':
never executed: case 't':
0
1150 out_uint_x (pformat, prefix_len, -
1151 gnu_dev_major (-
1152 statbuf->st_rdev-
1153 )-
1154 );-
1155 break;
never executed: break;
0
1156 case
executed 1 time by 1 test: case 'm':
Executed by:
  • stat
'm':
executed 1 time by 1 test: case 'm':
Executed by:
  • stat
1
1157 fail |= out_mount_point (filename, pformat, prefix_len, statbuf);-
1158 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1159 case
never executed: case 'T':
'T':
never executed: case 'T':
0
1160 out_uint_x (pformat, prefix_len, -
1161 gnu_dev_minor (-
1162 statbuf->st_rdev-
1163 )-
1164 );-
1165 break;
never executed: break;
0
1166 case
executed 2332 times by 1 test: case 's':
Executed by:
  • stat
's':
executed 2332 times by 1 test: case 's':
Executed by:
  • stat
2332
1167 out_int (pformat, prefix_len, statbuf->st_size);-
1168 break;
executed 2332 times by 1 test: break;
Executed by:
  • stat
2332
1169 case
executed 8 times by 1 test: case 'B':
Executed by:
  • stat
'B':
executed 8 times by 1 test: case 'B':
Executed by:
  • stat
8
1170 out_uint (pformat, prefix_len, -
1171 512-
1172 );-
1173 break;
executed 8 times by 1 test: break;
Executed by:
  • stat
8
1174 case
executed 19 times by 1 test: case 'b':
Executed by:
  • stat
'b':
executed 19 times by 1 test: case 'b':
Executed by:
  • stat
19
1175 out_uint (pformat, prefix_len, ((*statbuf).st_blocks));-
1176 break;
executed 19 times by 1 test: break;
Executed by:
  • stat
19
1177 case
executed 2 times by 1 test: case 'o':
Executed by:
  • stat
'o':
executed 2 times by 1 test: case 'o':
Executed by:
  • stat
2
1178 out_uint (pformat, prefix_len, ((0 < (*statbuf).st_blksize && (*statbuf).st_blksize <= ((size_t)-1) / 8 + 1) ? (*statbuf).st_blksize : -
1179 512-
1180 ));-
1181 break;
executed 2 times by 1 test: break;
Executed by:
  • stat
2
1182 case
executed 1 time by 1 test: case 'w':
Executed by:
  • stat
'w':
executed 1 time by 1 test: case 'w':
Executed by:
  • stat
1
1183 {-
1184 struct timespec t = get_birthtime (fd, filename, statbuf);-
1185 if (t.tv_nsec < 0
t.tv_nsec < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
)
0-1
1186 out_string (pformat, prefix_len, "-");
executed 1 time by 1 test: out_string (pformat, prefix_len, "-");
Executed by:
  • stat
1
1187 else-
1188 out_string (pformat, prefix_len, human_time (t));
never executed: out_string (pformat, prefix_len, human_time (t));
0
1189 }-
1190 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1191 case
executed 5 times by 1 test: case 'W':
Executed by:
  • stat
'W':
executed 5 times by 1 test: case 'W':
Executed by:
  • stat
5
1192 out_epoch_sec (pformat, prefix_len, statbuf,-
1193 neg_to_zero (get_birthtime (fd, filename, statbuf)));-
1194 break;
executed 5 times by 1 test: break;
Executed by:
  • stat
5
1195 case
executed 1 time by 1 test: case 'x':
Executed by:
  • stat
'x':
executed 1 time by 1 test: case 'x':
Executed by:
  • stat
1
1196 out_string (pformat, prefix_len, human_time (get_stat_atime (statbuf)));-
1197 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1198 case
executed 18 times by 1 test: case 'X':
Executed by:
  • stat
'X':
executed 18 times by 1 test: case 'X':
Executed by:
  • stat
18
1199 out_epoch_sec (pformat, prefix_len, statbuf, get_stat_atime (statbuf));-
1200 break;
executed 18 times by 1 test: break;
Executed by:
  • stat
18
1201 case
executed 11 times by 1 test: case 'y':
Executed by:
  • stat
'y':
executed 11 times by 1 test: case 'y':
Executed by:
  • stat
11
1202 out_string (pformat, prefix_len, human_time (get_stat_mtime (statbuf)));-
1203 break;
executed 11 times by 1 test: break;
Executed by:
  • stat
11
1204 case
executed 3 times by 1 test: case 'Y':
Executed by:
  • stat
'Y':
executed 3 times by 1 test: case 'Y':
Executed by:
  • stat
3
1205 out_epoch_sec (pformat, prefix_len, statbuf, get_stat_mtime (statbuf));-
1206 break;
executed 3 times by 1 test: break;
Executed by:
  • stat
3
1207 case
executed 1 time by 1 test: case 'z':
Executed by:
  • stat
'z':
executed 1 time by 1 test: case 'z':
Executed by:
  • stat
1
1208 out_string (pformat, prefix_len, human_time (get_stat_ctime (statbuf)));-
1209 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1210 case
executed 2 times by 1 test: case 'Z':
Executed by:
  • stat
'Z':
executed 2 times by 1 test: case 'Z':
Executed by:
  • stat
2
1211 out_epoch_sec (pformat, prefix_len, statbuf, get_stat_ctime (statbuf));-
1212 break;
executed 2 times by 1 test: break;
Executed by:
  • stat
2
1213 case
never executed: case 'C':
'C':
never executed: case 'C':
0
1214 fail |= out_file_context (pformat, prefix_len, filename);-
1215 break;
never executed: break;
0
1216 default
never executed: default:
:
never executed: default:
0
1217 fputc_unlocked ('?',-
1218 stdout-
1219 );-
1220 break;
never executed: break;
0
1221 }-
1222 return
executed 2668 times by 1 test: return fail;
Executed by:
  • stat
fail;
executed 2668 times by 1 test: return fail;
Executed by:
  • stat
2668
1223}-
1224-
1225-
1226-
1227static void-
1228print_esc_char (char c)-
1229{-
1230 switch (c)-
1231 {-
1232 case
executed 1 time by 1 test: case 'a':
Executed by:
  • stat
'a':
executed 1 time by 1 test: case 'a':
Executed by:
  • stat
1
1233 c ='\a';-
1234 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1235 case
executed 1 time by 1 test: case 'b':
Executed by:
  • stat
'b':
executed 1 time by 1 test: case 'b':
Executed by:
  • stat
1
1236 c ='\b';-
1237 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1238 case
never executed: case 'e':
'e':
never executed: case 'e':
0
1239 c ='\x1B';-
1240 break;
never executed: break;
0
1241 case
executed 1 time by 1 test: case 'f':
Executed by:
  • stat
'f':
executed 1 time by 1 test: case 'f':
Executed by:
  • stat
1
1242 c ='\f';-
1243 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1244 case
executed 3 times by 1 test: case 'n':
Executed by:
  • stat
'n':
executed 3 times by 1 test: case 'n':
Executed by:
  • stat
3
1245 c ='\n';-
1246 break;
executed 3 times by 1 test: break;
Executed by:
  • stat
3
1247 case
executed 1 time by 1 test: case 'r':
Executed by:
  • stat
'r':
executed 1 time by 1 test: case 'r':
Executed by:
  • stat
1
1248 c ='\r';-
1249 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1250 case
executed 1 time by 1 test: case 't':
Executed by:
  • stat
't':
executed 1 time by 1 test: case 't':
Executed by:
  • stat
1
1251 c ='\t';-
1252 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1253 case
never executed: case 'v':
'v':
never executed: case 'v':
0
1254 c ='\v';-
1255 break;
never executed: break;
0
1256 case
never executed: case '"':
'"':
never executed: case '"':
0
1257 case
executed 1 time by 1 test: case '\\':
Executed by:
  • stat
'\\':
executed 1 time by 1 test: case '\\':
Executed by:
  • stat
1
1258 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1259 default
executed 1 time by 1 test: default:
Executed by:
  • stat
:
executed 1 time by 1 test: default:
Executed by:
  • stat
1
1260 error (0, 0, -
1261 dcgettext (((void *)0), -
1262 "warning: unrecognized escape '\\%c'"-
1263 , 5)-
1264 , c);-
1265 break;
executed 1 time by 1 test: break;
Executed by:
  • stat
1
1266 }-
1267 putchar_unlocked (c);-
1268}
executed 10 times by 1 test: end of block
Executed by:
  • stat
10
1269-
1270-
1271-
1272-
1273static -
1274 _Bool -
1275 __attribute__ ((__warn_unused_result__))-
1276print_it (char const *format, int fd, char const *filename,-
1277 -
1278 _Bool -
1279 (*print_func) (char *, size_t, unsigned int,-
1280 int, char const *, void const *),-
1281 void const *data)-
1282{-
1283 -
1284 _Bool -
1285 fail = -
1286 0-
1287 ;-
1288-
1289-
1290-
1291 enum-
1292 {-
1293 MAX_ADDITIONAL_BYTES =-
1294 (-
1295 (((-
1296 sizeof -
1297 "l" "d")>((((-
1298 sizeof -
1299 "l" "o")>((((-
1300 sizeof -
1301 "l" "u")>(-
1302 sizeof -
1303 "l" "x"))?(-
1304 sizeof -
1305 "l" "u"):(-
1306 sizeof -
1307 "l" "x"))))?(-
1308 sizeof -
1309 "l" "o"):((((-
1310 sizeof -
1311 "l" "u")>(-
1312 sizeof -
1313 "l" "x"))?(-
1314 sizeof -
1315 "l" "u"):(-
1316 sizeof -
1317 "l" "x"))))))?(-
1318 sizeof -
1319 "l" "d"):((((-
1320 sizeof -
1321 "l" "o")>((((-
1322 sizeof -
1323 "l" "u")>(-
1324 sizeof -
1325 "l" "x"))?(-
1326 sizeof -
1327 "l" "u"):(-
1328 sizeof -
1329 "l" "x"))))?(-
1330 sizeof -
1331 "l" "o"):((((-
1332 sizeof -
1333 "l" "u")>(-
1334 sizeof -
1335 "l" "x"))?(-
1336 sizeof -
1337 "l" "u"):(-
1338 sizeof -
1339 "l" "x"))))))-
1340-
1341 -
1342 - 1)-
1343 };-
1344 size_t n_alloc = strlen (format) + MAX_ADDITIONAL_BYTES + 1;-
1345 char *dest = xmalloc (n_alloc);-
1346 char const *b;-
1347 for (b = format; *
*bDescription
TRUEevaluated 4160 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2696 times by 1 test
Evaluated by:
  • stat
b
*bDescription
TRUEevaluated 4160 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2696 times by 1 test
Evaluated by:
  • stat
; b++)
2696-4160
1348 {-
1349 switch (*b)-
1350 {-
1351 case
executed 2726 times by 1 test: case '%':
Executed by:
  • stat
'%':
executed 2726 times by 1 test: case '%':
Executed by:
  • stat
2726
1352 {-
1353 size_t len = -
1354 __builtin_strspn (-
1355 b + 1-
1356 , -
1357 printf_flags-
1358 )-
1359 ;-
1360 char const *fmt_char = b + len + 1;-
1361 fmt_char += -
1362 __builtin_strspn (-
1363 fmt_char-
1364 , -
1365 digits-
1366 )-
1367 ;-
1368 if (*
*fmt_char == '.'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2712 times by 1 test
Evaluated by:
  • stat
fmt_char == '.'
*fmt_char == '.'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2712 times by 1 test
Evaluated by:
  • stat
)
14-2712
1369 fmt_char += 1 +
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1370 __builtin_strspn (
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1371 fmt_char + 1
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1372 ,
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1373 digits
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1374 )
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1375 ;
executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;
Executed by:
  • stat
14
1376 len = fmt_char - (b + 1);-
1377 unsigned int fmt_code = *fmt_char;-
1378 memcpy (dest, b, len + 1);-
1379-
1380 b = fmt_char;-
1381 switch (fmt_code)-
1382 {-
1383 case
executed 52 times by 1 test: case '\0':
Executed by:
  • stat
'\0':
executed 52 times by 1 test: case '\0':
Executed by:
  • stat
52
1384 --b;-
1385 ((void) 0);-
1386 case
executed 2 times by 1 test: case '%':
Executed by:
  • stat
'%':
executed 2 times by 1 test: case '%':
Executed by:
  • stat
code before this statement executed 52 times by 1 test: case '%':
Executed by:
  • stat
2-52
1387 if (0 < len
0 < lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 52 times by 1 test
Evaluated by:
  • stat
)
2-52
1388 {-
1389 dest[len + 1] = *fmt_char;-
1390 dest[len + 2] = '\0';-
1391 ((!!sizeof (struct { _Static_assert (-
1392 1-
1393 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: invalid directive\", 5), quote (dest)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1394 1-
1395 , 0, -
1396 dcgettext (((void *)0), -
1397 "%s: invalid directive"-
1398 , 5)-
1399 , quote (dest)), ((-
1400 0-
1401 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1402 1-
1403 , 0, -
1404 dcgettext (((void *)0), -
1405 "%s: invalid directive"-
1406 , 5)-
1407 , quote (dest)), ((-
1408 0-
1409 ) ? (void) 0 : __builtin_unreachable ()))))-
1410 ;-
1411 }
never executed: end of block
0
1412 putchar_unlocked ('%');-
1413 break;
executed 52 times by 1 test: break;
Executed by:
  • stat
52
1414 default
executed 2672 times by 1 test: default:
Executed by:
  • stat
:
executed 2672 times by 1 test: default:
Executed by:
  • stat
2672
1415 fail |= print_func (dest, len + 1, fmt_code,-
1416 fd, filename, data);-
1417 break;
executed 2672 times by 1 test: break;
Executed by:
  • stat
2672
1418 }-
1419 break;
executed 2724 times by 1 test: break;
Executed by:
  • stat
2724
1420 }-
1421-
1422 case
executed 22 times by 1 test: case '\\':
Executed by:
  • stat
'\\':
executed 22 times by 1 test: case '\\':
Executed by:
  • stat
22
1423 if ( ! interpret_backslash_escapes
! interpret_backslash_escapesDescription
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • stat
)
0-22
1424 {-
1425 putchar_unlocked ('\\');-
1426 break;
never executed: break;
0
1427 }-
1428 ++b;-
1429 if (('0' <= (*b)
'0' <= (*b)Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
&& (*
(*b) <= '7'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 14 times by 1 test
Evaluated by:
  • stat
b) <= '7'
(*b) <= '7'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 14 times by 1 test
Evaluated by:
  • stat
))
1-21
1430 {-
1431 int esc_value = ((*b) - '0');-
1432 int esc_length = 1;-
1433 for (++b; esc_length < 3
esc_length < 3Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
&& ('0' <= (*b)
'0' <= (*b)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 3 times by 1 test
Evaluated by:
  • stat
&& (*
(*b) <= '7'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
b) <= '7'
(*b) <= '7'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
);
0-11
1434 ++esc_length, ++b)-
1435 {-
1436 esc_value = esc_value * 8 + ((*b) - '0');-
1437 }
executed 8 times by 1 test: end of block
Executed by:
  • stat
8
1438 putchar_unlocked (esc_value);-
1439 --b;-
1440 }
executed 7 times by 1 test: end of block
Executed by:
  • stat
7
1441 else if (*
*b == 'x'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
b == 'x'
*b == 'x'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
&&
5-10
1442 ((*
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-4
1443 to_uchar (b[1])
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-4
1444 ))] & (unsigned short int) _ISxdigit)
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 1 time by 1 test
Evaluated by:
  • stat
1-4
1445 )-
1446 {-
1447 int esc_value = ((
(b[1]) >= 'a'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
b[1]) >= 'a'
(b[1]) >= 'a'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
&& (
(b[1]) <= 'f'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
b[1]) <= 'f'
(b[1]) <= 'f'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEnever evaluated
? (b[1]) - 'a' + 10 : (
(b[1]) >= 'A'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
b[1]) >= 'A'
(b[1]) >= 'A'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
&& (
(b[1]) <= 'F'Description
TRUEnever evaluated
FALSEnever evaluated
b[1]) <= 'F'
(b[1]) <= 'F'Description
TRUEnever evaluated
FALSEnever evaluated
? (b[1]) - 'A' + 10 : (b[1]) - '0');
0-2
1448-
1449-
1450 ++b;-
1451 if (-
1452 ((*
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
2
1453 to_uchar (b[1])
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
2
1454 ))] & (unsigned short int) _ISxdigit)
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • stat
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
2
1455 )-
1456 {-
1457 ++b;-
1458 esc_value = esc_value * 16 + ((*
(*b) >= 'a'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
b) >= 'a'
(*b) >= 'a'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
&& (*
(*b) <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
b) <= 'f'
(*b) <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
? (*b) - 'a' + 10 : (*
(*b) >= 'A'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
b) >= 'A'
(*b) >= 'A'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • stat
&& (*
(*b) <= 'F'Description
TRUEnever evaluated
FALSEnever evaluated
b) <= 'F'
(*b) <= 'F'Description
TRUEnever evaluated
FALSEnever evaluated
? (*b) - 'A' + 10 : (*b) - '0');
0-2
1459 }
executed 2 times by 1 test: end of block
Executed by:
  • stat
2
1460 putchar_unlocked (esc_value);-
1461 }
executed 4 times by 1 test: end of block
Executed by:
  • stat
4
1462 else if (*
*b == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
b == '\0'
*b == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 10 times by 1 test
Evaluated by:
  • stat
)
1-10
1463 {-
1464 error (0, 0, -
1465 dcgettext (((void *)0), -
1466 "warning: backslash at end of format"-
1467 , 5)-
1468 );-
1469 putchar_unlocked ('\\');-
1470-
1471 --b;-
1472 }
executed 1 time by 1 test: end of block
Executed by:
  • stat
1
1473 else-
1474 {-
1475 print_esc_char (*b);-
1476 }
executed 10 times by 1 test: end of block
Executed by:
  • stat
10
1477 break;
executed 22 times by 1 test: break;
Executed by:
  • stat
22
1478-
1479 default
executed 1412 times by 1 test: default:
Executed by:
  • stat
:
executed 1412 times by 1 test: default:
Executed by:
  • stat
1412
1480 putchar_unlocked (*b);-
1481 break;
executed 1412 times by 1 test: break;
Executed by:
  • stat
1412
1482 }-
1483 }-
1484 free (dest);-
1485-
1486 fputs_unlocked (trailing_delim,-
1487 stdout-
1488 );-
1489-
1490 return
executed 2696 times by 1 test: return fail;
Executed by:
  • stat
fail;
executed 2696 times by 1 test: return fail;
Executed by:
  • stat
2696
1491}-
1492-
1493-
1494static -
1495 _Bool -
1496 __attribute__ ((__warn_unused_result__))-
1497do_statfs (char const *filename, char const *format)-
1498{-
1499 struct statfs statfsbuf;-
1500-
1501 if ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1502 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1503 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1504 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1505 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1506 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1507 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1508 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1509 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1510 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1511 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1512 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1513 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1514 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1515 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1516 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1517 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1518 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1519 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1520 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1521 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1522 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1523 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1524 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1525 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1526 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1527 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1528 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1529 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1530 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1531 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1532 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1533 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1534 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1535 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1536 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1537 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1538 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1539 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1540 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1541 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1542 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1543 filename
( __extension_...)))); }) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • stat
FALSEevaluated 4 times by 1 test
Evaluated by:
  • stat
1-4
1544 ))[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 *) (