| 1 | off_t is always 64-bit with musl
|
| 2 |
|
| 3 | |
| 4 | |
| 5 | @@ -42,7 +42,7 @@ static const int fds[] = {
|
| 6 | 0x7fffffff,
|
| 7 | };
|
| 8 |
|
| 9 | -static const off64_t offsets[] = {
|
| 10 | +static const off_t offsets[] = {
|
| 11 | -0x8000000000000000LL,
|
| 12 | -0x5060708090a0b0c0LL,
|
| 13 | -1LL,
|
| 14 | |
| 15 | |
| 16 | @@ -20,8 +20,8 @@ int
|
| 17 | main(void)
|
| 18 | {
|
| 19 | const int fd = -1;
|
| 20 | - const off64_t offset = 0xdeadbeefbadc0dedULL;
|
| 21 | - const off64_t nbytes = 0xfacefeedcafef00dULL;
|
| 22 | + const off_t offset = 0xdeadbeefbadc0dedULL;
|
| 23 | + const off_t nbytes = 0xfacefeedcafef00dULL;
|
| 24 | const unsigned int flags = -1;
|
| 25 |
|
| 26 | int rc = sync_file_range(fd, offset, nbytes, flags);
|
| 27 | |
| 28 | |
| 29 | @@ -20,8 +20,8 @@ int
|
| 30 | main(void)
|
| 31 | {
|
| 32 | const int fd = -1;
|
| 33 | - const off64_t offset = 0xdeadbeefbadc0ded;
|
| 34 | - const off64_t nbytes = 0xfacefeedcafef00d;
|
| 35 | + const off_t offset = 0xdeadbeefbadc0ded;
|
| 36 | + const off_t nbytes = 0xfacefeedcafef00d;
|
| 37 | const unsigned int flags = -1;
|
| 38 |
|
| 39 | int rc = sync_file_range(fd, offset, nbytes, flags);
|