From 17b28f70e02d68ccea0233cf41c6d1fcc1f35335 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- int fd_cat (int from, int to)
+ off_t fd_cat (int from, int to)
Synchronously copies data from fd from to fd to,
until it encounters EOF or an error. Returns -1 (and sets errno) if
it fails; returns the number of transmitted bytes if it gets an EOF.
@@ -170,7 +170,7 @@ in Linux 2.6.17 and later
- size_t fd_catn (int from, int to, size_t n)
+ off_t fd_catn (int from, int to, off_t n)
Synchronously copies at most n bytes from fd from to fd to.
Returns the total number of transmitted bytes; sets errno if this number
is lesser than n. EOF is reported as EPIPE. See above for zero-copy
--
cgit v1.2.3