From 17b28f70e02d68ccea0233cf41c6d1fcc1f35335 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 26 Sep 2021 10:15:27 +0000 Subject: Fix fd_cat/n doc Signed-off-by: Laurent Bercot --- doc/libstddjb/djbunix.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index ce34d25..e253376 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -152,7 +152,7 @@ Safe wrapper around

- 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