Re: [PATCH] poll(2) timeout values

From: Alan Cox
Date: Thu Nov 10 2005 - 17:02:57 EST


On Iau, 2005-11-10 at 10:49 -0800, Ulrich Drepper wrote:
> On 11/10/05, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > There really is no need for the kernel API to match the userspace one,
>
> But if in this case the argument is not changed you would have to add
> an explicit & 0xffffffff before using the parameter.

No. The poll POSIX libc call takes an int. What the kernel ones does
with the top bits is irrelevant to applications. It is however highly
relevant to things like syscall sequences and what the syscall interface
places on the stack.

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