From: Ulrich Drepper Date: Thu, 5 Aug 1999 00:11:26 +0000 (+0000) Subject: Update from main line. X-Git-Tag: cvs/glibc_2-1-2~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e886ed714b677b7d3603c72259f153db3a2ab77;p=thirdparty%2Fglibc.git Update from main line. --- diff --git a/ChangeLog b/ChangeLog index 7fad05b591a..16678d62366 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ * rt/aio_read64.c: Likewise. Reported by Christian Gafton. + * 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. 1999-08-04 Andreas Schwab 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)