Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/Banner glibc-2.17-931-g30bbc0c.new/c_stubs/Banner
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/Banner	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/Banner	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1 @@
Siddhesh Poyarekar 17b00fb
+The C stubs add-on version 2.1.2.
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/ChangeLog glibc-2.17-931-g30bbc0c.new/c_stubs/ChangeLog
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/ChangeLog	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/ChangeLog	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,46 @@
Siddhesh Poyarekar 17b00fb
+2006-03-01  Jakub Jelinek  <jakub@redhat.com>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* configure (libc_add_on_canonical, libc_add_on_subdir): Set.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+2001-08-07  Jakub Jelinek  <jakub@redhat.com>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* gconv_stubs.c (__gconv_lookup_alias): Remove.
Siddhesh Poyarekar 17b00fb
+	(__gconv_NOOP, __gconv_compare_alias, __gconv_release_cache,
Siddhesh Poyarekar 17b00fb
+	__gconv_release_step): New.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+2001-06-07  Jakub Jelinek  <jakub@redhat.com>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* gconv_stubs.c (__gconv_lookup_alias): New.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+2000-02-27  Cristian Gafton  <gafton@redhat.com>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* gconv_stubs.c: Return __gconv_OK for:
Siddhesh Poyarekar 17b00fb
+	__gconv_transform_ascii_internal
Siddhesh Poyarekar 17b00fb
+	__gconv_transform_ucs2little_internal
Siddhesh Poyarekar 17b00fb
+	__gconv_transform_utf16_internal
Siddhesh Poyarekar 17b00fb
+	__gconv_transform_utf8_internal
Siddhesh Poyarekar 17b00fb
+	__gconv_transform_ucs2_internal
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+2000-02-25  Cristian Gafton  <gafton@redhat.com>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* gconv_stubs.c: add __c_stubs_is_compiled_in so we can detect when
Siddhesh Poyarekar 17b00fb
+	the library is linked in.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Wed Dec  8 13:47:25 1999  Ivan Brunello <ivan.brunello@tiscalinet.it>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* Makefile (extra-objs): Changed stubs.o to gconv_stubs.o.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Sun Dec  5 11:32:17 1999  H.J. Lu  <hjl@gnu.org>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* gconv_stubs.c: Renamed from stubs.c.
Siddhesh Poyarekar 17b00fb
+	Support glibc 2.1.x.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Mon Aug 23 16:42:05 1999  H.J. Lu  <hjl@gnu.org>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+	* Banner: New.
Siddhesh Poyarekar 17b00fb
+	* COPYING.LIB: Likewise.
Siddhesh Poyarekar 17b00fb
+	* Makefile: Likewise.
Siddhesh Poyarekar 17b00fb
+	* README: Likewise.
Siddhesh Poyarekar 17b00fb
+	* configure: Likewise.
Siddhesh Poyarekar 17b00fb
+	* stubs.c: Likewise.
Siddhesh Poyarekar 17b00fb
+	* test-stdio.c: Likewise.
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/configure glibc-2.17-931-g30bbc0c.new/c_stubs/configure
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/configure	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/configure	2013-08-16 16:26:11.637020805 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,5 @@
Siddhesh Poyarekar 17b00fb
+# This is only to keep the GNU C library configure mechanism happy.
Siddhesh Poyarekar 17b00fb
+# This is a shell script fragment sourced by the main configure script.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+libc_add_on_canonical=
Siddhesh Poyarekar 17b00fb
+libc_add_on_subdirs=.
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/COPYING.LIB glibc-2.17-931-g30bbc0c.new/c_stubs/COPYING.LIB
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/COPYING.LIB	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/COPYING.LIB	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,482 @@
Siddhesh Poyarekar 17b00fb
+		  GNU LIBRARY GENERAL PUBLIC LICENSE
Siddhesh Poyarekar 17b00fb
+		       Version 2, June 1991
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+ Copyright (C) 1991 Free Software Foundation, Inc.
Siddhesh Poyarekar 17b00fb
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Siddhesh Poyarekar 17b00fb
+ Everyone is permitted to copy and distribute verbatim copies
Siddhesh Poyarekar 17b00fb
+ of this license document, but changing it is not allowed.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+[This is the first released version of the library GPL.  It is
Siddhesh Poyarekar 17b00fb
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+			    Preamble
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  The licenses for most software are designed to take away your
Siddhesh Poyarekar 17b00fb
+freedom to share and change it.  By contrast, the GNU General Public
Siddhesh Poyarekar 17b00fb
+Licenses are intended to guarantee your freedom to share and change
Siddhesh Poyarekar 17b00fb
+free software--to make sure the software is free for all its users.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  This license, the Library General Public License, applies to some
Siddhesh Poyarekar 17b00fb
+specially designated Free Software Foundation software, and to any
Siddhesh Poyarekar 17b00fb
+other libraries whose authors decide to use it.  You can use it for
Siddhesh Poyarekar 17b00fb
+your libraries, too.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  When we speak of free software, we are referring to freedom, not
Siddhesh Poyarekar 17b00fb
+price.  Our General Public Licenses are designed to make sure that you
Siddhesh Poyarekar 17b00fb
+have the freedom to distribute copies of free software (and charge for
Siddhesh Poyarekar 17b00fb
+this service if you wish), that you receive source code or can get it
Siddhesh Poyarekar 17b00fb
+if you want it, that you can change the software or use pieces of it
Siddhesh Poyarekar 17b00fb
+in new free programs; and that you know you can do these things.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  To protect your rights, we need to make restrictions that forbid
Siddhesh Poyarekar 17b00fb
+anyone to deny you these rights or to ask you to surrender the rights.
Siddhesh Poyarekar 17b00fb
+These restrictions translate to certain responsibilities for you if
Siddhesh Poyarekar 17b00fb
+you distribute copies of the library, or if you modify it.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  For example, if you distribute copies of the library, whether gratis
Siddhesh Poyarekar 17b00fb
+or for a fee, you must give the recipients all the rights that we gave
Siddhesh Poyarekar 17b00fb
+you.  You must make sure that they, too, receive or can get the source
Siddhesh Poyarekar 17b00fb
+code.  If you link a program with the library, you must provide
Siddhesh Poyarekar 17b00fb
+complete object files to the recipients so that they can relink them
Siddhesh Poyarekar 17b00fb
+with the library, after making changes to the library and recompiling
Siddhesh Poyarekar 17b00fb
+it.  And you must show them these terms so they know their rights.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Our method of protecting your rights has two steps: (1) copyright
Siddhesh Poyarekar 17b00fb
+the library, and (2) offer you this license which gives you legal
Siddhesh Poyarekar 17b00fb
+permission to copy, distribute and/or modify the library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Also, for each distributor's protection, we want to make certain
Siddhesh Poyarekar 17b00fb
+that everyone understands that there is no warranty for this free
Siddhesh Poyarekar 17b00fb
+library.  If the library is modified by someone else and passed on, we
Siddhesh Poyarekar 17b00fb
+want its recipients to know that what they have is not the original
Siddhesh Poyarekar 17b00fb
+version, so that any problems introduced by others will not reflect on
Siddhesh Poyarekar 17b00fb
+the original authors' reputations.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Finally, any free program is threatened constantly by software
Siddhesh Poyarekar 17b00fb
+patents.  We wish to avoid the danger that companies distributing free
Siddhesh Poyarekar 17b00fb
+software will individually obtain patent licenses, thus in effect
Siddhesh Poyarekar 17b00fb
+transforming the program into proprietary software.  To prevent this,
Siddhesh Poyarekar 17b00fb
+we have made it clear that any patent must be licensed for everyone's
Siddhesh Poyarekar 17b00fb
+free use or not licensed at all.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Most GNU software, including some libraries, is covered by the ordinary
Siddhesh Poyarekar 17b00fb
+GNU General Public License, which was designed for utility programs.  This
Siddhesh Poyarekar 17b00fb
+license, the GNU Library General Public License, applies to certain
Siddhesh Poyarekar 17b00fb
+designated libraries.  This license is quite different from the ordinary
Siddhesh Poyarekar 17b00fb
+one; be sure to read it in full, and don't assume that anything in it is
Siddhesh Poyarekar 17b00fb
+the same as in the ordinary license.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  The reason we have a separate public license for some libraries is that
Siddhesh Poyarekar 17b00fb
+they blur the distinction we usually make between modifying or adding to a
Siddhesh Poyarekar 17b00fb
+program and simply using it.  Linking a program with a library, without
Siddhesh Poyarekar 17b00fb
+changing the library, is in some sense simply using the library, and is
Siddhesh Poyarekar 17b00fb
+analogous to running a utility program or application program.  However, in
Siddhesh Poyarekar 17b00fb
+a textual and legal sense, the linked executable is a combined work, a
Siddhesh Poyarekar 17b00fb
+derivative of the original library, and the ordinary General Public License
Siddhesh Poyarekar 17b00fb
+treats it as such.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Because of this blurred distinction, using the ordinary General
Siddhesh Poyarekar 17b00fb
+Public License for libraries did not effectively promote software
Siddhesh Poyarekar 17b00fb
+sharing, because most developers did not use the libraries.  We
Siddhesh Poyarekar 17b00fb
+concluded that weaker conditions might promote sharing better.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  However, unrestricted linking of non-free programs would deprive the
Siddhesh Poyarekar 17b00fb
+users of those programs of all benefit from the free status of the
Siddhesh Poyarekar 17b00fb
+libraries themselves.  This Library General Public License is intended to
Siddhesh Poyarekar 17b00fb
+permit developers of non-free programs to use free libraries, while
Siddhesh Poyarekar 17b00fb
+preserving your freedom as a user of such programs to change the free
Siddhesh Poyarekar 17b00fb
+libraries that are incorporated in them.  (We have not seen how to achieve
Siddhesh Poyarekar 17b00fb
+this as regards changes in header files, but we have achieved it as regards
Siddhesh Poyarekar 17b00fb
+changes in the actual functions of the Library.)  The hope is that this
Siddhesh Poyarekar 17b00fb
+will lead to faster development of free libraries.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  The precise terms and conditions for copying, distribution and
Siddhesh Poyarekar 17b00fb
+modification follow.  Pay close attention to the difference between a
Siddhesh Poyarekar 17b00fb
+"work based on the library" and a "work that uses the library".  The
Siddhesh Poyarekar 17b00fb
+former contains code derived from the library, while the latter only
Siddhesh Poyarekar 17b00fb
+works together with the library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Note that it is possible for a library to be covered by the ordinary
Siddhesh Poyarekar 17b00fb
+General Public License rather than by this special one.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+		  GNU LIBRARY GENERAL PUBLIC LICENSE
Siddhesh Poyarekar 17b00fb
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  0. This License Agreement applies to any software library which
Siddhesh Poyarekar 17b00fb
+contains a notice placed by the copyright holder or other authorized
Siddhesh Poyarekar 17b00fb
+party saying it may be distributed under the terms of this Library
Siddhesh Poyarekar 17b00fb
+General Public License (also called "this License").  Each licensee is
Siddhesh Poyarekar 17b00fb
+addressed as "you".
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  A "library" means a collection of software functions and/or data
Siddhesh Poyarekar 17b00fb
+prepared so as to be conveniently linked with application programs
Siddhesh Poyarekar 17b00fb
+(which use some of those functions and data) to form executables.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  The "Library", below, refers to any such software library or work
Siddhesh Poyarekar 17b00fb
+which has been distributed under these terms.  A "work based on the
Siddhesh Poyarekar 17b00fb
+Library" means either the Library or any derivative work under
Siddhesh Poyarekar 17b00fb
+copyright law: that is to say, a work containing the Library or a
Siddhesh Poyarekar 17b00fb
+portion of it, either verbatim or with modifications and/or translated
Siddhesh Poyarekar 17b00fb
+straightforwardly into another language.  (Hereinafter, translation is
Siddhesh Poyarekar 17b00fb
+included without limitation in the term "modification".)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  "Source code" for a work means the preferred form of the work for
Siddhesh Poyarekar 17b00fb
+making modifications to it.  For a library, complete source code means
Siddhesh Poyarekar 17b00fb
+all the source code for all modules it contains, plus any associated
Siddhesh Poyarekar 17b00fb
+interface definition files, plus the scripts used to control compilation
Siddhesh Poyarekar 17b00fb
+and installation of the library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Activities other than copying, distribution and modification are not
Siddhesh Poyarekar 17b00fb
+covered by this License; they are outside its scope.  The act of
Siddhesh Poyarekar 17b00fb
+running a program using the Library is not restricted, and output from
Siddhesh Poyarekar 17b00fb
+such a program is covered only if its contents constitute a work based
Siddhesh Poyarekar 17b00fb
+on the Library (independent of the use of the Library in a tool for
Siddhesh Poyarekar 17b00fb
+writing it).  Whether that is true depends on what the Library does
Siddhesh Poyarekar 17b00fb
+and what the program that uses the Library does.
Siddhesh Poyarekar 17b00fb
+  
Siddhesh Poyarekar 17b00fb
+  1. You may copy and distribute verbatim copies of the Library's
Siddhesh Poyarekar 17b00fb
+complete source code as you receive it, in any medium, provided that
Siddhesh Poyarekar 17b00fb
+you conspicuously and appropriately publish on each copy an
Siddhesh Poyarekar 17b00fb
+appropriate copyright notice and disclaimer of warranty; keep intact
Siddhesh Poyarekar 17b00fb
+all the notices that refer to this License and to the absence of any
Siddhesh Poyarekar 17b00fb
+warranty; and distribute a copy of this License along with the
Siddhesh Poyarekar 17b00fb
+Library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  You may charge a fee for the physical act of transferring a copy,
Siddhesh Poyarekar 17b00fb
+and you may at your option offer warranty protection in exchange for a
Siddhesh Poyarekar 17b00fb
+fee.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  2. You may modify your copy or copies of the Library or any portion
Siddhesh Poyarekar 17b00fb
+of it, thus forming a work based on the Library, and copy and
Siddhesh Poyarekar 17b00fb
+distribute such modifications or work under the terms of Section 1
Siddhesh Poyarekar 17b00fb
+above, provided that you also meet all of these conditions:
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    a) The modified work must itself be a software library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    b) You must cause the files modified to carry prominent notices
Siddhesh Poyarekar 17b00fb
+    stating that you changed the files and the date of any change.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    c) You must cause the whole of the work to be licensed at no
Siddhesh Poyarekar 17b00fb
+    charge to all third parties under the terms of this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    d) If a facility in the modified Library refers to a function or a
Siddhesh Poyarekar 17b00fb
+    table of data to be supplied by an application program that uses
Siddhesh Poyarekar 17b00fb
+    the facility, other than as an argument passed when the facility
Siddhesh Poyarekar 17b00fb
+    is invoked, then you must make a good faith effort to ensure that,
Siddhesh Poyarekar 17b00fb
+    in the event an application does not supply such function or
Siddhesh Poyarekar 17b00fb
+    table, the facility still operates, and performs whatever part of
Siddhesh Poyarekar 17b00fb
+    its purpose remains meaningful.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    (For example, a function in a library to compute square roots has
Siddhesh Poyarekar 17b00fb
+    a purpose that is entirely well-defined independent of the
Siddhesh Poyarekar 17b00fb
+    application.  Therefore, Subsection 2d requires that any
Siddhesh Poyarekar 17b00fb
+    application-supplied function or table used by this function must
Siddhesh Poyarekar 17b00fb
+    be optional: if the application does not supply it, the square
Siddhesh Poyarekar 17b00fb
+    root function must still compute square roots.)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+These requirements apply to the modified work as a whole.  If
Siddhesh Poyarekar 17b00fb
+identifiable sections of that work are not derived from the Library,
Siddhesh Poyarekar 17b00fb
+and can be reasonably considered independent and separate works in
Siddhesh Poyarekar 17b00fb
+themselves, then this License, and its terms, do not apply to those
Siddhesh Poyarekar 17b00fb
+sections when you distribute them as separate works.  But when you
Siddhesh Poyarekar 17b00fb
+distribute the same sections as part of a whole which is a work based
Siddhesh Poyarekar 17b00fb
+on the Library, the distribution of the whole must be on the terms of
Siddhesh Poyarekar 17b00fb
+this License, whose permissions for other licensees extend to the
Siddhesh Poyarekar 17b00fb
+entire whole, and thus to each and every part regardless of who wrote
Siddhesh Poyarekar 17b00fb
+it.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Thus, it is not the intent of this section to claim rights or contest
Siddhesh Poyarekar 17b00fb
+your rights to work written entirely by you; rather, the intent is to
Siddhesh Poyarekar 17b00fb
+exercise the right to control the distribution of derivative or
Siddhesh Poyarekar 17b00fb
+collective works based on the Library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+In addition, mere aggregation of another work not based on the Library
Siddhesh Poyarekar 17b00fb
+with the Library (or with a work based on the Library) on a volume of
Siddhesh Poyarekar 17b00fb
+a storage or distribution medium does not bring the other work under
Siddhesh Poyarekar 17b00fb
+the scope of this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  3. You may opt to apply the terms of the ordinary GNU General Public
Siddhesh Poyarekar 17b00fb
+License instead of this License to a given copy of the Library.  To do
Siddhesh Poyarekar 17b00fb
+this, you must alter all the notices that refer to this License, so
Siddhesh Poyarekar 17b00fb
+that they refer to the ordinary GNU General Public License, version 2,
Siddhesh Poyarekar 17b00fb
+instead of to this License.  (If a newer version than version 2 of the
Siddhesh Poyarekar 17b00fb
+ordinary GNU General Public License has appeared, then you can specify
Siddhesh Poyarekar 17b00fb
+that version instead if you wish.)  Do not make any other change in
Siddhesh Poyarekar 17b00fb
+these notices.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Once this change is made in a given copy, it is irreversible for
Siddhesh Poyarekar 17b00fb
+that copy, so the ordinary GNU General Public License applies to all
Siddhesh Poyarekar 17b00fb
+subsequent copies and derivative works made from that copy.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  This option is useful when you wish to copy part of the code of
Siddhesh Poyarekar 17b00fb
+the Library into a program that is not a library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  4. You may copy and distribute the Library (or a portion or
Siddhesh Poyarekar 17b00fb
+derivative of it, under Section 2) in object code or executable form
Siddhesh Poyarekar 17b00fb
+under the terms of Sections 1 and 2 above provided that you accompany
Siddhesh Poyarekar 17b00fb
+it with the complete corresponding machine-readable source code, which
Siddhesh Poyarekar 17b00fb
+must be distributed under the terms of Sections 1 and 2 above on a
Siddhesh Poyarekar 17b00fb
+medium customarily used for software interchange.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  If distribution of object code is made by offering access to copy
Siddhesh Poyarekar 17b00fb
+from a designated place, then offering equivalent access to copy the
Siddhesh Poyarekar 17b00fb
+source code from the same place satisfies the requirement to
Siddhesh Poyarekar 17b00fb
+distribute the source code, even though third parties are not
Siddhesh Poyarekar 17b00fb
+compelled to copy the source along with the object code.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  5. A program that contains no derivative of any portion of the
Siddhesh Poyarekar 17b00fb
+Library, but is designed to work with the Library by being compiled or
Siddhesh Poyarekar 17b00fb
+linked with it, is called a "work that uses the Library".  Such a
Siddhesh Poyarekar 17b00fb
+work, in isolation, is not a derivative work of the Library, and
Siddhesh Poyarekar 17b00fb
+therefore falls outside the scope of this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  However, linking a "work that uses the Library" with the Library
Siddhesh Poyarekar 17b00fb
+creates an executable that is a derivative of the Library (because it
Siddhesh Poyarekar 17b00fb
+contains portions of the Library), rather than a "work that uses the
Siddhesh Poyarekar 17b00fb
+library".  The executable is therefore covered by this License.
Siddhesh Poyarekar 17b00fb
+Section 6 states terms for distribution of such executables.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  When a "work that uses the Library" uses material from a header file
Siddhesh Poyarekar 17b00fb
+that is part of the Library, the object code for the work may be a
Siddhesh Poyarekar 17b00fb
+derivative work of the Library even though the source code is not.
Siddhesh Poyarekar 17b00fb
+Whether this is true is especially significant if the work can be
Siddhesh Poyarekar 17b00fb
+linked without the Library, or if the work is itself a library.  The
Siddhesh Poyarekar 17b00fb
+threshold for this to be true is not precisely defined by law.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  If such an object file uses only numerical parameters, data
Siddhesh Poyarekar 17b00fb
+structure layouts and accessors, and small macros and small inline
Siddhesh Poyarekar 17b00fb
+functions (ten lines or less in length), then the use of the object
Siddhesh Poyarekar 17b00fb
+file is unrestricted, regardless of whether it is legally a derivative
Siddhesh Poyarekar 17b00fb
+work.  (Executables containing this object code plus portions of the
Siddhesh Poyarekar 17b00fb
+Library will still fall under Section 6.)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Otherwise, if the work is a derivative of the Library, you may
Siddhesh Poyarekar 17b00fb
+distribute the object code for the work under the terms of Section 6.
Siddhesh Poyarekar 17b00fb
+Any executables containing that work also fall under Section 6,
Siddhesh Poyarekar 17b00fb
+whether or not they are linked directly with the Library itself.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  6. As an exception to the Sections above, you may also compile or
Siddhesh Poyarekar 17b00fb
+link a "work that uses the Library" with the Library to produce a
Siddhesh Poyarekar 17b00fb
+work containing portions of the Library, and distribute that work
Siddhesh Poyarekar 17b00fb
+under terms of your choice, provided that the terms permit
Siddhesh Poyarekar 17b00fb
+modification of the work for the customer's own use and reverse
Siddhesh Poyarekar 17b00fb
+engineering for debugging such modifications.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  You must give prominent notice with each copy of the work that the
Siddhesh Poyarekar 17b00fb
+Library is used in it and that the Library and its use are covered by
Siddhesh Poyarekar 17b00fb
+this License.  You must supply a copy of this License.  If the work
Siddhesh Poyarekar 17b00fb
+during execution displays copyright notices, you must include the
Siddhesh Poyarekar 17b00fb
+copyright notice for the Library among them, as well as a reference
Siddhesh Poyarekar 17b00fb
+directing the user to the copy of this License.  Also, you must do one
Siddhesh Poyarekar 17b00fb
+of these things:
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    a) Accompany the work with the complete corresponding
Siddhesh Poyarekar 17b00fb
+    machine-readable source code for the Library including whatever
Siddhesh Poyarekar 17b00fb
+    changes were used in the work (which must be distributed under
Siddhesh Poyarekar 17b00fb
+    Sections 1 and 2 above); and, if the work is an executable linked
Siddhesh Poyarekar 17b00fb
+    with the Library, with the complete machine-readable "work that
Siddhesh Poyarekar 17b00fb
+    uses the Library", as object code and/or source code, so that the
Siddhesh Poyarekar 17b00fb
+    user can modify the Library and then relink to produce a modified
Siddhesh Poyarekar 17b00fb
+    executable containing the modified Library.  (It is understood
Siddhesh Poyarekar 17b00fb
+    that the user who changes the contents of definitions files in the
Siddhesh Poyarekar 17b00fb
+    Library will not necessarily be able to recompile the application
Siddhesh Poyarekar 17b00fb
+    to use the modified definitions.)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    b) Accompany the work with a written offer, valid for at
Siddhesh Poyarekar 17b00fb
+    least three years, to give the same user the materials
Siddhesh Poyarekar 17b00fb
+    specified in Subsection 6a, above, for a charge no more
Siddhesh Poyarekar 17b00fb
+    than the cost of performing this distribution.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    c) If distribution of the work is made by offering access to copy
Siddhesh Poyarekar 17b00fb
+    from a designated place, offer equivalent access to copy the above
Siddhesh Poyarekar 17b00fb
+    specified materials from the same place.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    d) Verify that the user has already received a copy of these
Siddhesh Poyarekar 17b00fb
+    materials or that you have already sent this user a copy.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  For an executable, the required form of the "work that uses the
Siddhesh Poyarekar 17b00fb
+Library" must include any data and utility programs needed for
Siddhesh Poyarekar 17b00fb
+reproducing the executable from it.  However, as a special exception,
Siddhesh Poyarekar 17b00fb
+the source code distributed need not include anything that is normally
Siddhesh Poyarekar 17b00fb
+distributed (in either source or binary form) with the major
Siddhesh Poyarekar 17b00fb
+components (compiler, kernel, and so on) of the operating system on
Siddhesh Poyarekar 17b00fb
+which the executable runs, unless that component itself accompanies
Siddhesh Poyarekar 17b00fb
+the executable.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  It may happen that this requirement contradicts the license
Siddhesh Poyarekar 17b00fb
+restrictions of other proprietary libraries that do not normally
Siddhesh Poyarekar 17b00fb
+accompany the operating system.  Such a contradiction means you cannot
Siddhesh Poyarekar 17b00fb
+use both them and the Library together in an executable that you
Siddhesh Poyarekar 17b00fb
+distribute.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  7. You may place library facilities that are a work based on the
Siddhesh Poyarekar 17b00fb
+Library side-by-side in a single library together with other library
Siddhesh Poyarekar 17b00fb
+facilities not covered by this License, and distribute such a combined
Siddhesh Poyarekar 17b00fb
+library, provided that the separate distribution of the work based on
Siddhesh Poyarekar 17b00fb
+the Library and of the other library facilities is otherwise
Siddhesh Poyarekar 17b00fb
+permitted, and provided that you do these two things:
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    a) Accompany the combined library with a copy of the same work
Siddhesh Poyarekar 17b00fb
+    based on the Library, uncombined with any other library
Siddhesh Poyarekar 17b00fb
+    facilities.  This must be distributed under the terms of the
Siddhesh Poyarekar 17b00fb
+    Sections above.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    b) Give prominent notice with the combined library of the fact
Siddhesh Poyarekar 17b00fb
+    that part of it is a work based on the Library, and explaining
Siddhesh Poyarekar 17b00fb
+    where to find the accompanying uncombined form of the same work.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  8. You may not copy, modify, sublicense, link with, or distribute
Siddhesh Poyarekar 17b00fb
+the Library except as expressly provided under this License.  Any
Siddhesh Poyarekar 17b00fb
+attempt otherwise to copy, modify, sublicense, link with, or
Siddhesh Poyarekar 17b00fb
+distribute the Library is void, and will automatically terminate your
Siddhesh Poyarekar 17b00fb
+rights under this License.  However, parties who have received copies,
Siddhesh Poyarekar 17b00fb
+or rights, from you under this License will not have their licenses
Siddhesh Poyarekar 17b00fb
+terminated so long as such parties remain in full compliance.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  9. You are not required to accept this License, since you have not
Siddhesh Poyarekar 17b00fb
+signed it.  However, nothing else grants you permission to modify or
Siddhesh Poyarekar 17b00fb
+distribute the Library or its derivative works.  These actions are
Siddhesh Poyarekar 17b00fb
+prohibited by law if you do not accept this License.  Therefore, by
Siddhesh Poyarekar 17b00fb
+modifying or distributing the Library (or any work based on the
Siddhesh Poyarekar 17b00fb
+Library), you indicate your acceptance of this License to do so, and
Siddhesh Poyarekar 17b00fb
+all its terms and conditions for copying, distributing or modifying
Siddhesh Poyarekar 17b00fb
+the Library or works based on it.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  10. Each time you redistribute the Library (or any work based on the
Siddhesh Poyarekar 17b00fb
+Library), the recipient automatically receives a license from the
Siddhesh Poyarekar 17b00fb
+original licensor to copy, distribute, link with or modify the Library
Siddhesh Poyarekar 17b00fb
+subject to these terms and conditions.  You may not impose any further
Siddhesh Poyarekar 17b00fb
+restrictions on the recipients' exercise of the rights granted herein.
Siddhesh Poyarekar 17b00fb
+You are not responsible for enforcing compliance by third parties to
Siddhesh Poyarekar 17b00fb
+this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  11. If, as a consequence of a court judgment or allegation of patent
Siddhesh Poyarekar 17b00fb
+infringement or for any other reason (not limited to patent issues),
Siddhesh Poyarekar 17b00fb
+conditions are imposed on you (whether by court order, agreement or
Siddhesh Poyarekar 17b00fb
+otherwise) that contradict the conditions of this License, they do not
Siddhesh Poyarekar 17b00fb
+excuse you from the conditions of this License.  If you cannot
Siddhesh Poyarekar 17b00fb
+distribute so as to satisfy simultaneously your obligations under this
Siddhesh Poyarekar 17b00fb
+License and any other pertinent obligations, then as a consequence you
Siddhesh Poyarekar 17b00fb
+may not distribute the Library at all.  For example, if a patent
Siddhesh Poyarekar 17b00fb
+license would not permit royalty-free redistribution of the Library by
Siddhesh Poyarekar 17b00fb
+all those who receive copies directly or indirectly through you, then
Siddhesh Poyarekar 17b00fb
+the only way you could satisfy both it and this License would be to
Siddhesh Poyarekar 17b00fb
+refrain entirely from distribution of the Library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+If any portion of this section is held invalid or unenforceable under any
Siddhesh Poyarekar 17b00fb
+particular circumstance, the balance of the section is intended to apply,
Siddhesh Poyarekar 17b00fb
+and the section as a whole is intended to apply in other circumstances.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+It is not the purpose of this section to induce you to infringe any
Siddhesh Poyarekar 17b00fb
+patents or other property right claims or to contest validity of any
Siddhesh Poyarekar 17b00fb
+such claims; this section has the sole purpose of protecting the
Siddhesh Poyarekar 17b00fb
+integrity of the free software distribution system which is
Siddhesh Poyarekar 17b00fb
+implemented by public license practices.  Many people have made
Siddhesh Poyarekar 17b00fb
+generous contributions to the wide range of software distributed
Siddhesh Poyarekar 17b00fb
+through that system in reliance on consistent application of that
Siddhesh Poyarekar 17b00fb
+system; it is up to the author/donor to decide if he or she is willing
Siddhesh Poyarekar 17b00fb
+to distribute software through any other system and a licensee cannot
Siddhesh Poyarekar 17b00fb
+impose that choice.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+This section is intended to make thoroughly clear what is believed to
Siddhesh Poyarekar 17b00fb
+be a consequence of the rest of this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  12. If the distribution and/or use of the Library is restricted in
Siddhesh Poyarekar 17b00fb
+certain countries either by patents or by copyrighted interfaces, the
Siddhesh Poyarekar 17b00fb
+original copyright holder who places the Library under this License may add
Siddhesh Poyarekar 17b00fb
+an explicit geographical distribution limitation excluding those countries,
Siddhesh Poyarekar 17b00fb
+so that distribution is permitted only in or among countries not thus
Siddhesh Poyarekar 17b00fb
+excluded.  In such case, this License incorporates the limitation as if
Siddhesh Poyarekar 17b00fb
+written in the body of this License.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  13. The Free Software Foundation may publish revised and/or new
Siddhesh Poyarekar 17b00fb
+versions of the Library General Public License from time to time.
Siddhesh Poyarekar 17b00fb
+Such new versions will be similar in spirit to the present version,
Siddhesh Poyarekar 17b00fb
+but may differ in detail to address new problems or concerns.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Each version is given a distinguishing version number.  If the Library
Siddhesh Poyarekar 17b00fb
+specifies a version number of this License which applies to it and
Siddhesh Poyarekar 17b00fb
+"any later version", you have the option of following the terms and
Siddhesh Poyarekar 17b00fb
+conditions either of that version or of any later version published by
Siddhesh Poyarekar 17b00fb
+the Free Software Foundation.  If the Library does not specify a
Siddhesh Poyarekar 17b00fb
+license version number, you may choose any version ever published by
Siddhesh Poyarekar 17b00fb
+the Free Software Foundation.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  14. If you wish to incorporate parts of the Library into other free
Siddhesh Poyarekar 17b00fb
+programs whose distribution conditions are incompatible with these,
Siddhesh Poyarekar 17b00fb
+write to the author to ask for permission.  For software which is
Siddhesh Poyarekar 17b00fb
+copyrighted by the Free Software Foundation, write to the Free
Siddhesh Poyarekar 17b00fb
+Software Foundation; we sometimes make exceptions for this.  Our
Siddhesh Poyarekar 17b00fb
+decision will be guided by the two goals of preserving the free status
Siddhesh Poyarekar 17b00fb
+of all derivatives of our free software and of promoting the sharing
Siddhesh Poyarekar 17b00fb
+and reuse of software generally.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+			    NO WARRANTY
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
Siddhesh Poyarekar 17b00fb
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
Siddhesh Poyarekar 17b00fb
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
Siddhesh Poyarekar 17b00fb
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
Siddhesh Poyarekar 17b00fb
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
Siddhesh Poyarekar 17b00fb
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
Siddhesh Poyarekar 17b00fb
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
Siddhesh Poyarekar 17b00fb
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
Siddhesh Poyarekar 17b00fb
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
Siddhesh Poyarekar 17b00fb
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
Siddhesh Poyarekar 17b00fb
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
Siddhesh Poyarekar 17b00fb
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
Siddhesh Poyarekar 17b00fb
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
Siddhesh Poyarekar 17b00fb
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
Siddhesh Poyarekar 17b00fb
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
Siddhesh Poyarekar 17b00fb
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
Siddhesh Poyarekar 17b00fb
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
Siddhesh Poyarekar 17b00fb
+DAMAGES.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+		     END OF TERMS AND CONDITIONS
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+     Appendix: How to Apply These Terms to Your New Libraries
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  If you develop a new library, and you want it to be of the greatest
Siddhesh Poyarekar 17b00fb
+possible use to the public, we recommend making it free software that
Siddhesh Poyarekar 17b00fb
+everyone can redistribute and change.  You can do so by permitting
Siddhesh Poyarekar 17b00fb
+redistribution under these terms (or, alternatively, under the terms of the
Siddhesh Poyarekar 17b00fb
+ordinary General Public License).
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  To apply these terms, attach the following notices to the library.  It is
Siddhesh Poyarekar 17b00fb
+safest to attach them to the start of each source file to most effectively
Siddhesh Poyarekar 17b00fb
+convey the exclusion of warranty; and each file should have at least the
Siddhesh Poyarekar 17b00fb
+"copyright" line and a pointer to where the full notice is found.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    <one line to give the library's name and a brief idea of what it does.>
Siddhesh Poyarekar 17b00fb
+    Copyright (C) <year>  <name of author>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    This library is free software; you can redistribute it and/or
Siddhesh Poyarekar 17b00fb
+    modify it under the terms of the GNU Library General Public
Siddhesh Poyarekar 17b00fb
+    License as published by the Free Software Foundation; either
Siddhesh Poyarekar 17b00fb
+    version 2 of the License, or (at your option) any later version.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    This library is distributed in the hope that it will be useful,
Siddhesh Poyarekar 17b00fb
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
Siddhesh Poyarekar 17b00fb
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Siddhesh Poyarekar 17b00fb
+    Library General Public License for more details.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+    You should have received a copy of the GNU Library General Public
Siddhesh Poyarekar 17b00fb
+    License along with this library; if not, write to the Free
Siddhesh Poyarekar 17b00fb
+    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
Siddhesh Poyarekar 17b00fb
+    MA 02111-1307, USA
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+Also add information on how to contact you by electronic and paper mail.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+You should also get your employer (if you work as a programmer) or your
Siddhesh Poyarekar 17b00fb
+school, if any, to sign a "copyright disclaimer" for the library, if
Siddhesh Poyarekar 17b00fb
+necessary.  Here is a sample; alter the names:
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
Siddhesh Poyarekar 17b00fb
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+  <signature of Ty Coon>, 1 April 1990
Siddhesh Poyarekar 17b00fb
+  Ty Coon, President of Vice
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+That's all there is to it!
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/gconv_stubs.c glibc-2.17-931-g30bbc0c.new/c_stubs/gconv_stubs.c
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/gconv_stubs.c	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/gconv_stubs.c	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,126 @@
Siddhesh Poyarekar 17b00fb
+/* Provide gconv stub functions for the minimum static binaries.
Siddhesh Poyarekar 17b00fb
+   Copyright (C) 1999, 2001, 2003, 2004 Free Software Foundation, Inc.
Siddhesh Poyarekar 17b00fb
+   This file is part of the GNU C Library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+   The GNU C Library is free software; you can redistribute it and/or
Siddhesh Poyarekar 17b00fb
+   modify it under the terms of the GNU Library General Public License as
Siddhesh Poyarekar 17b00fb
+   published by the Free Software Foundation; either version 2 of the
Siddhesh Poyarekar 17b00fb
+   License, or (at your option) any later version.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+   The GNU C Library is distributed in the hope that it will be useful,
Siddhesh Poyarekar 17b00fb
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
Siddhesh Poyarekar 17b00fb
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Siddhesh Poyarekar 17b00fb
+   Library General Public License for more details.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+   You should have received a copy of the GNU Library General Public
Siddhesh Poyarekar 17b00fb
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
Siddhesh Poyarekar 17b00fb
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Siddhesh Poyarekar 17b00fb
+   Boston, MA 02111-1307, USA.  */
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+#include <features.h>
Siddhesh Poyarekar 17b00fb
+#include <string.h>
Siddhesh Poyarekar 17b00fb
+#include <wchar.h>
Siddhesh Poyarekar 17b00fb
+#include <bits/libc-lock.h>
Siddhesh Poyarekar 17b00fb
+#if __GNUC_PREREQ(3, 3)
Siddhesh Poyarekar 17b00fb
+# include <gconv_int.h>
Siddhesh Poyarekar 17b00fb
+#else
Siddhesh Poyarekar 17b00fb
+# include <gconv.h>
Siddhesh Poyarekar 17b00fb
+#endif
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+__libc_lock_define_initialized (, __gconv_lock)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+/* hack for self identification */
Siddhesh Poyarekar 17b00fb
+int __c_stubs_is_compiled_in;
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+/* Don't drag in the dynamic linker. */
Siddhesh Poyarekar 17b00fb
+void *__libc_stack_end;
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+int attribute_hidden
Siddhesh Poyarekar 17b00fb
+__gconv_OK (void)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+#if __GLIBC__ > 2 || __GLIBC_MINOR__ > 1
Siddhesh Poyarekar 17b00fb
+  return __GCONV_OK;
Siddhesh Poyarekar 17b00fb
+#else
Siddhesh Poyarekar 17b00fb
+  return GCONV_OK;
Siddhesh Poyarekar 17b00fb
+#endif
Siddhesh Poyarekar 17b00fb
+}
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+int attribute_hidden
Siddhesh Poyarekar 17b00fb
+__gconv_NOCONV (void)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+#if __GLIBC__ > 2 || __GLIBC_MINOR__ > 1
Siddhesh Poyarekar 17b00fb
+  return __GCONV_NOCONV;
Siddhesh Poyarekar 17b00fb
+#else
Siddhesh Poyarekar 17b00fb
+  return GCONV_NOCONV;
Siddhesh Poyarekar 17b00fb
+#endif
Siddhesh Poyarekar 17b00fb
+}
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+void attribute_hidden
Siddhesh Poyarekar 17b00fb
+__gconv_NOOP (void)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+}
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+int
Siddhesh Poyarekar 17b00fb
+internal_function
Siddhesh Poyarekar 17b00fb
+__gconv_compare_alias (const char *name1, const char *name2)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+  return strcmp (name1, name2);
Siddhesh Poyarekar 17b00fb
+}
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+wint_t
Siddhesh Poyarekar 17b00fb
+__gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+  if (c < 0x80)
Siddhesh Poyarekar 17b00fb
+    return c;
Siddhesh Poyarekar 17b00fb
+  else
Siddhesh Poyarekar 17b00fb
+    return WEOF;
Siddhesh Poyarekar 17b00fb
+}
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+#if __GNUC_PREREQ(3, 3)
Siddhesh Poyarekar 17b00fb
+# undef strong_alias
Siddhesh Poyarekar 17b00fb
+# define strong_alias(impl, name) \
Siddhesh Poyarekar 17b00fb
+  __typeof (name) name __attribute__ ((alias (#impl)))
Siddhesh Poyarekar 17b00fb
+#endif
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_close_transform);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_close);
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_find_transform);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_open);
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+/* These transformations should not fail in normal conditions */
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_ascii_internal);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_utf16_internal);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_utf8_internal);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_OK,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_ucs2_internal);
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+/* We can assume no conversion for these ones */
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_internal_ascii);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_internal_ucs2);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_internal_ucs4);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_internal_utf16);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transform_internal_utf8);
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOCONV,
Siddhesh Poyarekar 17b00fb
+	      __gconv_transliterate);
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOOP,
Siddhesh Poyarekar 17b00fb
+	      __gconv_release_cache);
Siddhesh Poyarekar 17b00fb
+strong_alias (__gconv_NOOP,
Siddhesh Poyarekar 17b00fb
+	      __gconv_release_step);
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/Makefile glibc-2.17-931-g30bbc0c.new/c_stubs/Makefile
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/Makefile	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/Makefile	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,46 @@
Siddhesh Poyarekar 17b00fb
+# Copyright (C) 1999 Free Software Foundation, Inc.
Siddhesh Poyarekar 17b00fb
+# This file is part of the GNU C Library.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+# The GNU C Library is free software; you can redistribute it and/or
Siddhesh Poyarekar 17b00fb
+# modify it under the terms of the GNU Library General Public License as
Siddhesh Poyarekar 17b00fb
+# published by the Free Software Foundation; either version 2 of the
Siddhesh Poyarekar 17b00fb
+# License, or (at your option) any later version.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+# The GNU C Library is distributed in the hope that it will be useful,
Siddhesh Poyarekar 17b00fb
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
Siddhesh Poyarekar 17b00fb
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Siddhesh Poyarekar 17b00fb
+# Library General Public License for more details.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+# You should have received a copy of the GNU Library General Public
Siddhesh Poyarekar 17b00fb
+# License along with the GNU C Library; see the file COPYING.LIB.  If not,
Siddhesh Poyarekar 17b00fb
+# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Siddhesh Poyarekar 17b00fb
+# Boston, MA 02111-1307, USA.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+#
Siddhesh Poyarekar 17b00fb
+#	Sub-makefile for the C stub add-on library.
Siddhesh Poyarekar 17b00fb
+#
Siddhesh Poyarekar 17b00fb
+subdir	:= c_stubs
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+tests-static := test-stdio
Siddhesh Poyarekar 17b00fb
+tests := $(tests-static)
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+libc_stubs-objs := gconv_stubs.o
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+install-lib := libc_stubs.a
Siddhesh Poyarekar 17b00fb
+non-lib.a := libc_stubs.a
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+extra-objs := gconv_stubs.o libc_stubs.a
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+include ../Makeconfig
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+CPPFLAGS += -I../iconv
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+include ../Rules
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+$(objpfx)libc_stubs.a: $(addprefix $(objpfx), $(libc_stubs-objs))
Siddhesh Poyarekar 17b00fb
+	-rm -f $@
Siddhesh Poyarekar 17b00fb
+	$(CC) -nostdlib -nostartfiles -r -o $@ $^
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+lib: $(objpfx)libc_stubs.a
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+$(objpfx)test-stdio: $(objpfx)libc_stubs.a
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/README glibc-2.17-931-g30bbc0c.new/c_stubs/README
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/README	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/README	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,8 @@
Siddhesh Poyarekar 17b00fb
+This is a stub add-on library for the GNU C library version 2.1.2 and
Siddhesh Poyarekar 17b00fb
+above. It is used to create the smaller static binaries by stubbing
Siddhesh Poyarekar 17b00fb
+out the gconv related functions. The resulting binaries may not have
Siddhesh Poyarekar 17b00fb
+all the functionalities.
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+H.J. Lu
Siddhesh Poyarekar 17b00fb
+hjl@gnu.org
Siddhesh Poyarekar 17b00fb
+12/05/1999
Siddhesh Poyarekar 17b00fb
diff -pruN glibc-2.17-931-g30bbc0c/c_stubs/test-stdio.c glibc-2.17-931-g30bbc0c.new/c_stubs/test-stdio.c
Siddhesh Poyarekar 17b00fb
--- glibc-2.17-931-g30bbc0c/c_stubs/test-stdio.c	1970-01-01 05:30:00.000000000 +0530
Siddhesh Poyarekar 17b00fb
+++ glibc-2.17-931-g30bbc0c.new/c_stubs/test-stdio.c	2011-10-19 16:34:41.000000000 +0530
Siddhesh Poyarekar 17b00fb
@@ -0,0 +1,8 @@
Siddhesh Poyarekar 17b00fb
+#include <stdio.h>
Siddhesh Poyarekar 17b00fb
+
Siddhesh Poyarekar 17b00fb
+int
Siddhesh Poyarekar 17b00fb
+main (void)
Siddhesh Poyarekar 17b00fb
+{
Siddhesh Poyarekar 17b00fb
+  printf ("Hello world\n");
Siddhesh Poyarekar 17b00fb
+  return 0;
Siddhesh Poyarekar 17b00fb
+}