This commit is contained in:
2024-08-20 10:24:11 -05:00
parent 71112d4977
commit c5d3453c1f
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,4 @@
_lseeki64
aarch64 aarch64
advapi32 advapi32
armv8 armv8

View File

@ -465,8 +465,8 @@ auto remote_server::fuse_read(
res = -1; res = -1;
errno = ERANGE; errno = ERANGE;
} else if ((res = has_compat_open_info(handle, EBADF)) == 0) { } else if ((res = has_compat_open_info(handle, EBADF)) == 0) {
res = lseek(static_cast<int>(handle), static_cast<long>(read_offset), res = _lseeki64(static_cast<int>(handle), static_cast<__int64>(read_offset),
SEEK_SET); SEEK_SET);
if (res != -1) { if (res != -1) {
data.resize(read_size); data.resize(read_size);
res = read(static_cast<int>(handle), data.data(), res = read(static_cast<int>(handle), data.data(),
@ -519,8 +519,8 @@ auto remote_server::fuse_write(
} else { } else {
res = has_compat_open_info(handle, EBADF); res = has_compat_open_info(handle, EBADF);
if (res == 0) { if (res == 0) {
res = lseek(static_cast<int>(handle), static_cast<long>(write_offset), res = _lseeki64(static_cast<int>(handle),
SEEK_SET); static_cast<__int64>(write_offset), SEEK_SET);
if (res != -1) { if (res != -1) {
res = write(static_cast<int>(handle), buffer, res = write(static_cast<int>(handle), buffer,
static_cast<unsigned int>(write_size)); static_cast<unsigned int>(write_size));