4                   GNU LIBRARY GENERAL PUBLIC LICENSE+                        Version 2, June 1991   2  Copyright (C) 1991 Free Software Foundation, Inc.:                     675 Mass Ave, Cambridge, MA 02139, USA=  Everyone is permitted to copy and distribute verbatim copies :  of this license document, but changing it is not allowed.  > [This is the first released version of the library GPL.  It is@  numbered 2 because it goes with version 2 of the ordinary GPL.]  $                             Preamble  ?   The licenses for most software are designed to take away your D freedom to share and change it.  By contrast, the GNU General PublicC Licenses are intended to guarantee your freedom to share and change C free software--to make sure the software is free for all its users.   C   This license, the Library General Public License, applies to some B specially designated Free Software Foundation software, and to anyC other libraries whose authors decide to use it.  You can use it for  your libraries, too.  B   When we speak of free software, we are referring to freedom, notF price.  Our General Public Licenses are designed to make sure that youF have the freedom to distribute copies of free software (and charge forE this service if you wish), that you receive source code or can get it D if you want it, that you can change the software or use pieces of it@ in new free programs; and that you know you can do these things.  B   To protect your rights, we need to make restrictions that forbidF anyone to deny you these rights or to ask you to surrender the rights.C These restrictions translate to certain responsibilities for you if : you distribute copies of the library, or if you modify it.  F   For example, if you distribute copies of the library, whether gratisF or for a fee, you must give the recipients all the rights that we gaveF you.  You must make sure that they, too, receive or can get the source? code.  If you link a program with the library, you must provide D complete object files to the recipients so that they can relink themE with the library, after making changes to the library and recompiling B it.  And you must show them these terms so they know their rights.  C   Our method of protecting your rights has two steps: (1) copyright A the library, and (2) offer you this license which gives you legal 9 permission to copy, distribute and/or modify the library.   B   Also, for each distributor's protection, we want to make certainA that everyone understands that there is no warranty for this free F library.  If the library is modified by someone else and passed on, weC want its recipients to know that what they have is not the original F version, so that any problems introduced by others will not reflect on" the original authors' reputations.  @   Finally, any free program is threatened constantly by softwareF patents.  We wish to avoid the danger that companies distributing freeA software will individually obtain patent licenses, thus in effect E transforming the program into proprietary software.  To prevent this, E we have made it clear that any patent must be licensed for everyone's   free use or not licensed at all.  I   Most GNU software, including some libraries, is covered by the ordinary J GNU General Public License, which was designed for utility programs.  ThisC license, the GNU Library General Public License, applies to certain H designated libraries.  This license is quite different from the ordinaryH one; be sure to read it in full, and don't assume that anything in it is$ the same as in the ordinary license.  I   The reason we have a separate public license for some libraries is that J they blur the distinction we usually make between modifying or adding to aG program and simply using it.  Linking a program with a library, without G changing the library, is in some sense simply using the library, and is K analogous to running a utility program or application program.  However, in F a textual and legal sense, the linked executable is a combined work, aK derivative of the original library, and the ordinary General Public License  treats it as such.  A   Because of this blurred distinction, using the ordinary General A Public License for libraries did not effectively promote software ? sharing, because most developers did not use the libraries.  We > concluded that weaker conditions might promote sharing better.  F   However, unrestricted linking of non-free programs would deprive theB users of those programs of all benefit from the free status of theI libraries themselves.  This Library General Public License is intended to C permit developers of non-free programs to use free libraries, while E preserving your freedom as a user of such programs to change the free J libraries that are incorporated in them.  (We have not seen how to achieveK this as regards changes in header files, but we have achieved it as regards G changes in the actual functions of the Library.)  The hope is that this 2 will lead to faster development of free libraries.  @   The precise terms and conditions for copying, distribution andE modification follow.  Pay close attention to the difference between a D "work based on the library" and a "work that uses the library".  TheD former contains code derived from the library, while the latter only  works together with the library.  F   Note that it is possible for a library to be covered by the ordinary7 General Public License rather than by this special one.   4                   GNU LIBRARY GENERAL PUBLIC LICENSEB    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION  A   0. This License Agreement applies to any software library which D contains a notice placed by the copyright holder or other authorizedB party saying it may be distributed under the terms of this LibraryF General Public License (also called "this License").  Each licensee is addressed as "you".   B   A "library" means a collection of software functions and/or dataB prepared so as to be conveniently linked with application programsA (which use some of those functions and data) to form executables.   C   The "Library", below, refers to any such software library or work C which has been distributed under these terms.  A "work based on the > Library" means either the Library or any derivative work underA copyright law: that is to say, a work containing the Library or a F portion of it, either verbatim or with modifications and/or translatedF straightforwardly into another language.  (Hereinafter, translation is8 included without limitation in the term "modification".)  C   "Source code" for a work means the preferred form of the work for F making modifications to it.  For a library, complete source code meansD all the source code for all modules it contains, plus any associatedH interface definition files, plus the scripts used to control compilation  and installation of the library.  F   Activities other than copying, distribution and modification are not@ covered by this License; they are outside its scope.  The act ofF running a program using the Library is not restricted, and output fromF such a program is covered only if its contents constitute a work basedC on the Library (independent of the use of the Library in a tool for C writing it).  Whether that is true depends on what the Library does 0 and what the program that uses the Library does.   A   1. You may copy and distribute verbatim copies of the Library's D complete source code as you receive it, in any medium, provided that; you conspicuously and appropriately publish on each copy an D appropriate copyright notice and disclaimer of warranty; keep intactD all the notices that refer to this License and to the absence of any> warranty; and distribute a copy of this License along with the Library.  C   You may charge a fee for the physical act of transferring a copy, F and you may at your option offer warranty protection in exchange for a fee.  E   2. You may modify your copy or copies of the Library or any portion = of it, thus forming a work based on the Library, and copy and B distribute such modifications or work under the terms of Section 1; above, provided that you also meet all of these conditions:L  ;     a) The modified work must itself be a software library.p  C     b) You must cause the files modified to carry prominent notices B     stating that you changed the files and the date of any change.  @     c) You must cause the whole of the work to be licensed at no@     charge to all third parties under the terms of this License.  F     d) If a facility in the modified Library refers to a function or aD     table of data to be supplied by an application program that usesD     the facility, other than as an argument passed when the facilityF     is invoked, then you must make a good faith effort to ensure that,@     in the event an application does not supply such function orE     table, the facility still operates, and performs whatever part ofe#     its purpose remains meaningful.   E     (For example, a function in a library to compute square roots has >     a purpose that is entirely well-defined independent of the<     application.  Therefore, Subsection 2d requires that anyE     application-supplied function or table used by this function mustlB     be optional: if the application does not supply it, the square3     root function must still compute square roots.)h  = These requirements apply to the modified work as a whole.  IfiD identifiable sections of that work are not derived from the Library,B and can be reasonably considered independent and separate works inC themselves, then this License, and its terms, do not apply to thosedB sections when you distribute them as separate works.  But when youE distribute the same sections as part of a whole which is a work basediE on the Library, the distribution of the whole must be on the terms of A this License, whose permissions for other licensees extend to therE entire whole, and thus to each and every part regardless of who wroteo it.o  E Thus, it is not the intent of this section to claim rights or contest E your rights to work written entirely by you; rather, the intent is to ? exercise the right to control the distribution of derivative orb& collective works based on the Library.  F In addition, mere aggregation of another work not based on the LibraryE with the Library (or with a work based on the Library) on a volume of1D a storage or distribution medium does not bring the other work under the scope of this License.  F   3. You may opt to apply the terms of the ordinary GNU General PublicF License instead of this License to a given copy of the Library.  To doC this, you must alter all the notices that refer to this License, soiF that they refer to the ordinary GNU General Public License, version 2,F instead of to this License.  (If a newer version than version 2 of theF ordinary GNU General Public License has appeared, then you can specifyC that version instead if you wish.)  Do not make any other change ina these notices.  B   Once this change is made in a given copy, it is irreversible forD that copy, so the ordinary GNU General Public License applies to all; subsequent copies and derivative works made from that copy.   A   This option is useful when you wish to copy part of the code ofu1 the Library into a program that is not a library.i  =   4. You may copy and distribute the Library (or a portion or D derivative of it, under Section 2) in object code or executable formE under the terms of Sections 1 and 2 above provided that you accompanytF it with the complete corresponding machine-readable source code, whichB must be distributed under the terms of Sections 1 and 2 above on a1 medium customarily used for software interchange.n  C   If distribution of object code is made by offering access to copyuD from a designated place, then offering equivalent access to copy the< source code from the same place satisfies the requirement to= distribute the source code, even though third parties are noth8 compelled to copy the source along with the object code.  @   5. A program that contains no derivative of any portion of theF Library, but is designed to work with the Library by being compiled orA linked with it, is called a "work that uses the Library".  Such a.@ work, in isolation, is not a derivative work of the Library, and2 therefore falls outside the scope of this License.  B   However, linking a "work that uses the Library" with the LibraryE creates an executable that is a derivative of the Library (because itgD contains portions of the Library), rather than a "work that uses the? library".  The executable is therefore covered by this License.e< Section 6 states terms for distribution of such executables.  F   When a "work that uses the Library" uses material from a header fileB that is part of the Library, the object code for the work may be aB derivative work of the Library even though the source code is not.A Whether this is true is especially significant if the work can beaD linked without the Library, or if the work is itself a library.  The> threshold for this to be true is not precisely defined by law.  =   If such an object file uses only numerical parameters, data B structure layouts and accessors, and small macros and small inlineC functions (ten lines or less in length), then the use of the objectaF file is unrestricted, regardless of whether it is legally a derivativeD work.  (Executables containing this object code plus portions of the) Library will still fall under Section 6.)l  @   Otherwise, if the work is a derivative of the Library, you mayE distribute the object code for the work under the terms of Section 6.L? Any executables containing that work also fall under Section 6, @ whether or not they are linked directly with the Library itself.  C   6. As an exception to the Sections above, you may also compile ortA link a "work that uses the Library" with the Library to produce aoA work containing portions of the Library, and distribute that work.: under terms of your choice, provided that the terms permit? modification of the work for the customer's own use and reverses- engineering for debugging such modifications.g  D   You must give prominent notice with each copy of the work that theE Library is used in it and that the Library and its use are covered by C this License.  You must supply a copy of this License.  If the work A during execution displays copyright notices, you must include theoC copyright notice for the Library among them, as well as a referencetF directing the user to the copy of this License.  Also, you must do one of these things:  9     a) Accompany the work with the complete correspondingtC     machine-readable source code for the Library including whatever B     changes were used in the work (which must be distributed underE     Sections 1 and 2 above); and, if the work is an executable linked C     with the Library, with the complete machine-readable "work thatnE     uses the Library", as object code and/or source code, so that theoE     user can modify the Library and then relink to produce a modifiediB     executable containing the modified Library.  (It is understoodF     that the user who changes the contents of definitions files in theE     Library will not necessarily be able to recompile the applicationt%     to use the modified definitions.)d  <     b) Accompany the work with a written offer, valid for at:     least three years, to give the same user the materials;     specified in Subsection 6a, above, for a charge no morep2     than the cost of performing this distribution.  E     c) If distribution of the work is made by offering access to copy F     from a designated place, offer equivalent access to copy the above,     specified materials from the same place.  @     d) Verify that the user has already received a copy of these=     materials or that you have already sent this user a copy.n  A   For an executable, the required form of the "work that uses thef> Library" must include any data and utility programs needed forE reproducing the executable from it.  However, as a special exception,rF the source code distributed need not include anything that is normally< distributed (in either source or binary form) with the majorC components (compiler, kernel, and so on) of the operating system oneC which the executable runs, unless that component itself accompaniesb the executable.a  =   It may happen that this requirement contradicts the licensen@ restrictions of other proprietary libraries that do not normallyF accompany the operating system.  Such a contradiction means you cannot@ use both them and the Library together in an executable that you distribute.   B   7. You may place library facilities that are a work based on theD Library side-by-side in a single library together with other libraryF facilities not covered by this License, and distribute such a combinedE library, provided that the separate distribution of the work based on < the Library and of the other library facilities is otherwise5 permitted, and provided that you do these two things:w  B     a) Accompany the combined library with a copy of the same work;     based on the Library, uncombined with any other library @     facilities.  This must be distributed under the terms of the     Sections above.r  B     b) Give prominent notice with the combined library of the factB     that part of it is a work based on the Library, and explainingD     where to find the accompanying uncombined form of the same work.  C   8. You may not copy, modify, sublicense, link with, or distributesA the Library except as expressly provided under this License.  Anyf< attempt otherwise to copy, modify, sublicense, link with, orE distribute the Library is void, and will automatically terminate youroF rights under this License.  However, parties who have received copies,C or rights, from you under this License will not have their licensesc= terminated so long as such parties remain in full compliance.l  D   9. You are not required to accept this License, since you have notD signed it.  However, nothing else grants you permission to modify orB distribute the Library or its derivative works.  These actions areC prohibited by law if you do not accept this License.  Therefore, byi? modifying or distributing the Library (or any work based on thetD Library), you indicate your acceptance of this License to do so, andC all its terms and conditions for copying, distributing or modifyingn! the Library or works based on it.w  F   10. Each time you redistribute the Library (or any work based on theA Library), the recipient automatically receives a license from theeF original licensor to copy, distribute, link with or modify the LibraryF subject to these terms and conditions.  You may not impose any furtherF restrictions on the recipients' exercise of the rights granted herein.D You are not responsible for enforcing compliance by third parties to
 this License.   F   11. If, as a consequence of a court judgment or allegation of patentD infringement or for any other reason (not limited to patent issues),C conditions are imposed on you (whether by court order, agreement oroF otherwise) that contradict the conditions of this License, they do not> excuse you from the conditions of this License.  If you cannotF distribute so as to satisfy simultaneously your obligations under thisF License and any other pertinent obligations, then as a consequence you@ may not distribute the Library at all.  For example, if a patentF license would not permit royalty-free redistribution of the Library byE all those who receive copies directly or indirectly through you, thencC the only way you could satisfy both it and this License would be toe2 refrain entirely from distribution of the Library.  I If any portion of this section is held invalid or unenforceable under anysI particular circumstance, the balance of the section is intended to apply,eG and the section as a whole is intended to apply in other circumstances.i  C It is not the purpose of this section to induce you to infringe anyfD patents or other property right claims or to contest validity of any@ such claims; this section has the sole purpose of protecting the; integrity of the free software distribution system which is ? implemented by public license practices.  Many people have made @ generous contributions to the wide range of software distributedA through that system in reliance on consistent application of thatkF system; it is up to the author/donor to decide if he or she is willingE to distribute software through any other system and a licensee cannot  impose that choice.   E This section is intended to make thoroughly clear what is believed toe- be a consequence of the rest of this License.i  D   12. If the distribution and/or use of the Library is restricted inE certain countries either by patents or by copyrighted interfaces, thetK original copyright holder who places the Library under this License may addiK an explicit geographical distribution limitation excluding those countries,eE so that distribution is permitted only in or among countries not thussG excluded.  In such case, this License incorporates the limitation as ifk$ written in the body of this License.  A   13. The Free Software Foundation may publish revised and/or newoA versions of the Library General Public License from time to time. C Such new versions will be similar in spirit to the present version,s= but may differ in detail to address new problems or concerns.t  F Each version is given a distinguishing version number.  If the LibraryB specifies a version number of this License which applies to it andC "any later version", you have the option of following the terms andiF conditions either of that version or of any later version published by@ the Free Software Foundation.  If the Library does not specify aD license version number, you may choose any version ever published by the Free Software Foundation.A  E   14. If you wish to incorporate parts of the Library into other freeoC programs whose distribution conditions are incompatible with these,nA write to the author to ask for permission.  For software which is > copyrighted by the Free Software Foundation, write to the Free@ Software Foundation; we sometimes make exceptions for this.  OurF decision will be guided by the two goals of preserving the free statusD of all derivatives of our free software and of promoting the sharing  and reuse of software generally.  '                             NO WARRANTYi  A   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO,D WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.D EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/ORA OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANYwE KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THEfB IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARB PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THED LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME: THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.  C   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN D WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFYD AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU: FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL ORD CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE@ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEINGD RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR AC FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IFaF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.  0                      END OF TERMS AND CONDITIONS  =      Appendix: How to Apply These Terms to Your New Librariesy  E   If you develop a new library, and you want it to be of the greatest E possible use to the public, we recommend making it free software thataB everyone can redistribute and change.  You can do so by permittingK redistribution under these terms (or, alternatively, under the terms of thea! ordinary General Public License).r  K   To apply these terms, attach the following notices to the library.  It iscJ safest to attach them to the start of each source file to most effectivelyH convey the exclusion of warranty; and each file should have at least theA "copyright" line and a pointer to where the full notice is found.,  K     <one line to give the library's name and a brief idea of what it does.> *     Copyright (C) <year>  <name of author>  A     This library is free software; you can redistribute it and/or ?     modify it under the terms of the GNU Library General Publica@     License as published by the Free Software Foundation; eitherD     version 2 of the License, or (at your option) any later version.  C     This library is distributed in the hope that it will be useful,iB     but WITHOUT ANY WARRANTY; without even the implied warranty ofE     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUo4     Library General Public License for more details.  E     You should have received a copy of the GNU Library General Publicw>     License along with this library; if not, write to the FreeF     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  H Also add information on how to contact you by electronic and paper mail.  G You should also get your employer (if you work as a programmer) or youryD school, if any, to sign a "copyright disclaimer" for the library, if. necessary.  Here is a sample; alter the names:  @   Yoyodyne, Inc., hereby disclaims all copyright interest in theO   library `Frob' (a library for tweaking knobs) written by James Random Hacker.d  &   <signature of Ty Coon>, 1 April 1990   Ty Coon, President of Vice   That's all there is to it!5 ================== RFC 822 Headers ================== % Date: Wed, 19 Oct 1994 15:07:53 -0400r/ Message-Id: <94101915075368@lucky7.zko.dec.com>o- From: gillum@lucky7.zko.dec.com (Kirt Gillum)e To: ZALEWSKI@star.zko.dec.comp3 Subject: GPL part 2 (instructions for library code)t# X-VMS-To: ZALEWSKI@STAR.ZKO.DEC.COMc