]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix typos in comments
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 5 Sep 2012 16:34:10 +0000 (22:04 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 5 Sep 2012 16:34:57 +0000 (22:04 +0530)
        * libio/fileops.c: Fix typos in comments.
        * libio/oldfileops.c: Likewise.
        * libio/wfileops.c: Likewise.

ChangeLog
libio/fileops.c
libio/oldfileops.c
libio/wfileops.c

index 0e091b1f4371fb80558d49cccddb45d05a706f87..244dc8080072f7585e88c0611c8248a6d7d2a0cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * libio/fileops.c: Fix typos in comments.
+       * libio/oldfileops.c: Likewise.
+       * libio/wfileops.c: Likewise.
+
 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        [BZ #1349]
index 7c7fef1c758fecd86b8248d59315ac4eb5c0f1d5..43973c535de757582f618b9aeefe86dcb09994de 100644 (file)
@@ -101,7 +101,7 @@ extern struct __gconv_trans_data __libio_translit attribute_hidden;
    to _IO_buf_base, though not necessarily if we have switched from
    get mode to put mode.  (The reason is to maintain the invariant
    that _IO_read_end corresponds to the external file position.)
-   _IO_write_base is non-NULL and usually equal to _IO_base_base.
+   _IO_write_base is non-NULL and usually equal to _IO_buf_base.
    We also have _IO_write_end == _IO_buf_end, but only in fully buffered mode.
    The un-flushed character are those between _IO_write_base and _IO_write_ptr.
 
index c68ca6a76f38668bf283a598cb78046a523889d8..8fda0484aa323a64f74991f2e6845f4d84dc70f9 100644 (file)
@@ -76,7 +76,7 @@ extern int errno;
    to _IO_buf_base, though not necessarily if we have switched from
    get mode to put mode.  (The reason is to maintain the invariant
    that _IO_read_end corresponds to the external file position.)
-   _IO_write_base is non-NULL and usually equal to _IO_base_base.
+   _IO_write_base is non-NULL and usually equal to _IO_buf_base.
    We also have _IO_write_end == _IO_buf_end, but only in fully buffered mode.
    The un-flushed character are those between _IO_write_base and _IO_write_ptr.
 
@@ -492,10 +492,10 @@ _IO_old_file_seekoff (fp, offset, dir, mode)
   /* Flush unwritten characters.
      (This may do an unneeded write if we seek within the buffer.
      But to be able to switch to reading, we would need to set
-     egptr to ptr.  That can't be done in the current design,
+     egptr to pptr.  That can't be done in the current design,
      which assumes file_ptr() is eGptr.  Anyway, since we probably
      end up flushing when we close(), it doesn't make much difference.)
-     FIXME: simulate mem-papped files. */
+     FIXME: simulate mem-mapped files. */
 
   if (fp->_IO_write_ptr > fp->_IO_write_base || _IO_in_put_mode (fp))
     if (_IO_switch_to_get_mode (fp))
index 3f628bfd1b7ab1ac644f165a0b1368078d870e3e..b790029ffc7cb1e7879a51780abe2ad17ddc2819 100644 (file)
@@ -589,7 +589,7 @@ _IO_wfile_seekoff (fp, offset, dir, mode)
   /* Flush unwritten characters.
      (This may do an unneeded write if we seek within the buffer.
      But to be able to switch to reading, we would need to set
-     egptr to ptr.  That can't be done in the current design,
+     egptr to pptr.  That can't be done in the current design,
      which assumes file_ptr() is eGptr.  Anyway, since we probably
      end up flushing when we close(), it doesn't make much difference.)
      FIXME: simulate mem-mapped files. */