You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently calling libc::sendfile with an offset of type i64. This works fine on machines where off_t is defined as a 64 bit signed integer, but it fails to compile on other machines (for example, ARM devices like the cubieboard or the Raspberry Pi: #14 (comment)).
Notice the following excerpt from man 2 sendfile:
The original Linux sendfile() system call was not designed to handle large file offsets. Consequently, Linux 2.4 added sendfile64(), with a wider type for the offset argument. The glibc sendfile() wrapper function transparently deals with the kernel differences.
By using sendfile64(), compilation should succeed on those devices that have off_t defined as a 32 bit signed integer.
The text was updated successfully, but these errors were encountered:
We are now using libc from our own libc repository (forked off the official libc repository). Obviously, we would prefer to use the official libc as dependency. Maybe we should contact the libc maintainers and see if they could include sendfile64(), so that we don't need our own fork.
We are currently calling
libc::sendfile
with an offset of typei64
. This works fine on machines whereoff_t
is defined as a 64 bit signed integer, but it fails to compile on other machines (for example, ARM devices like the cubieboard or the Raspberry Pi: #14 (comment)).Notice the following excerpt from
man 2 sendfile
:By using
sendfile64()
, compilation should succeed on those devices that haveoff_t
defined as a 32 bit signed integer.The text was updated successfully, but these errors were encountered: