Re: epoll vs stdin/stdout

Miquel van Smoorenburg (miquels@cistron.nl)
Mon, 7 Jul 2003 20:18:45 +0000 (UTC)


In article <20030707200315.GA10939@mail.jlokier.co.uk>,
Jamie Lokier <jamie@shareable.org> wrote:
>Unfortunately I cannot think of a way for a process to know, in
>general, whether two fds that it is passed correspond to the same file
>*. Well, apart from trying epoll on it and seeing what happens :/

fstat() and compare st_dev and st_ino

Mike.

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