Re: O_ASYNC question

From: Amos Waterland (
Date: Wed Jun 26 2002 - 16:37:55 EST

On Wed, Jun 26, 2002 at 02:11:22PM -0700, William Lee Irwin III wrote:
> On Tue, Jun 25, 2002 at 11:30:52AM -0500, Amos Waterland wrote:
> > The man page for fcntl() says:
> > If you set the O_ASYNC status flag on a file descriptor (either by
> > providing this flag with the open(2) call, or by using the F_SETFL
> > command of fcntl), a SIGIO signal is sent whenever input or output
> > becomes possible on that file descriptor.
> Not done for files and you need fsetown() for sockets and tty's.

Thanks for the reply.

The reason that I was interested is that this behavior, if implemented
for all fd types, would be useful for a scalable user-space
implementation of POSIX aio.

When you say that it is 'not done for files', does that mean that it is
not done by design, and no plans exist to implement it for files
(perhaps because completion notification is fundamentally different than
readiness notification?), or that the work just has yet to be done?

Amos W.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:11 EST