mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
provide loff_t for splice syscall
so far, this is the only actual use of loff_t i've found. some software, including glib, assumes loff_t must exist if splice exists; this is a reasonable assumption since the official prototype for splice uses loff_t, as it always works with 64-bit offsets regardless of the selected libc off_t size. i'm using #define for now rather than a typedef to make it easy to define in other headers if necessary (like the LFS64 ugliness), but it may be necessary to add it to alltypes.h eventually if other functions end up needing it.
This commit is contained in:
parent
0c05bd3a9c
commit
c4ea0e3f8e
@ -120,6 +120,7 @@ struct f_owner_ex {
|
||||
#define SPLICE_F_GIFT 8
|
||||
ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
|
||||
ssize_t splice(int, off_t *, int, off_t *, size_t, unsigned);
|
||||
#define loff_t off_t
|
||||
#endif
|
||||
|
||||
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
||||
|
Loading…
Reference in New Issue
Block a user