From owner-svn-src-all@FreeBSD.ORG Fri May 31 22:09:32 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7282BB9A; Fri, 31 May 2013 22:09:32 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 63824EFF; Fri, 31 May 2013 22:09:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4VM9W8M086297; Fri, 31 May 2013 22:09:32 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4VM9WJ7086296; Fri, 31 May 2013 22:09:32 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201305312209.r4VM9WJ7086296@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 31 May 2013 22:09:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251203 - head/lib/libc/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 22:09:32 -0000 Author: jilles Date: Fri May 31 22:09:31 2013 New Revision: 251203 URL: http://svnweb.freebsd.org/changeset/base/251203 Log: dup(2): Clarify return value, in particular of dup2(). Modified: head/lib/libc/sys/dup.2 Modified: head/lib/libc/sys/dup.2 ============================================================================== --- head/lib/libc/sys/dup.2 Fri May 31 22:08:25 2013 (r251202) +++ head/lib/libc/sys/dup.2 Fri May 31 22:09:31 2013 (r251203) @@ -28,7 +28,7 @@ .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd April 21, 2013 +.Dd June 1, 2013 .Dt DUP 2 .Os .Sh NAME @@ -113,10 +113,11 @@ is a valid descriptor, then .Fn dup2 is successful, and does nothing. .Sh RETURN VALUES -The value -1 is returned if an error occurs in either call. -The external variable +These calls return the new file descriptor if successful; +otherwise the value -1 is returned and +the external variable .Va errno -indicates the cause of the error. +is set to indicate the cause of the error. .Sh ERRORS The .Fn dup