Re: [PATCH 07/18] flag parameters: timerfd_create

From: Davide Libenzi
Date: Mon May 05 2008 - 00:51:12 EST


On Sun, 4 May 2008, Ulrich Drepper wrote:

> The timerfd_create syscall already has a flags parameter. It just is
> unused so far. This patch changes this by introducing the TFD_CLOEXEC
> flag to set the close-on-exec flag for the returned file descriptor.
>
> A new flag TFD_CLOEXEC is used instead of reusing O_CLOEXEC to prevent
> exhaustion of the int bit field in case we need more flags.
>
> The following test must be adjusted for architectures other than x86 and
> x86-64 and in case the syscall numbers changed.

> Signed-off-by: Ulrich Drepper <drepper@xxxxxxxxxx>

Acked-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>



- Davide


--
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/