| 939 | } |
| 940 | |
| 941 | static bool activation_native_sync(activation_native_file_t file) { |
| 942 | #ifdef _WIN32 |
| 943 | return FlushFileBuffers(file) != 0; |
| 944 | #else |
| 945 | int result; |
| 946 | do { |
| 947 | result = fsync(file); |
| 948 | } while (result != 0 && errno == EINTR); |
| 949 | return result == 0 || errno == EINVAL || errno == ENOTSUP || errno == EROFS; |
| 950 | #endif |
| 951 | } |
| 952 | |
| 953 | static bool activation_native_write_all(activation_native_file_t file, const void *data, |
| 954 | size_t length) { |
no outgoing calls
no test coverage detected