| 139 | } |
| 140 | |
| 141 | int UTIL_isRegularFileStat(const stat_t* statbuf) |
| 142 | { |
| 143 | #if defined(_MSC_VER) |
| 144 | return (statbuf->st_mode & S_IFREG) != 0; |
| 145 | #else |
| 146 | return S_ISREG(statbuf->st_mode) != 0; |
| 147 | #endif |
| 148 | } |
| 149 | |
| 150 | /* like chmod, but avoid changing permission of /dev/null */ |
| 151 | int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions) |
no outgoing calls
no test coverage detected