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