17c2aad20Sopenharmony_ciVersion 0.7 27c2aad20Sopenharmony_ci============================================================================== 37c2aad20Sopenharmony_ciThe libbpf is under LGPL-2.1 OR BSD-2-Clause: 47c2aad20Sopenharmony_ci============================================================================== 57c2aad20Sopenharmony_ci Valid-License-Identifier: LGPL-2.1 67c2aad20Sopenharmony_ci Valid-License-Identifier: LGPL-2.1+ 77c2aad20Sopenharmony_ciSPDX-URL: https://spdx.org/licenses/LGPL-2.1.html 87c2aad20Sopenharmony_ciUsage-Guide: 97c2aad20Sopenharmony_ci To use this license in source code, put one of the following SPDX 107c2aad20Sopenharmony_ci tag/value pairs into a comment according to the placement 117c2aad20Sopenharmony_ci guidelines in the licensing rules documentation. 127c2aad20Sopenharmony_ci For 'GNU Lesser General Public License (LGPL) version 2.1 only' use: 137c2aad20Sopenharmony_ci SPDX-License-Identifier: LGPL-2.1 147c2aad20Sopenharmony_ci For 'GNU Lesser General Public License (LGPL) version 2.1 or any later 157c2aad20Sopenharmony_ci version' use: 167c2aad20Sopenharmony_ci SPDX-License-Identifier: LGPL-2.1+ 177c2aad20Sopenharmony_ciLicense-Text: 187c2aad20Sopenharmony_ci 197c2aad20Sopenharmony_ciGNU LESSER GENERAL PUBLIC LICENSE 207c2aad20Sopenharmony_ciVersion 2.1, February 1999 217c2aad20Sopenharmony_ci 227c2aad20Sopenharmony_ciCopyright (C) 1991, 1999 Free Software Foundation, Inc. 237c2aad20Sopenharmony_ci51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 247c2aad20Sopenharmony_ci 257c2aad20Sopenharmony_ciEveryone is permitted to copy and distribute verbatim copies of this 267c2aad20Sopenharmony_cilicense document, but changing it is not allowed. 277c2aad20Sopenharmony_ci 287c2aad20Sopenharmony_ci[This is the first released version of the Lesser GPL. It also counts as 297c2aad20Sopenharmony_cithe successor of the GNU Library Public License, version 2, hence the 307c2aad20Sopenharmony_civersion number 2.1.] 317c2aad20Sopenharmony_ci 327c2aad20Sopenharmony_ciPreamble 337c2aad20Sopenharmony_ci 347c2aad20Sopenharmony_ciThe licenses for most software are designed to take away your freedom to 357c2aad20Sopenharmony_cishare and change it. By contrast, the GNU General Public Licenses are 367c2aad20Sopenharmony_ciintended to guarantee your freedom to share and change free software--to 377c2aad20Sopenharmony_cimake sure the software is free for all its users. 387c2aad20Sopenharmony_ci 397c2aad20Sopenharmony_ciThis license, the Lesser General Public License, applies to some specially 407c2aad20Sopenharmony_cidesignated software packages--typically libraries--of the Free Software 417c2aad20Sopenharmony_ciFoundation and other authors who decide to use it. You can use it too, but 427c2aad20Sopenharmony_ciwe suggest you first think carefully about whether this license or the 437c2aad20Sopenharmony_ciordinary General Public License is the better strategy to use in any 447c2aad20Sopenharmony_ciparticular case, based on the explanations below. 457c2aad20Sopenharmony_ci 467c2aad20Sopenharmony_ciWhen we speak of free software, we are referring to freedom of use, not 477c2aad20Sopenharmony_ciprice. Our General Public Licenses are designed to make sure that you have 487c2aad20Sopenharmony_cithe freedom to distribute copies of free software (and charge for this 497c2aad20Sopenharmony_ciservice if you wish); that you receive source code or can get it if you 507c2aad20Sopenharmony_ciwant it; that you can change the software and use pieces of it in new free 517c2aad20Sopenharmony_ciprograms; and that you are informed that you can do these things. 527c2aad20Sopenharmony_ci 537c2aad20Sopenharmony_ciTo protect your rights, we need to make restrictions that forbid 547c2aad20Sopenharmony_cidistributors to deny you these rights or to ask you to surrender these 557c2aad20Sopenharmony_cirights. These restrictions translate to certain responsibilities for you if 567c2aad20Sopenharmony_ciyou distribute copies of the library or if you modify it. 577c2aad20Sopenharmony_ci 587c2aad20Sopenharmony_ciFor example, if you distribute copies of the library, whether gratis or for 597c2aad20Sopenharmony_cia fee, you must give the recipients all the rights that we gave you. You 607c2aad20Sopenharmony_cimust make sure that they, too, receive or can get the source code. If you 617c2aad20Sopenharmony_cilink other code with the library, you must provide complete object files to 627c2aad20Sopenharmony_cithe recipients, so that they can relink them with the library after making 637c2aad20Sopenharmony_cichanges to the library and recompiling it. And you must show them these 647c2aad20Sopenharmony_citerms so they know their rights. 657c2aad20Sopenharmony_ci 667c2aad20Sopenharmony_ciWe protect your rights with a two-step method: (1) we copyright the 677c2aad20Sopenharmony_cilibrary, and (2) we offer you this license, which gives you legal 687c2aad20Sopenharmony_cipermission to copy, distribute and/or modify the library. 697c2aad20Sopenharmony_ci 707c2aad20Sopenharmony_ciTo protect each distributor, we want to make it very clear that there is no 717c2aad20Sopenharmony_ciwarranty for the free library. Also, if the library is modified by someone 727c2aad20Sopenharmony_cielse and passed on, the recipients should know that what they have is not 737c2aad20Sopenharmony_cithe original version, so that the original author's reputation will not be 747c2aad20Sopenharmony_ciaffected by problems that might be introduced by others. 757c2aad20Sopenharmony_ci 767c2aad20Sopenharmony_ciFinally, software patents pose a constant threat to the existence of any 777c2aad20Sopenharmony_cifree program. We wish to make sure that a company cannot effectively 787c2aad20Sopenharmony_cirestrict the users of a free program by obtaining a restrictive license 797c2aad20Sopenharmony_cifrom a patent holder. Therefore, we insist that any patent license obtained 807c2aad20Sopenharmony_cifor a version of the library must be consistent with the full freedom of 817c2aad20Sopenharmony_ciuse specified in this license. 827c2aad20Sopenharmony_ci 837c2aad20Sopenharmony_ciMost GNU software, including some libraries, is covered by the ordinary GNU 847c2aad20Sopenharmony_ciGeneral Public License. This license, the GNU Lesser General Public 857c2aad20Sopenharmony_ciLicense, applies to certain designated libraries, and is quite different 867c2aad20Sopenharmony_cifrom the ordinary General Public License. We use this license for certain 877c2aad20Sopenharmony_cilibraries in order to permit linking those libraries into non-free 887c2aad20Sopenharmony_ciprograms. 897c2aad20Sopenharmony_ci 907c2aad20Sopenharmony_ciWhen a program is linked with a library, whether statically or using a 917c2aad20Sopenharmony_cishared library, the combination of the two is legally speaking a combined 927c2aad20Sopenharmony_ciwork, a derivative of the original library. The ordinary General Public 937c2aad20Sopenharmony_ciLicense therefore permits such linking only if the entire combination fits 947c2aad20Sopenharmony_ciits criteria of freedom. The Lesser General Public License permits more lax 957c2aad20Sopenharmony_cicriteria for linking other code with the library. 967c2aad20Sopenharmony_ci 977c2aad20Sopenharmony_ciWe call this license the "Lesser" General Public License because it does 987c2aad20Sopenharmony_ciLess to protect the user's freedom than the ordinary General Public 997c2aad20Sopenharmony_ciLicense. It also provides other free software developers Less of an 1007c2aad20Sopenharmony_ciadvantage over competing non-free programs. These disadvantages are the 1017c2aad20Sopenharmony_cireason we use the ordinary General Public License for many 1027c2aad20Sopenharmony_cilibraries. However, the Lesser license provides advantages in certain 1037c2aad20Sopenharmony_cispecial circumstances. 1047c2aad20Sopenharmony_ci 1057c2aad20Sopenharmony_ciFor example, on rare occasions, there may be a special need to encourage 1067c2aad20Sopenharmony_cithe widest possible use of a certain library, so that it becomes a de-facto 1077c2aad20Sopenharmony_cistandard. To achieve this, non-free programs must be allowed to use the 1087c2aad20Sopenharmony_cilibrary. A more frequent case is that a free library does the same job as 1097c2aad20Sopenharmony_ciwidely used non-free libraries. In this case, there is little to gain by 1107c2aad20Sopenharmony_cilimiting the free library to free software only, so we use the Lesser 1117c2aad20Sopenharmony_ciGeneral Public License. 1127c2aad20Sopenharmony_ci 1137c2aad20Sopenharmony_ciIn other cases, permission to use a particular library in non-free programs 1147c2aad20Sopenharmony_cienables a greater number of people to use a large body of free 1157c2aad20Sopenharmony_cisoftware. For example, permission to use the GNU C Library in non-free 1167c2aad20Sopenharmony_ciprograms enables many more people to use the whole GNU operating system, as 1177c2aad20Sopenharmony_ciwell as its variant, the GNU/Linux operating system. 1187c2aad20Sopenharmony_ci 1197c2aad20Sopenharmony_ciAlthough the Lesser General Public License is Less protective of the users' 1207c2aad20Sopenharmony_cifreedom, it does ensure that the user of a program that is linked with the 1217c2aad20Sopenharmony_ciLibrary has the freedom and the wherewithal to run that program using a 1227c2aad20Sopenharmony_cimodified version of the Library. 1237c2aad20Sopenharmony_ci 1247c2aad20Sopenharmony_ciThe precise terms and conditions for copying, distribution and modification 1257c2aad20Sopenharmony_cifollow. Pay close attention to the difference between a "work based on the 1267c2aad20Sopenharmony_cilibrary" and a "work that uses the library". The former contains code 1277c2aad20Sopenharmony_ciderived from the library, whereas the latter must be combined with the 1287c2aad20Sopenharmony_cilibrary in order to run. 1297c2aad20Sopenharmony_ci 1307c2aad20Sopenharmony_ciTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1317c2aad20Sopenharmony_ci 1327c2aad20Sopenharmony_ci0. This License Agreement applies to any software library or other program 1337c2aad20Sopenharmony_ci which contains a notice placed by the copyright holder or other 1347c2aad20Sopenharmony_ci authorized party saying it may be distributed under the terms of this 1357c2aad20Sopenharmony_ci Lesser General Public License (also called "this License"). Each 1367c2aad20Sopenharmony_ci licensee is addressed as "you". 1377c2aad20Sopenharmony_ci 1387c2aad20Sopenharmony_ci A "library" means a collection of software functions and/or data 1397c2aad20Sopenharmony_ci prepared so as to be conveniently linked with application programs 1407c2aad20Sopenharmony_ci (which use some of those functions and data) to form executables. 1417c2aad20Sopenharmony_ci 1427c2aad20Sopenharmony_ci The "Library", below, refers to any such software library or work which 1437c2aad20Sopenharmony_ci has been distributed under these terms. A "work based on the Library" 1447c2aad20Sopenharmony_ci means either the Library or any derivative work under copyright law: 1457c2aad20Sopenharmony_ci that is to say, a work containing the Library or a portion of it, either 1467c2aad20Sopenharmony_ci verbatim or with modifications and/or translated straightforwardly into 1477c2aad20Sopenharmony_ci another language. (Hereinafter, translation is included without 1487c2aad20Sopenharmony_ci limitation in the term "modification".) 1497c2aad20Sopenharmony_ci 1507c2aad20Sopenharmony_ci "Source code" for a work means the preferred form of the work for making 1517c2aad20Sopenharmony_ci modifications to it. For a library, complete source code means all the 1527c2aad20Sopenharmony_ci source code for all modules it contains, plus any associated interface 1537c2aad20Sopenharmony_ci definition files, plus the scripts used to control compilation and 1547c2aad20Sopenharmony_ci installation of the library. 1557c2aad20Sopenharmony_ci 1567c2aad20Sopenharmony_ci Activities other than copying, distribution and modification are not 1577c2aad20Sopenharmony_ci covered by this License; they are outside its scope. The act of running 1587c2aad20Sopenharmony_ci a program using the Library is not restricted, and output from such a 1597c2aad20Sopenharmony_ci program is covered only if its contents constitute a work based on the 1607c2aad20Sopenharmony_ci Library (independent of the use of the Library in a tool for writing 1617c2aad20Sopenharmony_ci it). Whether that is true depends on what the Library does and what the 1627c2aad20Sopenharmony_ci program that uses the Library does. 1637c2aad20Sopenharmony_ci 1647c2aad20Sopenharmony_ci1. You may copy and distribute verbatim copies of the Library's complete 1657c2aad20Sopenharmony_ci source code as you receive it, in any medium, provided that you 1667c2aad20Sopenharmony_ci conspicuously and appropriately publish on each copy an appropriate 1677c2aad20Sopenharmony_ci copyright notice and disclaimer of warranty; keep intact all the notices 1687c2aad20Sopenharmony_ci that refer to this License and to the absence of any warranty; and 1697c2aad20Sopenharmony_ci distribute a copy of this License along with the Library. 1707c2aad20Sopenharmony_ci 1717c2aad20Sopenharmony_ci You may charge a fee for the physical act of transferring a copy, and 1727c2aad20Sopenharmony_ci you may at your option offer warranty protection in exchange for a fee. 1737c2aad20Sopenharmony_ci 1747c2aad20Sopenharmony_ci2. You may modify your copy or copies of the Library or any portion of it, 1757c2aad20Sopenharmony_ci thus forming a work based on the Library, and copy and distribute such 1767c2aad20Sopenharmony_ci modifications or work under the terms of Section 1 above, provided that 1777c2aad20Sopenharmony_ci you also meet all of these conditions: 1787c2aad20Sopenharmony_ci 1797c2aad20Sopenharmony_ci a) The modified work must itself be a software library. 1807c2aad20Sopenharmony_ci 1817c2aad20Sopenharmony_ci b) You must cause the files modified to carry prominent notices stating 1827c2aad20Sopenharmony_ci that you changed the files and the date of any change. 1837c2aad20Sopenharmony_ci 1847c2aad20Sopenharmony_ci c) You must cause the whole of the work to be licensed at no charge to 1857c2aad20Sopenharmony_ci all third parties under the terms of this License. 1867c2aad20Sopenharmony_ci 1877c2aad20Sopenharmony_ci d) If a facility in the modified Library refers to a function or a table 1887c2aad20Sopenharmony_ci of data to be supplied by an application program that uses the 1897c2aad20Sopenharmony_ci facility, other than as an argument passed when the facility is 1907c2aad20Sopenharmony_ci invoked, then you must make a good faith effort to ensure that, in 1917c2aad20Sopenharmony_ci the event an application does not supply such function or table, the 1927c2aad20Sopenharmony_ci facility still operates, and performs whatever part of its purpose 1937c2aad20Sopenharmony_ci remains meaningful. 1947c2aad20Sopenharmony_ci 1957c2aad20Sopenharmony_ci (For example, a function in a library to compute square roots has a 1967c2aad20Sopenharmony_ci purpose that is entirely well-defined independent of the 1977c2aad20Sopenharmony_ci application. Therefore, Subsection 2d requires that any 1987c2aad20Sopenharmony_ci application-supplied function or table used by this function must be 1997c2aad20Sopenharmony_ci optional: if the application does not supply it, the square root 2007c2aad20Sopenharmony_ci function must still compute square roots.) 2017c2aad20Sopenharmony_ci 2027c2aad20Sopenharmony_ci These requirements apply to the modified work as a whole. If 2037c2aad20Sopenharmony_ci identifiable sections of that work are not derived from the Library, and 2047c2aad20Sopenharmony_ci can be reasonably considered independent and separate works in 2057c2aad20Sopenharmony_ci themselves, then this License, and its terms, do not apply to those 2067c2aad20Sopenharmony_ci sections when you distribute them as separate works. But when you 2077c2aad20Sopenharmony_ci distribute the same sections as part of a whole which is a work based on 2087c2aad20Sopenharmony_ci the Library, the distribution of the whole must be on the terms of this 2097c2aad20Sopenharmony_ci License, whose permissions for other licensees extend to the entire 2107c2aad20Sopenharmony_ci whole, and thus to each and every part regardless of who wrote it. 2117c2aad20Sopenharmony_ci 2127c2aad20Sopenharmony_ci Thus, it is not the intent of this section to claim rights or contest 2137c2aad20Sopenharmony_ci your rights to work written entirely by you; rather, the intent is to 2147c2aad20Sopenharmony_ci exercise the right to control the distribution of derivative or 2157c2aad20Sopenharmony_ci collective works based on the Library. 2167c2aad20Sopenharmony_ci 2177c2aad20Sopenharmony_ci In addition, mere aggregation of another work not based on the Library 2187c2aad20Sopenharmony_ci with the Library (or with a work based on the Library) on a volume of a 2197c2aad20Sopenharmony_ci storage or distribution medium does not bring the other work under the 2207c2aad20Sopenharmony_ci scope of this License. 2217c2aad20Sopenharmony_ci 2227c2aad20Sopenharmony_ci3. You may opt to apply the terms of the ordinary GNU General Public 2237c2aad20Sopenharmony_ci License instead of this License to a given copy of the Library. To do 2247c2aad20Sopenharmony_ci this, you must alter all the notices that refer to this License, so that 2257c2aad20Sopenharmony_ci they refer to the ordinary GNU General Public License, version 2, 2267c2aad20Sopenharmony_ci instead of to this License. (If a newer version than version 2 of the 2277c2aad20Sopenharmony_ci ordinary GNU General Public License has appeared, then you can specify 2287c2aad20Sopenharmony_ci that version instead if you wish.) Do not make any other change in these 2297c2aad20Sopenharmony_ci notices. 2307c2aad20Sopenharmony_ci 2317c2aad20Sopenharmony_ci Once this change is made in a given copy, it is irreversible for that 2327c2aad20Sopenharmony_ci copy, so the ordinary GNU General Public License applies to all 2337c2aad20Sopenharmony_ci subsequent copies and derivative works made from that copy. 2347c2aad20Sopenharmony_ci 2357c2aad20Sopenharmony_ci This option is useful when you wish to copy part of the code of the 2367c2aad20Sopenharmony_ci Library into a program that is not a library. 2377c2aad20Sopenharmony_ci 2387c2aad20Sopenharmony_ci4. You may copy and distribute the Library (or a portion or derivative of 2397c2aad20Sopenharmony_ci it, under Section 2) in object code or executable form under the terms 2407c2aad20Sopenharmony_ci of Sections 1 and 2 above provided that you accompany it with the 2417c2aad20Sopenharmony_ci complete corresponding machine-readable source code, which must be 2427c2aad20Sopenharmony_ci distributed under the terms of Sections 1 and 2 above on a medium 2437c2aad20Sopenharmony_ci customarily used for software interchange. 2447c2aad20Sopenharmony_ci 2457c2aad20Sopenharmony_ci If distribution of object code is made by offering access to copy from a 2467c2aad20Sopenharmony_ci designated place, then offering equivalent access to copy the source 2477c2aad20Sopenharmony_ci code from the same place satisfies the requirement to distribute the 2487c2aad20Sopenharmony_ci source code, even though third parties are not compelled to copy the 2497c2aad20Sopenharmony_ci source along with the object code. 2507c2aad20Sopenharmony_ci 2517c2aad20Sopenharmony_ci5. A program that contains no derivative of any portion of the Library, but 2527c2aad20Sopenharmony_ci is designed to work with the Library by being compiled or linked with 2537c2aad20Sopenharmony_ci it, is called a "work that uses the Library". Such a work, in isolation, 2547c2aad20Sopenharmony_ci is not a derivative work of the Library, and therefore falls outside the 2557c2aad20Sopenharmony_ci scope of this License. 2567c2aad20Sopenharmony_ci 2577c2aad20Sopenharmony_ci However, linking a "work that uses the Library" with the Library creates 2587c2aad20Sopenharmony_ci an executable that is a derivative of the Library (because it contains 2597c2aad20Sopenharmony_ci portions of the Library), rather than a "work that uses the 2607c2aad20Sopenharmony_ci library". The executable is therefore covered by this License. Section 6 2617c2aad20Sopenharmony_ci states terms for distribution of such executables. 2627c2aad20Sopenharmony_ci 2637c2aad20Sopenharmony_ci When a "work that uses the Library" uses material from a header file 2647c2aad20Sopenharmony_ci that is part of the Library, the object code for the work may be a 2657c2aad20Sopenharmony_ci derivative work of the Library even though the source code is 2667c2aad20Sopenharmony_ci not. Whether this is true is especially significant if the work can be 2677c2aad20Sopenharmony_ci linked without the Library, or if the work is itself a library. The 2687c2aad20Sopenharmony_ci threshold for this to be true is not precisely defined by law. 2697c2aad20Sopenharmony_ci 2707c2aad20Sopenharmony_ci If such an object file uses only numerical parameters, data structure 2717c2aad20Sopenharmony_ci layouts and accessors, and small macros and small inline functions (ten 2727c2aad20Sopenharmony_ci lines or less in length), then the use of the object file is 2737c2aad20Sopenharmony_ci unrestricted, regardless of whether it is legally a derivative 2747c2aad20Sopenharmony_ci work. (Executables containing this object code plus portions of the 2757c2aad20Sopenharmony_ci Library will still fall under Section 6.) 2767c2aad20Sopenharmony_ci 2777c2aad20Sopenharmony_ci Otherwise, if the work is a derivative of the Library, you may 2787c2aad20Sopenharmony_ci distribute the object code for the work under the terms of Section 2797c2aad20Sopenharmony_ci 6. Any executables containing that work also fall under Section 6, 2807c2aad20Sopenharmony_ci whether or not they are linked directly with the Library itself. 2817c2aad20Sopenharmony_ci 2827c2aad20Sopenharmony_ci6. As an exception to the Sections above, you may also combine or link a 2837c2aad20Sopenharmony_ci "work that uses the Library" with the Library to produce a work 2847c2aad20Sopenharmony_ci containing portions of the Library, and distribute that work under terms 2857c2aad20Sopenharmony_ci of your choice, provided that the terms permit modification of the work 2867c2aad20Sopenharmony_ci for the customer's own use and reverse engineering for debugging such 2877c2aad20Sopenharmony_ci modifications. 2887c2aad20Sopenharmony_ci 2897c2aad20Sopenharmony_ci You must give prominent notice with each copy of the work that the 2907c2aad20Sopenharmony_ci Library is used in it and that the Library and its use are covered by 2917c2aad20Sopenharmony_ci this License. You must supply a copy of this License. If the work during 2927c2aad20Sopenharmony_ci execution displays copyright notices, you must include the copyright 2937c2aad20Sopenharmony_ci notice for the Library among them, as well as a reference directing the 2947c2aad20Sopenharmony_ci user to the copy of this License. Also, you must do one of these things: 2957c2aad20Sopenharmony_ci 2967c2aad20Sopenharmony_ci a) Accompany the work with the complete corresponding machine-readable 2977c2aad20Sopenharmony_ci source code for the Library including whatever changes were used in 2987c2aad20Sopenharmony_ci the work (which must be distributed under Sections 1 and 2 above); 2997c2aad20Sopenharmony_ci and, if the work is an executable linked with the Library, with the 3007c2aad20Sopenharmony_ci complete machine-readable "work that uses the Library", as object 3017c2aad20Sopenharmony_ci code and/or source code, so that the user can modify the Library and 3027c2aad20Sopenharmony_ci then relink to produce a modified executable containing the modified 3037c2aad20Sopenharmony_ci Library. (It is understood that the user who changes the contents of 3047c2aad20Sopenharmony_ci definitions files in the Library will not necessarily be able to 3057c2aad20Sopenharmony_ci recompile the application to use the modified definitions.) 3067c2aad20Sopenharmony_ci 3077c2aad20Sopenharmony_ci b) Use a suitable shared library mechanism for linking with the 3087c2aad20Sopenharmony_ci Library. A suitable mechanism is one that (1) uses at run time a copy 3097c2aad20Sopenharmony_ci of the library already present on the user's computer system, rather 3107c2aad20Sopenharmony_ci than copying library functions into the executable, and (2) will 3117c2aad20Sopenharmony_ci operate properly with a modified version of the library, if the user 3127c2aad20Sopenharmony_ci installs one, as long as the modified version is interface-compatible 3137c2aad20Sopenharmony_ci with the version that the work was made with. 3147c2aad20Sopenharmony_ci 3157c2aad20Sopenharmony_ci c) Accompany the work with a written offer, valid for at least three 3167c2aad20Sopenharmony_ci years, to give the same user the materials specified in Subsection 3177c2aad20Sopenharmony_ci 6a, above, for a charge no more than the cost of performing this 3187c2aad20Sopenharmony_ci distribution. 3197c2aad20Sopenharmony_ci 3207c2aad20Sopenharmony_ci d) If distribution of the work is made by offering access to copy from a 3217c2aad20Sopenharmony_ci designated place, offer equivalent access to copy the above specified 3227c2aad20Sopenharmony_ci materials from the same place. 3237c2aad20Sopenharmony_ci 3247c2aad20Sopenharmony_ci e) Verify that the user has already received a copy of these materials 3257c2aad20Sopenharmony_ci or that you have already sent this user a copy. 3267c2aad20Sopenharmony_ci 3277c2aad20Sopenharmony_ci For an executable, the required form of the "work that uses the Library" 3287c2aad20Sopenharmony_ci must include any data and utility programs needed for reproducing the 3297c2aad20Sopenharmony_ci executable from it. However, as a special exception, the materials to be 3307c2aad20Sopenharmony_ci distributed need not include anything that is normally distributed (in 3317c2aad20Sopenharmony_ci either source or binary form) with the major components (compiler, 3327c2aad20Sopenharmony_ci kernel, and so on) of the operating system on which the executable runs, 3337c2aad20Sopenharmony_ci unless that component itself accompanies the executable. 3347c2aad20Sopenharmony_ci 3357c2aad20Sopenharmony_ci It may happen that this requirement contradicts the license restrictions 3367c2aad20Sopenharmony_ci of other proprietary libraries that do not normally accompany the 3377c2aad20Sopenharmony_ci operating system. Such a contradiction means you cannot use both them 3387c2aad20Sopenharmony_ci and the Library together in an executable that you distribute. 3397c2aad20Sopenharmony_ci 3407c2aad20Sopenharmony_ci7. You may place library facilities that are a work based on the Library 3417c2aad20Sopenharmony_ci side-by-side in a single library together with other library facilities 3427c2aad20Sopenharmony_ci not covered by this License, and distribute such a combined library, 3437c2aad20Sopenharmony_ci provided that the separate distribution of the work based on the Library 3447c2aad20Sopenharmony_ci and of the other library facilities is otherwise permitted, and provided 3457c2aad20Sopenharmony_ci that you do these two things: 3467c2aad20Sopenharmony_ci 3477c2aad20Sopenharmony_ci a) Accompany the combined library with a copy of the same work based on 3487c2aad20Sopenharmony_ci the Library, uncombined with any other library facilities. This must 3497c2aad20Sopenharmony_ci be distributed under the terms of the Sections above. 3507c2aad20Sopenharmony_ci 3517c2aad20Sopenharmony_ci b) Give prominent notice with the combined library of the fact that part 3527c2aad20Sopenharmony_ci of it is a work based on the Library, and explaining where to find 3537c2aad20Sopenharmony_ci the accompanying uncombined form of the same work. 3547c2aad20Sopenharmony_ci 3557c2aad20Sopenharmony_ci8. You may not copy, modify, sublicense, link with, or distribute the 3567c2aad20Sopenharmony_ci Library except as expressly provided under this License. Any attempt 3577c2aad20Sopenharmony_ci otherwise to copy, modify, sublicense, link with, or distribute the 3587c2aad20Sopenharmony_ci Library is void, and will automatically terminate your rights under this 3597c2aad20Sopenharmony_ci License. However, parties who have received copies, or rights, from you 3607c2aad20Sopenharmony_ci under this License will not have their licenses terminated so long as 3617c2aad20Sopenharmony_ci such parties remain in full compliance. 3627c2aad20Sopenharmony_ci 3637c2aad20Sopenharmony_ci9. You are not required to accept this License, since you have not signed 3647c2aad20Sopenharmony_ci it. However, nothing else grants you permission to modify or distribute 3657c2aad20Sopenharmony_ci the Library or its derivative works. These actions are prohibited by law 3667c2aad20Sopenharmony_ci if you do not accept this License. Therefore, by modifying or 3677c2aad20Sopenharmony_ci distributing the Library (or any work based on the Library), you 3687c2aad20Sopenharmony_ci indicate your acceptance of this License to do so, and all its terms and 3697c2aad20Sopenharmony_ci conditions for copying, distributing or modifying the Library or works 3707c2aad20Sopenharmony_ci based on it. 3717c2aad20Sopenharmony_ci 3727c2aad20Sopenharmony_ci10. Each time you redistribute the Library (or any work based on the 3737c2aad20Sopenharmony_ci Library), the recipient automatically receives a license from the 3747c2aad20Sopenharmony_ci original licensor to copy, distribute, link with or modify the Library 3757c2aad20Sopenharmony_ci subject to these terms and conditions. You may not impose any further 3767c2aad20Sopenharmony_ci restrictions on the recipients' exercise of the rights granted 3777c2aad20Sopenharmony_ci herein. You are not responsible for enforcing compliance by third 3787c2aad20Sopenharmony_ci parties with this License. 3797c2aad20Sopenharmony_ci 3807c2aad20Sopenharmony_ci11. If, as a consequence of a court judgment or allegation of patent 3817c2aad20Sopenharmony_ci infringement or for any other reason (not limited to patent issues), 3827c2aad20Sopenharmony_ci conditions are imposed on you (whether by court order, agreement or 3837c2aad20Sopenharmony_ci otherwise) that contradict the conditions of this License, they do not 3847c2aad20Sopenharmony_ci excuse you from the conditions of this License. If you cannot 3857c2aad20Sopenharmony_ci distribute so as to satisfy simultaneously your obligations under this 3867c2aad20Sopenharmony_ci License and any other pertinent obligations, then as a consequence you 3877c2aad20Sopenharmony_ci may not distribute the Library at all. For example, if a patent license 3887c2aad20Sopenharmony_ci would not permit royalty-free redistribution of the Library by all 3897c2aad20Sopenharmony_ci those who receive copies directly or indirectly through you, then the 3907c2aad20Sopenharmony_ci only way you could satisfy both it and this License would be to refrain 3917c2aad20Sopenharmony_ci entirely from distribution of the Library. 3927c2aad20Sopenharmony_ci 3937c2aad20Sopenharmony_ci If any portion of this section is held invalid or unenforceable under 3947c2aad20Sopenharmony_ci any particular circumstance, the balance of the section is intended to 3957c2aad20Sopenharmony_ci apply, and the section as a whole is intended to apply in other 3967c2aad20Sopenharmony_ci circumstances. 3977c2aad20Sopenharmony_ci 3987c2aad20Sopenharmony_ci It is not the purpose of this section to induce you to infringe any 3997c2aad20Sopenharmony_ci patents or other property right claims or to contest validity of any 4007c2aad20Sopenharmony_ci such claims; this section has the sole purpose of protecting the 4017c2aad20Sopenharmony_ci integrity of the free software distribution system which is implemented 4027c2aad20Sopenharmony_ci by public license practices. Many people have made generous 4037c2aad20Sopenharmony_ci contributions to the wide range of software distributed through that 4047c2aad20Sopenharmony_ci system in reliance on consistent application of that system; it is up 4057c2aad20Sopenharmony_ci to the author/donor to decide if he or she is willing to distribute 4067c2aad20Sopenharmony_ci software through any other system and a licensee cannot impose that 4077c2aad20Sopenharmony_ci choice. 4087c2aad20Sopenharmony_ci 4097c2aad20Sopenharmony_ci This section is intended to make thoroughly clear what is believed to 4107c2aad20Sopenharmony_ci be a consequence of the rest of this License. 4117c2aad20Sopenharmony_ci 4127c2aad20Sopenharmony_ci12. If the distribution and/or use of the Library is restricted in certain 4137c2aad20Sopenharmony_ci countries either by patents or by copyrighted interfaces, the original 4147c2aad20Sopenharmony_ci copyright holder who places the Library under this License may add an 4157c2aad20Sopenharmony_ci explicit geographical distribution limitation excluding those 4167c2aad20Sopenharmony_ci countries, so that distribution is permitted only in or among countries 4177c2aad20Sopenharmony_ci not thus excluded. In such case, this License incorporates the 4187c2aad20Sopenharmony_ci limitation as if written in the body of this License. 4197c2aad20Sopenharmony_ci 4207c2aad20Sopenharmony_ci13. The Free Software Foundation may publish revised and/or new versions of 4217c2aad20Sopenharmony_ci the Lesser General Public License from time to time. Such new versions 4227c2aad20Sopenharmony_ci will be similar in spirit to the present version, but may differ in 4237c2aad20Sopenharmony_ci detail to address new problems or concerns. 4247c2aad20Sopenharmony_ci 4257c2aad20Sopenharmony_ci Each version is given a distinguishing version number. If the Library 4267c2aad20Sopenharmony_ci specifies a version number of this License which applies to it and "any 4277c2aad20Sopenharmony_ci later version", you have the option of following the terms and 4287c2aad20Sopenharmony_ci conditions either of that version or of any later version published by 4297c2aad20Sopenharmony_ci the Free Software Foundation. If the Library does not specify a license 4307c2aad20Sopenharmony_ci version number, you may choose any version ever published by the Free 4317c2aad20Sopenharmony_ci Software Foundation. 4327c2aad20Sopenharmony_ci 4337c2aad20Sopenharmony_ci14. If you wish to incorporate parts of the Library into other free 4347c2aad20Sopenharmony_ci programs whose distribution conditions are incompatible with these, 4357c2aad20Sopenharmony_ci write to the author to ask for permission. For software which is 4367c2aad20Sopenharmony_ci copyrighted by the Free Software Foundation, write to the Free Software 4377c2aad20Sopenharmony_ci Foundation; we sometimes make exceptions for this. Our decision will be 4387c2aad20Sopenharmony_ci guided by the two goals of preserving the free status of all 4397c2aad20Sopenharmony_ci derivatives of our free software and of promoting the sharing and reuse 4407c2aad20Sopenharmony_ci of software generally. 4417c2aad20Sopenharmony_ci 4427c2aad20Sopenharmony_ciNO WARRANTY 4437c2aad20Sopenharmony_ci 4447c2aad20Sopenharmony_ci15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 4457c2aad20Sopenharmony_ci FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 4467c2aad20Sopenharmony_ci OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 4477c2aad20Sopenharmony_ci PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER 4487c2aad20Sopenharmony_ci EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 4497c2aad20Sopenharmony_ci WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE 4507c2aad20Sopenharmony_ci ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH 4517c2aad20Sopenharmony_ci YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL 4527c2aad20Sopenharmony_ci NECESSARY SERVICING, REPAIR OR CORRECTION. 4537c2aad20Sopenharmony_ci 4547c2aad20Sopenharmony_ci16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 4557c2aad20Sopenharmony_ci WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 4567c2aad20Sopenharmony_ci REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR 4577c2aad20Sopenharmony_ci DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL 4587c2aad20Sopenharmony_ci DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY 4597c2aad20Sopenharmony_ci (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED 4607c2aad20Sopenharmony_ci INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF 4617c2aad20Sopenharmony_ci THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR 4627c2aad20Sopenharmony_ci OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 4637c2aad20Sopenharmony_ci 4647c2aad20Sopenharmony_ciEND OF TERMS AND CONDITIONS 4657c2aad20Sopenharmony_ci 4667c2aad20Sopenharmony_ciHow to Apply These Terms to Your New Libraries 4677c2aad20Sopenharmony_ci 4687c2aad20Sopenharmony_ciIf you develop a new library, and you want it to be of the greatest 4697c2aad20Sopenharmony_cipossible use to the public, we recommend making it free software that 4707c2aad20Sopenharmony_cieveryone can redistribute and change. You can do so by permitting 4717c2aad20Sopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the 4727c2aad20Sopenharmony_ciordinary General Public License). 4737c2aad20Sopenharmony_ci 4747c2aad20Sopenharmony_ciTo apply these terms, attach the following notices to the library. It is 4757c2aad20Sopenharmony_cisafest to attach them to the start of each source file to most effectively 4767c2aad20Sopenharmony_ciconvey the exclusion of warranty; and each file should have at least the 4777c2aad20Sopenharmony_ci"copyright" line and a pointer to where the full notice is found. 4787c2aad20Sopenharmony_ci 4797c2aad20Sopenharmony_cione line to give the library's name and an idea of what it does. 4807c2aad20Sopenharmony_ciCopyright (C) year name of author 4817c2aad20Sopenharmony_ci 4827c2aad20Sopenharmony_ciThis library is free software; you can redistribute it and/or modify it 4837c2aad20Sopenharmony_ciunder the terms of the GNU Lesser General Public License as published by 4847c2aad20Sopenharmony_cithe Free Software Foundation; either version 2.1 of the License, or (at 4857c2aad20Sopenharmony_ciyour option) any later version. 4867c2aad20Sopenharmony_ci 4877c2aad20Sopenharmony_ciThis library is distributed in the hope that it will be useful, but WITHOUT 4887c2aad20Sopenharmony_ciANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4897c2aad20Sopenharmony_ciFITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 4907c2aad20Sopenharmony_cifor more details. 4917c2aad20Sopenharmony_ci 4927c2aad20Sopenharmony_ciYou should have received a copy of the GNU Lesser General Public License 4937c2aad20Sopenharmony_cialong with this library; if not, write to the Free Software Foundation, 4947c2aad20Sopenharmony_ciInc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add 4957c2aad20Sopenharmony_ciinformation on how to contact you by electronic and paper mail. 4967c2aad20Sopenharmony_ci 4977c2aad20Sopenharmony_ciYou should also get your employer (if you work as a programmer) or your 4987c2aad20Sopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if 4997c2aad20Sopenharmony_cinecessary. Here is a sample; alter the names: 5007c2aad20Sopenharmony_ci 5017c2aad20Sopenharmony_ciYoyodyne, Inc., hereby disclaims all copyright interest in 5027c2aad20Sopenharmony_cithe library `Frob' (a library for tweaking knobs) written 5037c2aad20Sopenharmony_ciby James Random Hacker. 5047c2aad20Sopenharmony_ci 5057c2aad20Sopenharmony_cisignature of Ty Coon, 1 April 1990 5067c2aad20Sopenharmony_ciTy Coon, President of Vice 5077c2aad20Sopenharmony_ciThat's all there is to it! 5087c2aad20Sopenharmony_ci 5097c2aad20Sopenharmony_ci Valid-License-Identifier: BSD-2-Clause 5107c2aad20Sopenharmony_ci 5117c2aad20Sopenharmony_ciSPDX-URL: https://spdx.org/licenses/BSD-2-Clause.html 5127c2aad20Sopenharmony_ciUsage-Guide: 5137c2aad20Sopenharmony_ci To use the BSD 2-clause "Simplified" License put the following SPDX 5147c2aad20Sopenharmony_ci tag/value pair into a comment according to the placement guidelines in 5157c2aad20Sopenharmony_ci the licensing rules documentation: 5167c2aad20Sopenharmony_ci SPDX-License-Identifier: BSD-2-Clause 5177c2aad20Sopenharmony_ciLicense-Text: 5187c2aad20Sopenharmony_ci 5197c2aad20Sopenharmony_ciCopyright (c) <year> <owner> . All rights reserved. 5207c2aad20Sopenharmony_ci 5217c2aad20Sopenharmony_ciRedistribution and use in source and binary forms, with or without 5227c2aad20Sopenharmony_cimodification, are permitted provided that the following conditions are met: 5237c2aad20Sopenharmony_ci 5247c2aad20Sopenharmony_ci1. Redistributions of source code must retain the above copyright notice, 5257c2aad20Sopenharmony_ci this list of conditions and the following disclaimer. 5267c2aad20Sopenharmony_ci 5277c2aad20Sopenharmony_ci2. Redistributions in binary form must reproduce the above copyright 5287c2aad20Sopenharmony_ci notice, this list of conditions and the following disclaimer in the 5297c2aad20Sopenharmony_ci documentation and/or other materials provided with the distribution. 5307c2aad20Sopenharmony_ci 5317c2aad20Sopenharmony_ciTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 5327c2aad20Sopenharmony_ciAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5337c2aad20Sopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5347c2aad20Sopenharmony_ciARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 5357c2aad20Sopenharmony_ciLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 5367c2aad20Sopenharmony_ciCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 5377c2aad20Sopenharmony_ciSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 5387c2aad20Sopenharmony_ciINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 5397c2aad20Sopenharmony_ciCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 5407c2aad20Sopenharmony_ciARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 5417c2aad20Sopenharmony_ciPOSSIBILITY OF SUCH DAMAGE.