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
advapi32
armv8

View File

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