]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update from main line.
authorUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 00:11:26 +0000 (00:11 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 00:11:26 +0000 (00:11 +0000)
ChangeLog
rt/aio_fsync.c

index 7fad05b591a527da8944221687426e3a8509f482..16678d62366eb4e88ba3245246502edc2aa970ec 100644 (file)
--- 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  <schwab@suse.de>
index c813654b6195320921ab2ca48e83b5bc8db2fee1..72d4837b38562ba27c0c93df8c354ce066ee3656 100644 (file)
@@ -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 <drepper@cygnus.com>, 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)