| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/stat.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | static char const digits[] = "0123456789"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | static char const printf_flags[] = "'-+ #0I"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | static char const fmt_terse_fs[] = "%n %i %l %t %s %S %b %f %a %c %d\n"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | static char const fmt_terse_regular[] = "%n %s %b %f %u %g %D %i %h %t %T" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | " %X %Y %Z %W %o\n"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | static 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 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | enum | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | PRINTF_OPTION = 0x7f + 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | }; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | static 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 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | follow_links; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | interpret_backslash_escapes; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | static char const *trailing_delim = ""; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | static char const *decimal_point; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | static size_t decimal_point_len; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | static char const * __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | human_fstype (struct statfs const *statfsbuf) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | switch (statfsbuf->f_type) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | case never executed: 0x5A3C69F0:case 0x5A3C69F0:never executed: case 0x5A3C69F0: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | return never executed: "aafs";return "aafs";never executed: return "aafs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | case never executed: 0x61636673:case 0x61636673:never executed: case 0x61636673: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | return never executed: "acfs";return "acfs";never executed: return "acfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | case never executed: 0xADF5:case 0xADF5:never executed: case 0xADF5: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | return never executed: "adfs";return "adfs";never executed: return "adfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | case never executed: 0xADFF:case 0xADFF:never executed: case 0xADFF: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | return never executed: "affs";return "affs";never executed: return "affs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | case never executed: 0x5346414F:case 0x5346414F:never executed: case 0x5346414F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | return never executed: "afs";return "afs";never executed: return "afs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | case never executed: 0x09041934:case 0x09041934:never executed: case 0x09041934: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | return never executed: "anon-inode FS";return "anon-inode FS";never executed: return "anon-inode FS"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | case never executed: 0x61756673:case 0x61756673:never executed: case 0x61756673: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | return never executed: "aufs";return "aufs";never executed: return "aufs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | case never executed: 0x0187:case 0x0187:never executed: case 0x0187: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | return never executed: "autofs";return "autofs";never executed: return "autofs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | case never executed: 0x13661366:case 0x13661366:never executed: case 0x13661366: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | return never executed: "balloon-kvm-fs";return "balloon-kvm-fs";never executed: return "balloon-kvm-fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | case never executed: 0x42465331:case 0x42465331:never executed: case 0x42465331: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | return never executed: "befs";return "befs";never executed: return "befs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | case never executed: 0x62646576:case 0x62646576:never executed: case 0x62646576: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | return never executed: "bdevfs";return "bdevfs";never executed: return "bdevfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | case never executed: 0x1BADFACE:case 0x1BADFACE:never executed: case 0x1BADFACE: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | return never executed: "bfs";return "bfs";never executed: return "bfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | case never executed: 0xCAFE4A11:case 0xCAFE4A11:never executed: case 0xCAFE4A11: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | return never executed: "bpf_fs";return "bpf_fs";never executed: return "bpf_fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | case never executed: 0x42494E4D:case 0x42494E4D:never executed: case 0x42494E4D: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | return never executed: "binfmt_misc";return "binfmt_misc";never executed: return "binfmt_misc"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | case never executed: 0x9123683E:case 0x9123683E:never executed: case 0x9123683E: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | return never executed: "btrfs";return "btrfs";never executed: return "btrfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | case never executed: 0x73727279:case 0x73727279:never executed: case 0x73727279: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | return never executed: "btrfs_test";return "btrfs_test";never executed: return "btrfs_test"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | case never executed: 0x00C36400:case 0x00C36400:never executed: case 0x00C36400: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | return never executed: "ceph";return "ceph";never executed: return "ceph"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | case never executed: 0x0027E0EB:case 0x0027E0EB:never executed: case 0x0027E0EB: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | return never executed: "cgroupfs";return "cgroupfs";never executed: return "cgroupfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | case never executed: 0x63677270:case 0x63677270:never executed: case 0x63677270: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | return never executed: "cgroup2fs";return "cgroup2fs";never executed: return "cgroup2fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | case never executed: 0xFF534D42:case 0xFF534D42:never executed: case 0xFF534D42: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | return never executed: "cifs";return "cifs";never executed: return "cifs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | case never executed: 0x73757245:case 0x73757245:never executed: case 0x73757245: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | return never executed: "coda";return "coda";never executed: return "coda"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | case never executed: 0x012FF7B7:case 0x012FF7B7:never executed: case 0x012FF7B7: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | return never executed: "coh";return "coh";never executed: return "coh"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | case never executed: 0x62656570:case 0x62656570:never executed: case 0x62656570: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | return never executed: "configfs";return "configfs";never executed: return "configfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | case never executed: 0x28CD3D45:case 0x28CD3D45:never executed: case 0x28CD3D45: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | return never executed: "cramfs";return "cramfs";never executed: return "cramfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | case never executed: 0x453DCD28:case 0x453DCD28:never executed: case 0x453DCD28: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | return never executed: "cramfs-wend";return "cramfs-wend";never executed: return "cramfs-wend"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | case never executed: 0x64646178:case 0x64646178:never executed: case 0x64646178: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | return never executed: "daxfs";return "daxfs";never executed: return "daxfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | case never executed: 0x64626720:case 0x64626720:never executed: case 0x64626720: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | return never executed: "debugfs";return "debugfs";never executed: return "debugfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | case never executed: 0x1373:case 0x1373:never executed: case 0x1373: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | return never executed: "devfs";return "devfs";never executed: return "devfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | case never executed: 0x1CD1:case 0x1CD1:never executed: case 0x1CD1: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | return never executed: "devpts";return "devpts";never executed: return "devpts"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | case never executed: 0xF15F:case 0xF15F:never executed: case 0xF15F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | return never executed: "ecryptfs";return "ecryptfs";never executed: return "ecryptfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | case never executed: 0xDE5E81E4:case 0xDE5E81E4:never executed: case 0xDE5E81E4: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | return never executed: "efivarfs";return "efivarfs";never executed: return "efivarfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | case never executed: 0x00414A53:case 0x00414A53:never executed: case 0x00414A53: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | return never executed: "efs";return "efs";never executed: return "efs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | case never executed: 0x45584653:case 0x45584653:never executed: case 0x45584653: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | return never executed: "exfs";return "exfs";never executed: return "exfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | case never executed: 0x5DF5:case 0x5DF5:never executed: case 0x5DF5: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | return never executed: "exofs";return "exofs";never executed: return "exofs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | case never executed: 0x137D:case 0x137D:never executed: case 0x137D: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | return never executed: "ext";return "ext";never executed: return "ext"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | case never executed: 0xEF53:case 0xEF53:never executed: case 0xEF53: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | return never executed: "ext2/ext3";return "ext2/ext3";never executed: return "ext2/ext3"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | case never executed: 0xEF51:case 0xEF51:never executed: case 0xEF51: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | return never executed: "ext2";return "ext2";never executed: return "ext2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | case never executed: 0xF2F52010:case 0xF2F52010:never executed: case 0xF2F52010: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | return never executed: "f2fs";return "f2fs";never executed: return "f2fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | case never executed: 0x4006:case 0x4006:never executed: case 0x4006: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | return never executed: "fat";return "fat";never executed: return "fat"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | case never executed: 0x19830326:case 0x19830326:never executed: case 0x19830326: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | return never executed: "fhgfs";return "fhgfs";never executed: return "fhgfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | case never executed: 0x65735546:case 0x65735546:never executed: case 0x65735546: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | return never executed: "fuseblk";return "fuseblk";never executed: return "fuseblk"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | case never executed: 0x65735543:case 0x65735543:never executed: case 0x65735543: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | return never executed: "fusectl";return "fusectl";never executed: return "fusectl"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | case never executed: 0x0BAD1DEA:case 0x0BAD1DEA:never executed: case 0x0BAD1DEA: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | return never executed: "futexfs";return "futexfs";never executed: return "futexfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | case never executed: 0x01161970:case 0x01161970:never executed: case 0x01161970: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | return never executed: "gfs/gfs2";return "gfs/gfs2";never executed: return "gfs/gfs2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | case never executed: 0x47504653:case 0x47504653:never executed: case 0x47504653: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | return never executed: "gpfs";return "gpfs";never executed: return "gpfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | case never executed: 0x4244:case 0x4244:never executed: case 0x4244: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | return never executed: "hfs";return "hfs";never executed: return "hfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | case never executed: 0x482B:case 0x482B:never executed: case 0x482B: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | return never executed: "hfs+";return "hfs+";never executed: return "hfs+"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | case never executed: 0x4858:case 0x4858:never executed: case 0x4858: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | return never executed: "hfsx";return "hfsx";never executed: return "hfsx"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | case never executed: 0x00C0FFEE:case 0x00C0FFEE:never executed: case 0x00C0FFEE: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | return never executed: "hostfs";return "hostfs";never executed: return "hostfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | case never executed: 0xF995E849:case 0xF995E849:never executed: case 0xF995E849: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | return never executed: "hpfs";return "hpfs";never executed: return "hpfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | case never executed: 0x958458F6:case 0x958458F6:never executed: case 0x958458F6: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | return never executed: "hugetlbfs";return "hugetlbfs";never executed: return "hugetlbfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | case never executed: 0x11307854:case 0x11307854:never executed: case 0x11307854: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | return never executed: "inodefs";return "inodefs";never executed: return "inodefs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | case never executed: 0x013111A8:case 0x013111A8:never executed: case 0x013111A8: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | return never executed: "ibrix";return "ibrix";never executed: return "ibrix"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | case never executed: 0x2BAD1DEA:case 0x2BAD1DEA:never executed: case 0x2BAD1DEA: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | return never executed: "inotifyfs";return "inotifyfs";never executed: return "inotifyfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | case never executed: 0x9660:case 0x9660:never executed: case 0x9660: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | return never executed: "isofs";return "isofs";never executed: return "isofs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | case never executed: 0x4004:case 0x4004:never executed: case 0x4004: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | return never executed: "isofs";return "isofs";never executed: return "isofs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | case never executed: 0x4000:case 0x4000:never executed: case 0x4000: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | return never executed: "isofs";return "isofs";never executed: return "isofs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | case never executed: 0x07C0:case 0x07C0:never executed: case 0x07C0: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | return never executed: "jffs";return "jffs";never executed: return "jffs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | case never executed: 0x72B6:case 0x72B6:never executed: case 0x72B6: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | return never executed: "jffs2";return "jffs2";never executed: return "jffs2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | case never executed: 0x3153464A:case 0x3153464A:never executed: case 0x3153464A: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | return never executed: "jfs";return "jfs";never executed: return "jfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | case never executed: 0x6B414653:case 0x6B414653:never executed: case 0x6B414653: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | return never executed: "k-afs";return "k-afs";never executed: return "k-afs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | case never executed: 0xC97E8168:case 0xC97E8168:never executed: case 0xC97E8168: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | return never executed: "logfs";return "logfs";never executed: return "logfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | case never executed: 0x0BD00BD0:case 0x0BD00BD0:never executed: case 0x0BD00BD0: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | return never executed: "lustre";return "lustre";never executed: return "lustre"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | case never executed: 0x5346314D:case 0x5346314D:never executed: case 0x5346314D: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | return never executed: "m1fs";return "m1fs";never executed: return "m1fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | case never executed: 0x137F:case 0x137F:never executed: case 0x137F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | return never executed: "minix";return "minix";never executed: return "minix"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | case never executed: 0x138F:case 0x138F:never executed: case 0x138F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | return never executed: "minix (30 char.)";return "minix (30 char.)";never executed: return "minix (30 char.)"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | case never executed: 0x2468:case 0x2468:never executed: case 0x2468: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | return never executed: "minix v2";return "minix v2";never executed: return "minix v2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | case never executed: 0x2478:case 0x2478:never executed: case 0x2478: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | return never executed: "minix v2 (30 char.)";return "minix v2 (30 char.)";never executed: return "minix v2 (30 char.)"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | case never executed: 0x4D5A:case 0x4D5A:never executed: case 0x4D5A: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | return never executed: "minix3";return "minix3";never executed: return "minix3"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | case never executed: 0x19800202:case 0x19800202:never executed: case 0x19800202: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | return never executed: "mqueue";return "mqueue";never executed: return "mqueue"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | case never executed: 0x4D44:case 0x4D44:never executed: case 0x4D44: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | return never executed: "msdos";return "msdos";never executed: return "msdos"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | case never executed: 0x564C:case 0x564C:never executed: case 0x564C: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | return never executed: "novell";return "novell";never executed: return "novell"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | case never executed: 0x6969:case 0x6969:never executed: case 0x6969: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | return never executed: "nfs";return "nfs";never executed: return "nfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | case never executed: 0x6E667364:case 0x6E667364:never executed: case 0x6E667364: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | return never executed: "nfsd";return "nfsd";never executed: return "nfsd"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | case never executed: 0x3434:case 0x3434:never executed: case 0x3434: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | return never executed: "nilfs";return "nilfs";never executed: return "nilfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | case never executed: 0x6E736673:case 0x6E736673:never executed: case 0x6E736673: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | return never executed: "nsfs";return "nsfs";never executed: return "nsfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | case never executed: 0x5346544E:case 0x5346544E:never executed: case 0x5346544E: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | return never executed: "ntfs";return "ntfs";never executed: return "ntfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | case never executed: 0x9FA1:case 0x9FA1:never executed: case 0x9FA1: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | return never executed: "openprom";return "openprom";never executed: return "openprom"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | case never executed: 0x7461636F:case 0x7461636F:never executed: case 0x7461636F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | return never executed: "ocfs2";return "ocfs2";never executed: return "ocfs2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | case never executed: 0x794C7630:case 0x794C7630:never executed: case 0x794C7630: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | return never executed: "overlayfs";return "overlayfs";never executed: return "overlayfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | case never executed: 0xAAD7AAEA:case 0xAAD7AAEA:never executed: case 0xAAD7AAEA: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | return never executed: "panfs";return "panfs";never executed: return "panfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | case never executed: 0x50495045:case 0x50495045:never executed: case 0x50495045: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | return never executed: "pipefs";return "pipefs";never executed: return "pipefs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | case never executed: 0x7C7C6673:case 0x7C7C6673:never executed: case 0x7C7C6673: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | return never executed: "prl_fs";return "prl_fs";never executed: return "prl_fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | case never executed: 0x9FA0:case 0x9FA0:never executed: case 0x9FA0: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | return never executed: "proc";return "proc";never executed: return "proc"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | case never executed: 0x6165676C:case 0x6165676C:never executed: case 0x6165676C: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | return never executed: "pstorefs";return "pstorefs";never executed: return "pstorefs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | case never executed: 0x002F:case 0x002F:never executed: case 0x002F: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | return never executed: "qnx4";return "qnx4";never executed: return "qnx4"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | case never executed: 0x68191122:case 0x68191122:never executed: case 0x68191122: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | return never executed: "qnx6";return "qnx6";never executed: return "qnx6"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | case never executed: 0x858458F6:case 0x858458F6:never executed: case 0x858458F6: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | return never executed: "ramfs";return "ramfs";never executed: return "ramfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | case never executed: 0x07655821:case 0x07655821:never executed: case 0x07655821: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | return never executed: "rdt";return "rdt";never executed: return "rdt"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | case never executed: 0x52654973:case 0x52654973:never executed: case 0x52654973: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | return never executed: "reiserfs";return "reiserfs";never executed: return "reiserfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | case never executed: 0x7275:case 0x7275:never executed: case 0x7275: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | return never executed: "romfs";return "romfs";never executed: return "romfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | case never executed: 0x67596969:case 0x67596969:never executed: case 0x67596969: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | return never executed: "rpc_pipefs";return "rpc_pipefs";never executed: return "rpc_pipefs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | case never executed: 0x73636673:case 0x73636673:never executed: case 0x73636673: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | return never executed: "securityfs";return "securityfs";never executed: return "securityfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | case never executed: 0xF97CFF8C:case 0xF97CFF8C:never executed: case 0xF97CFF8C: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | return never executed: "selinux";return "selinux";never executed: return "selinux"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | case never executed: 0x43415D53:case 0x43415D53:never executed: case 0x43415D53: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | return never executed: "smackfs";return "smackfs";never executed: return "smackfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | case never executed: 0x517B:case 0x517B:never executed: case 0x517B: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | return never executed: "smb";return "smb";never executed: return "smb"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | case never executed: 0xFE534D42:case 0xFE534D42:never executed: case 0xFE534D42: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | return never executed: "smb2";return "smb2";never executed: return "smb2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | case never executed: 0xBEEFDEAD:case 0xBEEFDEAD:never executed: case 0xBEEFDEAD: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | return never executed: "snfs";return "snfs";never executed: return "snfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | case never executed: 0x534F434B:case 0x534F434B:never executed: case 0x534F434B: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | return never executed: "sockfs";return "sockfs";never executed: return "sockfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | case never executed: 0x73717368:case 0x73717368:never executed: case 0x73717368: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | return never executed: "squashfs";return "squashfs";never executed: return "squashfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | case never executed: 0x62656572:case 0x62656572:never executed: case 0x62656572: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | return never executed: "sysfs";return "sysfs";never executed: return "sysfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | case never executed: 0x012FF7B6:case 0x012FF7B6:never executed: case 0x012FF7B6: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | return never executed: "sysv2";return "sysv2";never executed: return "sysv2"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | case never executed: 0x012FF7B5:case 0x012FF7B5:never executed: case 0x012FF7B5: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | return never executed: "sysv4";return "sysv4";never executed: return "sysv4"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | case never executed: 0x01021994:case 0x01021994:never executed: case 0x01021994: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | return never executed: "tmpfs";return "tmpfs";never executed: return "tmpfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | case never executed: 0x74726163:case 0x74726163:never executed: case 0x74726163: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | return never executed: "tracefs";return "tracefs";never executed: return "tracefs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | case never executed: 0x24051905:case 0x24051905:never executed: case 0x24051905: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | return never executed: "ubifs";return "ubifs";never executed: return "ubifs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | case never executed: 0x15013346:case 0x15013346:never executed: case 0x15013346: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | return never executed: "udf";return "udf";never executed: return "udf"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | case never executed: 0x00011954:case 0x00011954:never executed: case 0x00011954: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | return never executed: "ufs";return "ufs";never executed: return "ufs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | case never executed: 0x54190100:case 0x54190100:never executed: case 0x54190100: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | return never executed: "ufs";return "ufs";never executed: return "ufs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | case never executed: 0x9FA2:case 0x9FA2:never executed: case 0x9FA2: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | return never executed: "usbdevfs";return "usbdevfs";never executed: return "usbdevfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | case never executed: 0x01021997:case 0x01021997:never executed: case 0x01021997: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | return never executed: "v9fs";return "v9fs";never executed: return "v9fs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | case never executed: 0xBACBACBC:case 0xBACBACBC:never executed: case 0xBACBACBC: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | return never executed: "vmhgfs";return "vmhgfs";never executed: return "vmhgfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | case never executed: 0xA501FCF5:case 0xA501FCF5:never executed: case 0xA501FCF5: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | return never executed: "vxfs";return "vxfs";never executed: return "vxfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | case never executed: 0x565A4653:case 0x565A4653:never executed: case 0x565A4653: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | return never executed: "vzfs";return "vzfs";never executed: return "vzfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | case never executed: 0x53464846:case 0x53464846:never executed: case 0x53464846: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | return never executed: "wslfs";return "wslfs";never executed: return "wslfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | case never executed: 0xABBA1974:case 0xABBA1974:never executed: case 0xABBA1974: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | return never executed: "xenfs";return "xenfs";never executed: return "xenfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | case never executed: 0x012FF7B4:case 0x012FF7B4:never executed: case 0x012FF7B4: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | return never executed: "xenix";return "xenix";never executed: return "xenix"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | case never executed: 0x58465342:case 0x58465342:never executed: case 0x58465342: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | return never executed: "xfs";return "xfs";never executed: return "xfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | case never executed: 0x012FD16D:case 0x012FD16D:never executed: case 0x012FD16D: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | return never executed: "xia";return "xia";never executed: return "xia"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | case never executed: 0x2FC12FC1:case 0x2FC12FC1:never executed: case 0x2FC12FC1: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | return never executed: "zfs";return "zfs";never executed: return "zfs"; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | case never executed: 0x58295829:case 0x58295829:never executed: case 0x58295829: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | return never executed: "zsmallocfs";return "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: buf;return buf;never executed: return buf; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | static char * __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | human_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: modebuf;return modebuf;Executed by:
executed 50 times by 1 test: return modebuf;Executed by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | static char * __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | human_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
| 2-11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | tz = tzalloc (getenv ("TZ")); executed 11 times by 1 test: tz = tzalloc (getenv ("TZ"));Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | struct tm tm; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | int ns = t.tv_nsec; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | if (localtime_rz (tz, &t.tv_sec, &tm)
| 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:
| 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: str;return str;Executed by:
executed 13 times by 1 test: return str;Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | make_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
| 1415-1961 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | (
| 0-1415 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | *src
| 0-1415 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | )
| 0-1415 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | printf_flags
| 0-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | )
| 0-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | *src
| 0-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | ) == '\0'
| 0-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | printf_flags
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | ,
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | *src
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | ) : __builtin_strchr (
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | printf_flags
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | ,
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | *src
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | )))
| 704-711 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | ; src++) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | (
| 0-704 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | *src
| 0-704 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | )
| 0-704 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | allowed_flags
| 0-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | )
| 0-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | *src
| 0-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | ) == '\0'
| 0-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | allowed_flags
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | ,
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | *src
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | ) : __builtin_strchr (
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | allowed_flags
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | ,
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | *src
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | )))
| 1-703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | * executed 703 times by 1 test: dst++ = *src;*dst++ = *src;Executed by:
executed 703 times by 1 test: *dst++ = *src;Executed by:
| 703 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | while (src < srclim
| 718-2672 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | * executed 718 times by 1 test: dst++ = *src++;*dst++ = *src++;Executed by:
executed 718 times by 1 test: *dst++ = *src++;Executed by:
| 718 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | strcpy (dst, suffix); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | } executed 2672 times by 1 test: end of blockExecuted by:
| 2672 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | out_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 blockExecuted by:
| 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | out_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: printf (pformat, arg);return printf (pformat, arg);Executed by:
executed 2360 times by 1 test: return printf (pformat, arg);Executed by:
| 2360 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | out_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: printf (pformat, arg);return printf (pformat, arg);Executed by:
executed 201 times by 1 test: return printf (pformat, arg);Executed by:
| 201 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | out_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 blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | out_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 blockExecuted by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | out_minus_zero (char *pformat, size_t prefix_len) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | make_format (pformat, prefix_len, "'-+ 0", ".0f"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | return never executed: printf (pformat, -0.25);return printf (pformat, -0.25);never executed: return printf (pformat, -0.25); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | out_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
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | sec_prefix_len = dot - pformat; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | pformat[prefix_len] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | if (((
| 1-12 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | long int lprec = strtol (dot + 1, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | , 10); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | precision = (lprec <= 0x7fffffff
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | precision = 9; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | if (precision
| 0-13 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | char *p = dot; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | *dot = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | -- executed 16 times by 1 test: p;--p;Executed by:
executed 16 times by 1 test: --p;Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | while (((
| 7-9 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | long int lwidth = strtol (p, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | , 10); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | width = (lwidth <= 0x7fffffff
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | if (1 < width
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | p += (*p == '0'); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | sec_prefix_len = p - pformat; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | int w_d = (decimal_point_len < width
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | ? width - decimal_point_len | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | : 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | if (1 < w_d
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | int w = w_d - precision; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | if (1 < w
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | char *dst = pformat; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | for (char const *src = dst; src < p
| 7-12 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | if (*
| 2-10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | frac_left_adjust = executed 2 times by 1 test: frac_left_adjust = 1 ;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | 1 executed 2 times by 1 test: frac_left_adjust = 1 ;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | ; executed 2 times by 1 test: frac_left_adjust = 1 ;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | * executed 10 times by 1 test: dst++ = *src;*dst++ = *src;Executed by:
executed 10 times by 1 test: *dst++ = *src;Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | sec_prefix_len = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | (dst - pformat | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | + (frac_left_adjust
| 2-5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | } executed 13 times by 1 test: end of blockExecuted by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | int divisor = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | for (int i = precision; i < 9
| 28-161 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | divisor *= 10; executed 161 times by 1 test: divisor *= 10;Executed by:
| 161 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | int frac_sec = arg.tv_nsec / divisor; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | int int_len; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | if ((
| 0-28 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | minus_zero = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | if (arg.tv_sec < 0
| 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
| 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 blockExecuted by:
| 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
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | int prec = (precision < 9
| 6-7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | int trailing_prec = precision - prec; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | int ilen = (int_len < 0
| 0-13 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | int trailing_width = (ilen < width
| 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 blockExecuted by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | } executed 28 times by 1 test: end of blockExecuted by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 628 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 629 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 630 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 631 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 632 | out_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 ((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 642 | ? rpl_getfilecon (filename, &scontext)
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 643 | : rpl_lgetfilecon (filename, &scontext)) < 0
| 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
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 663 | freecon (scontext); never executed: freecon (scontext); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 664 | return never executed: fail;return fail;never executed: return fail; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 665 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 666 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 667 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 668 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 669 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 670 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 671 | print_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: 'n':case 'n':never executed: case 'n': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 685 | out_string (pformat, prefix_len, filename); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 686 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 687 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 688 | case never executed: 'i':case '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
| 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: 'l':case 'l':Executed by:
executed 3 times by 1 test: case 'l':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 728 | out_uint (pformat, prefix_len, ((statfsbuf)->f_namelen)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 729 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 730 | case never executed: 't':case '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: 'T':case '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: 'b':case '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: 'f':case '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: 'a':case '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: 's':case 's':Executed by:
executed 1 time by 1 test: case 's':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 750 | out_uint (pformat, prefix_len, statfsbuf->f_bsize); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 751 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 752 | case never executed: 'S':case 'S':never executed: case 'S': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 753 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 754 | uintmax_t frsize = ((statfsbuf)->f_frsize); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 755 | if (! frsize
| 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: 'c':case '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: 'd':case '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: fail;return fail;Executed by:
executed 4 times by 1 test: return fail;Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 773 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 774 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 775 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 776 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 777 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 778 | static char const * __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 779 | find_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
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 792 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 793 | if (!(mount_list = read_file_system_list (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 794 | 0
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 795 | ))
| 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 blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 807 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 808 | struct stat name_stats; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 809 | if (stat (name, &name_stats) != 0
| 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
| 2-52 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 816 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 817 | if (me->me_dummy
| 0-40 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 818 | && (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 819 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 820 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 821 | ) && __builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 822 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 823 | ) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 824 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 825 | ), __s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 826 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 827 | ), (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 828 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 829 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 830 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 831 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 832 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 833 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 834 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 835 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 836 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 837 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 838 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 839 | ) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 840 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 841 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 842 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 843 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 844 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 845 | ) == 1) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 846 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 847 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 848 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 849 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 850 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 851 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 852 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 853 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 854 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 855 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 856 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 857 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 858 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 859 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 860 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 861 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 862 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 863 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 864 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 865 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 866 | me->me_mountdir
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 867 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 868 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 869 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 870 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 871 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 872 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 873 | ) == 1) && (__s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 874 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 875 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 876 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 877 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 878 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 879 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 880 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 881 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 882 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 883 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 884 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 885 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 886 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 887 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 888 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 889 | ))[0] - __s2[0]); if (__s2_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 890 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 891 | ))[1] - __s2[1]); if (__s2_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 892 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 893 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 894 | name
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 895 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 896 | me->me_mountdir
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 897 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 898 | name
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 899 | )))); })
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 900 | == 0)
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 901 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 902 | struct stat dev_stats; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 903 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 904 | if (stat (me->me_devname, &dev_stats) == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 905 | && ((
| 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 blockExecuted by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 912 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 913 | return executed 2 times by 1 test: bind_mount;return bind_mount;Executed by:
executed 2 times by 1 test: return bind_mount;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 914 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 915 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 916 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 917 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 918 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 919 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 920 | out_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
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 939 | ((((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 940 | statp->st_mode
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 941 | )) & 0170000) == (0120000))
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 942 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 943 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 944 | char *resolved = canonicalize_file_name (filename); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 945 | if (!resolved
| 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: print_mount_point;goto print_mount_point;never executed: goto print_mount_point; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 955 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 956 | bp = find_bind_mount (resolved); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 957 | free (resolved); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 958 | if (bp
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 959 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 960 | fail = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 961 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 962 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 963 | goto never executed: print_mount_point;goto print_mount_point;never executed: goto print_mount_point; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 964 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 965 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 966 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 967 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 968 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 969 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 970 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 971 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 972 | if ((
| 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 blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 981 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 982 | print_mount_point: code before this statement executed 1 time by 1 test: print_mount_point:Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 983 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 984 | out_string (pformat, prefix_len, bp ? bp : mp ? mp : np); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 985 | free (mp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 986 | return executed 1 time by 1 test: fail;return fail;Executed by:
executed 1 time by 1 test: return fail;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 987 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 988 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 989 | static struct timespec | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 990 | get_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: ts;return ts;Executed by:
executed 6 times by 1 test: return ts;Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 994 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 995 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 996 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 997 | static inline struct timespec | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 998 | neg_to_zero (struct timespec ts) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 999 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1000 | if (0 <= ts.tv_nsec
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1001 | return never executed: ts;return ts;never executed: return ts; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1002 | struct timespec z = {0, 0}; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1003 | return executed 5 times by 1 test: z;return z;Executed by:
executed 5 times by 1 test: return z;Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1004 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1005 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1006 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1007 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1008 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1009 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1010 | getenv_quoting_style (void) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1011 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1012 | char const *q_style = getenv ("QUOTING_STYLE"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1013 | if (q_style
| 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-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1017 | set_quoting_style ( executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1018 | ((void *)0) executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1019 | , quoting_style_vals[i]); executed 1 time by 1 test: set_quoting_style ( ((void *)0) , quoting_style_vals[i]);Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1035 | ((void *)0) executed 1 time by 1 test: set_quoting_style ( ((void *)0) , shell_escape_always_quoting_style);Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1037 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1038 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1039 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1040 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1041 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1042 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1043 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1044 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1045 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1046 | print_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: 'n':case 'n':Executed by:
executed 7 times by 1 test: case 'n':Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1061 | out_string (pformat, prefix_len, filename); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1062 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1063 | case executed 3 times by 1 test: 'N':case 'N':Executed by:
executed 3 times by 1 test: case 'N':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1064 | out_string (pformat, prefix_len, quotearg_style (get_quoting_style ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1065 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1066 | ), filename)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1067 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1068 | ((((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1069 | statbuf->st_mode
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1070 | )) & 0170000) == (0120000))
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1071 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1072 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1073 | char *linkname = areadlink_with_size (filename, statbuf->st_size); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1074 | if (linkname ==
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1075 | ((void *)0)
| 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:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1097 | case executed 65 times by 1 test: 'd':case 'd':Executed by:
executed 65 times by 1 test: case 'd':Executed by:
| 65 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1098 | out_uint (pformat, prefix_len, statbuf->st_dev); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1099 | break; executed 65 times by 1 test: break;Executed by:
| 65 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1100 | case executed 1 time by 1 test: 'D':case 'D':Executed by:
executed 1 time by 1 test: case 'D':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1101 | out_uint_x (pformat, prefix_len, statbuf->st_dev); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1102 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1103 | case executed 68 times by 1 test: 'i':case 'i':Executed by:
executed 68 times by 1 test: case 'i':Executed by:
| 68 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1104 | out_uint (pformat, prefix_len, statbuf->st_ino); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1105 | break; executed 68 times by 1 test: break;Executed by:
| 68 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1106 | case executed 1 time by 1 test: 'a':case 'a':Executed by:
executed 1 time by 1 test: case 'a':Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1121 | case executed 50 times by 1 test: 'A':case 'A':Executed by:
executed 50 times by 1 test: case 'A':Executed by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1122 | out_string (pformat, prefix_len, human_access (statbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1123 | break; executed 50 times by 1 test: break;Executed by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1124 | case executed 8 times by 1 test: 'f':case 'f':Executed by:
executed 8 times by 1 test: case 'f':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1125 | out_uint_x (pformat, prefix_len, statbuf->st_mode); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1126 | break; executed 8 times by 1 test: break;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1127 | case executed 24 times by 1 test: 'F':case 'F':Executed by:
executed 24 times by 1 test: case 'F':Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1128 | out_string (pformat, prefix_len, file_type (statbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1129 | break; executed 24 times by 1 test: break;Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1130 | case executed 2 times by 1 test: 'h':case 'h':Executed by:
executed 2 times by 1 test: case 'h':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1131 | out_uint (pformat, prefix_len, statbuf->st_nlink); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1132 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1133 | case executed 2 times by 1 test: 'u':case 'u':Executed by:
executed 2 times by 1 test: case 'u':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1134 | out_uint (pformat, prefix_len, statbuf->st_uid); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1135 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1136 | case executed 1 time by 1 test: 'U':case 'U':Executed by:
executed 1 time by 1 test: case 'U':Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1141 | case executed 31 times by 1 test: 'g':case 'g':Executed by:
executed 31 times by 1 test: case 'g':Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1142 | out_uint (pformat, prefix_len, statbuf->st_gid); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1143 | break; executed 31 times by 1 test: break;Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1144 | case executed 1 time by 1 test: 'G':case 'G':Executed by:
executed 1 time by 1 test: case 'G':Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1149 | case never executed: 't':case '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: 'm':case 'm':Executed by:
executed 1 time by 1 test: case 'm':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1157 | fail |= out_mount_point (filename, pformat, prefix_len, statbuf); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1158 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1159 | case never executed: 'T':case '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: 's':case 's':Executed by:
executed 2332 times by 1 test: case 's':Executed by:
| 2332 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1167 | out_int (pformat, prefix_len, statbuf->st_size); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1168 | break; executed 2332 times by 1 test: break;Executed by:
| 2332 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1169 | case executed 8 times by 1 test: 'B':case 'B':Executed by:
executed 8 times by 1 test: case 'B':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1170 | out_uint (pformat, prefix_len, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1171 | 512 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1172 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1173 | break; executed 8 times by 1 test: break;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1174 | case executed 19 times by 1 test: 'b':case 'b':Executed by:
executed 19 times by 1 test: case 'b':Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1175 | out_uint (pformat, prefix_len, ((*statbuf).st_blocks)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1176 | break; executed 19 times by 1 test: break;Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1177 | case executed 2 times by 1 test: 'o':case 'o':Executed by:
executed 2 times by 1 test: case 'o':Executed by:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1182 | case executed 1 time by 1 test: 'w':case 'w':Executed by:
executed 1 time by 1 test: case 'w':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1183 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1184 | struct timespec t = get_birthtime (fd, filename, statbuf); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1185 | if (t.tv_nsec < 0
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1186 | out_string (pformat, prefix_len, "-"); executed 1 time by 1 test: out_string (pformat, prefix_len, "-");Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1191 | case executed 5 times by 1 test: 'W':case 'W':Executed by:
executed 5 times by 1 test: case 'W':Executed by:
| 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:
| 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1195 | case executed 1 time by 1 test: 'x':case 'x':Executed by:
executed 1 time by 1 test: case 'x':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1196 | out_string (pformat, prefix_len, human_time (get_stat_atime (statbuf))); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1197 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1198 | case executed 18 times by 1 test: 'X':case 'X':Executed by:
executed 18 times by 1 test: case 'X':Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1199 | out_epoch_sec (pformat, prefix_len, statbuf, get_stat_atime (statbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1200 | break; executed 18 times by 1 test: break;Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1201 | case executed 11 times by 1 test: 'y':case 'y':Executed by:
executed 11 times by 1 test: case 'y':Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1202 | out_string (pformat, prefix_len, human_time (get_stat_mtime (statbuf))); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1203 | break; executed 11 times by 1 test: break;Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1204 | case executed 3 times by 1 test: 'Y':case 'Y':Executed by:
executed 3 times by 1 test: case 'Y':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1205 | out_epoch_sec (pformat, prefix_len, statbuf, get_stat_mtime (statbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1206 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1207 | case executed 1 time by 1 test: 'z':case 'z':Executed by:
executed 1 time by 1 test: case 'z':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1208 | out_string (pformat, prefix_len, human_time (get_stat_ctime (statbuf))); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1209 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1210 | case executed 2 times by 1 test: 'Z':case 'Z':Executed by:
executed 2 times by 1 test: case 'Z':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1211 | out_epoch_sec (pformat, prefix_len, statbuf, get_stat_ctime (statbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1212 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1213 | case never executed: 'C':case '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: fail;return fail;Executed by:
executed 2668 times by 1 test: return fail;Executed by:
| 2668 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1223 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1224 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1225 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1226 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1227 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1228 | print_esc_char (char c) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1229 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1230 | switch (c) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1231 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1232 | case executed 1 time by 1 test: 'a':case 'a':Executed by:
executed 1 time by 1 test: case 'a':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1233 | c ='\a'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1234 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1235 | case executed 1 time by 1 test: 'b':case 'b':Executed by:
executed 1 time by 1 test: case 'b':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1236 | c ='\b'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1237 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1238 | case never executed: 'e':case 'e':never executed: case 'e': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1239 | c ='\x1B'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1240 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1241 | case executed 1 time by 1 test: 'f':case 'f':Executed by:
executed 1 time by 1 test: case 'f':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1242 | c ='\f'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1243 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1244 | case executed 3 times by 1 test: 'n':case 'n':Executed by:
executed 3 times by 1 test: case 'n':Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1245 | c ='\n'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1246 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1247 | case executed 1 time by 1 test: 'r':case 'r':Executed by:
executed 1 time by 1 test: case 'r':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1248 | c ='\r'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1249 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1250 | case executed 1 time by 1 test: 't':case 't':Executed by:
executed 1 time by 1 test: case 't':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1251 | c ='\t'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1252 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1253 | case never executed: 'v':case '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:
executed 1 time by 1 test: case '\\':Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1258 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1259 | default executed 1 time by 1 test: :default:Executed by:
executed 1 time by 1 test: default:Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1266 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1267 | putchar_unlocked (c); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1268 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1269 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1270 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1271 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1272 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1273 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1274 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1275 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1276 | print_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; *
| 2696-4160 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1348 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1349 | switch (*b) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1350 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1351 | case executed 2726 times by 1 test: '%':case '%':Executed by:
executed 2726 times by 1 test: case '%':Executed by:
| 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 (*
| 14-2712 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1369 | fmt_char += 1 + executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1370 | __builtin_strspn ( executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1371 | fmt_char + 1 executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1372 | , executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1373 | digits executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1374 | ) executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1375 | ; executed 14 times by 1 test: fmt_char += 1 + __builtin_strspn ( fmt_char + 1 , digits ) ;Executed by:
| 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: '\0':case '\0':Executed by:
executed 52 times by 1 test: case '\0':Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1384 | --b; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1385 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1386 | case executed 2 times by 1 test: '%':case '%':Executed by:
executed 2 times by 1 test: case '%':Executed by:
code before this statement executed 52 times by 1 test: case '%':Executed by:
| 2-52 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1387 | if (0 < len
| 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:
| 52 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1414 | default executed 2672 times by 1 test: :default:Executed by:
executed 2672 times by 1 test: default:Executed by:
| 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:
| 2672 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1418 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1419 | break; executed 2724 times by 1 test: break;Executed by:
| 2724 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1420 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1421 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1422 | case executed 22 times by 1 test: '\\':case '\\':Executed by:
executed 22 times by 1 test: case '\\':Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1423 | if ( ! interpret_backslash_escapes
| 0-22 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1424 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1425 | putchar_unlocked ('\\'); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1426 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1427 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1428 | ++b; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1429 | if (('0' <= (*b)
| 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1430 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1431 | int esc_value = ((*b) - '0'); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1432 | int esc_length = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1433 | for (++b; esc_length < 3
| 0-11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1434 | ++esc_length, ++b) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1435 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1436 | esc_value = esc_value * 8 + ((*b) - '0'); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1437 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1438 | putchar_unlocked (esc_value); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1439 | --b; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1440 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1441 | else if (*
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1442 | ((*
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1443 | to_uchar (b[1])
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1444 | ))] & (unsigned short int) _ISxdigit)
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1445 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1446 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1447 | int esc_value = ((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1448 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1449 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1450 | ++b; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1451 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1452 | ((*
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1453 | to_uchar (b[1])
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1454 | ))] & (unsigned short int) _ISxdigit)
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1455 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1456 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1457 | ++b; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1458 | esc_value = esc_value * 16 + ((*
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1459 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1460 | putchar_unlocked (esc_value); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1461 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1462 | else if (*
| 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 blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1473 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1474 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1475 | print_esc_char (*b); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1476 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1477 | break; executed 22 times by 1 test: break;Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1478 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1479 | default executed 1412 times by 1 test: :default:Executed by:
executed 1412 times by 1 test: default:Executed by:
| 1412 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1480 | putchar_unlocked (*b); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1481 | break; executed 1412 times by 1 test: break;Executed by:
| 1412 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1482 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1483 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1484 | free (dest); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1485 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1486 | fputs_unlocked (trailing_delim, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1487 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1488 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1489 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1490 | return executed 2696 times by 1 test: fail;return fail;Executed by:
executed 2696 times by 1 test: return fail;Executed by:
| 2696 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1491 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1492 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1493 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1494 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1495 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1496 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1497 | do_statfs (char const *filename, char const *format) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1498 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1499 | struct statfs statfsbuf; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1500 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1501 | if ((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1502 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1503 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1504 | ) && __builtin_constant_p (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1505 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1506 | ) && (__s1_len = __builtin_strlen (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1507 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1508 | ), __s2_len = __builtin_strlen (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1509 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1510 | ), (!((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1511 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1512 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1513 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1514 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1515 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1516 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1517 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1518 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1519 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1520 | ,
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1521 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1522 | ) : (__builtin_constant_p (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1523 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1524 | ) && ((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1525 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1526 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1527 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1528 | ) == 1) && (__s1_len = __builtin_strlen (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1529 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1530 | ), __s1_len < 4) ? (__builtin_constant_p (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1531 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1532 | ) && ((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1533 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1534 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1535 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1536 | ) == 1) ? __builtin_strcmp (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1537 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1538 | ,
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1539 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1540 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1541 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1542 | ); int __result = (((const unsigned char *) (const char *) (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1543 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1544 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1545 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1546 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1547 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1548 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1549 | filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1550 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1551 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1552 | ) && ((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1553 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1554 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1555 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1556 | ) == 1) && (__s2_len = __builtin_strlen (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1557 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1558 | ), __s2_len < 4) ? (__builtin_constant_p (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1559 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1560 | ) && ((size_t)(const void *)((
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1561 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1562 | ) + 1) - (size_t)(const void *)(
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1563 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1564 | ) == 1) ? __builtin_strcmp (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1565 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1566 | ,
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1567 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1568 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1569 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1570 | ); int __result = (((const unsigned char *) (const char *) (
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1571 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1572 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1573 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1574 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1575 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1576 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1577 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1578 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1579 | filename
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1580 | ,
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1581 | "-"
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1582 | )))); })
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1583 | == 0)
| 1-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1584 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1585 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1586 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1587 | "using %s to denote standard input does not work" " in file system mode" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1588 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1589 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1590 | , quotearg_style (shell_escape_always_quoting_style, filename)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1591 | return executed 1 time by 1 test: return 0 ;Executed by:
executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1592 | 0 executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1593 | ; executed 1 time by 1 test: return 0 ;Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1594 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1595 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1596 | if (statfs (filename, &statfsbuf) != 0
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1597 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1598 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1599 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1600 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1601 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1602 | "cannot read file system information for %s" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1603 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1604 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1605 | quotearg_style (shell_escape_always_quoting_style, filename)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1606 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1607 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1608 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1609 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1610 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1611 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1612 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1613 | fail = print_it (format, -1, filename, print_statfs, &statfsbuf); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1614 | return executed 4 times by 1 test: ! fail;return ! fail;Executed by:
executed 4 times by 1 test: return ! fail;Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1615 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1616 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1617 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1618 | static | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1619 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1620 | __attribute__ ((__warn_unused_result__)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1621 | do_stat (char const *filename, char const *format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1622 | char const *format2) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1623 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1624 | int fd = (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1625 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1626 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1627 | ) && __builtin_constant_p (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1628 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1629 | ) && (__s1_len = __builtin_strlen (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1630 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1631 | ), __s2_len = __builtin_strlen (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1632 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1633 | ), (!((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1634 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1635 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1636 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1637 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1638 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1639 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1640 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1641 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1642 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1643 | ,
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1644 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1645 | ) : (__builtin_constant_p (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1646 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1647 | ) && ((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1648 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1649 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1650 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1651 | ) == 1) && (__s1_len = __builtin_strlen (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1652 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1653 | ), __s1_len < 4) ? (__builtin_constant_p (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1654 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1655 | ) && ((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1656 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1657 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1658 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1659 | ) == 1) ? __builtin_strcmp (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1660 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1661 | ,
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1662 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1663 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1664 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1665 | ); int __result = (((const unsigned char *) (const char *) (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1666 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1667 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1668 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1669 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1670 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1671 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1672 | filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1673 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1674 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1675 | ) && ((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1676 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1677 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1678 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1679 | ) == 1) && (__s2_len = __builtin_strlen (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1680 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1681 | ), __s2_len < 4) ? (__builtin_constant_p (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1682 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1683 | ) && ((size_t)(const void *)((
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1684 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1685 | ) + 1) - (size_t)(const void *)(
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1686 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1687 | ) == 1) ? __builtin_strcmp (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1688 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1689 | ,
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1690 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1691 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1692 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1693 | ); int __result = (((const unsigned char *) (const char *) (
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1694 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1695 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-2750 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1696 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1697 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1698 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1699 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1700 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1701 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1702 | filename
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1703 | ,
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1704 | "-"
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1705 | )))); })
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1706 | == 0)
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1707 | struct stat statbuf; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1708 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1709 | if (0 <= fd
| 798-1952 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1710 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1711 | if (fstat (fd, &statbuf) != 0
| 0-798 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1712 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1713 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1714 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1715 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1716 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1717 | "cannot stat standard input" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1718 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1719 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1720 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1721 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1722 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1723 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1724 | } executed 798 times by 1 test: end of blockExecuted by:
| 798 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1725 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1726 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1727 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1728 | else if ((
| 40-1912 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1729 | ? stat (filename, &statbuf)
| 56-1896 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1730 | : lstat (filename, &statbuf)) != 0
| 56-1896 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1731 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1732 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1733 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1734 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1735 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1736 | "cannot stat %s" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1737 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1738 | , quotearg_style (shell_escape_always_quoting_style, filename)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1739 | return executed 56 times by 1 test: return 0 ;Executed by:
executed 56 times by 1 test: return 0 ;Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1740 | 0 executed 56 times by 1 test: return 0 ;Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1741 | ; executed 56 times by 1 test: return 0 ;Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1742 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1743 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1744 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1745 | ((((
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1746 | statbuf.st_mode
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1747 | )) & 0170000) == (0060000))
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1748 | || | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1749 | ((((
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1750 | statbuf.st_mode
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1751 | )) & 0170000) == (0020000))
| 0-2694 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1752 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1753 | format = format2; never executed: format = format2; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1754 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1755 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1756 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1757 | fail = print_it (format, fd, filename, print_stat, &statbuf); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1758 | return executed 2692 times by 1 test: ! fail;return ! fail;Executed by:
executed 2692 times by 1 test: return ! fail;Executed by:
| 2692 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1759 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1760 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1761 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1762 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1763 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1764 | default_format ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1765 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1766 | fs, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1767 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1768 | terse, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1769 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1770 | device) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1771 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1772 | char *format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1773 | if (fs
| 2-72 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1774 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1775 | if (terse
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1776 | format = xstrdup (fmt_terse_fs); never executed: format = xstrdup (fmt_terse_fs); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1777 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1778 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1779 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1780 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1781 | format = xstrdup ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1782 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1783 | " File: \"%n\"\n" " ID: %-8i Namelen: %-7l Type: %T\n" "Block size: %-10s Fundamental block size: %S\n" "Blocks: Total: %-10b Free: %-10f Available: %a\n" "Inodes: Total: %-10c Free: %d\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1784 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1785 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1786 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1787 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1788 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1789 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1790 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1791 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1792 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1793 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1794 | if (terse
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1795 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1796 | if (0 < is_selinux_enabled ()
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1797 | format = xstrdup (fmt_terse_selinux); never executed: format = xstrdup (fmt_terse_selinux); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1798 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1799 | format = xstrdup (fmt_terse_regular); never executed: format = xstrdup (fmt_terse_regular); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1800 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1801 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1802 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1803 | char *temp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1804 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1805 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1806 | format = xstrdup ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1807 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1808 | " File: %N\n Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1809 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1810 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1811 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1812 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1813 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1814 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1815 | temp = format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1816 | if (device
| 36 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1817 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1818 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1819 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1820 | format = xasprintf ("%s%s", format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1821 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1822 | "" "Device: %Dh/%dd\tInode: %-10i Links: %-5h Device type: %t,%T\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1823 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1824 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1825 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1826 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1827 | } executed 36 times by 1 test: end of blockExecuted by:
| 36 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1828 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1829 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1830 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1831 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1832 | format = xasprintf ("%s%s", format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1833 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1834 | "" "Device: %Dh/%dd\tInode: %-10i Links: %h\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1835 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1836 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1837 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1838 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1839 | } executed 36 times by 1 test: end of blockExecuted by:
| 36 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1840 | free (temp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1841 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1842 | temp = format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1843 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1844 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1845 | format = xasprintf ("%s%s", format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1846 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1847 | "" "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1848 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1849 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1850 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1851 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1852 | free (temp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1853 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1854 | if (0 < is_selinux_enabled ()
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1855 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1856 | temp = format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1857 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1858 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1859 | format = xasprintf ("%s%s", format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1860 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1861 | "Context: %C\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1862 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1863 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1864 | free (temp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1865 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1866 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1867 | temp = format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1868 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1869 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1870 | format = xasprintf ("%s%s", format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1871 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1872 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1873 | "Access: %x\n" "Modify: %y\n" "Change: %z\n" " Birth: %w\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1874 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1875 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1876 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1877 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1878 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1879 | free (temp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1880 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1881 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1882 | return executed 74 times by 1 test: format;return format;Executed by:
executed 74 times by 1 test: return format;Executed by:
| 74 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1883 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1884 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1885 | void | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1886 | usage (int status) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1887 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1888 | if (status !=
| 3-11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1889 | 0
| 3-11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1890 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1891 | do { fprintf ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1892 | stderr | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1893 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1894 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1895 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1896 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1897 | , program_name); } executed 3 times by 1 test: while (0);end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1898 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1899 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1900 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1901 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1902 | "Usage: %s [OPTION]... FILE...\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1903 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1904 | , program_name); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1905 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1906 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1907 | "Display file or file system status.\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1908 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1909 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1910 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1911 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1912 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1913 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1914 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1915 | emit_mandatory_arg_note (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1916 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1917 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1918 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1919 | " -L, --dereference follow links\n -f, --file-system display file system status instead of file status\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1920 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1921 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1922 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1923 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1924 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1925 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1926 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1927 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1928 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1929 | " -c --format=FORMAT use the specified FORMAT instead of the default;\n output a newline after each use of FORMAT\n --printf=FORMAT like --format, but interpret backslash escapes,\n and do not output a mandatory trailing newline;\n if you want a newline, include \\n in FORMAT\n -t, --terse print the information in terse form\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1930 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1931 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1932 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1933 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1934 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1935 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1936 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1937 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1938 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1939 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1940 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1941 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1942 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1943 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1944 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1945 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1946 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1947 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1948 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1949 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1950 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1951 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1952 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1953 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1954 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1955 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1956 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1957 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1958 | "\nThe valid format sequences for files (without --file-system):\n\n %a access rights in octal (note '#' and '0' printf flags)\n %A access rights in human readable form\n %b number of blocks allocated (see %B)\n %B the size in bytes of each block reported by %b\n %C SELinux security context string\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1959 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1960 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1961 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1962 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1963 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1964 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1965 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1966 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1967 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1968 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1969 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1970 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1971 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1972 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1973 | " %d device number in decimal\n %D device number in hex\n %f raw mode in hex\n %F file type\n %g group ID of owner\n %G group name of owner\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1974 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1975 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1976 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1977 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1978 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1979 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1980 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1981 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1982 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1983 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1984 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1985 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1986 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1987 | " %h number of hard links\n %i inode number\n %m mount point\n %n file name\n %N quoted file name with dereference if symbolic link\n %o optimal I/O transfer size hint\n %s total size, in bytes\n %t major device type in hex, for character/block device special files\n %T minor device type in hex, for character/block device special files\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1988 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1989 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1990 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1991 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1992 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1993 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1994 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1995 | " %u user ID of owner\n %U user name of owner\n %w time of file birth, human-readable; - if unknown\n %W time of file birth, seconds since Epoch; 0 if unknown\n %x time of last access, human-readable\n %X time of last access, seconds since Epoch\n %y time of last data modification, human-readable\n %Y time of last data modification, seconds since Epoch\n %z time of last status change, human-readable\n %Z time of last status change, seconds since Epoch\n\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1996 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1997 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1998 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 1999 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2000 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2001 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2002 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2003 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2004 | "Valid format sequences for file systems:\n\n %a free blocks available to non-superuser\n %b total data blocks in file system\n %c total file nodes in file system\n %d free file nodes in file system\n %f free blocks in file system\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2005 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2006 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2007 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2008 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2009 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2010 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2011 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2012 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2013 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2014 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2015 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2016 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2017 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2018 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2019 | " %i file system ID in hex\n %l maximum length of filenames\n %n file name\n %s block size (for faster transfers)\n %S fundamental block size (for block counts)\n %t file system type in hex\n %T file system type in human readable form\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2020 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2021 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2022 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2023 | ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2024 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2025 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2026 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2027 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2028 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2029 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2030 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2031 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2032 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2033 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2034 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2035 | "\n--terse is equivalent to the following FORMAT:\n %s" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2036 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2037 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2038 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2039 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2040 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2041 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2042 | fmt_terse_selinux | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2043 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2044 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2045 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2046 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2047 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2048 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2049 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2050 | "--terse --file-system is equivalent to the following FORMAT:\n %s" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2051 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2052 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2053 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2054 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2055 | , fmt_terse_fs); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2056 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2057 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2058 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2059 | "\n" "NOTE: your shell may have its own version of %s, which usually supersedes\n" "the version described here. Please refer to your shell's documentation\n" "for details about the options it supports.\n" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2060 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2061 | , "stat"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2062 | emit_ancillary_info ("stat"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2063 | } executed 11 times by 1 test: end of blockExecuted by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2064 | exit (status); executed 14 times by 1 test: exit (status);Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2065 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2066 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2067 | int | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2068 | main (int argc, char *argv[]) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2069 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2070 | int c; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2071 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2072 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2073 | fs = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2074 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2075 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2076 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2077 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2078 | terse = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2079 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2080 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2081 | char *format = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2082 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2083 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2084 | char *format2; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2085 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2086 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2087 | ok = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2088 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2089 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2090 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2091 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2092 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2093 | setlocale ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2094 | 6 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2095 | , ""); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2096 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2097 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2098 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2099 | struct lconv const *locale = localeconv (); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2100 | decimal_point = (locale->decimal_point[0]
| 0-1560 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2101 | decimal_point_len = strlen (decimal_point); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2102 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2103 | atexit (close_stdout); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2104 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2105 | while ((
| 1536-1576 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2106 | ((void *)0)
| 1536-1576 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2107 | )) != -1
| 1536-1576 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2108 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2109 | switch (c) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2110 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2111 | case executed 98 times by 1 test: PRINTF_OPTION:case PRINTF_OPTION:Executed by:
executed 98 times by 1 test: case PRINTF_OPTION:Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2112 | format = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2113 | interpret_backslash_escapes = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2114 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2115 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2116 | trailing_delim = ""; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2117 | break; executed 98 times by 1 test: break;Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2118 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2119 | case executed 1403 times by 1 test: 'c':case 'c':Executed by:
executed 1403 times by 1 test: case 'c':Executed by:
| 1403 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2120 | format = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2121 | interpret_backslash_escapes = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2122 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2123 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2124 | trailing_delim = "\n"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2125 | break; executed 1403 times by 1 test: break;Executed by:
| 1403 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2126 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2127 | case executed 42 times by 1 test: 'L':case 'L':Executed by:
executed 42 times by 1 test: case 'L':Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2128 | follow_links = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2129 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2130 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2131 | break; executed 42 times by 1 test: break;Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2132 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2133 | case executed 7 times by 1 test: 'f':case 'f':Executed by:
executed 7 times by 1 test: case 'f':Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2134 | fs = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2135 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2136 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2137 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2138 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2139 | case executed 2 times by 1 test: 't':case 't':Executed by:
executed 2 times by 1 test: case 't':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2140 | terse = | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2141 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2142 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2143 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2144 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2145 | case executed 11 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 11 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2146 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2147 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2148 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2149 | case executed 10 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 10 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2150 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2151 | , "stat", "GNU coreutils", Version, ("Michael Meskes"), (char *) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2152 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2153 | ); exit ( executed 10 times by 1 test: exit ( 0 );Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2154 | 0 executed 10 times by 1 test: exit ( 0 );Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2155 | ); executed 10 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2156 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2157 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2158 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2159 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2160 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2161 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2162 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2163 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2164 | if (argc == optind
| 0-1536 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2165 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2166 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2167 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2168 | "missing operand" | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2169 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2170 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2171 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2172 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2173 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2174 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2175 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2176 | if (format
| 37-1499 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2177 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2178 | if (strstr (format, "%N")
| 2-1497 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2179 | getenv_quoting_style (); executed 2 times by 1 test: getenv_quoting_style ();Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2180 | format2 = format; | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2181 | } executed 1499 times by 1 test: end of blockExecuted by:
| 1499 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2182 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2183 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2184 | format = default_format (fs, terse, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2185 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2186 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2187 | format2 = default_format (fs, terse, | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2188 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2189 | ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2190 | } executed 37 times by 1 test: end of blockExecuted by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2191 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2192 | for (int i = optind; i < argc
| 1534-2755 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2193 | ok &= (fs
executed 2755 times by 1 test: ok &= (fs ? do_statfs (argv[i], format) : do_stat (argv[i], format, format2));Executed by:
| 5-2755 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2194 | ? do_statfs (argv[i], format) executed 2755 times by 1 test: ok &= (fs ? do_statfs (argv[i], format) : do_stat (argv[i], format, format2));Executed by:
| 2755 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2195 | : do_stat (argv[i], format, format2)); executed 2755 times by 1 test: ok &= (fs ? do_statfs (argv[i], format) : do_stat (argv[i], format, format2));Executed by:
| 2755 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2196 | - | |||||||||||||||||||||||||||||||||||||||||||||||||
| 2197 | return executed 1534 times by 1 test: ok ? return ok ? 0 : 1 ;Executed by:
executed 1534 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1534 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2198 | 0 executed 1534 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1534 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2199 | : executed 1534 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1534 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2200 | 1 executed 1534 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1534 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2201 | ; executed 1534 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1534 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 2202 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |