Re: [PATCH] dup2 w/flags

From: Michael Kerrisk
Date: Mon Apr 28 2008 - 05:43:29 EST


On 4/28/08, Ulrich Drepper <drepper@xxxxxxxxxx> wrote:
> This patch adds dup3 which is dup2 with an additional parameter. The
> parameter takes the usual O_* flags, with only O_CLOEXEC handled so far
> (it's possible to handle O_NONBLOCK in future, if this is wanted).
>
> I've read some people mentioning that we simply should use a new fcntl()
> extension similar to F_DUPFD_CLOEXEC. I think that's a terrible idea
> and in any case not better than sys_indirect. A new syscall is the
> cleanest solution and it's really only a little bit of effort.

Ulrich,

To repeat my earlier request, and as requested in Documentation/HOWTO,
could you please CC me on API changes. This alerts me to what may
eventually need documenting in man-pages.

Cheers,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/