From owner-svn-src-all@FreeBSD.ORG Fri Aug 16 15:56:05 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F0AA0700; Fri, 16 Aug 2013 15:56:04 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 70BF82067; Fri, 16 Aug 2013 15:56:04 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id bq6so566607qab.19 for ; Fri, 16 Aug 2013 08:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3A2+BdwNYDMqhGfqdoebcD67NYcQqOI89xcQ/zDtY0g=; b=TRwq7tD7mx4Ebx2+bxUSN/8QDU79AtF4OLJRlgvcVAe/Mbv95AG+w6UDc/lINqbZI6 xd850WpagifnIK/uuZUAEQGlwTVln2Puqb7Am6TXCnvHe/hqEsIk/GfksTKZQ2OyMHoH F0n4Z8YBM4i2JJsTaK9BjwS5dfb5RMQbBiyzNm+8mzNDRBEM2QC+IFj6MrsCs2aYfESy ktHFXrBfG26GL2Fk8Xuf9N5pT609t47ejYp8zStvmu5MuT2kOldzWRWzYEFZsSk8c8ES aYTFxsHtb193Mz0Im9s4y9iuvRCKqwM7g9uTYdeahNPChbCvljsMsL6uc7joI5EO3XQN UEFQ== MIME-Version: 1.0 X-Received: by 10.224.7.5 with SMTP id b5mr462421qab.65.1376668563588; Fri, 16 Aug 2013 08:56:03 -0700 (PDT) Received: by 10.49.11.173 with HTTP; Fri, 16 Aug 2013 08:56:03 -0700 (PDT) In-Reply-To: <201308161316.r7GDGReP080931@svn.freebsd.org> References: <201308161316.r7GDGReP080931@svn.freebsd.org> Date: Fri, 16 Aug 2013 11:56:03 -0400 Message-ID: Subject: Re: svn commit: r254410 - in head/lib/libc: gen sys From: Benjamin Kaduk To: Jilles Tjoelker Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" 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, 16 Aug 2013 15:56:05 -0000 On Fri, Aug 16, 2013 at 9:16 AM, Jilles Tjoelker wrote: > Author: jilles > Date: Fri Aug 16 13:16:27 2013 > New Revision: 254410 > URL: http://svnweb.freebsd.org/changeset/base/254410 > > Log: > Add man page dup3(3). > > Added: head/lib/libc/gen/dup3.3 > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/lib/libc/gen/dup3.3 Fri Aug 16 13:16:27 2013 (r254410) > @@ -0,0 +1,120 @@ > +.\" Copyright (c) 1980, 1991, 1993 > +.\" The Regents of the University of California. All rights reserved. > You are donating the work to the Regents? And it was done twenty years ago? > +.\" > +.\" Redistribution and use in source and binary forms, with or without > +.\" modification, are permitted provided that the following conditions > +.\" are met: > +.\" 1. Redistributions of source code must retain the above copyright > +.\" notice, this list of conditions and the following disclaimer. > +.\" 2. Redistributions in binary form must reproduce the above copyright > +.\" notice, this list of conditions and the following disclaimer in the > +.\" documentation and/or other materials provided with the > distribution. > +.\" 4. Neither the name of the University nor the names of its > contributors > +.\" may be used to endorse or promote products derived from this > software > +.\" without specific prior written permission. > +.\" > +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' > AND > +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > PURPOSE > +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE > LIABLE > +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > CONSEQUENTIAL > +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE > GOODS > +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, > STRICT > +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY > WAY > +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > +.\" SUCH DAMAGE. > +.\" > +.\" @(#)dup.2 8.1 (Berkeley) 6/4/93 > This file is not named dup.2... > +.\" $FreeBSD$ > +.\" > +.Dd August 16, 2013 > +.Dt DUP3 3 > +.Os > +.Sh NAME > +.Nm dup3 > +.Nd duplicate an existing file descriptor > +.Sh LIBRARY > +.Lb libc > +.Sh SYNOPSIS > +.In fcntl.h > +.In unistd.h > +.Ft int > +.Fn dup3 "int oldd" "int newd" "int flags" > +.Sh DESCRIPTION > +The > +.Fn dup3 > Hmm, I guess .Nm is not quite appropriate here, so this is okay. -Ben > +function > +duplicates an existing object descriptor > +while allowing the value of the new descriptor to be specified.