15e5c12b0Sopenharmony_ciThe tools for F2FS are covered by GNU Public License version 2. 25e5c12b0Sopenharmony_ciExceptionally, the following files are also covered by the GNU Lesser General 35e5c12b0Sopenharmony_ciPublic License Version 2.1 as the dual licenses. 45e5c12b0Sopenharmony_ci- include/f2fs_fs.h 55e5c12b0Sopenharmony_ci- lib/libf2fs.c 65e5c12b0Sopenharmony_ci- lib/libf2fs_io.c 75e5c12b0Sopenharmony_ci- mkfs/f2fs_format.c 85e5c12b0Sopenharmony_ci- mkfs/f2fs_format_main.c 95e5c12b0Sopenharmony_ci- mkfs/f2fs_format_utils.c 105e5c12b0Sopenharmony_ci- mkfs/f2fs_format_utils.h 115e5c12b0Sopenharmony_ci 125e5c12b0Sopenharmony_ci================================================================================ 135e5c12b0Sopenharmony_ciCopyright (c) 2012 Samsung Electronics Co., Ltd. 145e5c12b0Sopenharmony_ci http://www.samsung.com/ 155e5c12b0Sopenharmony_ci 165e5c12b0Sopenharmony_ciThis program is free software; you can redistribute it and/or modify 175e5c12b0Sopenharmony_ciit under the terms of the GNU General Public License version 2 as 185e5c12b0Sopenharmony_cipublished by the Free Software Foundation. 195e5c12b0Sopenharmony_ci 205e5c12b0Sopenharmony_ci================================================================================ 215e5c12b0Sopenharmony_ci GNU GENERAL PUBLIC LICENSE 225e5c12b0Sopenharmony_ci Version 2, June 1991 235e5c12b0Sopenharmony_ci 245e5c12b0Sopenharmony_ci Copyright (C) 1989, 1991 Free Software Foundation, Inc. 255e5c12b0Sopenharmony_ci 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 265e5c12b0Sopenharmony_ci Everyone is permitted to copy and distribute verbatim copies 275e5c12b0Sopenharmony_ci of this license document, but changing it is not allowed. 285e5c12b0Sopenharmony_ci 295e5c12b0Sopenharmony_ci Preamble 305e5c12b0Sopenharmony_ci 315e5c12b0Sopenharmony_ci The licenses for most software are designed to take away your 325e5c12b0Sopenharmony_cifreedom to share and change it. By contrast, the GNU General Public 335e5c12b0Sopenharmony_ciLicense is intended to guarantee your freedom to share and change free 345e5c12b0Sopenharmony_cisoftware--to make sure the software is free for all its users. This 355e5c12b0Sopenharmony_ciGeneral Public License applies to most of the Free Software 365e5c12b0Sopenharmony_ciFoundation's software and to any other program whose authors commit to 375e5c12b0Sopenharmony_ciusing it. (Some other Free Software Foundation software is covered by 385e5c12b0Sopenharmony_cithe GNU Library General Public License instead.) You can apply it to 395e5c12b0Sopenharmony_ciyour programs, too. 405e5c12b0Sopenharmony_ci 415e5c12b0Sopenharmony_ci When we speak of free software, we are referring to freedom, not 425e5c12b0Sopenharmony_ciprice. Our General Public Licenses are designed to make sure that you 435e5c12b0Sopenharmony_cihave the freedom to distribute copies of free software (and charge for 445e5c12b0Sopenharmony_cithis service if you wish), that you receive source code or can get it 455e5c12b0Sopenharmony_ciif you want it, that you can change the software or use pieces of it 465e5c12b0Sopenharmony_ciin new free programs; and that you know you can do these things. 475e5c12b0Sopenharmony_ci 485e5c12b0Sopenharmony_ci To protect your rights, we need to make restrictions that forbid 495e5c12b0Sopenharmony_cianyone to deny you these rights or to ask you to surrender the rights. 505e5c12b0Sopenharmony_ciThese restrictions translate to certain responsibilities for you if you 515e5c12b0Sopenharmony_cidistribute copies of the software, or if you modify it. 525e5c12b0Sopenharmony_ci 535e5c12b0Sopenharmony_ci For example, if you distribute copies of such a program, whether 545e5c12b0Sopenharmony_cigratis or for a fee, you must give the recipients all the rights that 555e5c12b0Sopenharmony_ciyou have. You must make sure that they, too, receive or can get the 565e5c12b0Sopenharmony_cisource code. And you must show them these terms so they know their 575e5c12b0Sopenharmony_cirights. 585e5c12b0Sopenharmony_ci 595e5c12b0Sopenharmony_ci We protect your rights with two steps: (1) copyright the software, and 605e5c12b0Sopenharmony_ci(2) offer you this license which gives you legal permission to copy, 615e5c12b0Sopenharmony_cidistribute and/or modify the software. 625e5c12b0Sopenharmony_ci 635e5c12b0Sopenharmony_ci Also, for each author's protection and ours, we want to make certain 645e5c12b0Sopenharmony_cithat everyone understands that there is no warranty for this free 655e5c12b0Sopenharmony_cisoftware. If the software is modified by someone else and passed on, we 665e5c12b0Sopenharmony_ciwant its recipients to know that what they have is not the original, so 675e5c12b0Sopenharmony_cithat any problems introduced by others will not reflect on the original 685e5c12b0Sopenharmony_ciauthors' reputations. 695e5c12b0Sopenharmony_ci 705e5c12b0Sopenharmony_ci Finally, any free program is threatened constantly by software 715e5c12b0Sopenharmony_cipatents. We wish to avoid the danger that redistributors of a free 725e5c12b0Sopenharmony_ciprogram will individually obtain patent licenses, in effect making the 735e5c12b0Sopenharmony_ciprogram proprietary. To prevent this, we have made it clear that any 745e5c12b0Sopenharmony_cipatent must be licensed for everyone's free use or not licensed at all. 755e5c12b0Sopenharmony_ci 765e5c12b0Sopenharmony_ci The precise terms and conditions for copying, distribution and 775e5c12b0Sopenharmony_cimodification follow. 785e5c12b0Sopenharmony_ci 795e5c12b0Sopenharmony_ci GNU GENERAL PUBLIC LICENSE 805e5c12b0Sopenharmony_ci TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 815e5c12b0Sopenharmony_ci 825e5c12b0Sopenharmony_ci 0. This License applies to any program or other work which contains 835e5c12b0Sopenharmony_cia notice placed by the copyright holder saying it may be distributed 845e5c12b0Sopenharmony_ciunder the terms of this General Public License. The "Program", below, 855e5c12b0Sopenharmony_cirefers to any such program or work, and a "work based on the Program" 865e5c12b0Sopenharmony_cimeans either the Program or any derivative work under copyright law: 875e5c12b0Sopenharmony_cithat is to say, a work containing the Program or a portion of it, 885e5c12b0Sopenharmony_cieither verbatim or with modifications and/or translated into another 895e5c12b0Sopenharmony_cilanguage. (Hereinafter, translation is included without limitation in 905e5c12b0Sopenharmony_cithe term "modification".) Each licensee is addressed as "you". 915e5c12b0Sopenharmony_ci 925e5c12b0Sopenharmony_ciActivities other than copying, distribution and modification are not 935e5c12b0Sopenharmony_cicovered by this License; they are outside its scope. The act of 945e5c12b0Sopenharmony_cirunning the Program is not restricted, and the output from the Program 955e5c12b0Sopenharmony_ciis covered only if its contents constitute a work based on the 965e5c12b0Sopenharmony_ciProgram (independent of having been made by running the Program). 975e5c12b0Sopenharmony_ciWhether that is true depends on what the Program does. 985e5c12b0Sopenharmony_ci 995e5c12b0Sopenharmony_ci 1. You may copy and distribute verbatim copies of the Program's 1005e5c12b0Sopenharmony_cisource code as you receive it, in any medium, provided that you 1015e5c12b0Sopenharmony_ciconspicuously and appropriately publish on each copy an appropriate 1025e5c12b0Sopenharmony_cicopyright notice and disclaimer of warranty; keep intact all the 1035e5c12b0Sopenharmony_cinotices that refer to this License and to the absence of any warranty; 1045e5c12b0Sopenharmony_ciand give any other recipients of the Program a copy of this License 1055e5c12b0Sopenharmony_cialong with the Program. 1065e5c12b0Sopenharmony_ci 1075e5c12b0Sopenharmony_ciYou may charge a fee for the physical act of transferring a copy, and 1085e5c12b0Sopenharmony_ciyou may at your option offer warranty protection in exchange for a fee. 1095e5c12b0Sopenharmony_ci 1105e5c12b0Sopenharmony_ci 2. You may modify your copy or copies of the Program or any portion 1115e5c12b0Sopenharmony_ciof it, thus forming a work based on the Program, and copy and 1125e5c12b0Sopenharmony_cidistribute such modifications or work under the terms of Section 1 1135e5c12b0Sopenharmony_ciabove, provided that you also meet all of these conditions: 1145e5c12b0Sopenharmony_ci 1155e5c12b0Sopenharmony_ci a) You must cause the modified files to carry prominent notices 1165e5c12b0Sopenharmony_ci stating that you changed the files and the date of any change. 1175e5c12b0Sopenharmony_ci 1185e5c12b0Sopenharmony_ci b) You must cause any work that you distribute or publish, that in 1195e5c12b0Sopenharmony_ci whole or in part contains or is derived from the Program or any 1205e5c12b0Sopenharmony_ci part thereof, to be licensed as a whole at no charge to all third 1215e5c12b0Sopenharmony_ci parties under the terms of this License. 1225e5c12b0Sopenharmony_ci 1235e5c12b0Sopenharmony_ci c) If the modified program normally reads commands interactively 1245e5c12b0Sopenharmony_ci when run, you must cause it, when started running for such 1255e5c12b0Sopenharmony_ci interactive use in the most ordinary way, to print or display an 1265e5c12b0Sopenharmony_ci announcement including an appropriate copyright notice and a 1275e5c12b0Sopenharmony_ci notice that there is no warranty (or else, saying that you provide 1285e5c12b0Sopenharmony_ci a warranty) and that users may redistribute the program under 1295e5c12b0Sopenharmony_ci these conditions, and telling the user how to view a copy of this 1305e5c12b0Sopenharmony_ci License. (Exception: if the Program itself is interactive but 1315e5c12b0Sopenharmony_ci does not normally print such an announcement, your work based on 1325e5c12b0Sopenharmony_ci the Program is not required to print an announcement.) 1335e5c12b0Sopenharmony_ci 1345e5c12b0Sopenharmony_ciThese requirements apply to the modified work as a whole. If 1355e5c12b0Sopenharmony_ciidentifiable sections of that work are not derived from the Program, 1365e5c12b0Sopenharmony_ciand can be reasonably considered independent and separate works in 1375e5c12b0Sopenharmony_cithemselves, then this License, and its terms, do not apply to those 1385e5c12b0Sopenharmony_cisections when you distribute them as separate works. But when you 1395e5c12b0Sopenharmony_cidistribute the same sections as part of a whole which is a work based 1405e5c12b0Sopenharmony_cion the Program, the distribution of the whole must be on the terms of 1415e5c12b0Sopenharmony_cithis License, whose permissions for other licensees extend to the 1425e5c12b0Sopenharmony_cientire whole, and thus to each and every part regardless of who wrote it. 1435e5c12b0Sopenharmony_ci 1445e5c12b0Sopenharmony_ciThus, it is not the intent of this section to claim rights or contest 1455e5c12b0Sopenharmony_ciyour rights to work written entirely by you; rather, the intent is to 1465e5c12b0Sopenharmony_ciexercise the right to control the distribution of derivative or 1475e5c12b0Sopenharmony_cicollective works based on the Program. 1485e5c12b0Sopenharmony_ci 1495e5c12b0Sopenharmony_ciIn addition, mere aggregation of another work not based on the Program 1505e5c12b0Sopenharmony_ciwith the Program (or with a work based on the Program) on a volume of 1515e5c12b0Sopenharmony_cia storage or distribution medium does not bring the other work under 1525e5c12b0Sopenharmony_cithe scope of this License. 1535e5c12b0Sopenharmony_ci 1545e5c12b0Sopenharmony_ci 3. You may copy and distribute the Program (or a work based on it, 1555e5c12b0Sopenharmony_ciunder Section 2) in object code or executable form under the terms of 1565e5c12b0Sopenharmony_ciSections 1 and 2 above provided that you also do one of the following: 1575e5c12b0Sopenharmony_ci 1585e5c12b0Sopenharmony_ci a) Accompany it with the complete corresponding machine-readable 1595e5c12b0Sopenharmony_ci source code, which must be distributed under the terms of Sections 1605e5c12b0Sopenharmony_ci 1 and 2 above on a medium customarily used for software interchange; or, 1615e5c12b0Sopenharmony_ci 1625e5c12b0Sopenharmony_ci b) Accompany it with a written offer, valid for at least three 1635e5c12b0Sopenharmony_ci years, to give any third party, for a charge no more than your 1645e5c12b0Sopenharmony_ci cost of physically performing source distribution, a complete 1655e5c12b0Sopenharmony_ci machine-readable copy of the corresponding source code, to be 1665e5c12b0Sopenharmony_ci distributed under the terms of Sections 1 and 2 above on a medium 1675e5c12b0Sopenharmony_ci customarily used for software interchange; or, 1685e5c12b0Sopenharmony_ci 1695e5c12b0Sopenharmony_ci c) Accompany it with the information you received as to the offer 1705e5c12b0Sopenharmony_ci to distribute corresponding source code. (This alternative is 1715e5c12b0Sopenharmony_ci allowed only for noncommercial distribution and only if you 1725e5c12b0Sopenharmony_ci received the program in object code or executable form with such 1735e5c12b0Sopenharmony_ci an offer, in accord with Subsection b above.) 1745e5c12b0Sopenharmony_ci 1755e5c12b0Sopenharmony_ciThe source code for a work means the preferred form of the work for 1765e5c12b0Sopenharmony_cimaking modifications to it. For an executable work, complete source 1775e5c12b0Sopenharmony_cicode means all the source code for all modules it contains, plus any 1785e5c12b0Sopenharmony_ciassociated interface definition files, plus the scripts used to 1795e5c12b0Sopenharmony_cicontrol compilation and installation of the executable. However, as a 1805e5c12b0Sopenharmony_cispecial exception, the source code distributed need not include 1815e5c12b0Sopenharmony_cianything that is normally distributed (in either source or binary 1825e5c12b0Sopenharmony_ciform) with the major components (compiler, kernel, and so on) of the 1835e5c12b0Sopenharmony_cioperating system on which the executable runs, unless that component 1845e5c12b0Sopenharmony_ciitself accompanies the executable. 1855e5c12b0Sopenharmony_ci 1865e5c12b0Sopenharmony_ciIf distribution of executable or object code is made by offering 1875e5c12b0Sopenharmony_ciaccess to copy from a designated place, then offering equivalent 1885e5c12b0Sopenharmony_ciaccess to copy the source code from the same place counts as 1895e5c12b0Sopenharmony_cidistribution of the source code, even though third parties are not 1905e5c12b0Sopenharmony_cicompelled to copy the source along with the object code. 1915e5c12b0Sopenharmony_ci 1925e5c12b0Sopenharmony_ci 4. You may not copy, modify, sublicense, or distribute the Program 1935e5c12b0Sopenharmony_ciexcept as expressly provided under this License. Any attempt 1945e5c12b0Sopenharmony_ciotherwise to copy, modify, sublicense or distribute the Program is 1955e5c12b0Sopenharmony_civoid, and will automatically terminate your rights under this License. 1965e5c12b0Sopenharmony_ciHowever, parties who have received copies, or rights, from you under 1975e5c12b0Sopenharmony_cithis License will not have their licenses terminated so long as such 1985e5c12b0Sopenharmony_ciparties remain in full compliance. 1995e5c12b0Sopenharmony_ci 2005e5c12b0Sopenharmony_ci 5. You are not required to accept this License, since you have not 2015e5c12b0Sopenharmony_cisigned it. However, nothing else grants you permission to modify or 2025e5c12b0Sopenharmony_cidistribute the Program or its derivative works. These actions are 2035e5c12b0Sopenharmony_ciprohibited by law if you do not accept this License. Therefore, by 2045e5c12b0Sopenharmony_cimodifying or distributing the Program (or any work based on the 2055e5c12b0Sopenharmony_ciProgram), you indicate your acceptance of this License to do so, and 2065e5c12b0Sopenharmony_ciall its terms and conditions for copying, distributing or modifying 2075e5c12b0Sopenharmony_cithe Program or works based on it. 2085e5c12b0Sopenharmony_ci 2095e5c12b0Sopenharmony_ci 6. Each time you redistribute the Program (or any work based on the 2105e5c12b0Sopenharmony_ciProgram), the recipient automatically receives a license from the 2115e5c12b0Sopenharmony_cioriginal licensor to copy, distribute or modify the Program subject to 2125e5c12b0Sopenharmony_cithese terms and conditions. You may not impose any further 2135e5c12b0Sopenharmony_cirestrictions on the recipients' exercise of the rights granted herein. 2145e5c12b0Sopenharmony_ciYou are not responsible for enforcing compliance by third parties to 2155e5c12b0Sopenharmony_cithis License. 2165e5c12b0Sopenharmony_ci 2175e5c12b0Sopenharmony_ci 7. If, as a consequence of a court judgment or allegation of patent 2185e5c12b0Sopenharmony_ciinfringement or for any other reason (not limited to patent issues), 2195e5c12b0Sopenharmony_ciconditions are imposed on you (whether by court order, agreement or 2205e5c12b0Sopenharmony_ciotherwise) that contradict the conditions of this License, they do not 2215e5c12b0Sopenharmony_ciexcuse you from the conditions of this License. If you cannot 2225e5c12b0Sopenharmony_cidistribute so as to satisfy simultaneously your obligations under this 2235e5c12b0Sopenharmony_ciLicense and any other pertinent obligations, then as a consequence you 2245e5c12b0Sopenharmony_cimay not distribute the Program at all. For example, if a patent 2255e5c12b0Sopenharmony_cilicense would not permit royalty-free redistribution of the Program by 2265e5c12b0Sopenharmony_ciall those who receive copies directly or indirectly through you, then 2275e5c12b0Sopenharmony_cithe only way you could satisfy both it and this License would be to 2285e5c12b0Sopenharmony_cirefrain entirely from distribution of the Program. 2295e5c12b0Sopenharmony_ci 2305e5c12b0Sopenharmony_ciIf any portion of this section is held invalid or unenforceable under 2315e5c12b0Sopenharmony_ciany particular circumstance, the balance of the section is intended to 2325e5c12b0Sopenharmony_ciapply and the section as a whole is intended to apply in other 2335e5c12b0Sopenharmony_cicircumstances. 2345e5c12b0Sopenharmony_ci 2355e5c12b0Sopenharmony_ciIt is not the purpose of this section to induce you to infringe any 2365e5c12b0Sopenharmony_cipatents or other property right claims or to contest validity of any 2375e5c12b0Sopenharmony_cisuch claims; this section has the sole purpose of protecting the 2385e5c12b0Sopenharmony_ciintegrity of the free software distribution system, which is 2395e5c12b0Sopenharmony_ciimplemented by public license practices. Many people have made 2405e5c12b0Sopenharmony_cigenerous contributions to the wide range of software distributed 2415e5c12b0Sopenharmony_cithrough that system in reliance on consistent application of that 2425e5c12b0Sopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing 2435e5c12b0Sopenharmony_cito distribute software through any other system and a licensee cannot 2445e5c12b0Sopenharmony_ciimpose that choice. 2455e5c12b0Sopenharmony_ci 2465e5c12b0Sopenharmony_ciThis section is intended to make thoroughly clear what is believed to 2475e5c12b0Sopenharmony_cibe a consequence of the rest of this License. 2485e5c12b0Sopenharmony_ci 2495e5c12b0Sopenharmony_ci 8. If the distribution and/or use of the Program is restricted in 2505e5c12b0Sopenharmony_cicertain countries either by patents or by copyrighted interfaces, the 2515e5c12b0Sopenharmony_cioriginal copyright holder who places the Program under this License 2525e5c12b0Sopenharmony_cimay add an explicit geographical distribution limitation excluding 2535e5c12b0Sopenharmony_cithose countries, so that distribution is permitted only in or among 2545e5c12b0Sopenharmony_cicountries not thus excluded. In such case, this License incorporates 2555e5c12b0Sopenharmony_cithe limitation as if written in the body of this License. 2565e5c12b0Sopenharmony_ci 2575e5c12b0Sopenharmony_ci 9. The Free Software Foundation may publish revised and/or new versions 2585e5c12b0Sopenharmony_ciof the General Public License from time to time. Such new versions will 2595e5c12b0Sopenharmony_cibe similar in spirit to the present version, but may differ in detail to 2605e5c12b0Sopenharmony_ciaddress new problems or concerns. 2615e5c12b0Sopenharmony_ci 2625e5c12b0Sopenharmony_ciEach version is given a distinguishing version number. If the Program 2635e5c12b0Sopenharmony_cispecifies a version number of this License which applies to it and "any 2645e5c12b0Sopenharmony_cilater version", you have the option of following the terms and conditions 2655e5c12b0Sopenharmony_cieither of that version or of any later version published by the Free 2665e5c12b0Sopenharmony_ciSoftware Foundation. If the Program does not specify a version number of 2675e5c12b0Sopenharmony_cithis License, you may choose any version ever published by the Free Software 2685e5c12b0Sopenharmony_ciFoundation. 2695e5c12b0Sopenharmony_ci 2705e5c12b0Sopenharmony_ci 10. If you wish to incorporate parts of the Program into other free 2715e5c12b0Sopenharmony_ciprograms whose distribution conditions are different, write to the author 2725e5c12b0Sopenharmony_cito ask for permission. For software which is copyrighted by the Free 2735e5c12b0Sopenharmony_ciSoftware Foundation, write to the Free Software Foundation; we sometimes 2745e5c12b0Sopenharmony_cimake exceptions for this. Our decision will be guided by the two goals 2755e5c12b0Sopenharmony_ciof preserving the free status of all derivatives of our free software and 2765e5c12b0Sopenharmony_ciof promoting the sharing and reuse of software generally. 2775e5c12b0Sopenharmony_ci 2785e5c12b0Sopenharmony_ci NO WARRANTY 2795e5c12b0Sopenharmony_ci 2805e5c12b0Sopenharmony_ci 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 2815e5c12b0Sopenharmony_ciFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 2825e5c12b0Sopenharmony_ciOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 2835e5c12b0Sopenharmony_ciPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 2845e5c12b0Sopenharmony_ciOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2855e5c12b0Sopenharmony_ciMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 2865e5c12b0Sopenharmony_ciTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 2875e5c12b0Sopenharmony_ciPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 2885e5c12b0Sopenharmony_ciREPAIR OR CORRECTION. 2895e5c12b0Sopenharmony_ci 2905e5c12b0Sopenharmony_ci 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 2915e5c12b0Sopenharmony_ciWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 2925e5c12b0Sopenharmony_ciREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 2935e5c12b0Sopenharmony_ciINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 2945e5c12b0Sopenharmony_ciOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 2955e5c12b0Sopenharmony_ciTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 2965e5c12b0Sopenharmony_ciYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 2975e5c12b0Sopenharmony_ciPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 2985e5c12b0Sopenharmony_ciPOSSIBILITY OF SUCH DAMAGES. 2995e5c12b0Sopenharmony_ci 3005e5c12b0Sopenharmony_ci END OF TERMS AND CONDITIONS 3015e5c12b0Sopenharmony_ci 3025e5c12b0Sopenharmony_ci How to Apply These Terms to Your New Programs 3035e5c12b0Sopenharmony_ci 3045e5c12b0Sopenharmony_ci If you develop a new program, and you want it to be of the greatest 3055e5c12b0Sopenharmony_cipossible use to the public, the best way to achieve this is to make it 3065e5c12b0Sopenharmony_cifree software which everyone can redistribute and change under these terms. 3075e5c12b0Sopenharmony_ci 3085e5c12b0Sopenharmony_ci To do so, attach the following notices to the program. It is safest 3095e5c12b0Sopenharmony_cito attach them to the start of each source file to most effectively 3105e5c12b0Sopenharmony_ciconvey the exclusion of warranty; and each file should have at least 3115e5c12b0Sopenharmony_cithe "copyright" line and a pointer to where the full notice is found. 3125e5c12b0Sopenharmony_ci 3135e5c12b0Sopenharmony_ci <one line to give the program's name and a brief idea of what it does.> 3145e5c12b0Sopenharmony_ci Copyright (C) <year> <name of author> 3155e5c12b0Sopenharmony_ci 3165e5c12b0Sopenharmony_ci This program is free software; you can redistribute it and/or modify 3175e5c12b0Sopenharmony_ci it under the terms of the GNU General Public License as published by 3185e5c12b0Sopenharmony_ci the Free Software Foundation; either version 2 of the License, or 3195e5c12b0Sopenharmony_ci (at your option) any later version. 3205e5c12b0Sopenharmony_ci 3215e5c12b0Sopenharmony_ci This program is distributed in the hope that it will be useful, 3225e5c12b0Sopenharmony_ci but WITHOUT ANY WARRANTY; without even the implied warranty of 3235e5c12b0Sopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3245e5c12b0Sopenharmony_ci GNU General Public License for more details. 3255e5c12b0Sopenharmony_ci 3265e5c12b0Sopenharmony_ci You should have received a copy of the GNU General Public License 3275e5c12b0Sopenharmony_ci along with this program; if not, write to the Free Software 3285e5c12b0Sopenharmony_ci Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 3295e5c12b0Sopenharmony_ci 3305e5c12b0Sopenharmony_ci 3315e5c12b0Sopenharmony_ciAlso add information on how to contact you by electronic and paper mail. 3325e5c12b0Sopenharmony_ci 3335e5c12b0Sopenharmony_ciIf the program is interactive, make it output a short notice like this 3345e5c12b0Sopenharmony_ciwhen it starts in an interactive mode: 3355e5c12b0Sopenharmony_ci 3365e5c12b0Sopenharmony_ci Gnomovision version 69, Copyright (C) year name of author 3375e5c12b0Sopenharmony_ci Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 3385e5c12b0Sopenharmony_ci This is free software, and you are welcome to redistribute it 3395e5c12b0Sopenharmony_ci under certain conditions; type `show c' for details. 3405e5c12b0Sopenharmony_ci 3415e5c12b0Sopenharmony_ciThe hypothetical commands `show w' and `show c' should show the appropriate 3425e5c12b0Sopenharmony_ciparts of the General Public License. Of course, the commands you use may 3435e5c12b0Sopenharmony_cibe called something other than `show w' and `show c'; they could even be 3445e5c12b0Sopenharmony_cimouse-clicks or menu items--whatever suits your program. 3455e5c12b0Sopenharmony_ci 3465e5c12b0Sopenharmony_ciYou should also get your employer (if you work as a programmer) or your 3475e5c12b0Sopenharmony_cischool, if any, to sign a "copyright disclaimer" for the program, if 3485e5c12b0Sopenharmony_cinecessary. Here is a sample; alter the names: 3495e5c12b0Sopenharmony_ci 3505e5c12b0Sopenharmony_ci Yoyodyne, Inc., hereby disclaims all copyright interest in the program 3515e5c12b0Sopenharmony_ci `Gnomovision' (which makes passes at compilers) written by James Hacker. 3525e5c12b0Sopenharmony_ci 3535e5c12b0Sopenharmony_ci <signature of Ty Coon>, 1 April 1989 3545e5c12b0Sopenharmony_ci Ty Coon, President of Vice 3555e5c12b0Sopenharmony_ci 3565e5c12b0Sopenharmony_ciThis General Public License does not permit incorporating your program into 3575e5c12b0Sopenharmony_ciproprietary programs. If your program is a subroutine library, you may 3585e5c12b0Sopenharmony_ciconsider it more useful to permit linking proprietary applications with the 3595e5c12b0Sopenharmony_cilibrary. If this is what you want to do, use the GNU Library General 3605e5c12b0Sopenharmony_ciPublic License instead of this License. 3615e5c12b0Sopenharmony_ci 3625e5c12b0Sopenharmony_ci================================================================================ 3635e5c12b0Sopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 3645e5c12b0Sopenharmony_ci Version 2.1, February 1999 3655e5c12b0Sopenharmony_ci 3665e5c12b0Sopenharmony_ci Copyright (C) 1991, 1999 Free Software Foundation, Inc. 3675e5c12b0Sopenharmony_ci 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 3685e5c12b0Sopenharmony_ci Everyone is permitted to copy and distribute verbatim copies 3695e5c12b0Sopenharmony_ci of this license document, but changing it is not allowed. 3705e5c12b0Sopenharmony_ci 3715e5c12b0Sopenharmony_ci[This is the first released version of the Lesser GPL. It also counts 3725e5c12b0Sopenharmony_ci as the successor of the GNU Library Public License, version 2, hence 3735e5c12b0Sopenharmony_ci the version number 2.1.] 3745e5c12b0Sopenharmony_ci 3755e5c12b0Sopenharmony_ci Preamble 3765e5c12b0Sopenharmony_ci 3775e5c12b0Sopenharmony_ci The licenses for most software are designed to take away your 3785e5c12b0Sopenharmony_cifreedom to share and change it. By contrast, the GNU General Public 3795e5c12b0Sopenharmony_ciLicenses are intended to guarantee your freedom to share and change 3805e5c12b0Sopenharmony_cifree software--to make sure the software is free for all its users. 3815e5c12b0Sopenharmony_ci 3825e5c12b0Sopenharmony_ci This license, the Lesser General Public License, applies to some 3835e5c12b0Sopenharmony_cispecially designated software packages--typically libraries--of the 3845e5c12b0Sopenharmony_ciFree Software Foundation and other authors who decide to use it. You 3855e5c12b0Sopenharmony_cican use it too, but we suggest you first think carefully about whether 3865e5c12b0Sopenharmony_cithis license or the ordinary General Public License is the better 3875e5c12b0Sopenharmony_cistrategy to use in any particular case, based on the explanations below. 3885e5c12b0Sopenharmony_ci 3895e5c12b0Sopenharmony_ci When we speak of free software, we are referring to freedom of use, 3905e5c12b0Sopenharmony_cinot price. Our General Public Licenses are designed to make sure that 3915e5c12b0Sopenharmony_ciyou have the freedom to distribute copies of free software (and charge 3925e5c12b0Sopenharmony_cifor this service if you wish); that you receive source code or can get 3935e5c12b0Sopenharmony_ciit if you want it; that you can change the software and use pieces of 3945e5c12b0Sopenharmony_ciit in new free programs; and that you are informed that you can do 3955e5c12b0Sopenharmony_cithese things. 3965e5c12b0Sopenharmony_ci 3975e5c12b0Sopenharmony_ci To protect your rights, we need to make restrictions that forbid 3985e5c12b0Sopenharmony_cidistributors to deny you these rights or to ask you to surrender these 3995e5c12b0Sopenharmony_cirights. These restrictions translate to certain responsibilities for 4005e5c12b0Sopenharmony_ciyou if you distribute copies of the library or if you modify it. 4015e5c12b0Sopenharmony_ci 4025e5c12b0Sopenharmony_ci For example, if you distribute copies of the library, whether gratis 4035e5c12b0Sopenharmony_cior for a fee, you must give the recipients all the rights that we gave 4045e5c12b0Sopenharmony_ciyou. You must make sure that they, too, receive or can get the source 4055e5c12b0Sopenharmony_cicode. If you link other code with the library, you must provide 4065e5c12b0Sopenharmony_cicomplete object files to the recipients, so that they can relink them 4075e5c12b0Sopenharmony_ciwith the library after making changes to the library and recompiling 4085e5c12b0Sopenharmony_ciit. And you must show them these terms so they know their rights. 4095e5c12b0Sopenharmony_ci 4105e5c12b0Sopenharmony_ci We protect your rights with a two-step method: (1) we copyright the 4115e5c12b0Sopenharmony_cilibrary, and (2) we offer you this license, which gives you legal 4125e5c12b0Sopenharmony_cipermission to copy, distribute and/or modify the library. 4135e5c12b0Sopenharmony_ci 4145e5c12b0Sopenharmony_ci To protect each distributor, we want to make it very clear that 4155e5c12b0Sopenharmony_cithere is no warranty for the free library. Also, if the library is 4165e5c12b0Sopenharmony_cimodified by someone else and passed on, the recipients should know 4175e5c12b0Sopenharmony_cithat what they have is not the original version, so that the original 4185e5c12b0Sopenharmony_ciauthor's reputation will not be affected by problems that might be 4195e5c12b0Sopenharmony_ciintroduced by others. 4205e5c12b0Sopenharmony_ci 4215e5c12b0Sopenharmony_ci Finally, software patents pose a constant threat to the existence of 4225e5c12b0Sopenharmony_ciany free program. We wish to make sure that a company cannot 4235e5c12b0Sopenharmony_cieffectively restrict the users of a free program by obtaining a 4245e5c12b0Sopenharmony_cirestrictive license from a patent holder. Therefore, we insist that 4255e5c12b0Sopenharmony_ciany patent license obtained for a version of the library must be 4265e5c12b0Sopenharmony_ciconsistent with the full freedom of use specified in this license. 4275e5c12b0Sopenharmony_ci 4285e5c12b0Sopenharmony_ci Most GNU software, including some libraries, is covered by the 4295e5c12b0Sopenharmony_ciordinary GNU General Public License. This license, the GNU Lesser 4305e5c12b0Sopenharmony_ciGeneral Public License, applies to certain designated libraries, and 4315e5c12b0Sopenharmony_ciis quite different from the ordinary General Public License. We use 4325e5c12b0Sopenharmony_cithis license for certain libraries in order to permit linking those 4335e5c12b0Sopenharmony_cilibraries into non-free programs. 4345e5c12b0Sopenharmony_ci 4355e5c12b0Sopenharmony_ci When a program is linked with a library, whether statically or using 4365e5c12b0Sopenharmony_cia shared library, the combination of the two is legally speaking a 4375e5c12b0Sopenharmony_cicombined work, a derivative of the original library. The ordinary 4385e5c12b0Sopenharmony_ciGeneral Public License therefore permits such linking only if the 4395e5c12b0Sopenharmony_cientire combination fits its criteria of freedom. The Lesser General 4405e5c12b0Sopenharmony_ciPublic License permits more lax criteria for linking other code with 4415e5c12b0Sopenharmony_cithe library. 4425e5c12b0Sopenharmony_ci 4435e5c12b0Sopenharmony_ci We call this license the "Lesser" General Public License because it 4445e5c12b0Sopenharmony_cidoes Less to protect the user's freedom than the ordinary General 4455e5c12b0Sopenharmony_ciPublic License. It also provides other free software developers Less 4465e5c12b0Sopenharmony_ciof an advantage over competing non-free programs. These disadvantages 4475e5c12b0Sopenharmony_ciare the reason we use the ordinary General Public License for many 4485e5c12b0Sopenharmony_cilibraries. However, the Lesser license provides advantages in certain 4495e5c12b0Sopenharmony_cispecial circumstances. 4505e5c12b0Sopenharmony_ci 4515e5c12b0Sopenharmony_ci For example, on rare occasions, there may be a special need to 4525e5c12b0Sopenharmony_ciencourage the widest possible use of a certain library, so that it becomes 4535e5c12b0Sopenharmony_cia de-facto standard. To achieve this, non-free programs must be 4545e5c12b0Sopenharmony_ciallowed to use the library. A more frequent case is that a free 4555e5c12b0Sopenharmony_cilibrary does the same job as widely used non-free libraries. In this 4565e5c12b0Sopenharmony_cicase, there is little to gain by limiting the free library to free 4575e5c12b0Sopenharmony_cisoftware only, so we use the Lesser General Public License. 4585e5c12b0Sopenharmony_ci 4595e5c12b0Sopenharmony_ci In other cases, permission to use a particular library in non-free 4605e5c12b0Sopenharmony_ciprograms enables a greater number of people to use a large body of 4615e5c12b0Sopenharmony_cifree software. For example, permission to use the GNU C Library in 4625e5c12b0Sopenharmony_cinon-free programs enables many more people to use the whole GNU 4635e5c12b0Sopenharmony_cioperating system, as well as its variant, the GNU/Linux operating 4645e5c12b0Sopenharmony_cisystem. 4655e5c12b0Sopenharmony_ci 4665e5c12b0Sopenharmony_ci Although the Lesser General Public License is Less protective of the 4675e5c12b0Sopenharmony_ciusers' freedom, it does ensure that the user of a program that is 4685e5c12b0Sopenharmony_cilinked with the Library has the freedom and the wherewithal to run 4695e5c12b0Sopenharmony_cithat program using a modified version of the Library. 4705e5c12b0Sopenharmony_ci 4715e5c12b0Sopenharmony_ci The precise terms and conditions for copying, distribution and 4725e5c12b0Sopenharmony_cimodification follow. Pay close attention to the difference between a 4735e5c12b0Sopenharmony_ci"work based on the library" and a "work that uses the library". The 4745e5c12b0Sopenharmony_ciformer contains code derived from the library, whereas the latter must 4755e5c12b0Sopenharmony_cibe combined with the library in order to run. 4765e5c12b0Sopenharmony_ci 4775e5c12b0Sopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 4785e5c12b0Sopenharmony_ci TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 4795e5c12b0Sopenharmony_ci 4805e5c12b0Sopenharmony_ci 0. This License Agreement applies to any software library or other 4815e5c12b0Sopenharmony_ciprogram which contains a notice placed by the copyright holder or 4825e5c12b0Sopenharmony_ciother authorized party saying it may be distributed under the terms of 4835e5c12b0Sopenharmony_cithis Lesser General Public License (also called "this License"). 4845e5c12b0Sopenharmony_ciEach licensee is addressed as "you". 4855e5c12b0Sopenharmony_ci 4865e5c12b0Sopenharmony_ci A "library" means a collection of software functions and/or data 4875e5c12b0Sopenharmony_ciprepared so as to be conveniently linked with application programs 4885e5c12b0Sopenharmony_ci(which use some of those functions and data) to form executables. 4895e5c12b0Sopenharmony_ci 4905e5c12b0Sopenharmony_ci The "Library", below, refers to any such software library or work 4915e5c12b0Sopenharmony_ciwhich has been distributed under these terms. A "work based on the 4925e5c12b0Sopenharmony_ciLibrary" means either the Library or any derivative work under 4935e5c12b0Sopenharmony_cicopyright law: that is to say, a work containing the Library or a 4945e5c12b0Sopenharmony_ciportion of it, either verbatim or with modifications and/or translated 4955e5c12b0Sopenharmony_cistraightforwardly into another language. (Hereinafter, translation is 4965e5c12b0Sopenharmony_ciincluded without limitation in the term "modification".) 4975e5c12b0Sopenharmony_ci 4985e5c12b0Sopenharmony_ci "Source code" for a work means the preferred form of the work for 4995e5c12b0Sopenharmony_cimaking modifications to it. For a library, complete source code means 5005e5c12b0Sopenharmony_ciall the source code for all modules it contains, plus any associated 5015e5c12b0Sopenharmony_ciinterface definition files, plus the scripts used to control compilation 5025e5c12b0Sopenharmony_ciand installation of the library. 5035e5c12b0Sopenharmony_ci 5045e5c12b0Sopenharmony_ci Activities other than copying, distribution and modification are not 5055e5c12b0Sopenharmony_cicovered by this License; they are outside its scope. The act of 5065e5c12b0Sopenharmony_cirunning a program using the Library is not restricted, and output from 5075e5c12b0Sopenharmony_cisuch a program is covered only if its contents constitute a work based 5085e5c12b0Sopenharmony_cion the Library (independent of the use of the Library in a tool for 5095e5c12b0Sopenharmony_ciwriting it). Whether that is true depends on what the Library does 5105e5c12b0Sopenharmony_ciand what the program that uses the Library does. 5115e5c12b0Sopenharmony_ci 5125e5c12b0Sopenharmony_ci 1. You may copy and distribute verbatim copies of the Library's 5135e5c12b0Sopenharmony_cicomplete source code as you receive it, in any medium, provided that 5145e5c12b0Sopenharmony_ciyou conspicuously and appropriately publish on each copy an 5155e5c12b0Sopenharmony_ciappropriate copyright notice and disclaimer of warranty; keep intact 5165e5c12b0Sopenharmony_ciall the notices that refer to this License and to the absence of any 5175e5c12b0Sopenharmony_ciwarranty; and distribute a copy of this License along with the 5185e5c12b0Sopenharmony_ciLibrary. 5195e5c12b0Sopenharmony_ci 5205e5c12b0Sopenharmony_ci You may charge a fee for the physical act of transferring a copy, 5215e5c12b0Sopenharmony_ciand you may at your option offer warranty protection in exchange for a 5225e5c12b0Sopenharmony_cifee. 5235e5c12b0Sopenharmony_ci 5245e5c12b0Sopenharmony_ci 2. You may modify your copy or copies of the Library or any portion 5255e5c12b0Sopenharmony_ciof it, thus forming a work based on the Library, and copy and 5265e5c12b0Sopenharmony_cidistribute such modifications or work under the terms of Section 1 5275e5c12b0Sopenharmony_ciabove, provided that you also meet all of these conditions: 5285e5c12b0Sopenharmony_ci 5295e5c12b0Sopenharmony_ci a) The modified work must itself be a software library. 5305e5c12b0Sopenharmony_ci 5315e5c12b0Sopenharmony_ci b) You must cause the files modified to carry prominent notices 5325e5c12b0Sopenharmony_ci stating that you changed the files and the date of any change. 5335e5c12b0Sopenharmony_ci 5345e5c12b0Sopenharmony_ci c) You must cause the whole of the work to be licensed at no 5355e5c12b0Sopenharmony_ci charge to all third parties under the terms of this License. 5365e5c12b0Sopenharmony_ci 5375e5c12b0Sopenharmony_ci d) If a facility in the modified Library refers to a function or a 5385e5c12b0Sopenharmony_ci table of data to be supplied by an application program that uses 5395e5c12b0Sopenharmony_ci the facility, other than as an argument passed when the facility 5405e5c12b0Sopenharmony_ci is invoked, then you must make a good faith effort to ensure that, 5415e5c12b0Sopenharmony_ci in the event an application does not supply such function or 5425e5c12b0Sopenharmony_ci table, the facility still operates, and performs whatever part of 5435e5c12b0Sopenharmony_ci its purpose remains meaningful. 5445e5c12b0Sopenharmony_ci 5455e5c12b0Sopenharmony_ci (For example, a function in a library to compute square roots has 5465e5c12b0Sopenharmony_ci a purpose that is entirely well-defined independent of the 5475e5c12b0Sopenharmony_ci application. Therefore, Subsection 2d requires that any 5485e5c12b0Sopenharmony_ci application-supplied function or table used by this function must 5495e5c12b0Sopenharmony_ci be optional: if the application does not supply it, the square 5505e5c12b0Sopenharmony_ci root function must still compute square roots.) 5515e5c12b0Sopenharmony_ci 5525e5c12b0Sopenharmony_ciThese requirements apply to the modified work as a whole. If 5535e5c12b0Sopenharmony_ciidentifiable sections of that work are not derived from the Library, 5545e5c12b0Sopenharmony_ciand can be reasonably considered independent and separate works in 5555e5c12b0Sopenharmony_cithemselves, then this License, and its terms, do not apply to those 5565e5c12b0Sopenharmony_cisections when you distribute them as separate works. But when you 5575e5c12b0Sopenharmony_cidistribute the same sections as part of a whole which is a work based 5585e5c12b0Sopenharmony_cion the Library, the distribution of the whole must be on the terms of 5595e5c12b0Sopenharmony_cithis License, whose permissions for other licensees extend to the 5605e5c12b0Sopenharmony_cientire whole, and thus to each and every part regardless of who wrote 5615e5c12b0Sopenharmony_ciit. 5625e5c12b0Sopenharmony_ci 5635e5c12b0Sopenharmony_ciThus, it is not the intent of this section to claim rights or contest 5645e5c12b0Sopenharmony_ciyour rights to work written entirely by you; rather, the intent is to 5655e5c12b0Sopenharmony_ciexercise the right to control the distribution of derivative or 5665e5c12b0Sopenharmony_cicollective works based on the Library. 5675e5c12b0Sopenharmony_ci 5685e5c12b0Sopenharmony_ciIn addition, mere aggregation of another work not based on the Library 5695e5c12b0Sopenharmony_ciwith the Library (or with a work based on the Library) on a volume of 5705e5c12b0Sopenharmony_cia storage or distribution medium does not bring the other work under 5715e5c12b0Sopenharmony_cithe scope of this License. 5725e5c12b0Sopenharmony_ci 5735e5c12b0Sopenharmony_ci 3. You may opt to apply the terms of the ordinary GNU General Public 5745e5c12b0Sopenharmony_ciLicense instead of this License to a given copy of the Library. To do 5755e5c12b0Sopenharmony_cithis, you must alter all the notices that refer to this License, so 5765e5c12b0Sopenharmony_cithat they refer to the ordinary GNU General Public License, version 2, 5775e5c12b0Sopenharmony_ciinstead of to this License. (If a newer version than version 2 of the 5785e5c12b0Sopenharmony_ciordinary GNU General Public License has appeared, then you can specify 5795e5c12b0Sopenharmony_cithat version instead if you wish.) Do not make any other change in 5805e5c12b0Sopenharmony_cithese notices. 5815e5c12b0Sopenharmony_ci 5825e5c12b0Sopenharmony_ci Once this change is made in a given copy, it is irreversible for 5835e5c12b0Sopenharmony_cithat copy, so the ordinary GNU General Public License applies to all 5845e5c12b0Sopenharmony_cisubsequent copies and derivative works made from that copy. 5855e5c12b0Sopenharmony_ci 5865e5c12b0Sopenharmony_ci This option is useful when you wish to copy part of the code of 5875e5c12b0Sopenharmony_cithe Library into a program that is not a library. 5885e5c12b0Sopenharmony_ci 5895e5c12b0Sopenharmony_ci 4. You may copy and distribute the Library (or a portion or 5905e5c12b0Sopenharmony_ciderivative of it, under Section 2) in object code or executable form 5915e5c12b0Sopenharmony_ciunder the terms of Sections 1 and 2 above provided that you accompany 5925e5c12b0Sopenharmony_ciit with the complete corresponding machine-readable source code, which 5935e5c12b0Sopenharmony_cimust be distributed under the terms of Sections 1 and 2 above on a 5945e5c12b0Sopenharmony_cimedium customarily used for software interchange. 5955e5c12b0Sopenharmony_ci 5965e5c12b0Sopenharmony_ci If distribution of object code is made by offering access to copy 5975e5c12b0Sopenharmony_cifrom a designated place, then offering equivalent access to copy the 5985e5c12b0Sopenharmony_cisource code from the same place satisfies the requirement to 5995e5c12b0Sopenharmony_cidistribute the source code, even though third parties are not 6005e5c12b0Sopenharmony_cicompelled to copy the source along with the object code. 6015e5c12b0Sopenharmony_ci 6025e5c12b0Sopenharmony_ci 5. A program that contains no derivative of any portion of the 6035e5c12b0Sopenharmony_ciLibrary, but is designed to work with the Library by being compiled or 6045e5c12b0Sopenharmony_cilinked with it, is called a "work that uses the Library". Such a 6055e5c12b0Sopenharmony_ciwork, in isolation, is not a derivative work of the Library, and 6065e5c12b0Sopenharmony_citherefore falls outside the scope of this License. 6075e5c12b0Sopenharmony_ci 6085e5c12b0Sopenharmony_ci However, linking a "work that uses the Library" with the Library 6095e5c12b0Sopenharmony_cicreates an executable that is a derivative of the Library (because it 6105e5c12b0Sopenharmony_cicontains portions of the Library), rather than a "work that uses the 6115e5c12b0Sopenharmony_cilibrary". The executable is therefore covered by this License. 6125e5c12b0Sopenharmony_ciSection 6 states terms for distribution of such executables. 6135e5c12b0Sopenharmony_ci 6145e5c12b0Sopenharmony_ci When a "work that uses the Library" uses material from a header file 6155e5c12b0Sopenharmony_cithat is part of the Library, the object code for the work may be a 6165e5c12b0Sopenharmony_ciderivative work of the Library even though the source code is not. 6175e5c12b0Sopenharmony_ciWhether this is true is especially significant if the work can be 6185e5c12b0Sopenharmony_cilinked without the Library, or if the work is itself a library. The 6195e5c12b0Sopenharmony_cithreshold for this to be true is not precisely defined by law. 6205e5c12b0Sopenharmony_ci 6215e5c12b0Sopenharmony_ci If such an object file uses only numerical parameters, data 6225e5c12b0Sopenharmony_cistructure layouts and accessors, and small macros and small inline 6235e5c12b0Sopenharmony_cifunctions (ten lines or less in length), then the use of the object 6245e5c12b0Sopenharmony_cifile is unrestricted, regardless of whether it is legally a derivative 6255e5c12b0Sopenharmony_ciwork. (Executables containing this object code plus portions of the 6265e5c12b0Sopenharmony_ciLibrary will still fall under Section 6.) 6275e5c12b0Sopenharmony_ci 6285e5c12b0Sopenharmony_ci Otherwise, if the work is a derivative of the Library, you may 6295e5c12b0Sopenharmony_cidistribute the object code for the work under the terms of Section 6. 6305e5c12b0Sopenharmony_ciAny executables containing that work also fall under Section 6, 6315e5c12b0Sopenharmony_ciwhether or not they are linked directly with the Library itself. 6325e5c12b0Sopenharmony_ci 6335e5c12b0Sopenharmony_ci 6. As an exception to the Sections above, you may also combine or 6345e5c12b0Sopenharmony_cilink a "work that uses the Library" with the Library to produce a 6355e5c12b0Sopenharmony_ciwork containing portions of the Library, and distribute that work 6365e5c12b0Sopenharmony_ciunder terms of your choice, provided that the terms permit 6375e5c12b0Sopenharmony_cimodification of the work for the customer's own use and reverse 6385e5c12b0Sopenharmony_ciengineering for debugging such modifications. 6395e5c12b0Sopenharmony_ci 6405e5c12b0Sopenharmony_ci You must give prominent notice with each copy of the work that the 6415e5c12b0Sopenharmony_ciLibrary is used in it and that the Library and its use are covered by 6425e5c12b0Sopenharmony_cithis License. You must supply a copy of this License. If the work 6435e5c12b0Sopenharmony_ciduring execution displays copyright notices, you must include the 6445e5c12b0Sopenharmony_cicopyright notice for the Library among them, as well as a reference 6455e5c12b0Sopenharmony_cidirecting the user to the copy of this License. Also, you must do one 6465e5c12b0Sopenharmony_ciof these things: 6475e5c12b0Sopenharmony_ci 6485e5c12b0Sopenharmony_ci a) Accompany the work with the complete corresponding 6495e5c12b0Sopenharmony_ci machine-readable source code for the Library including whatever 6505e5c12b0Sopenharmony_ci changes were used in the work (which must be distributed under 6515e5c12b0Sopenharmony_ci Sections 1 and 2 above); and, if the work is an executable linked 6525e5c12b0Sopenharmony_ci with the Library, with the complete machine-readable "work that 6535e5c12b0Sopenharmony_ci uses the Library", as object code and/or source code, so that the 6545e5c12b0Sopenharmony_ci user can modify the Library and then relink to produce a modified 6555e5c12b0Sopenharmony_ci executable containing the modified Library. (It is understood 6565e5c12b0Sopenharmony_ci that the user who changes the contents of definitions files in the 6575e5c12b0Sopenharmony_ci Library will not necessarily be able to recompile the application 6585e5c12b0Sopenharmony_ci to use the modified definitions.) 6595e5c12b0Sopenharmony_ci 6605e5c12b0Sopenharmony_ci b) Use a suitable shared library mechanism for linking with the 6615e5c12b0Sopenharmony_ci Library. A suitable mechanism is one that (1) uses at run time a 6625e5c12b0Sopenharmony_ci copy of the library already present on the user's computer system, 6635e5c12b0Sopenharmony_ci rather than copying library functions into the executable, and (2) 6645e5c12b0Sopenharmony_ci will operate properly with a modified version of the library, if 6655e5c12b0Sopenharmony_ci the user installs one, as long as the modified version is 6665e5c12b0Sopenharmony_ci interface-compatible with the version that the work was made with. 6675e5c12b0Sopenharmony_ci 6685e5c12b0Sopenharmony_ci c) Accompany the work with a written offer, valid for at 6695e5c12b0Sopenharmony_ci least three years, to give the same user the materials 6705e5c12b0Sopenharmony_ci specified in Subsection 6a, above, for a charge no more 6715e5c12b0Sopenharmony_ci than the cost of performing this distribution. 6725e5c12b0Sopenharmony_ci 6735e5c12b0Sopenharmony_ci d) If distribution of the work is made by offering access to copy 6745e5c12b0Sopenharmony_ci from a designated place, offer equivalent access to copy the above 6755e5c12b0Sopenharmony_ci specified materials from the same place. 6765e5c12b0Sopenharmony_ci 6775e5c12b0Sopenharmony_ci e) Verify that the user has already received a copy of these 6785e5c12b0Sopenharmony_ci materials or that you have already sent this user a copy. 6795e5c12b0Sopenharmony_ci 6805e5c12b0Sopenharmony_ci For an executable, the required form of the "work that uses the 6815e5c12b0Sopenharmony_ciLibrary" must include any data and utility programs needed for 6825e5c12b0Sopenharmony_cireproducing the executable from it. However, as a special exception, 6835e5c12b0Sopenharmony_cithe materials to be distributed need not include anything that is 6845e5c12b0Sopenharmony_cinormally distributed (in either source or binary form) with the major 6855e5c12b0Sopenharmony_cicomponents (compiler, kernel, and so on) of the operating system on 6865e5c12b0Sopenharmony_ciwhich the executable runs, unless that component itself accompanies 6875e5c12b0Sopenharmony_cithe executable. 6885e5c12b0Sopenharmony_ci 6895e5c12b0Sopenharmony_ci It may happen that this requirement contradicts the license 6905e5c12b0Sopenharmony_cirestrictions of other proprietary libraries that do not normally 6915e5c12b0Sopenharmony_ciaccompany the operating system. Such a contradiction means you cannot 6925e5c12b0Sopenharmony_ciuse both them and the Library together in an executable that you 6935e5c12b0Sopenharmony_cidistribute. 6945e5c12b0Sopenharmony_ci 6955e5c12b0Sopenharmony_ci 7. You may place library facilities that are a work based on the 6965e5c12b0Sopenharmony_ciLibrary side-by-side in a single library together with other library 6975e5c12b0Sopenharmony_cifacilities not covered by this License, and distribute such a combined 6985e5c12b0Sopenharmony_cilibrary, provided that the separate distribution of the work based on 6995e5c12b0Sopenharmony_cithe Library and of the other library facilities is otherwise 7005e5c12b0Sopenharmony_cipermitted, and provided that you do these two things: 7015e5c12b0Sopenharmony_ci 7025e5c12b0Sopenharmony_ci a) Accompany the combined library with a copy of the same work 7035e5c12b0Sopenharmony_ci based on the Library, uncombined with any other library 7045e5c12b0Sopenharmony_ci facilities. This must be distributed under the terms of the 7055e5c12b0Sopenharmony_ci Sections above. 7065e5c12b0Sopenharmony_ci 7075e5c12b0Sopenharmony_ci b) Give prominent notice with the combined library of the fact 7085e5c12b0Sopenharmony_ci that part of it is a work based on the Library, and explaining 7095e5c12b0Sopenharmony_ci where to find the accompanying uncombined form of the same work. 7105e5c12b0Sopenharmony_ci 7115e5c12b0Sopenharmony_ci 8. You may not copy, modify, sublicense, link with, or distribute 7125e5c12b0Sopenharmony_cithe Library except as expressly provided under this License. Any 7135e5c12b0Sopenharmony_ciattempt otherwise to copy, modify, sublicense, link with, or 7145e5c12b0Sopenharmony_cidistribute the Library is void, and will automatically terminate your 7155e5c12b0Sopenharmony_cirights under this License. However, parties who have received copies, 7165e5c12b0Sopenharmony_cior rights, from you under this License will not have their licenses 7175e5c12b0Sopenharmony_citerminated so long as such parties remain in full compliance. 7185e5c12b0Sopenharmony_ci 7195e5c12b0Sopenharmony_ci 9. You are not required to accept this License, since you have not 7205e5c12b0Sopenharmony_cisigned it. However, nothing else grants you permission to modify or 7215e5c12b0Sopenharmony_cidistribute the Library or its derivative works. These actions are 7225e5c12b0Sopenharmony_ciprohibited by law if you do not accept this License. Therefore, by 7235e5c12b0Sopenharmony_cimodifying or distributing the Library (or any work based on the 7245e5c12b0Sopenharmony_ciLibrary), you indicate your acceptance of this License to do so, and 7255e5c12b0Sopenharmony_ciall its terms and conditions for copying, distributing or modifying 7265e5c12b0Sopenharmony_cithe Library or works based on it. 7275e5c12b0Sopenharmony_ci 7285e5c12b0Sopenharmony_ci 10. Each time you redistribute the Library (or any work based on the 7295e5c12b0Sopenharmony_ciLibrary), the recipient automatically receives a license from the 7305e5c12b0Sopenharmony_cioriginal licensor to copy, distribute, link with or modify the Library 7315e5c12b0Sopenharmony_cisubject to these terms and conditions. You may not impose any further 7325e5c12b0Sopenharmony_cirestrictions on the recipients' exercise of the rights granted herein. 7335e5c12b0Sopenharmony_ciYou are not responsible for enforcing compliance by third parties with 7345e5c12b0Sopenharmony_cithis License. 7355e5c12b0Sopenharmony_ci 7365e5c12b0Sopenharmony_ci 11. If, as a consequence of a court judgment or allegation of patent 7375e5c12b0Sopenharmony_ciinfringement or for any other reason (not limited to patent issues), 7385e5c12b0Sopenharmony_ciconditions are imposed on you (whether by court order, agreement or 7395e5c12b0Sopenharmony_ciotherwise) that contradict the conditions of this License, they do not 7405e5c12b0Sopenharmony_ciexcuse you from the conditions of this License. If you cannot 7415e5c12b0Sopenharmony_cidistribute so as to satisfy simultaneously your obligations under this 7425e5c12b0Sopenharmony_ciLicense and any other pertinent obligations, then as a consequence you 7435e5c12b0Sopenharmony_cimay not distribute the Library at all. For example, if a patent 7445e5c12b0Sopenharmony_cilicense would not permit royalty-free redistribution of the Library by 7455e5c12b0Sopenharmony_ciall those who receive copies directly or indirectly through you, then 7465e5c12b0Sopenharmony_cithe only way you could satisfy both it and this License would be to 7475e5c12b0Sopenharmony_cirefrain entirely from distribution of the Library. 7485e5c12b0Sopenharmony_ci 7495e5c12b0Sopenharmony_ciIf any portion of this section is held invalid or unenforceable under any 7505e5c12b0Sopenharmony_ciparticular circumstance, the balance of the section is intended to apply, 7515e5c12b0Sopenharmony_ciand the section as a whole is intended to apply in other circumstances. 7525e5c12b0Sopenharmony_ci 7535e5c12b0Sopenharmony_ciIt is not the purpose of this section to induce you to infringe any 7545e5c12b0Sopenharmony_cipatents or other property right claims or to contest validity of any 7555e5c12b0Sopenharmony_cisuch claims; this section has the sole purpose of protecting the 7565e5c12b0Sopenharmony_ciintegrity of the free software distribution system which is 7575e5c12b0Sopenharmony_ciimplemented by public license practices. Many people have made 7585e5c12b0Sopenharmony_cigenerous contributions to the wide range of software distributed 7595e5c12b0Sopenharmony_cithrough that system in reliance on consistent application of that 7605e5c12b0Sopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing 7615e5c12b0Sopenharmony_cito distribute software through any other system and a licensee cannot 7625e5c12b0Sopenharmony_ciimpose that choice. 7635e5c12b0Sopenharmony_ci 7645e5c12b0Sopenharmony_ciThis section is intended to make thoroughly clear what is believed to 7655e5c12b0Sopenharmony_cibe a consequence of the rest of this License. 7665e5c12b0Sopenharmony_ci 7675e5c12b0Sopenharmony_ci 12. If the distribution and/or use of the Library is restricted in 7685e5c12b0Sopenharmony_cicertain countries either by patents or by copyrighted interfaces, the 7695e5c12b0Sopenharmony_cioriginal copyright holder who places the Library under this License may add 7705e5c12b0Sopenharmony_cian explicit geographical distribution limitation excluding those countries, 7715e5c12b0Sopenharmony_ciso that distribution is permitted only in or among countries not thus 7725e5c12b0Sopenharmony_ciexcluded. In such case, this License incorporates the limitation as if 7735e5c12b0Sopenharmony_ciwritten in the body of this License. 7745e5c12b0Sopenharmony_ci 7755e5c12b0Sopenharmony_ci 13. The Free Software Foundation may publish revised and/or new 7765e5c12b0Sopenharmony_civersions of the Lesser General Public License from time to time. 7775e5c12b0Sopenharmony_ciSuch new versions will be similar in spirit to the present version, 7785e5c12b0Sopenharmony_cibut may differ in detail to address new problems or concerns. 7795e5c12b0Sopenharmony_ci 7805e5c12b0Sopenharmony_ciEach version is given a distinguishing version number. If the Library 7815e5c12b0Sopenharmony_cispecifies a version number of this License which applies to it and 7825e5c12b0Sopenharmony_ci"any later version", you have the option of following the terms and 7835e5c12b0Sopenharmony_ciconditions either of that version or of any later version published by 7845e5c12b0Sopenharmony_cithe Free Software Foundation. If the Library does not specify a 7855e5c12b0Sopenharmony_cilicense version number, you may choose any version ever published by 7865e5c12b0Sopenharmony_cithe Free Software Foundation. 7875e5c12b0Sopenharmony_ci 7885e5c12b0Sopenharmony_ci 14. If you wish to incorporate parts of the Library into other free 7895e5c12b0Sopenharmony_ciprograms whose distribution conditions are incompatible with these, 7905e5c12b0Sopenharmony_ciwrite to the author to ask for permission. For software which is 7915e5c12b0Sopenharmony_cicopyrighted by the Free Software Foundation, write to the Free 7925e5c12b0Sopenharmony_ciSoftware Foundation; we sometimes make exceptions for this. Our 7935e5c12b0Sopenharmony_cidecision will be guided by the two goals of preserving the free status 7945e5c12b0Sopenharmony_ciof all derivatives of our free software and of promoting the sharing 7955e5c12b0Sopenharmony_ciand reuse of software generally. 7965e5c12b0Sopenharmony_ci 7975e5c12b0Sopenharmony_ci NO WARRANTY 7985e5c12b0Sopenharmony_ci 7995e5c12b0Sopenharmony_ci 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 8005e5c12b0Sopenharmony_ciWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 8015e5c12b0Sopenharmony_ciEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 8025e5c12b0Sopenharmony_ciOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 8035e5c12b0Sopenharmony_ciKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 8045e5c12b0Sopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 8055e5c12b0Sopenharmony_ciPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 8065e5c12b0Sopenharmony_ciLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 8075e5c12b0Sopenharmony_ciTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 8085e5c12b0Sopenharmony_ci 8095e5c12b0Sopenharmony_ci 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 8105e5c12b0Sopenharmony_ciWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 8115e5c12b0Sopenharmony_ciAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 8125e5c12b0Sopenharmony_ciFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 8135e5c12b0Sopenharmony_ciCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 8145e5c12b0Sopenharmony_ciLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 8155e5c12b0Sopenharmony_ciRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 8165e5c12b0Sopenharmony_ciFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 8175e5c12b0Sopenharmony_ciSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 8185e5c12b0Sopenharmony_ciDAMAGES. 8195e5c12b0Sopenharmony_ci 8205e5c12b0Sopenharmony_ci END OF TERMS AND CONDITIONS 8215e5c12b0Sopenharmony_ci 8225e5c12b0Sopenharmony_ci How to Apply These Terms to Your New Libraries 8235e5c12b0Sopenharmony_ci 8245e5c12b0Sopenharmony_ci If you develop a new library, and you want it to be of the greatest 8255e5c12b0Sopenharmony_cipossible use to the public, we recommend making it free software that 8265e5c12b0Sopenharmony_cieveryone can redistribute and change. You can do so by permitting 8275e5c12b0Sopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the 8285e5c12b0Sopenharmony_ciordinary General Public License). 8295e5c12b0Sopenharmony_ci 8305e5c12b0Sopenharmony_ci To apply these terms, attach the following notices to the library. It is 8315e5c12b0Sopenharmony_cisafest to attach them to the start of each source file to most effectively 8325e5c12b0Sopenharmony_ciconvey the exclusion of warranty; and each file should have at least the 8335e5c12b0Sopenharmony_ci"copyright" line and a pointer to where the full notice is found. 8345e5c12b0Sopenharmony_ci 8355e5c12b0Sopenharmony_ci <one line to give the library's name and a brief idea of what it does.> 8365e5c12b0Sopenharmony_ci Copyright (C) <year> <name of author> 8375e5c12b0Sopenharmony_ci 8385e5c12b0Sopenharmony_ci This library is free software; you can redistribute it and/or 8395e5c12b0Sopenharmony_ci modify it under the terms of the GNU Lesser General Public 8405e5c12b0Sopenharmony_ci License as published by the Free Software Foundation; either 8415e5c12b0Sopenharmony_ci version 2.1 of the License, or (at your option) any later version. 8425e5c12b0Sopenharmony_ci 8435e5c12b0Sopenharmony_ci This library is distributed in the hope that it will be useful, 8445e5c12b0Sopenharmony_ci but WITHOUT ANY WARRANTY; without even the implied warranty of 8455e5c12b0Sopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8465e5c12b0Sopenharmony_ci Lesser General Public License for more details. 8475e5c12b0Sopenharmony_ci 8485e5c12b0Sopenharmony_ci You should have received a copy of the GNU Lesser General Public 8495e5c12b0Sopenharmony_ci License along with this library; if not, write to the Free Software 8505e5c12b0Sopenharmony_ci Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 8515e5c12b0Sopenharmony_ci 8525e5c12b0Sopenharmony_ciAlso add information on how to contact you by electronic and paper mail. 8535e5c12b0Sopenharmony_ci 8545e5c12b0Sopenharmony_ciYou should also get your employer (if you work as a programmer) or your 8555e5c12b0Sopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if 8565e5c12b0Sopenharmony_cinecessary. Here is a sample; alter the names: 8575e5c12b0Sopenharmony_ci 8585e5c12b0Sopenharmony_ci Yoyodyne, Inc., hereby disclaims all copyright interest in the 8595e5c12b0Sopenharmony_ci library `Frob' (a library for tweaking knobs) written by James Random Hacker. 8605e5c12b0Sopenharmony_ci 8615e5c12b0Sopenharmony_ci <signature of Ty Coon>, 1 April 1990 8625e5c12b0Sopenharmony_ci Ty Coon, President of Vice 8635e5c12b0Sopenharmony_ci 8645e5c12b0Sopenharmony_ciThat's all there is to it! 865