]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC to RELENG_7:
authorantoine <antoine@FreeBSD.org>
Sun, 20 Apr 2008 19:32:46 +0000 (19:32 +0000)
committerantoine <antoine@FreeBSD.org>
Sun, 20 Apr 2008 19:32:46 +0000 (19:32 +0000)
commitbdc8481556f5026bed1bb54a4a39707388a41901
treeca87c385e7421f5f68504f5752929eb3d67611fd
parent68d5e6ee5dc8dd3b05e1d91c8d39be196fe72dcb
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
lib/libc/sys/fcntl.2
sys/kern/kern_descrip.c
sys/sys/fcntl.h
sys/sys/param.h
tools/regression/file/dup/dup.c