summaryrefslogtreecommitdiff
path: root/doc/libstddjb
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-26 10:15:27 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-26 10:15:27 +0000
commit17b28f70e02d68ccea0233cf41c6d1fcc1f35335 (patch)
treead9636e617cd8a73059d958443335c2f08985fef /doc/libstddjb
parentf268a8871a061395633d943e6f177fa8f8008963 (diff)
downloadskalibs-17b28f70e02d68ccea0233cf41c6d1fcc1f35335.tar.xz
Fix fd_cat/n doc
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/libstddjb')
-rw-r--r--doc/libstddjb/djbunix.html4
1 files 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
</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