| 1563 | // |
| 1564 | |
| 1565 | Status FileClose(int fd) { |
| 1566 | int ret; |
| 1567 | |
| 1568 | #if defined(_WIN32) |
| 1569 | ret = static_cast<int>(_close(fd)); |
| 1570 | #else |
| 1571 | ret = static_cast<int>(close(fd)); |
| 1572 | #endif |
| 1573 | |
| 1574 | if (ret == -1) { |
| 1575 | return Status::IOError("error closing file"); |
| 1576 | } |
| 1577 | return Status::OK(); |
| 1578 | } |
| 1579 | |
| 1580 | // |
| 1581 | // Seeking and telling |
no test coverage detected