about summary refs log tree commit diff
path: root/include/fcntl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-06 23:49:44 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-06 23:49:44 -0400
commitc4ea0e3f8e286ec535691560d234d923b7f5d821 (patch)
tree3f728555f28848bda20dd2574fe71a6755e115aa /include/fcntl.h
parent0c05bd3a9c165cf2f0b9d6fa23a1f96532ddcdb3 (diff)
downloadmusl-c4ea0e3f8e286ec535691560d234d923b7f5d821.tar.gz
musl-c4ea0e3f8e286ec535691560d234d923b7f5d821.tar.xz
musl-c4ea0e3f8e286ec535691560d234d923b7f5d821.zip
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.
Diffstat (limited to 'include/fcntl.h')
-rw-r--r--include/fcntl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index f0e5671e..87ecf59b 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -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)