refactor
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
_lseeki64
|
||||
aarch64
|
||||
advapi32
|
||||
armv8
|
||||
|
@ -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));
|
||||
|
Reference in New Issue
Block a user