]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 00:10:40 +0000 (00:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 5 Aug 1999 00:10:40 +0000 (00:10 +0000)
* rt/aio_fsync.c: Likewise.

ChangeLog
rt/aio_fsync.c
rt/aio_read.c
rt/aio_read64.c
rt/aio_write.c
rt/aio_write64.c

index 4c99c2ed71deb710634d698e49815200df942add..ba82759f183e14d882c875fa9ebb0830e668d00d 100644 (file)
--- 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.
 
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)
index 871ce99767084308d5f8f3a28af72469796ca0cf..4b5d404190102c2777fb153eb4c1c6c2004a52e2 100644 (file)
@@ -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);
 }
index b194dda6db90713276849f5f7f6f5a7e95be9600..0006ad6303ac63a34d79d80c8dacf25e4254691b 100644 (file)
@@ -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 <drepper@cygnus.com>, 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);
 }
index 8801d89110691520234acddfcd4d026cbd6a7ef3..77ad0a685b12a51e196f93566e5ac1159c7d3d1c 100644 (file)
@@ -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 <drepper@cygnus.com>, 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);
 }
index 4d599b10621685931566647905bff9747609b7e2..bc95e50b4915ba291f7fec84e32b837ca9e734cf 100644 (file)
@@ -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);
 }