| Line | Source | Count |
| 1 | | - |
| 2 | static char | - |
| 3 | ftypelet (mode_t bits) | - |
| 4 | { | - |
| 5 | | - |
| 6 | if ( | - |
| 7 | ((((| TRUE | evaluated 35 times by 6 tests | | FALSE | evaluated 182 times by 4 tests |
| 35-182 |
| 8 | bits| TRUE | evaluated 35 times by 6 tests | | FALSE | evaluated 182 times by 4 tests |
| 35-182 |
| 9 | )) & 0170000) == (0100000))| TRUE | evaluated 35 times by 6 tests | | FALSE | evaluated 182 times by 4 tests |
| 35-182 |
| 10 | ) | - |
| 11 | returnexecuted 35 times by 6 tests: return '-'; '-';executed 35 times by 6 tests: return '-'; | 35 |
| 12 | if ( | - |
| 13 | ((((| TRUE | evaluated 166 times by 3 tests | | FALSE | evaluated 16 times by 3 tests |
| 16-166 |
| 14 | bits| TRUE | evaluated 166 times by 3 tests | | FALSE | evaluated 16 times by 3 tests |
| 16-166 |
| 15 | )) & 0170000) == (0040000))| TRUE | evaluated 166 times by 3 tests | | FALSE | evaluated 16 times by 3 tests |
| 16-166 |
| 16 | ) | - |
| 17 | returnexecuted 166 times by 3 tests: return 'd'; 'd';executed 166 times by 3 tests: return 'd'; | 166 |
| 18 | | - |
| 19 | | - |
| 20 | if ( | - |
| 21 | ((((| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 22 | bits| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 23 | )) & 0170000) == (0060000))| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 24 | ) | - |
| 25 | return never executed: return 'b'; 'b';never executed: return 'b'; | 0 |
| 26 | if ( | - |
| 27 | ((((| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 28 | bits| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 29 | )) & 0170000) == (0020000))| TRUE | never evaluated | | FALSE | evaluated 16 times by 3 tests |
| 0-16 |
| 30 | ) | - |
| 31 | return never executed: return 'c'; 'c';never executed: return 'c'; | 0 |
| 32 | if ( | - |
| 33 | ((((| TRUE | evaluated 13 times by 2 tests | | FALSE | evaluated 3 times by 1 test |
| 3-13 |
| 34 | bits| TRUE | evaluated 13 times by 2 tests | | FALSE | evaluated 3 times by 1 test |
| 3-13 |
| 35 | )) & 0170000) == (0120000))| TRUE | evaluated 13 times by 2 tests | | FALSE | evaluated 3 times by 1 test |
| 3-13 |
| 36 | ) | - |
| 37 | returnexecuted 13 times by 2 tests: return 'l'; 'l';executed 13 times by 2 tests: return 'l'; | 13 |
| 38 | if ( | - |
| 39 | ((((| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 40 | bits| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 41 | )) & 0170000) == (0010000))| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 42 | ) | - |
| 43 | return never executed: return 'p'; 'p';never executed: return 'p'; | 0 |
| 44 | | - |
| 45 | | - |
| 46 | if ( | - |
| 47 | ((((| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 48 | bits| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 49 | )) & 0170000) == (0140000))| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 50 | ) | - |
| 51 | return never executed: return 's'; 's';never executed: return 's'; | 0 |
| 52 | | - |
| 53 | | - |
| 54 | if ( | - |
| 55 | 0 | - |
| 56 | ) | - |
| 57 | return 'C'; dead code: return 'C'; | - |
| 58 | if ( | - |
| 59 | 0 | - |
| 60 | ) | - |
| 61 | return 'D'; dead code: return 'D'; | - |
| 62 | if ( | - |
| 63 | 0 | - |
| 64 | || | - |
| 65 | 0 | - |
| 66 | || | - |
| 67 | 0 | - |
| 68 | ) | - |
| 69 | return 'm'; dead code: return 'm'; | - |
| 70 | if ( | - |
| 71 | 0 | - |
| 72 | ) | - |
| 73 | return 'n'; dead code: return 'n'; | - |
| 74 | if ( | - |
| 75 | 0 | - |
| 76 | ) | - |
| 77 | return 'P'; dead code: return 'P'; | - |
| 78 | if ( | - |
| 79 | 0 | - |
| 80 | ) | - |
| 81 | return 'w'; dead code: return 'w'; | - |
| 82 | | - |
| 83 | returnexecuted 3 times by 1 test: return '?'; '?';executed 3 times by 1 test: return '?'; | 3 |
| 84 | } | - |
| 85 | | - |
| 86 | | - |
| 87 | | - |
| 88 | void | - |
| 89 | strmode (mode_t mode, char *str) | - |
| 90 | { | - |
| 91 | str[0] = ftypelet (mode); | - |
| 92 | str[1] = mode & | TRUE | evaluated 206 times by 4 tests | | FALSE | evaluated 11 times by 3 tests |
| 11-206 |
| 93 | 0400| TRUE | evaluated 206 times by 4 tests | | FALSE | evaluated 11 times by 3 tests |
| 11-206 |
| 94 | ? 'r' : '-'; | - |
| 95 | str[2] = mode & | TRUE | evaluated 208 times by 4 tests | | FALSE | evaluated 9 times by 3 tests |
| 9-208 |
| 96 | 0200| TRUE | evaluated 208 times by 4 tests | | FALSE | evaluated 9 times by 3 tests |
| 9-208 |
| 97 | ? 'w' : '-'; | - |
| 98 | str[3] = (mode & | TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 99 | 04000| TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 100 | | - |
| 101 | ? (mode & | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 102 | 0100| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 103 | ? 's' : 'S') | - |
| 104 | : (mode & | TRUE | evaluated 178 times by 4 tests | | FALSE | evaluated 39 times by 6 tests |
| 39-178 |
| 105 | 0100| TRUE | evaluated 178 times by 4 tests | | FALSE | evaluated 39 times by 6 tests |
| 39-178 |
| 106 | ? 'x' : '-')); | - |
| 107 | str[4] = mode & | TRUE | evaluated 65 times by 4 tests | | FALSE | evaluated 152 times by 5 tests |
| 65-152 |
| 108 | (0400 >> 3)| TRUE | evaluated 65 times by 4 tests | | FALSE | evaluated 152 times by 5 tests |
| 65-152 |
| 109 | ? 'r' : '-'; | - |
| 110 | str[5] = mode & | TRUE | evaluated 23 times by 4 tests | | FALSE | evaluated 194 times by 6 tests |
| 23-194 |
| 111 | (0200 >> 3)| TRUE | evaluated 23 times by 4 tests | | FALSE | evaluated 194 times by 6 tests |
| 23-194 |
| 112 | ? 'w' : '-'; | - |
| 113 | str[6] = (mode & | TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 114 | 02000| TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 115 | | - |
| 116 | ? (mode & | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 117 | (0100 >> 3)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 118 | ? 's' : 'S') | - |
| 119 | : (mode & | TRUE | evaluated 44 times by 4 tests | | FALSE | evaluated 173 times by 6 tests |
| 44-173 |
| 120 | (0100 >> 3)| TRUE | evaluated 44 times by 4 tests | | FALSE | evaluated 173 times by 6 tests |
| 44-173 |
| 121 | ? 'x' : '-')); | - |
| 122 | str[7] = mode & | TRUE | evaluated 38 times by 4 tests | | FALSE | evaluated 179 times by 5 tests |
| 38-179 |
| 123 | ((0400 >> 3) >> 3)| TRUE | evaluated 38 times by 4 tests | | FALSE | evaluated 179 times by 5 tests |
| 38-179 |
| 124 | ? 'r' : '-'; | - |
| 125 | str[8] = mode & | TRUE | evaluated 32 times by 3 tests | | FALSE | evaluated 185 times by 6 tests |
| 32-185 |
| 126 | ((0200 >> 3) >> 3)| TRUE | evaluated 32 times by 3 tests | | FALSE | evaluated 185 times by 6 tests |
| 32-185 |
| 127 | ? 'w' : '-'; | - |
| 128 | str[9] = (mode & | TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 129 | 01000| TRUE | never evaluated | | FALSE | evaluated 217 times by 6 tests |
| 0-217 |
| 130 | | - |
| 131 | ? (mode & | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 132 | ((0100 >> 3) >> 3)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 133 | ? 't' : 'T') | - |
| 134 | : (mode & | TRUE | evaluated 35 times by 4 tests | | FALSE | evaluated 182 times by 6 tests |
| 35-182 |
| 135 | ((0100 >> 3) >> 3)| TRUE | evaluated 35 times by 4 tests | | FALSE | evaluated 182 times by 6 tests |
| 35-182 |
| 136 | ? 'x' : '-')); | - |
| 137 | str[10] = ' '; | - |
| 138 | str[11] = '\0'; | - |
| 139 | }executed 217 times by 6 tests: end of block | 217 |
| 140 | void | - |
| 141 | filemodestring (struct stat const *statp, char *str) | - |
| 142 | { | - |
| 143 | strmode (statp->st_mode, str); | - |
| 144 | | - |
| 145 | if ( | - |
| 146 | ((| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 147 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 148 | )->st_mode - (| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 149 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 150 | )->st_mode)| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 151 | ) | - |
| 152 | str[0] = 'F'; never executed: str[0] = 'F'; | 0 |
| 153 | else if (0) | - |
| 154 | str[0] = 'M'; dead code: str[0] = 'M'; | - |
| 155 | else if ( | - |
| 156 | ((| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 157 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 158 | )->st_mode - (| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 159 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 160 | )->st_mode)| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 161 | ) | - |
| 162 | str[0] = 'Q'; never executed: str[0] = 'Q'; | 0 |
| 163 | else if ( | - |
| 164 | ((| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 165 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 166 | )->st_mode - (| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 167 | statp| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 168 | )->st_mode)| TRUE | never evaluated | | FALSE | evaluated 210 times by 3 tests |
| 0-210 |
| 169 | ) | - |
| 170 | str[0] = 'S'; never executed: str[0] = 'S'; | 0 |
| 171 | else if ( | - |
| 172 | 0 | - |
| 173 | ) | - |
| 174 | str[0] = 'T'; dead code: str[0] = 'T'; | - |
| 175 | }executed 210 times by 3 tests: end of block | 210 |
| | |