From 40da9d2e342273ddfba56c9ab02cb09d35f4e0f1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Mar 2015 09:07:42 +0000 Subject: fd_copy/fd_move doc fix --- doc/libstddjb/djbunix.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/libstddjb/djbunix.html') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index ff8b27d..cba4e11 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -90,8 +90,8 @@ but both ends of the created pipe are in non-blocking mode and close-on

int fd_copy (int to, int from)
-Copies the open fd from to number to. to -must not refer to an already open fd. +Copies the open fd from to number to. If to +was already open, it is closed before the copy. Returns 0 if it succeeds, or -1 (and sets errno) if it fails.

@@ -104,8 +104,8 @@ Returns 0 if it succeeds, or -1 (and sets errno) if it fails.

int fd_move (int to, int from)
-Moves the open fd from to number to. to -must not refer to an already open fd, unless it's equal to from. +Moves the open fd from to number to. If to +was already open, it is closed before the move. Returns 0 if it succeeds, or -1 (and sets errno) if it fails.

-- cgit v1.2.3