about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-11-16 18:56:31 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-11-16 19:12:28 +0530
commitb1848fdeec705bc7d2f64e3a365f1ff66eeb4f0d (patch)
tree43fd87fcdba15d8b7dc37eda19a595b14047f170
parentd14fbb177ac9a604b38d51034c6c61271d0df0db (diff)
downloadglibc-b1848fdeec705bc7d2f64e3a365f1ff66eeb4f0d.tar.gz
glibc-b1848fdeec705bc7d2f64e3a365f1ff66eeb4f0d.tar.xz
glibc-b1848fdeec705bc7d2f64e3a365f1ff66eeb4f0d.zip
Note in a comment that references to C++ bits are obsolete
libio is not used by libstdc++ anymore, but there are references to
streambuf are all over.
-rw-r--r--ChangeLog5
-rw-r--r--libio/libioP.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fa279585c1..6d522d60db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* libio/libioP.h: Add comment note that the references to C++
+	bits are now obsolete.
+
 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
 
 	* math/libm-test.inc (check_complex): Use asprintf.
diff --git a/libio/libioP.h b/libio/libioP.h
index a2800524ec..fe81115094 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -25,6 +25,14 @@
    This exception applies to code released by its copyright holders
    in files containing the exception.  */
 
+/* NOTE: libio is now exclusively used only by glibc since libstdc++ has its
+   own implementation.  As a result, functions that were implemented for C++
+   (like *sputn) may no longer have C++ semantics.  This is of course only
+   relevant for internal callers of these functions since these functions are
+   not intended for external use otherwise.
+
+   FIXME: All of the C++ cruft eventually needs to go away.  */
+
 #include <errno.h>
 #ifndef __set_errno
 # define __set_errno(Val) errno = (Val)