From: Ulrich Drepper Date: Thu, 5 Aug 1999 00:10:40 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/pre-glibc-2_1_3~528 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d65ddb3495d5a35e1b00ec6fde71d6f0475264be;p=thirdparty%2Fglibc.git Update. * rt/aio_fsync.c: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 4c99c2ed71d..ba82759f183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * rt/aio_write.c: Fix return value. * rt/aio_write64.c: Likewise. + * rt/aio_fsync.c: Likewise. * rt/aio_misc.c: Set errno at correct place. diff --git a/rt/aio_fsync.c b/rt/aio_fsync.c index c813654b619..72d4837b385 100644 --- a/rt/aio_fsync.c +++ b/rt/aio_fsync.c @@ -1,5 +1,5 @@ /* Synchronize I/O in given file descriptor. - 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 , 1997. @@ -35,8 +35,9 @@ int aio_fsync (int op, struct aiocb *aiocbp) { - return __aio_enqueue_request ((aiocb_union *) aiocbp, - op == O_SYNC ? LIO_SYNC : LIO_DSYNC) != NULL; + return (__aio_enqueue_request ((aiocb_union *) aiocbp, + op == O_SYNC ? LIO_SYNC : LIO_DSYNC) == NULL + ? -1 : 0); } weak_alias (aio_fsync, aio_fsync64) diff --git a/rt/aio_read.c b/rt/aio_read.c index 871ce997670..4b5d4041901 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 , 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); } diff --git a/rt/aio_read64.c b/rt/aio_read64.c index b194dda6db9..0006ad6303a 100644 --- a/rt/aio_read64.c +++ b/rt/aio_read64.c @@ -1,5 +1,5 @@ /* Asynchronous read, 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 , 1997. @@ -27,5 +27,6 @@ int aio_read64 (aiocbp) struct aiocb64 *aiocbp; { - return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) != NULL; + return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) == NULL + ? -1 : 0); } diff --git a/rt/aio_write.c b/rt/aio_write.c index 8801d891106..77ad0a685b1 100644 --- a/rt/aio_write.c +++ b/rt/aio_write.c @@ -1,5 +1,5 @@ /* Asynchronous write. - 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 , 1997. @@ -27,5 +27,6 @@ int aio_write (aiocbp) struct aiocb *aiocbp; { - return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) != NULL; + return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) == NULL + ? -1 : 0); } diff --git a/rt/aio_write64.c b/rt/aio_write64.c index 4d599b10621..bc95e50b491 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 , 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); }