skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 17b28f70e02d68ccea0233cf41c6d1fcc1f35335
parent f268a8871a061395633d943e6f177fa8f8008963
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sun, 26 Sep 2021 10:15:27 +0000

 Fix fd_cat/n doc

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Mdoc/libstddjb/djbunix.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html @@ -152,7 +152,7 @@ Safe wrapper around </p> <p> -<code> int fd_cat (int from, int to) </code> <br /> +<code> off_t fd_cat (int from, int to) </code> <br /> Synchronously copies data from fd <em>from</em> to fd <em>to</em>, 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 </li> </ul> <p> -<code> size_t fd_catn (int from, int to, size_t n) </code> <br /> +<code> off_t fd_catn (int from, int to, off_t n) </code> <br /> Synchronously copies at most <em>n</em> bytes from fd <em>from</em> to fd <em>to</em>. Returns the total number of transmitted bytes; sets errno if this number is lesser than <em>n</em>. EOF is reported as EPIPE. See above for zero-copy