URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [uClibc/] [libpthread/] [linuxthreads/] [LICENSE] - Rev 1765
Compare with Previous | Blame | View Log
GNU LIBRARY GENERAL PUBLIC LICENSE**********************************Version 2, June 1991Copyright (C) 1991 Free Software Foundation, Inc.59 Temple Place -- Suite 330, Boston, MA 02111-1307, USAEveryone is permitted to copy and distribute verbatim copiesof this license document, but changing it is not allowed.[This is the first released version of the library GPL. It isnumbered 2 because it goes with version 2 of the ordinary GPL.]Preamble========The licenses for most software are designed to take away yourfreedom to share and change it. By contrast, the GNU General PublicLicenses are intended to guarantee your freedom to share and changefree software--to make sure the software is free for all its users.This license, the Library General Public License, applies to somespecially designated Free Software Foundation software, and to anyother libraries whose authors decide to use it. You can use it foryour libraries, too.When we speak of free software, we are referring to freedom, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can get itif you want it, that you can change the software or use pieces of it innew free programs; and that you know you can do these things.To protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender the rights.These restrictions translate to certain responsibilities for you if youdistribute copies of the library, or if you modify it.For example, if you distribute copies of the library, whether gratisor for a fee, you must give the recipients all the rights that we gaveyou. You must make sure that they, too, receive or can get the sourcecode. If you link a program with the library, you must providecomplete object files to the recipients so that they can relink themwith the library, after making changes to the library and recompilingit. And you must show them these terms so they know their rights.Our method of protecting your rights has two steps: (1) copyrightthe library, and (2) offer you this license which gives you legalpermission to copy, distribute and/or modify the library.Also, for each distributor's protection, we want to make certainthat everyone understands that there is no warranty for this freelibrary. If the library is modified by someone else and passed on, wewant its recipients to know that what they have is not the originalversion, so that any problems introduced by others will not reflect onthe original authors' reputations.Finally, any free program is threatened constantly by softwarepatents. We wish to avoid the danger that companies distributing freesoftware will individually obtain patent licenses, thus in effecttransforming the program into proprietary software. To prevent this,we have made it clear that any patent must be licensed for everyone'sfree use or not licensed at all.Most GNU software, including some libraries, is covered by theordinary GNU General Public License, which was designed for utilityprograms. This license, the GNU Library General Public License,applies to certain designated libraries. This license is quitedifferent from the ordinary one; be sure to read it in full, and don'tassume that anything in it is the same as in the ordinary license.The reason we have a separate public license for some libraries isthat they blur the distinction we usually make between modifying oradding to a program and simply using it. Linking a program with alibrary, without changing the library, is in some sense simply usingthe library, and is analogous to running a utility program orapplication program. However, in a textual and legal sense, the linkedexecutable is a combined work, a derivative of the original library,and the ordinary General Public License treats it as such.Because of this blurred distinction, using the ordinary GeneralPublic License for libraries did not effectively promote softwaresharing, because most developers did not use the libraries. Weconcluded that weaker conditions might promote sharing better.However, unrestricted linking of non-free programs would deprive theusers of those programs of all benefit from the free status of thelibraries themselves. This Library General Public License is intendedto permit developers of non-free programs to use free libraries, whilepreserving your freedom as a user of such programs to change the freelibraries that are incorporated in them. (We have not seen how toachieve this as regards changes in header files, but we have achievedit as regards changes in the actual functions of the Library.) Thehope is that this will lead to faster development of free libraries.The precise terms and conditions for copying, distribution andmodification follow. Pay close attention to the difference between a"work based on the library" and a "work that uses the library". Theformer contains code derived from the library, while the latter onlyworks together with the library.Note that it is possible for a library to be covered by the ordinaryGeneral Public License rather than by this special one.TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. This License Agreement applies to any software library whichcontains a notice placed by the copyright holder or otherauthorized party saying it may be distributed under the terms ofthis Library General Public License (also called "this License").Each licensee is addressed as "you".A "library" means a collection of software functions and/or dataprepared so as to be conveniently linked with application programs(which use some of those functions and data) to form executables.The "Library", below, refers to any such software library or workwhich has been distributed under these terms. A "work based on theLibrary" means either the Library or any derivative work undercopyright law: that is to say, a work containing the Library or aportion of it, either verbatim or with modifications and/ortranslated straightforwardly into another language. (Hereinafter,translation is included without limitation in the term"modification".)"Source code" for a work means the preferred form of the work formaking modifications to it. For a library, complete source codemeans all the source code for all modules it contains, plus anyassociated interface definition files, plus the scripts used tocontrol compilation and installation of the library.Activities other than copying, distribution and modification arenot covered by this License; they are outside its scope. The actof running a program using the Library is not restricted, andoutput from such a program is covered only if its contentsconstitute a work based on the Library (independent of the use ofthe Library in a tool for writing it). Whether that is truedepends on what the Library does and what the program that usesthe Library does.1. You may copy and distribute verbatim copies of the Library'scomplete source code as you receive it, in any medium, providedthat you conspicuously and appropriately publish on each copy anappropriate copyright notice and disclaimer of warranty; keepintact all the notices that refer to this License and to theabsence of any warranty; and distribute a copy of this Licensealong with the Library.You may charge a fee for the physical act of transferring a copy,and you may at your option offer warranty protection in exchangefor a fee.2. You may modify your copy or copies of the Library or any portionof it, thus forming a work based on the Library, and copy anddistribute such modifications or work under the terms of Section 1above, provided that you also meet all of these conditions:a. The modified work must itself be a software library.b. You must cause the files modified to carry prominent noticesstating that you changed the files and the date of any change.c. You must cause the whole of the work to be licensed at nocharge to all third parties under the terms of this License.d. If a facility in the modified Library refers to a function ora table of data to be supplied by an application program thatuses the facility, other than as an argument passed when thefacility is invoked, then you must make a good faith effortto ensure that, in the event an application does not supplysuch function or table, the facility still operates, andperforms whatever part of its purpose remains meaningful.(For example, a function in a library to compute square rootshas a purpose that is entirely well-defined independent of theapplication. Therefore, Subsection 2d requires that anyapplication-supplied function or table used by this functionmust be optional: if the application does not supply it, thesquare root function must still compute square roots.)These requirements apply to the modified work as a whole. Ifidentifiable sections of that work are not derived from theLibrary, and can be reasonably considered independent and separateworks in themselves, then this License, and its terms, do notapply to those sections when you distribute them as separateworks. But when you distribute the same sections as part of awhole which is a work based on the Library, the distribution ofthe whole must be on the terms of this License, whose permissionsfor other licensees extend to the entire whole, and thus to eachand every part regardless of who wrote it.Thus, it is not the intent of this section to claim rights orcontest your rights to work written entirely by you; rather, theintent is to exercise the right to control the distribution ofderivative or collective works based on the Library.In addition, mere aggregation of another work not based on theLibrary with the Library (or with a work based on the Library) ona volume of a storage or distribution medium does not bring theother work under the scope of this License.3. You may opt to apply the terms of the ordinary GNU General PublicLicense instead of this License to a given copy of the Library.To do this, you must alter all the notices that refer to thisLicense, so that they refer to the ordinary GNU General PublicLicense, version 2, instead of to this License. (If a newerversion than version 2 of the ordinary GNU General Public Licensehas appeared, then you can specify that version instead if youwish.) Do not make any other change in these notices.Once this change is made in a given copy, it is irreversible forthat copy, so the ordinary GNU General Public License applies toall subsequent copies and derivative works made from that copy.This option is useful when you wish to copy part of the code ofthe Library into a program that is not a library.4. You may copy and distribute the Library (or a portion orderivative of it, under Section 2) in object code or executableform under the terms of Sections 1 and 2 above provided that youaccompany it with the complete corresponding machine-readablesource code, which must be distributed under the terms of Sections1 and 2 above on a medium customarily used for softwareinterchange.If distribution of object code is made by offering access to copyfrom a designated place, then offering equivalent access to copythe source code from the same place satisfies the requirement todistribute the source code, even though third parties are notcompelled to copy the source along with the object code.5. A program that contains no derivative of any portion of theLibrary, but is designed to work with the Library by beingcompiled or linked with it, is called a "work that uses theLibrary". Such a work, in isolation, is not a derivative work ofthe Library, and therefore falls outside the scope of this License.However, linking a "work that uses the Library" with the Librarycreates an executable that is a derivative of the Library (becauseit contains portions of the Library), rather than a "work thatuses the library". The executable is therefore covered by thisLicense. Section 6 states terms for distribution of suchexecutables.When a "work that uses the Library" uses material from a headerfile that is part of the Library, the object code for the work maybe a derivative work of the Library even though the source code isnot. Whether this is true is especially significant if the workcan be linked without the Library, or if the work is itself alibrary. The threshold for this to be true is not preciselydefined by law.If such an object file uses only numerical parameters, datastructure layouts and accessors, and small macros and small inlinefunctions (ten lines or less in length), then the use of the objectfile is unrestricted, regardless of whether it is legally aderivative work. (Executables containing this object code plusportions of the Library will still fall under Section 6.)Otherwise, if the work is a derivative of the Library, you maydistribute the object code for the work under the terms of Section6. Any executables containing that work also fall under Section 6,whether or not they are linked directly with the Library itself.6. As an exception to the Sections above, you may also compile orlink a "work that uses the Library" with the Library to produce awork containing portions of the Library, and distribute that workunder terms of your choice, provided that the terms permitmodification of the work for the customer's own use and reverseengineering for debugging such modifications.You must give prominent notice with each copy of the work that theLibrary is used in it and that the Library and its use are coveredby this License. You must supply a copy of this License. If thework during execution displays copyright notices, you must includethe copyright notice for the Library among them, as well as areference directing the user to the copy of this License. Also,you must do one of these things:a. Accompany the work with the complete correspondingmachine-readable source code for the Library includingwhatever changes were used in the work (which must bedistributed under Sections 1 and 2 above); and, if the workis an executable linked with the Library, with the completemachine-readable "work that uses the Library", as object codeand/or source code, so that the user can modify the Libraryand then relink to produce a modified executable containingthe modified Library. (It is understood that the user whochanges the contents of definitions files in the Library willnot necessarily be able to recompile the application to usethe modified definitions.)b. Accompany the work with a written offer, valid for at leastthree years, to give the same user the materials specified inSubsection 6a, above, for a charge no more than the cost ofperforming this distribution.c. If distribution of the work is made by offering access to copyfrom a designated place, offer equivalent access to copy theabove specified materials from the same place.d. Verify that the user has already received a copy of thesematerials or that you have already sent this user a copy.For an executable, the required form of the "work that uses theLibrary" must include any data and utility programs needed forreproducing the executable from it. However, as a specialexception, the source code distributed need not include anythingthat is normally distributed (in either source or binary form)with the major components (compiler, kernel, and so on) of theoperating system on which the executable runs, unless thatcomponent itself accompanies the executable.It may happen that this requirement contradicts the licenserestrictions of other proprietary libraries that do not normallyaccompany the operating system. Such a contradiction means youcannot use both them and the Library together in an executablethat you distribute.7. You may place library facilities that are a work based on theLibrary side-by-side in a single library together with otherlibrary facilities not covered by this License, and distributesuch a combined library, provided that the separate distributionof the work based on the Library and of the other libraryfacilities is otherwise permitted, and provided that you do thesetwo things:a. Accompany the combined library with a copy of the same workbased on the Library, uncombined with any other libraryfacilities. This must be distributed under the terms of theSections above.b. Give prominent notice with the combined library of the factthat part of it is a work based on the Library, and explainingwhere to find the accompanying uncombined form of the samework.8. You may not copy, modify, sublicense, link with, or distribute theLibrary except as expressly provided under this License. Anyattempt otherwise to copy, modify, sublicense, link with, ordistribute the Library is void, and will automatically terminateyour rights under this License. However, parties who havereceived copies, or rights, from you under this License will nothave their licenses terminated so long as such parties remain infull compliance.9. You are not required to accept this License, since you have notsigned it. However, nothing else grants you permission to modifyor distribute the Library or its derivative works. These actionsare prohibited by law if you do not accept this License.Therefore, by modifying or distributing the Library (or any workbased on the Library), you indicate your acceptance of thisLicense to do so, and all its terms and conditions for copying,distributing or modifying the Library or works based on it.10. Each time you redistribute the Library (or any work based on theLibrary), the recipient automatically receives a license from theoriginal licensor to copy, distribute, link with or modify theLibrary subject to these terms and conditions. You may not imposeany further restrictions on the recipients' exercise of the rightsgranted herein. You are not responsible for enforcing complianceby third parties to this License.11. If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patentissues), conditions are imposed on you (whether by court order,agreement or otherwise) that contradict the conditions of thisLicense, they do not excuse you from the conditions of thisLicense. If you cannot distribute so as to satisfy simultaneouslyyour obligations under this License and any other pertinentobligations, then as a consequence you may not distribute theLibrary at all. For example, if a patent license would not permitroyalty-free redistribution of the Library by all those whoreceive copies directly or indirectly through you, then the onlyway you could satisfy both it and this License would be to refrainentirely from distribution of the Library.If any portion of this section is held invalid or unenforceableunder any particular circumstance, the balance of the section isintended to apply, and the section as a whole is intended to applyin other circumstances.It is not the purpose of this section to induce you to infringe anypatents or other property right claims or to contest validity ofany such claims; this section has the sole purpose of protectingthe integrity of the free software distribution system which isimplemented by public license practices. Many people have madegenerous contributions to the wide range of software distributedthrough that system in reliance on consistent application of thatsystem; it is up to the author/donor to decide if he or she iswilling to distribute software through any other system and alicensee cannot impose that choice.This section is intended to make thoroughly clear what is believedto be a consequence of the rest of this License.12. If the distribution and/or use of the Library is restricted incertain countries either by patents or by copyrighted interfaces,the original copyright holder who places the Library under thisLicense may add an explicit geographical distribution limitationexcluding those countries, so that distribution is permitted onlyin or among countries not thus excluded. In such case, thisLicense incorporates the limitation as if written in the body ofthis License.13. The Free Software Foundation may publish revised and/or newversions of the Library General Public License from time to time.Such new versions will be similar in spirit to the present version,but may differ in detail to address new problems or concerns.Each version is given a distinguishing version number. If theLibrary specifies a version number of this License which appliesto it and "any later version", you have the option of followingthe terms and conditions either of that version or of any laterversion published by the Free Software Foundation. If the Librarydoes not specify a license version number, you may choose anyversion ever published by the Free Software Foundation.14. If you wish to incorporate parts of the Library into other freeprograms whose distribution conditions are incompatible with these,write to the author to ask for permission. For software which iscopyrighted by the Free Software Foundation, write to the FreeSoftware Foundation; we sometimes make exceptions for this. Ourdecision will be guided by the two goals of preserving the freestatus of all derivatives of our free software and of promotingthe sharing and reuse of software generally.NO WARRANTY15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NOWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLELAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHTHOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUTWARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUTNOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY ANDFITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THEQUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THELIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARYSERVICING, REPAIR OR CORRECTION.16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO INWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAYMODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BELIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE ORINABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OFDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOUOR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANYOTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEENADVISED OF THE POSSIBILITY OF SUCH DAMAGES.END OF TERMS AND CONDITIONSHow to Apply These Terms to Your New Libraries==============================================If you develop a new library, and you want it to be of the greatestpossible use to the public, we recommend making it free software thateveryone can redistribute and change. You can do so by permittingredistribution under these terms (or, alternatively, under the terms ofthe ordinary General Public License).To apply these terms, attach the following notices to the library.It is safest to attach them to the start of each source file to mosteffectively convey the exclusion of warranty; and each file should haveat least the "copyright" line and a pointer to where the full notice isfound.ONE LINE TO GIVE THE LIBRARY'S NAME AND AN IDEA OF WHAT IT DOES.Copyright (C) YEAR NAME OF AUTHORThis library is free software; you can redistribute it and/or modify itunder the terms of the GNU Library General Public License as publishedby the Free Software Foundation; either version 2 of the License, or (atyour option) any later version.This library is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULibrary General Public License for more details.You should have received a copy of the GNU General Public License alongwith this program; if not, write to the Free Software Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.Also add information on how to contact you by electronic and papermail.You should also get your employer (if you work as a programmer) oryour 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 the library`Frob' (a library for tweaking knobs) written by James Random Hacker.SIGNATURE OF TY COON, 1 April 1990Ty Coon, President of ViceThat's all there is to it!
