]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Jun 2000 06:17:50 +0000 (06:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Jun 2000 06:17:50 +0000 (06:17 +0000)
* libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
* libio/iofwrite.c (_IO_fwrite): Likewise.

ChangeLog
libio/iofwrite.c
libio/iofwrite_u.c

index 3314b60b47cb39130b30ac35923a7fbb3719e053..e73b97b2ca7346a157e21624ed89ed97327a6311 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
 
+       * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
+       * libio/iofwrite.c (_IO_fwrite): Likewise.
+
        * time/time.h: Add missing __THROW for clock_getcpuclockid
        prototype.
 
index 411eeb29a957d491ac6599cf8671d73b87293e80..f9c6baabaf93b09e6187727ec1b07c9042c73017 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -35,10 +35,8 @@ _IO_fwrite (buf, size, count, fp)
   _IO_size_t request = size * count;
   _IO_size_t written = 0;
   CHECK_FILE (fp, 0);
-  /* Many traditional implementations return 0 if size==0 && count > 0,
-     but ANSI requires us to return count in this case. */
   if (request == 0)
-    return count;
+    return 0;
   _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
   _IO_flockfile (fp);
   if (fp->_vtable_offset != 0 || _IO_fwide (fp, -1) == -1)
index acb5b2f527c8661d63d9b1526eb0aa316a70427a..b9f0816ddfc17d76712572115f432dbbdfe169d0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -38,10 +38,8 @@ fwrite_unlocked (buf, size, count, fp)
   _IO_size_t request = size * count;
   _IO_size_t written = 0;
   CHECK_FILE (fp, 0);
-  /* Many traditional implementations return 0 if size==0 && count > 0,
-     but ANSI requires us to return count in this case. */
   if (request == 0)
-    return count;
+    return 0;
   if (_IO_fwide (fp, -1) == -1)
     {
       written = _IO_sputn (fp, (const char *) buf, request);