[Haskell-cafe] Re: POSIX AIO (asych I/O) ...
Jonathan Cast
jonathanccast at fastmail.fm
Wed Jul 2 02:32:32 EDT 2008
On Wed, 2008-07-02 at 02:17 -0400, Brandon S. Allbery KF8NH wrote:
> On 2008 Jul 2, at 2:15, Jonathan Cast wrote:
>
> > It seems as though it can return -1 if given non-sensical input.
> > But in
>
> The POSIX spec says it returns EINVAL in that case.
Are you sure? A little googling picks up e.g. HP docs [1] that state
RETURN VALUE
If the aiocb is invalid or if no asynchronous I/O operation is enqueued
for the aiocb, aio_error() returns -1 and errno is set to indicate the
error
It may be non-POSIX, but I'd like to see some verbiage for which HP/UX's
behavior isn't the most natural interpretation.
jcc
[1] http://docs.hp.com/en/B9106-90009/aio_error.2.html
More information about the Haskell-Cafe
mailing list