aboutsummaryrefslogtreecommitdiff
path: root/rt/aio_write64.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/aio_write64.c')
-rw-r--r--rt/aio_write64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rt/aio_write64.c b/rt/aio_write64.c
index 4d599b1062..bc95e50b49 100644
--- a/rt/aio_write64.c
+++ b/rt/aio_write64.c
@@ -1,5 +1,5 @@
/* Asynchronous write, 64bit offset version.
- 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_write64 (aiocbp)
struct aiocb64 *aiocbp;
{
- return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) != NULL;
+ return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) == NULL
+ ? -1 : 0);
}