16cd6a6acSopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 26cd6a6acSopenharmony_ci Version 2.1, February 1999 36cd6a6acSopenharmony_ci 46cd6a6acSopenharmony_ci Copyright (C) 1991, 1999 Free Software Foundation, Inc. 56cd6a6acSopenharmony_ci 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 66cd6a6acSopenharmony_ci Everyone is permitted to copy and distribute verbatim copies 76cd6a6acSopenharmony_ci of this license document, but changing it is not allowed. 86cd6a6acSopenharmony_ci 96cd6a6acSopenharmony_ci[This is the first released version of the Lesser GPL. It also counts 106cd6a6acSopenharmony_ci as the successor of the GNU Library Public License, version 2, hence 116cd6a6acSopenharmony_ci the version number 2.1.] 126cd6a6acSopenharmony_ci 136cd6a6acSopenharmony_ci Preamble 146cd6a6acSopenharmony_ci 156cd6a6acSopenharmony_ci The licenses for most software are designed to take away your 166cd6a6acSopenharmony_cifreedom to share and change it. By contrast, the GNU General Public 176cd6a6acSopenharmony_ciLicenses are intended to guarantee your freedom to share and change 186cd6a6acSopenharmony_cifree software--to make sure the software is free for all its users. 196cd6a6acSopenharmony_ci 206cd6a6acSopenharmony_ci This license, the Lesser General Public License, applies to some 216cd6a6acSopenharmony_cispecially designated software packages--typically libraries--of the 226cd6a6acSopenharmony_ciFree Software Foundation and other authors who decide to use it. You 236cd6a6acSopenharmony_cican use it too, but we suggest you first think carefully about whether 246cd6a6acSopenharmony_cithis license or the ordinary General Public License is the better 256cd6a6acSopenharmony_cistrategy to use in any particular case, based on the explanations below. 266cd6a6acSopenharmony_ci 276cd6a6acSopenharmony_ci When we speak of free software, we are referring to freedom of use, 286cd6a6acSopenharmony_cinot price. Our General Public Licenses are designed to make sure that 296cd6a6acSopenharmony_ciyou have the freedom to distribute copies of free software (and charge 306cd6a6acSopenharmony_cifor this service if you wish); that you receive source code or can get 316cd6a6acSopenharmony_ciit if you want it; that you can change the software and use pieces of 326cd6a6acSopenharmony_ciit in new free programs; and that you are informed that you can do 336cd6a6acSopenharmony_cithese things. 346cd6a6acSopenharmony_ci 356cd6a6acSopenharmony_ci To protect your rights, we need to make restrictions that forbid 366cd6a6acSopenharmony_cidistributors to deny you these rights or to ask you to surrender these 376cd6a6acSopenharmony_cirights. These restrictions translate to certain responsibilities for 386cd6a6acSopenharmony_ciyou if you distribute copies of the library or if you modify it. 396cd6a6acSopenharmony_ci 406cd6a6acSopenharmony_ci For example, if you distribute copies of the library, whether gratis 416cd6a6acSopenharmony_cior for a fee, you must give the recipients all the rights that we gave 426cd6a6acSopenharmony_ciyou. You must make sure that they, too, receive or can get the source 436cd6a6acSopenharmony_cicode. If you link other code with the library, you must provide 446cd6a6acSopenharmony_cicomplete object files to the recipients, so that they can relink them 456cd6a6acSopenharmony_ciwith the library after making changes to the library and recompiling 466cd6a6acSopenharmony_ciit. And you must show them these terms so they know their rights. 476cd6a6acSopenharmony_ci 486cd6a6acSopenharmony_ci We protect your rights with a two-step method: (1) we copyright the 496cd6a6acSopenharmony_cilibrary, and (2) we offer you this license, which gives you legal 506cd6a6acSopenharmony_cipermission to copy, distribute and/or modify the library. 516cd6a6acSopenharmony_ci 526cd6a6acSopenharmony_ci To protect each distributor, we want to make it very clear that 536cd6a6acSopenharmony_cithere is no warranty for the free library. Also, if the library is 546cd6a6acSopenharmony_cimodified by someone else and passed on, the recipients should know 556cd6a6acSopenharmony_cithat what they have is not the original version, so that the original 566cd6a6acSopenharmony_ciauthor's reputation will not be affected by problems that might be 576cd6a6acSopenharmony_ciintroduced by others. 586cd6a6acSopenharmony_ci 596cd6a6acSopenharmony_ci Finally, software patents pose a constant threat to the existence of 606cd6a6acSopenharmony_ciany free program. We wish to make sure that a company cannot 616cd6a6acSopenharmony_cieffectively restrict the users of a free program by obtaining a 626cd6a6acSopenharmony_cirestrictive license from a patent holder. Therefore, we insist that 636cd6a6acSopenharmony_ciany patent license obtained for a version of the library must be 646cd6a6acSopenharmony_ciconsistent with the full freedom of use specified in this license. 656cd6a6acSopenharmony_ci 666cd6a6acSopenharmony_ci Most GNU software, including some libraries, is covered by the 676cd6a6acSopenharmony_ciordinary GNU General Public License. This license, the GNU Lesser 686cd6a6acSopenharmony_ciGeneral Public License, applies to certain designated libraries, and 696cd6a6acSopenharmony_ciis quite different from the ordinary General Public License. We use 706cd6a6acSopenharmony_cithis license for certain libraries in order to permit linking those 716cd6a6acSopenharmony_cilibraries into non-free programs. 726cd6a6acSopenharmony_ci 736cd6a6acSopenharmony_ci When a program is linked with a library, whether statically or using 746cd6a6acSopenharmony_cia shared library, the combination of the two is legally speaking a 756cd6a6acSopenharmony_cicombined work, a derivative of the original library. The ordinary 766cd6a6acSopenharmony_ciGeneral Public License therefore permits such linking only if the 776cd6a6acSopenharmony_cientire combination fits its criteria of freedom. The Lesser General 786cd6a6acSopenharmony_ciPublic License permits more lax criteria for linking other code with 796cd6a6acSopenharmony_cithe library. 806cd6a6acSopenharmony_ci 816cd6a6acSopenharmony_ci We call this license the "Lesser" General Public License because it 826cd6a6acSopenharmony_cidoes Less to protect the user's freedom than the ordinary General 836cd6a6acSopenharmony_ciPublic License. It also provides other free software developers Less 846cd6a6acSopenharmony_ciof an advantage over competing non-free programs. These disadvantages 856cd6a6acSopenharmony_ciare the reason we use the ordinary General Public License for many 866cd6a6acSopenharmony_cilibraries. However, the Lesser license provides advantages in certain 876cd6a6acSopenharmony_cispecial circumstances. 886cd6a6acSopenharmony_ci 896cd6a6acSopenharmony_ci For example, on rare occasions, there may be a special need to 906cd6a6acSopenharmony_ciencourage the widest possible use of a certain library, so that it becomes 916cd6a6acSopenharmony_cia de-facto standard. To achieve this, non-free programs must be 926cd6a6acSopenharmony_ciallowed to use the library. A more frequent case is that a free 936cd6a6acSopenharmony_cilibrary does the same job as widely used non-free libraries. In this 946cd6a6acSopenharmony_cicase, there is little to gain by limiting the free library to free 956cd6a6acSopenharmony_cisoftware only, so we use the Lesser General Public License. 966cd6a6acSopenharmony_ci 976cd6a6acSopenharmony_ci In other cases, permission to use a particular library in non-free 986cd6a6acSopenharmony_ciprograms enables a greater number of people to use a large body of 996cd6a6acSopenharmony_cifree software. For example, permission to use the GNU C Library in 1006cd6a6acSopenharmony_cinon-free programs enables many more people to use the whole GNU 1016cd6a6acSopenharmony_cioperating system, as well as its variant, the GNU/Linux operating 1026cd6a6acSopenharmony_cisystem. 1036cd6a6acSopenharmony_ci 1046cd6a6acSopenharmony_ci Although the Lesser General Public License is Less protective of the 1056cd6a6acSopenharmony_ciusers' freedom, it does ensure that the user of a program that is 1066cd6a6acSopenharmony_cilinked with the Library has the freedom and the wherewithal to run 1076cd6a6acSopenharmony_cithat program using a modified version of the Library. 1086cd6a6acSopenharmony_ci 1096cd6a6acSopenharmony_ci The precise terms and conditions for copying, distribution and 1106cd6a6acSopenharmony_cimodification follow. Pay close attention to the difference between a 1116cd6a6acSopenharmony_ci"work based on the library" and a "work that uses the library". The 1126cd6a6acSopenharmony_ciformer contains code derived from the library, whereas the latter must 1136cd6a6acSopenharmony_cibe combined with the library in order to run. 1146cd6a6acSopenharmony_ci 1156cd6a6acSopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 1166cd6a6acSopenharmony_ci TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1176cd6a6acSopenharmony_ci 1186cd6a6acSopenharmony_ci 0. This License Agreement applies to any software library or other 1196cd6a6acSopenharmony_ciprogram which contains a notice placed by the copyright holder or 1206cd6a6acSopenharmony_ciother authorized party saying it may be distributed under the terms of 1216cd6a6acSopenharmony_cithis Lesser General Public License (also called "this License"). 1226cd6a6acSopenharmony_ciEach licensee is addressed as "you". 1236cd6a6acSopenharmony_ci 1246cd6a6acSopenharmony_ci A "library" means a collection of software functions and/or data 1256cd6a6acSopenharmony_ciprepared so as to be conveniently linked with application programs 1266cd6a6acSopenharmony_ci(which use some of those functions and data) to form executables. 1276cd6a6acSopenharmony_ci 1286cd6a6acSopenharmony_ci The "Library", below, refers to any such software library or work 1296cd6a6acSopenharmony_ciwhich has been distributed under these terms. A "work based on the 1306cd6a6acSopenharmony_ciLibrary" means either the Library or any derivative work under 1316cd6a6acSopenharmony_cicopyright law: that is to say, a work containing the Library or a 1326cd6a6acSopenharmony_ciportion of it, either verbatim or with modifications and/or translated 1336cd6a6acSopenharmony_cistraightforwardly into another language. (Hereinafter, translation is 1346cd6a6acSopenharmony_ciincluded without limitation in the term "modification".) 1356cd6a6acSopenharmony_ci 1366cd6a6acSopenharmony_ci "Source code" for a work means the preferred form of the work for 1376cd6a6acSopenharmony_cimaking modifications to it. For a library, complete source code means 1386cd6a6acSopenharmony_ciall the source code for all modules it contains, plus any associated 1396cd6a6acSopenharmony_ciinterface definition files, plus the scripts used to control compilation 1406cd6a6acSopenharmony_ciand installation of the library. 1416cd6a6acSopenharmony_ci 1426cd6a6acSopenharmony_ci Activities other than copying, distribution and modification are not 1436cd6a6acSopenharmony_cicovered by this License; they are outside its scope. The act of 1446cd6a6acSopenharmony_cirunning a program using the Library is not restricted, and output from 1456cd6a6acSopenharmony_cisuch a program is covered only if its contents constitute a work based 1466cd6a6acSopenharmony_cion the Library (independent of the use of the Library in a tool for 1476cd6a6acSopenharmony_ciwriting it). Whether that is true depends on what the Library does 1486cd6a6acSopenharmony_ciand what the program that uses the Library does. 1496cd6a6acSopenharmony_ci 1506cd6a6acSopenharmony_ci 1. You may copy and distribute verbatim copies of the Library's 1516cd6a6acSopenharmony_cicomplete source code as you receive it, in any medium, provided that 1526cd6a6acSopenharmony_ciyou conspicuously and appropriately publish on each copy an 1536cd6a6acSopenharmony_ciappropriate copyright notice and disclaimer of warranty; keep intact 1546cd6a6acSopenharmony_ciall the notices that refer to this License and to the absence of any 1556cd6a6acSopenharmony_ciwarranty; and distribute a copy of this License along with the 1566cd6a6acSopenharmony_ciLibrary. 1576cd6a6acSopenharmony_ci 1586cd6a6acSopenharmony_ci You may charge a fee for the physical act of transferring a copy, 1596cd6a6acSopenharmony_ciand you may at your option offer warranty protection in exchange for a 1606cd6a6acSopenharmony_cifee. 1616cd6a6acSopenharmony_ci 1626cd6a6acSopenharmony_ci 2. You may modify your copy or copies of the Library or any portion 1636cd6a6acSopenharmony_ciof it, thus forming a work based on the Library, and copy and 1646cd6a6acSopenharmony_cidistribute such modifications or work under the terms of Section 1 1656cd6a6acSopenharmony_ciabove, provided that you also meet all of these conditions: 1666cd6a6acSopenharmony_ci 1676cd6a6acSopenharmony_ci a) The modified work must itself be a software library. 1686cd6a6acSopenharmony_ci 1696cd6a6acSopenharmony_ci b) You must cause the files modified to carry prominent notices 1706cd6a6acSopenharmony_ci stating that you changed the files and the date of any change. 1716cd6a6acSopenharmony_ci 1726cd6a6acSopenharmony_ci c) You must cause the whole of the work to be licensed at no 1736cd6a6acSopenharmony_ci charge to all third parties under the terms of this License. 1746cd6a6acSopenharmony_ci 1756cd6a6acSopenharmony_ci d) If a facility in the modified Library refers to a function or a 1766cd6a6acSopenharmony_ci table of data to be supplied by an application program that uses 1776cd6a6acSopenharmony_ci the facility, other than as an argument passed when the facility 1786cd6a6acSopenharmony_ci is invoked, then you must make a good faith effort to ensure that, 1796cd6a6acSopenharmony_ci in the event an application does not supply such function or 1806cd6a6acSopenharmony_ci table, the facility still operates, and performs whatever part of 1816cd6a6acSopenharmony_ci its purpose remains meaningful. 1826cd6a6acSopenharmony_ci 1836cd6a6acSopenharmony_ci (For example, a function in a library to compute square roots has 1846cd6a6acSopenharmony_ci a purpose that is entirely well-defined independent of the 1856cd6a6acSopenharmony_ci application. Therefore, Subsection 2d requires that any 1866cd6a6acSopenharmony_ci application-supplied function or table used by this function must 1876cd6a6acSopenharmony_ci be optional: if the application does not supply it, the square 1886cd6a6acSopenharmony_ci root function must still compute square roots.) 1896cd6a6acSopenharmony_ci 1906cd6a6acSopenharmony_ciThese requirements apply to the modified work as a whole. If 1916cd6a6acSopenharmony_ciidentifiable sections of that work are not derived from the Library, 1926cd6a6acSopenharmony_ciand can be reasonably considered independent and separate works in 1936cd6a6acSopenharmony_cithemselves, then this License, and its terms, do not apply to those 1946cd6a6acSopenharmony_cisections when you distribute them as separate works. But when you 1956cd6a6acSopenharmony_cidistribute the same sections as part of a whole which is a work based 1966cd6a6acSopenharmony_cion the Library, the distribution of the whole must be on the terms of 1976cd6a6acSopenharmony_cithis License, whose permissions for other licensees extend to the 1986cd6a6acSopenharmony_cientire whole, and thus to each and every part regardless of who wrote 1996cd6a6acSopenharmony_ciit. 2006cd6a6acSopenharmony_ci 2016cd6a6acSopenharmony_ciThus, it is not the intent of this section to claim rights or contest 2026cd6a6acSopenharmony_ciyour rights to work written entirely by you; rather, the intent is to 2036cd6a6acSopenharmony_ciexercise the right to control the distribution of derivative or 2046cd6a6acSopenharmony_cicollective works based on the Library. 2056cd6a6acSopenharmony_ci 2066cd6a6acSopenharmony_ciIn addition, mere aggregation of another work not based on the Library 2076cd6a6acSopenharmony_ciwith the Library (or with a work based on the Library) on a volume of 2086cd6a6acSopenharmony_cia storage or distribution medium does not bring the other work under 2096cd6a6acSopenharmony_cithe scope of this License. 2106cd6a6acSopenharmony_ci 2116cd6a6acSopenharmony_ci 3. You may opt to apply the terms of the ordinary GNU General Public 2126cd6a6acSopenharmony_ciLicense instead of this License to a given copy of the Library. To do 2136cd6a6acSopenharmony_cithis, you must alter all the notices that refer to this License, so 2146cd6a6acSopenharmony_cithat they refer to the ordinary GNU General Public License, version 2, 2156cd6a6acSopenharmony_ciinstead of to this License. (If a newer version than version 2 of the 2166cd6a6acSopenharmony_ciordinary GNU General Public License has appeared, then you can specify 2176cd6a6acSopenharmony_cithat version instead if you wish.) Do not make any other change in 2186cd6a6acSopenharmony_cithese notices. 2196cd6a6acSopenharmony_ci 2206cd6a6acSopenharmony_ci Once this change is made in a given copy, it is irreversible for 2216cd6a6acSopenharmony_cithat copy, so the ordinary GNU General Public License applies to all 2226cd6a6acSopenharmony_cisubsequent copies and derivative works made from that copy. 2236cd6a6acSopenharmony_ci 2246cd6a6acSopenharmony_ci This option is useful when you wish to copy part of the code of 2256cd6a6acSopenharmony_cithe Library into a program that is not a library. 2266cd6a6acSopenharmony_ci 2276cd6a6acSopenharmony_ci 4. You may copy and distribute the Library (or a portion or 2286cd6a6acSopenharmony_ciderivative of it, under Section 2) in object code or executable form 2296cd6a6acSopenharmony_ciunder the terms of Sections 1 and 2 above provided that you accompany 2306cd6a6acSopenharmony_ciit with the complete corresponding machine-readable source code, which 2316cd6a6acSopenharmony_cimust be distributed under the terms of Sections 1 and 2 above on a 2326cd6a6acSopenharmony_cimedium customarily used for software interchange. 2336cd6a6acSopenharmony_ci 2346cd6a6acSopenharmony_ci If distribution of object code is made by offering access to copy 2356cd6a6acSopenharmony_cifrom a designated place, then offering equivalent access to copy the 2366cd6a6acSopenharmony_cisource code from the same place satisfies the requirement to 2376cd6a6acSopenharmony_cidistribute the source code, even though third parties are not 2386cd6a6acSopenharmony_cicompelled to copy the source along with the object code. 2396cd6a6acSopenharmony_ci 2406cd6a6acSopenharmony_ci 5. A program that contains no derivative of any portion of the 2416cd6a6acSopenharmony_ciLibrary, but is designed to work with the Library by being compiled or 2426cd6a6acSopenharmony_cilinked with it, is called a "work that uses the Library". Such a 2436cd6a6acSopenharmony_ciwork, in isolation, is not a derivative work of the Library, and 2446cd6a6acSopenharmony_citherefore falls outside the scope of this License. 2456cd6a6acSopenharmony_ci 2466cd6a6acSopenharmony_ci However, linking a "work that uses the Library" with the Library 2476cd6a6acSopenharmony_cicreates an executable that is a derivative of the Library (because it 2486cd6a6acSopenharmony_cicontains portions of the Library), rather than a "work that uses the 2496cd6a6acSopenharmony_cilibrary". The executable is therefore covered by this License. 2506cd6a6acSopenharmony_ciSection 6 states terms for distribution of such executables. 2516cd6a6acSopenharmony_ci 2526cd6a6acSopenharmony_ci When a "work that uses the Library" uses material from a header file 2536cd6a6acSopenharmony_cithat is part of the Library, the object code for the work may be a 2546cd6a6acSopenharmony_ciderivative work of the Library even though the source code is not. 2556cd6a6acSopenharmony_ciWhether this is true is especially significant if the work can be 2566cd6a6acSopenharmony_cilinked without the Library, or if the work is itself a library. The 2576cd6a6acSopenharmony_cithreshold for this to be true is not precisely defined by law. 2586cd6a6acSopenharmony_ci 2596cd6a6acSopenharmony_ci If such an object file uses only numerical parameters, data 2606cd6a6acSopenharmony_cistructure layouts and accessors, and small macros and small inline 2616cd6a6acSopenharmony_cifunctions (ten lines or less in length), then the use of the object 2626cd6a6acSopenharmony_cifile is unrestricted, regardless of whether it is legally a derivative 2636cd6a6acSopenharmony_ciwork. (Executables containing this object code plus portions of the 2646cd6a6acSopenharmony_ciLibrary will still fall under Section 6.) 2656cd6a6acSopenharmony_ci 2666cd6a6acSopenharmony_ci Otherwise, if the work is a derivative of the Library, you may 2676cd6a6acSopenharmony_cidistribute the object code for the work under the terms of Section 6. 2686cd6a6acSopenharmony_ciAny executables containing that work also fall under Section 6, 2696cd6a6acSopenharmony_ciwhether or not they are linked directly with the Library itself. 2706cd6a6acSopenharmony_ci 2716cd6a6acSopenharmony_ci 6. As an exception to the Sections above, you may also combine or 2726cd6a6acSopenharmony_cilink a "work that uses the Library" with the Library to produce a 2736cd6a6acSopenharmony_ciwork containing portions of the Library, and distribute that work 2746cd6a6acSopenharmony_ciunder terms of your choice, provided that the terms permit 2756cd6a6acSopenharmony_cimodification of the work for the customer's own use and reverse 2766cd6a6acSopenharmony_ciengineering for debugging such modifications. 2776cd6a6acSopenharmony_ci 2786cd6a6acSopenharmony_ci You must give prominent notice with each copy of the work that the 2796cd6a6acSopenharmony_ciLibrary is used in it and that the Library and its use are covered by 2806cd6a6acSopenharmony_cithis License. You must supply a copy of this License. If the work 2816cd6a6acSopenharmony_ciduring execution displays copyright notices, you must include the 2826cd6a6acSopenharmony_cicopyright notice for the Library among them, as well as a reference 2836cd6a6acSopenharmony_cidirecting the user to the copy of this License. Also, you must do one 2846cd6a6acSopenharmony_ciof these things: 2856cd6a6acSopenharmony_ci 2866cd6a6acSopenharmony_ci a) Accompany the work with the complete corresponding 2876cd6a6acSopenharmony_ci machine-readable source code for the Library including whatever 2886cd6a6acSopenharmony_ci changes were used in the work (which must be distributed under 2896cd6a6acSopenharmony_ci Sections 1 and 2 above); and, if the work is an executable linked 2906cd6a6acSopenharmony_ci with the Library, with the complete machine-readable "work that 2916cd6a6acSopenharmony_ci uses the Library", as object code and/or source code, so that the 2926cd6a6acSopenharmony_ci user can modify the Library and then relink to produce a modified 2936cd6a6acSopenharmony_ci executable containing the modified Library. (It is understood 2946cd6a6acSopenharmony_ci that the user who changes the contents of definitions files in the 2956cd6a6acSopenharmony_ci Library will not necessarily be able to recompile the application 2966cd6a6acSopenharmony_ci to use the modified definitions.) 2976cd6a6acSopenharmony_ci 2986cd6a6acSopenharmony_ci b) Use a suitable shared library mechanism for linking with the 2996cd6a6acSopenharmony_ci Library. A suitable mechanism is one that (1) uses at run time a 3006cd6a6acSopenharmony_ci copy of the library already present on the user's computer system, 3016cd6a6acSopenharmony_ci rather than copying library functions into the executable, and (2) 3026cd6a6acSopenharmony_ci will operate properly with a modified version of the library, if 3036cd6a6acSopenharmony_ci the user installs one, as long as the modified version is 3046cd6a6acSopenharmony_ci interface-compatible with the version that the work was made with. 3056cd6a6acSopenharmony_ci 3066cd6a6acSopenharmony_ci c) Accompany the work with a written offer, valid for at 3076cd6a6acSopenharmony_ci least three years, to give the same user the materials 3086cd6a6acSopenharmony_ci specified in Subsection 6a, above, for a charge no more 3096cd6a6acSopenharmony_ci than the cost of performing this distribution. 3106cd6a6acSopenharmony_ci 3116cd6a6acSopenharmony_ci d) If distribution of the work is made by offering access to copy 3126cd6a6acSopenharmony_ci from a designated place, offer equivalent access to copy the above 3136cd6a6acSopenharmony_ci specified materials from the same place. 3146cd6a6acSopenharmony_ci 3156cd6a6acSopenharmony_ci e) Verify that the user has already received a copy of these 3166cd6a6acSopenharmony_ci materials or that you have already sent this user a copy. 3176cd6a6acSopenharmony_ci 3186cd6a6acSopenharmony_ci For an executable, the required form of the "work that uses the 3196cd6a6acSopenharmony_ciLibrary" must include any data and utility programs needed for 3206cd6a6acSopenharmony_cireproducing the executable from it. However, as a special exception, 3216cd6a6acSopenharmony_cithe materials to be distributed need not include anything that is 3226cd6a6acSopenharmony_cinormally distributed (in either source or binary form) with the major 3236cd6a6acSopenharmony_cicomponents (compiler, kernel, and so on) of the operating system on 3246cd6a6acSopenharmony_ciwhich the executable runs, unless that component itself accompanies 3256cd6a6acSopenharmony_cithe executable. 3266cd6a6acSopenharmony_ci 3276cd6a6acSopenharmony_ci It may happen that this requirement contradicts the license 3286cd6a6acSopenharmony_cirestrictions of other proprietary libraries that do not normally 3296cd6a6acSopenharmony_ciaccompany the operating system. Such a contradiction means you cannot 3306cd6a6acSopenharmony_ciuse both them and the Library together in an executable that you 3316cd6a6acSopenharmony_cidistribute. 3326cd6a6acSopenharmony_ci 3336cd6a6acSopenharmony_ci 7. You may place library facilities that are a work based on the 3346cd6a6acSopenharmony_ciLibrary side-by-side in a single library together with other library 3356cd6a6acSopenharmony_cifacilities not covered by this License, and distribute such a combined 3366cd6a6acSopenharmony_cilibrary, provided that the separate distribution of the work based on 3376cd6a6acSopenharmony_cithe Library and of the other library facilities is otherwise 3386cd6a6acSopenharmony_cipermitted, and provided that you do these two things: 3396cd6a6acSopenharmony_ci 3406cd6a6acSopenharmony_ci a) Accompany the combined library with a copy of the same work 3416cd6a6acSopenharmony_ci based on the Library, uncombined with any other library 3426cd6a6acSopenharmony_ci facilities. This must be distributed under the terms of the 3436cd6a6acSopenharmony_ci Sections above. 3446cd6a6acSopenharmony_ci 3456cd6a6acSopenharmony_ci b) Give prominent notice with the combined library of the fact 3466cd6a6acSopenharmony_ci that part of it is a work based on the Library, and explaining 3476cd6a6acSopenharmony_ci where to find the accompanying uncombined form of the same work. 3486cd6a6acSopenharmony_ci 3496cd6a6acSopenharmony_ci 8. You may not copy, modify, sublicense, link with, or distribute 3506cd6a6acSopenharmony_cithe Library except as expressly provided under this License. Any 3516cd6a6acSopenharmony_ciattempt otherwise to copy, modify, sublicense, link with, or 3526cd6a6acSopenharmony_cidistribute the Library is void, and will automatically terminate your 3536cd6a6acSopenharmony_cirights under this License. However, parties who have received copies, 3546cd6a6acSopenharmony_cior rights, from you under this License will not have their licenses 3556cd6a6acSopenharmony_citerminated so long as such parties remain in full compliance. 3566cd6a6acSopenharmony_ci 3576cd6a6acSopenharmony_ci 9. You are not required to accept this License, since you have not 3586cd6a6acSopenharmony_cisigned it. However, nothing else grants you permission to modify or 3596cd6a6acSopenharmony_cidistribute the Library or its derivative works. These actions are 3606cd6a6acSopenharmony_ciprohibited by law if you do not accept this License. Therefore, by 3616cd6a6acSopenharmony_cimodifying or distributing the Library (or any work based on the 3626cd6a6acSopenharmony_ciLibrary), you indicate your acceptance of this License to do so, and 3636cd6a6acSopenharmony_ciall its terms and conditions for copying, distributing or modifying 3646cd6a6acSopenharmony_cithe Library or works based on it. 3656cd6a6acSopenharmony_ci 3666cd6a6acSopenharmony_ci 10. Each time you redistribute the Library (or any work based on the 3676cd6a6acSopenharmony_ciLibrary), the recipient automatically receives a license from the 3686cd6a6acSopenharmony_cioriginal licensor to copy, distribute, link with or modify the Library 3696cd6a6acSopenharmony_cisubject to these terms and conditions. You may not impose any further 3706cd6a6acSopenharmony_cirestrictions on the recipients' exercise of the rights granted herein. 3716cd6a6acSopenharmony_ciYou are not responsible for enforcing compliance by third parties with 3726cd6a6acSopenharmony_cithis License. 3736cd6a6acSopenharmony_ci 3746cd6a6acSopenharmony_ci 11. If, as a consequence of a court judgment or allegation of patent 3756cd6a6acSopenharmony_ciinfringement or for any other reason (not limited to patent issues), 3766cd6a6acSopenharmony_ciconditions are imposed on you (whether by court order, agreement or 3776cd6a6acSopenharmony_ciotherwise) that contradict the conditions of this License, they do not 3786cd6a6acSopenharmony_ciexcuse you from the conditions of this License. If you cannot 3796cd6a6acSopenharmony_cidistribute so as to satisfy simultaneously your obligations under this 3806cd6a6acSopenharmony_ciLicense and any other pertinent obligations, then as a consequence you 3816cd6a6acSopenharmony_cimay not distribute the Library at all. For example, if a patent 3826cd6a6acSopenharmony_cilicense would not permit royalty-free redistribution of the Library by 3836cd6a6acSopenharmony_ciall those who receive copies directly or indirectly through you, then 3846cd6a6acSopenharmony_cithe only way you could satisfy both it and this License would be to 3856cd6a6acSopenharmony_cirefrain entirely from distribution of the Library. 3866cd6a6acSopenharmony_ci 3876cd6a6acSopenharmony_ciIf any portion of this section is held invalid or unenforceable under any 3886cd6a6acSopenharmony_ciparticular circumstance, the balance of the section is intended to apply, 3896cd6a6acSopenharmony_ciand the section as a whole is intended to apply in other circumstances. 3906cd6a6acSopenharmony_ci 3916cd6a6acSopenharmony_ciIt is not the purpose of this section to induce you to infringe any 3926cd6a6acSopenharmony_cipatents or other property right claims or to contest validity of any 3936cd6a6acSopenharmony_cisuch claims; this section has the sole purpose of protecting the 3946cd6a6acSopenharmony_ciintegrity of the free software distribution system which is 3956cd6a6acSopenharmony_ciimplemented by public license practices. Many people have made 3966cd6a6acSopenharmony_cigenerous contributions to the wide range of software distributed 3976cd6a6acSopenharmony_cithrough that system in reliance on consistent application of that 3986cd6a6acSopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing 3996cd6a6acSopenharmony_cito distribute software through any other system and a licensee cannot 4006cd6a6acSopenharmony_ciimpose that choice. 4016cd6a6acSopenharmony_ci 4026cd6a6acSopenharmony_ciThis section is intended to make thoroughly clear what is believed to 4036cd6a6acSopenharmony_cibe a consequence of the rest of this License. 4046cd6a6acSopenharmony_ci 4056cd6a6acSopenharmony_ci 12. If the distribution and/or use of the Library is restricted in 4066cd6a6acSopenharmony_cicertain countries either by patents or by copyrighted interfaces, the 4076cd6a6acSopenharmony_cioriginal copyright holder who places the Library under this License may add 4086cd6a6acSopenharmony_cian explicit geographical distribution limitation excluding those countries, 4096cd6a6acSopenharmony_ciso that distribution is permitted only in or among countries not thus 4106cd6a6acSopenharmony_ciexcluded. In such case, this License incorporates the limitation as if 4116cd6a6acSopenharmony_ciwritten in the body of this License. 4126cd6a6acSopenharmony_ci 4136cd6a6acSopenharmony_ci 13. The Free Software Foundation may publish revised and/or new 4146cd6a6acSopenharmony_civersions of the Lesser General Public License from time to time. 4156cd6a6acSopenharmony_ciSuch new versions will be similar in spirit to the present version, 4166cd6a6acSopenharmony_cibut may differ in detail to address new problems or concerns. 4176cd6a6acSopenharmony_ci 4186cd6a6acSopenharmony_ciEach version is given a distinguishing version number. If the Library 4196cd6a6acSopenharmony_cispecifies a version number of this License which applies to it and 4206cd6a6acSopenharmony_ci"any later version", you have the option of following the terms and 4216cd6a6acSopenharmony_ciconditions either of that version or of any later version published by 4226cd6a6acSopenharmony_cithe Free Software Foundation. If the Library does not specify a 4236cd6a6acSopenharmony_cilicense version number, you may choose any version ever published by 4246cd6a6acSopenharmony_cithe Free Software Foundation. 4256cd6a6acSopenharmony_ci 4266cd6a6acSopenharmony_ci 14. If you wish to incorporate parts of the Library into other free 4276cd6a6acSopenharmony_ciprograms whose distribution conditions are incompatible with these, 4286cd6a6acSopenharmony_ciwrite to the author to ask for permission. For software which is 4296cd6a6acSopenharmony_cicopyrighted by the Free Software Foundation, write to the Free 4306cd6a6acSopenharmony_ciSoftware Foundation; we sometimes make exceptions for this. Our 4316cd6a6acSopenharmony_cidecision will be guided by the two goals of preserving the free status 4326cd6a6acSopenharmony_ciof all derivatives of our free software and of promoting the sharing 4336cd6a6acSopenharmony_ciand reuse of software generally. 4346cd6a6acSopenharmony_ci 4356cd6a6acSopenharmony_ci NO WARRANTY 4366cd6a6acSopenharmony_ci 4376cd6a6acSopenharmony_ci 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 4386cd6a6acSopenharmony_ciWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 4396cd6a6acSopenharmony_ciEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 4406cd6a6acSopenharmony_ciOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 4416cd6a6acSopenharmony_ciKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 4426cd6a6acSopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 4436cd6a6acSopenharmony_ciPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 4446cd6a6acSopenharmony_ciLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 4456cd6a6acSopenharmony_ciTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 4466cd6a6acSopenharmony_ci 4476cd6a6acSopenharmony_ci 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 4486cd6a6acSopenharmony_ciWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 4496cd6a6acSopenharmony_ciAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 4506cd6a6acSopenharmony_ciFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 4516cd6a6acSopenharmony_ciCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 4526cd6a6acSopenharmony_ciLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 4536cd6a6acSopenharmony_ciRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 4546cd6a6acSopenharmony_ciFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 4556cd6a6acSopenharmony_ciSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 4566cd6a6acSopenharmony_ciDAMAGES. 4576cd6a6acSopenharmony_ci 4586cd6a6acSopenharmony_ci END OF TERMS AND CONDITIONS 4596cd6a6acSopenharmony_ci 4606cd6a6acSopenharmony_ci How to Apply These Terms to Your New Libraries 4616cd6a6acSopenharmony_ci 4626cd6a6acSopenharmony_ci If you develop a new library, and you want it to be of the greatest 4636cd6a6acSopenharmony_cipossible use to the public, we recommend making it free software that 4646cd6a6acSopenharmony_cieveryone can redistribute and change. You can do so by permitting 4656cd6a6acSopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the 4666cd6a6acSopenharmony_ciordinary General Public License). 4676cd6a6acSopenharmony_ci 4686cd6a6acSopenharmony_ci To apply these terms, attach the following notices to the library. It is 4696cd6a6acSopenharmony_cisafest to attach them to the start of each source file to most effectively 4706cd6a6acSopenharmony_ciconvey the exclusion of warranty; and each file should have at least the 4716cd6a6acSopenharmony_ci"copyright" line and a pointer to where the full notice is found. 4726cd6a6acSopenharmony_ci 4736cd6a6acSopenharmony_ci <one line to give the library's name and a brief idea of what it does.> 4746cd6a6acSopenharmony_ci Copyright (C) <year> <name of author> 4756cd6a6acSopenharmony_ci 4766cd6a6acSopenharmony_ci This library is free software; you can redistribute it and/or 4776cd6a6acSopenharmony_ci modify it under the terms of the GNU Lesser General Public 4786cd6a6acSopenharmony_ci License as published by the Free Software Foundation; either 4796cd6a6acSopenharmony_ci version 2.1 of the License, or (at your option) any later version. 4806cd6a6acSopenharmony_ci 4816cd6a6acSopenharmony_ci This library is distributed in the hope that it will be useful, 4826cd6a6acSopenharmony_ci but WITHOUT ANY WARRANTY; without even the implied warranty of 4836cd6a6acSopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4846cd6a6acSopenharmony_ci Lesser General Public License for more details. 4856cd6a6acSopenharmony_ci 4866cd6a6acSopenharmony_ci You should have received a copy of the GNU Lesser General Public 4876cd6a6acSopenharmony_ci License along with this library; if not, write to the Free Software 4886cd6a6acSopenharmony_ci Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 4896cd6a6acSopenharmony_ci 4906cd6a6acSopenharmony_ciAlso add information on how to contact you by electronic and paper mail. 4916cd6a6acSopenharmony_ci 4926cd6a6acSopenharmony_ciYou should also get your employer (if you work as a programmer) or your 4936cd6a6acSopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if 4946cd6a6acSopenharmony_cinecessary. Here is a sample; alter the names: 4956cd6a6acSopenharmony_ci 4966cd6a6acSopenharmony_ci Yoyodyne, Inc., hereby disclaims all copyright interest in the 4976cd6a6acSopenharmony_ci library `Frob' (a library for tweaking knobs) written by James Random Hacker. 4986cd6a6acSopenharmony_ci 4996cd6a6acSopenharmony_ci <signature of Ty Coon>, 1 April 1990 5006cd6a6acSopenharmony_ci Ty Coon, President of Vice 5016cd6a6acSopenharmony_ci 5026cd6a6acSopenharmony_ciThat's all there is to it! 5036cd6a6acSopenharmony_ci 5046cd6a6acSopenharmony_ci 505