Re: dup2() vs dup3() inconsistency when

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ulrich Drepper
Date: Thursday, October 9, 2008 - 1:31 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

H. Peter Anvin wrote:

No.  We deliberately decided on this change.  Otherwise, what is the
result of dup3(fd, fd, O_CLOEXEC)?  There is no reason to use
dup2(fd,fd), so why the hell somebody wants to defend this is beyond me.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjuaisACgkQ2ijCOnn/RHRBBgCeMtzyHtpv7jt5a2XxIq9LEoDN
ZVYAnixMwtW6d6SL55MvrKwV/B5Yv1Cm
=MCqO
-----END PGP SIGNATURE-----
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 5:10 am)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 10:21 am)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 1:31 pm)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 1:43 pm)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 1:52 pm)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 1:57 pm)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 2:04 pm)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 10:01 pm)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 10:04 pm)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 5:09 am)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Fri Oct 10, 5:15 am)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 6:02 am)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Fri Oct 10, 6:15 am)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 6:31 am)
Re: dup2() vs dup3() inconsistency when, Heikki Orsila, (Fri Oct 10, 6:43 am)