diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-05 00:10:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-05 00:10:40 +0000 |
commit | d65ddb3495d5a35e1b00ec6fde71d6f0475264be (patch) | |
tree | 9364800cb02c0ac981db43f940de72161961e15e /rt/aio_read.c | |
parent | f6948bdc7c239701d4e9661b7c61bd9f88f919a2 (diff) | |
download | glibc-d65ddb3495d5a35e1b00ec6fde71d6f0475264be.zip glibc-d65ddb3495d5a35e1b00ec6fde71d6f0475264be.tar.gz glibc-d65ddb3495d5a35e1b00ec6fde71d6f0475264be.tar.bz2 |
Update.
* rt/aio_fsync.c: Likewise.
Diffstat (limited to 'rt/aio_read.c')
-rw-r--r-- | rt/aio_read.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rt/aio_read.c b/rt/aio_read.c index 871ce99..4b5d404 100644 --- a/rt/aio_read.c +++ b/rt/aio_read.c @@ -1,5 +1,5 @@ /* Asynchronous read. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -27,5 +27,6 @@ int aio_read (aiocbp) struct aiocb *aiocbp; { - return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) != NULL; + return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) == NULL + ? -1 : 0); } |