From owner-cvs-src@FreeBSD.ORG Sat Mar 8 22:02:21 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E97D7106566B; Sat, 8 Mar 2008 22:02:21 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D8C8F8FC17; Sat, 8 Mar 2008 22:02:21 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m28M2Lnw070690; Sat, 8 Mar 2008 22:02:21 GMT (envelope-from antoine@repoman.freebsd.org) Received: (from antoine@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m28M2Lxu070689; Sat, 8 Mar 2008 22:02:21 GMT (envelope-from antoine) Message-Id: <200803082202.m28M2Lxu070689@repoman.freebsd.org> From: Antoine Brodin Date: Sat, 8 Mar 2008 22:02:21 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/sys fcntl.2 src/sys/kern kern_descrip.c src/sys/sys fcntl.h src/tools/regression/file/dup dup.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 22:02:22 -0000 antoine 2008-03-08 22:02:21 UTC FreeBSD src repository Modified files: lib/libc/sys fcntl.2 sys/kern kern_descrip.c sys/sys fcntl.h tools/regression/file/dup dup.c Log: Introduce a new F_DUP2FD command to fcntl(2), for compatibility with Solaris and AIX. fcntl(fd, F_DUP2FD, arg) and dup2(fd, arg) are functionnaly equivalent. Document it. Add some regression tests (identical to the dup2(2) regression tests). PR: 120233 Submitted by: Jukka Ukkonen Approved by: rwaston (mentor) MFC after: 1 month Revision Changes Path 1.46 +37 -1 src/lib/libc/sys/fcntl.2 1.325 +6 -1 src/sys/kern/kern_descrip.c 1.18 +1 -0 src/sys/sys/fcntl.h 1.3 +71 -2 src/tools/regression/file/dup/dup.c