Date: Sun, 20 Apr 2008 19:32:46 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/sys fcntl.2 src/sys/kern kern_descrip.c src/sys/sys fcntl.h param.h src/tools/regression/file/dup dup.c Message-ID: <200804201932.m3KJWkkr073491@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
antoine 2008-04-20 19:32:46 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
lib/libc/sys fcntl.2
sys/kern kern_descrip.c
sys/sys fcntl.h param.h
tools/regression/file/dup dup.c
Log:
MFC to RELENG_7:
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.45.2.2 +37 -1 src/lib/libc/sys/fcntl.2
1.313.2.5 +6 -1 src/sys/kern/kern_descrip.c
1.16.18.2 +1 -1 src/sys/sys/fcntl.h
1.308.2.11 +1 -1 src/sys/sys/param.h
1.2.2.1 +71 -2 src/tools/regression/file/dup/dup.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804201932.m3KJWkkr073491>
