/home/travis/build/MoarVM/MoarVM/src/platform/io.h
Line | Count | Source (jump to first uncovered line) |
1 | | #if defined _WIN32 |
2 | | MVMint64 MVM_platform_lseek(int fd, MVMint64 offset, int origin); |
3 | | MVMint64 MVM_platform_unlink(const char *pathname); |
4 | | int MVM_platform_fsync(int fd); |
5 | | #else |
6 | 678 | #define MVM_platform_lseek lseek |
7 | | #define MVM_platform_unlink unlink |
8 | 0 | #define MVM_platform_fsync fsync |
9 | | #endif |
10 | | |
11 | | #if defined(__APPLE__) || defined(__Darwin__) |
12 | | short MVM_platform_is_fd_seekable(int fd); |
13 | | #else |
14 | 647 | #define MVM_platform_is_fd_seekable(x) (MVM_platform_lseek((x), 0, SEEK_CUR) != -1) |
15 | | #endif |