162306a36Sopenharmony_ciValid-License-Identifier: LGPL-2.1
262306a36Sopenharmony_ciValid-License-Identifier: LGPL-2.1-only
362306a36Sopenharmony_ciValid-License-Identifier: LGPL-2.1+
462306a36Sopenharmony_ciValid-License-Identifier: LGPL-2.1-or-later
562306a36Sopenharmony_ciSPDX-URL: https://spdx.org/licenses/LGPL-2.1.html
662306a36Sopenharmony_ciUsage-Guide:
762306a36Sopenharmony_ci  To use this license in source code, put one of the following SPDX
862306a36Sopenharmony_ci  tag/value pairs into a comment according to the placement
962306a36Sopenharmony_ci  guidelines in the licensing rules documentation.
1062306a36Sopenharmony_ci  For 'GNU Lesser General Public License (LGPL) version 2.1 only' use:
1162306a36Sopenharmony_ci    SPDX-License-Identifier: LGPL-2.1
1262306a36Sopenharmony_ci  For 'GNU Lesser General Public License (LGPL) version 2.1 or any later
1362306a36Sopenharmony_ci  version' use:
1462306a36Sopenharmony_ci    SPDX-License-Identifier: LGPL-2.1+
1562306a36Sopenharmony_ciLicense-Text:
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciGNU LESSER GENERAL PUBLIC LICENSE
1862306a36Sopenharmony_ciVersion 2.1, February 1999
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciCopyright (C) 1991, 1999 Free Software Foundation, Inc.
2162306a36Sopenharmony_ci51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciEveryone is permitted to copy and distribute verbatim copies of this
2462306a36Sopenharmony_cilicense document, but changing it is not allowed.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci[This is the first released version of the Lesser GPL. It also counts as
2762306a36Sopenharmony_cithe successor of the GNU Library Public License, version 2, hence the
2862306a36Sopenharmony_civersion number 2.1.]
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciPreamble
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciThe licenses for most software are designed to take away your freedom to
3362306a36Sopenharmony_cishare and change it. By contrast, the GNU General Public Licenses are
3462306a36Sopenharmony_ciintended to guarantee your freedom to share and change free software--to
3562306a36Sopenharmony_cimake sure the software is free for all its users.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciThis license, the Lesser General Public License, applies to some specially
3862306a36Sopenharmony_cidesignated software packages--typically libraries--of the Free Software
3962306a36Sopenharmony_ciFoundation and other authors who decide to use it. You can use it too, but
4062306a36Sopenharmony_ciwe suggest you first think carefully about whether this license or the
4162306a36Sopenharmony_ciordinary General Public License is the better strategy to use in any
4262306a36Sopenharmony_ciparticular case, based on the explanations below.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciWhen we speak of free software, we are referring to freedom of use, not
4562306a36Sopenharmony_ciprice. Our General Public Licenses are designed to make sure that you have
4662306a36Sopenharmony_cithe freedom to distribute copies of free software (and charge for this
4762306a36Sopenharmony_ciservice if you wish); that you receive source code or can get it if you
4862306a36Sopenharmony_ciwant it; that you can change the software and use pieces of it in new free
4962306a36Sopenharmony_ciprograms; and that you are informed that you can do these things.
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciTo protect your rights, we need to make restrictions that forbid
5262306a36Sopenharmony_cidistributors to deny you these rights or to ask you to surrender these
5362306a36Sopenharmony_cirights. These restrictions translate to certain responsibilities for you if
5462306a36Sopenharmony_ciyou distribute copies of the library or if you modify it.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciFor example, if you distribute copies of the library, whether gratis or for
5762306a36Sopenharmony_cia fee, you must give the recipients all the rights that we gave you. You
5862306a36Sopenharmony_cimust make sure that they, too, receive or can get the source code. If you
5962306a36Sopenharmony_cilink other code with the library, you must provide complete object files to
6062306a36Sopenharmony_cithe recipients, so that they can relink them with the library after making
6162306a36Sopenharmony_cichanges to the library and recompiling it. And you must show them these
6262306a36Sopenharmony_citerms so they know their rights.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciWe protect your rights with a two-step method: (1) we copyright the
6562306a36Sopenharmony_cilibrary, and (2) we offer you this license, which gives you legal
6662306a36Sopenharmony_cipermission to copy, distribute and/or modify the library.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciTo protect each distributor, we want to make it very clear that there is no
6962306a36Sopenharmony_ciwarranty for the free library. Also, if the library is modified by someone
7062306a36Sopenharmony_cielse and passed on, the recipients should know that what they have is not
7162306a36Sopenharmony_cithe original version, so that the original author's reputation will not be
7262306a36Sopenharmony_ciaffected by problems that might be introduced by others.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ciFinally, software patents pose a constant threat to the existence of any
7562306a36Sopenharmony_cifree program. We wish to make sure that a company cannot effectively
7662306a36Sopenharmony_cirestrict the users of a free program by obtaining a restrictive license
7762306a36Sopenharmony_cifrom a patent holder. Therefore, we insist that any patent license obtained
7862306a36Sopenharmony_cifor a version of the library must be consistent with the full freedom of
7962306a36Sopenharmony_ciuse specified in this license.
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ciMost GNU software, including some libraries, is covered by the ordinary GNU
8262306a36Sopenharmony_ciGeneral Public License. This license, the GNU Lesser General Public
8362306a36Sopenharmony_ciLicense, applies to certain designated libraries, and is quite different
8462306a36Sopenharmony_cifrom the ordinary General Public License. We use this license for certain
8562306a36Sopenharmony_cilibraries in order to permit linking those libraries into non-free
8662306a36Sopenharmony_ciprograms.
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciWhen a program is linked with a library, whether statically or using a
8962306a36Sopenharmony_cishared library, the combination of the two is legally speaking a combined
9062306a36Sopenharmony_ciwork, a derivative of the original library. The ordinary General Public
9162306a36Sopenharmony_ciLicense therefore permits such linking only if the entire combination fits
9262306a36Sopenharmony_ciits criteria of freedom. The Lesser General Public License permits more lax
9362306a36Sopenharmony_cicriteria for linking other code with the library.
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciWe call this license the "Lesser" General Public License because it does
9662306a36Sopenharmony_ciLess to protect the user's freedom than the ordinary General Public
9762306a36Sopenharmony_ciLicense. It also provides other free software developers Less of an
9862306a36Sopenharmony_ciadvantage over competing non-free programs. These disadvantages are the
9962306a36Sopenharmony_cireason we use the ordinary General Public License for many
10062306a36Sopenharmony_cilibraries. However, the Lesser license provides advantages in certain
10162306a36Sopenharmony_cispecial circumstances.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciFor example, on rare occasions, there may be a special need to encourage
10462306a36Sopenharmony_cithe widest possible use of a certain library, so that it becomes a de-facto
10562306a36Sopenharmony_cistandard. To achieve this, non-free programs must be allowed to use the
10662306a36Sopenharmony_cilibrary. A more frequent case is that a free library does the same job as
10762306a36Sopenharmony_ciwidely used non-free libraries. In this case, there is little to gain by
10862306a36Sopenharmony_cilimiting the free library to free software only, so we use the Lesser
10962306a36Sopenharmony_ciGeneral Public License.
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ciIn other cases, permission to use a particular library in non-free programs
11262306a36Sopenharmony_cienables a greater number of people to use a large body of free
11362306a36Sopenharmony_cisoftware. For example, permission to use the GNU C Library in non-free
11462306a36Sopenharmony_ciprograms enables many more people to use the whole GNU operating system, as
11562306a36Sopenharmony_ciwell as its variant, the GNU/Linux operating system.
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ciAlthough the Lesser General Public License is Less protective of the users'
11862306a36Sopenharmony_cifreedom, it does ensure that the user of a program that is linked with the
11962306a36Sopenharmony_ciLibrary has the freedom and the wherewithal to run that program using a
12062306a36Sopenharmony_cimodified version of the Library.
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciThe precise terms and conditions for copying, distribution and modification
12362306a36Sopenharmony_cifollow. Pay close attention to the difference between a "work based on the
12462306a36Sopenharmony_cilibrary" and a "work that uses the library". The former contains code
12562306a36Sopenharmony_ciderived from the library, whereas the latter must be combined with the
12662306a36Sopenharmony_cilibrary in order to run.
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ciTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12962306a36Sopenharmony_ci
13062306a36Sopenharmony_ci0. This License Agreement applies to any software library or other program
13162306a36Sopenharmony_ci   which contains a notice placed by the copyright holder or other
13262306a36Sopenharmony_ci   authorized party saying it may be distributed under the terms of this
13362306a36Sopenharmony_ci   Lesser General Public License (also called "this License"). Each
13462306a36Sopenharmony_ci   licensee is addressed as "you".
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ci   A "library" means a collection of software functions and/or data
13762306a36Sopenharmony_ci   prepared so as to be conveniently linked with application programs
13862306a36Sopenharmony_ci   (which use some of those functions and data) to form executables.
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ci   The "Library", below, refers to any such software library or work which
14162306a36Sopenharmony_ci   has been distributed under these terms. A "work based on the Library"
14262306a36Sopenharmony_ci   means either the Library or any derivative work under copyright law:
14362306a36Sopenharmony_ci   that is to say, a work containing the Library or a portion of it, either
14462306a36Sopenharmony_ci   verbatim or with modifications and/or translated straightforwardly into
14562306a36Sopenharmony_ci   another language. (Hereinafter, translation is included without
14662306a36Sopenharmony_ci   limitation in the term "modification".)
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci   "Source code" for a work means the preferred form of the work for making
14962306a36Sopenharmony_ci   modifications to it. For a library, complete source code means all the
15062306a36Sopenharmony_ci   source code for all modules it contains, plus any associated interface
15162306a36Sopenharmony_ci   definition files, plus the scripts used to control compilation and
15262306a36Sopenharmony_ci   installation of the library.
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ci    Activities other than copying, distribution and modification are not
15562306a36Sopenharmony_ci    covered by this License; they are outside its scope. The act of running
15662306a36Sopenharmony_ci    a program using the Library is not restricted, and output from such a
15762306a36Sopenharmony_ci    program is covered only if its contents constitute a work based on the
15862306a36Sopenharmony_ci    Library (independent of the use of the Library in a tool for writing
15962306a36Sopenharmony_ci    it). Whether that is true depends on what the Library does and what the
16062306a36Sopenharmony_ci    program that uses the Library does.
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ci1. You may copy and distribute verbatim copies of the Library's complete
16362306a36Sopenharmony_ci   source code as you receive it, in any medium, provided that you
16462306a36Sopenharmony_ci   conspicuously and appropriately publish on each copy an appropriate
16562306a36Sopenharmony_ci   copyright notice and disclaimer of warranty; keep intact all the notices
16662306a36Sopenharmony_ci   that refer to this License and to the absence of any warranty; and
16762306a36Sopenharmony_ci   distribute a copy of this License along with the Library.
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci   You may charge a fee for the physical act of transferring a copy, and
17062306a36Sopenharmony_ci   you may at your option offer warranty protection in exchange for a fee.
17162306a36Sopenharmony_ci
17262306a36Sopenharmony_ci2. You may modify your copy or copies of the Library or any portion of it,
17362306a36Sopenharmony_ci   thus forming a work based on the Library, and copy and distribute such
17462306a36Sopenharmony_ci   modifications or work under the terms of Section 1 above, provided that
17562306a36Sopenharmony_ci   you also meet all of these conditions:
17662306a36Sopenharmony_ci
17762306a36Sopenharmony_ci   a) The modified work must itself be a software library.
17862306a36Sopenharmony_ci
17962306a36Sopenharmony_ci   b) You must cause the files modified to carry prominent notices stating
18062306a36Sopenharmony_ci      that you changed the files and the date of any change.
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ci   c) You must cause the whole of the work to be licensed at no charge to
18362306a36Sopenharmony_ci      all third parties under the terms of this License.
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci   d) If a facility in the modified Library refers to a function or a table
18662306a36Sopenharmony_ci      of data to be supplied by an application program that uses the
18762306a36Sopenharmony_ci      facility, other than as an argument passed when the facility is
18862306a36Sopenharmony_ci      invoked, then you must make a good faith effort to ensure that, in
18962306a36Sopenharmony_ci      the event an application does not supply such function or table, the
19062306a36Sopenharmony_ci      facility still operates, and performs whatever part of its purpose
19162306a36Sopenharmony_ci      remains meaningful.
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ci   (For example, a function in a library to compute square roots has a
19462306a36Sopenharmony_ci    purpose that is entirely well-defined independent of the
19562306a36Sopenharmony_ci    application. Therefore, Subsection 2d requires that any
19662306a36Sopenharmony_ci    application-supplied function or table used by this function must be
19762306a36Sopenharmony_ci    optional: if the application does not supply it, the square root
19862306a36Sopenharmony_ci    function must still compute square roots.)
19962306a36Sopenharmony_ci
20062306a36Sopenharmony_ci   These requirements apply to the modified work as a whole. If
20162306a36Sopenharmony_ci   identifiable sections of that work are not derived from the Library, and
20262306a36Sopenharmony_ci   can be reasonably considered independent and separate works in
20362306a36Sopenharmony_ci   themselves, then this License, and its terms, do not apply to those
20462306a36Sopenharmony_ci   sections when you distribute them as separate works. But when you
20562306a36Sopenharmony_ci   distribute the same sections as part of a whole which is a work based on
20662306a36Sopenharmony_ci   the Library, the distribution of the whole must be on the terms of this
20762306a36Sopenharmony_ci   License, whose permissions for other licensees extend to the entire
20862306a36Sopenharmony_ci   whole, and thus to each and every part regardless of who wrote it.
20962306a36Sopenharmony_ci
21062306a36Sopenharmony_ci   Thus, it is not the intent of this section to claim rights or contest
21162306a36Sopenharmony_ci   your rights to work written entirely by you; rather, the intent is to
21262306a36Sopenharmony_ci   exercise the right to control the distribution of derivative or
21362306a36Sopenharmony_ci   collective works based on the Library.
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ci   In addition, mere aggregation of another work not based on the Library
21662306a36Sopenharmony_ci   with the Library (or with a work based on the Library) on a volume of a
21762306a36Sopenharmony_ci   storage or distribution medium does not bring the other work under the
21862306a36Sopenharmony_ci   scope of this License.
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci3. You may opt to apply the terms of the ordinary GNU General Public
22162306a36Sopenharmony_ci   License instead of this License to a given copy of the Library. To do
22262306a36Sopenharmony_ci   this, you must alter all the notices that refer to this License, so that
22362306a36Sopenharmony_ci   they refer to the ordinary GNU General Public License, version 2,
22462306a36Sopenharmony_ci   instead of to this License. (If a newer version than version 2 of the
22562306a36Sopenharmony_ci   ordinary GNU General Public License has appeared, then you can specify
22662306a36Sopenharmony_ci   that version instead if you wish.) Do not make any other change in these
22762306a36Sopenharmony_ci   notices.
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ci   Once this change is made in a given copy, it is irreversible for that
23062306a36Sopenharmony_ci   copy, so the ordinary GNU General Public License applies to all
23162306a36Sopenharmony_ci   subsequent copies and derivative works made from that copy.
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ci   This option is useful when you wish to copy part of the code of the
23462306a36Sopenharmony_ci   Library into a program that is not a library.
23562306a36Sopenharmony_ci
23662306a36Sopenharmony_ci4. You may copy and distribute the Library (or a portion or derivative of
23762306a36Sopenharmony_ci   it, under Section 2) in object code or executable form under the terms
23862306a36Sopenharmony_ci   of Sections 1 and 2 above provided that you accompany it with the
23962306a36Sopenharmony_ci   complete corresponding machine-readable source code, which must be
24062306a36Sopenharmony_ci   distributed under the terms of Sections 1 and 2 above on a medium
24162306a36Sopenharmony_ci   customarily used for software interchange.
24262306a36Sopenharmony_ci
24362306a36Sopenharmony_ci   If distribution of object code is made by offering access to copy from a
24462306a36Sopenharmony_ci   designated place, then offering equivalent access to copy the source
24562306a36Sopenharmony_ci   code from the same place satisfies the requirement to distribute the
24662306a36Sopenharmony_ci   source code, even though third parties are not compelled to copy the
24762306a36Sopenharmony_ci   source along with the object code.
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_ci5. A program that contains no derivative of any portion of the Library, but
25062306a36Sopenharmony_ci   is designed to work with the Library by being compiled or linked with
25162306a36Sopenharmony_ci   it, is called a "work that uses the Library". Such a work, in isolation,
25262306a36Sopenharmony_ci   is not a derivative work of the Library, and therefore falls outside the
25362306a36Sopenharmony_ci   scope of this License.
25462306a36Sopenharmony_ci
25562306a36Sopenharmony_ci   However, linking a "work that uses the Library" with the Library creates
25662306a36Sopenharmony_ci   an executable that is a derivative of the Library (because it contains
25762306a36Sopenharmony_ci   portions of the Library), rather than a "work that uses the
25862306a36Sopenharmony_ci   library". The executable is therefore covered by this License. Section 6
25962306a36Sopenharmony_ci   states terms for distribution of such executables.
26062306a36Sopenharmony_ci
26162306a36Sopenharmony_ci   When a "work that uses the Library" uses material from a header file
26262306a36Sopenharmony_ci   that is part of the Library, the object code for the work may be a
26362306a36Sopenharmony_ci   derivative work of the Library even though the source code is
26462306a36Sopenharmony_ci   not. Whether this is true is especially significant if the work can be
26562306a36Sopenharmony_ci   linked without the Library, or if the work is itself a library. The
26662306a36Sopenharmony_ci   threshold for this to be true is not precisely defined by law.
26762306a36Sopenharmony_ci
26862306a36Sopenharmony_ci   If such an object file uses only numerical parameters, data structure
26962306a36Sopenharmony_ci   layouts and accessors, and small macros and small inline functions (ten
27062306a36Sopenharmony_ci   lines or less in length), then the use of the object file is
27162306a36Sopenharmony_ci   unrestricted, regardless of whether it is legally a derivative
27262306a36Sopenharmony_ci   work. (Executables containing this object code plus portions of the
27362306a36Sopenharmony_ci   Library will still fall under Section 6.)
27462306a36Sopenharmony_ci
27562306a36Sopenharmony_ci   Otherwise, if the work is a derivative of the Library, you may
27662306a36Sopenharmony_ci   distribute the object code for the work under the terms of Section
27762306a36Sopenharmony_ci   6. Any executables containing that work also fall under Section 6,
27862306a36Sopenharmony_ci   whether or not they are linked directly with the Library itself.
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ci6. As an exception to the Sections above, you may also combine or link a
28162306a36Sopenharmony_ci   "work that uses the Library" with the Library to produce a work
28262306a36Sopenharmony_ci   containing portions of the Library, and distribute that work under terms
28362306a36Sopenharmony_ci   of your choice, provided that the terms permit modification of the work
28462306a36Sopenharmony_ci   for the customer's own use and reverse engineering for debugging such
28562306a36Sopenharmony_ci   modifications.
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_ci   You must give prominent notice with each copy of the work that the
28862306a36Sopenharmony_ci   Library is used in it and that the Library and its use are covered by
28962306a36Sopenharmony_ci   this License. You must supply a copy of this License. If the work during
29062306a36Sopenharmony_ci   execution displays copyright notices, you must include the copyright
29162306a36Sopenharmony_ci   notice for the Library among them, as well as a reference directing the
29262306a36Sopenharmony_ci   user to the copy of this License. Also, you must do one of these things:
29362306a36Sopenharmony_ci
29462306a36Sopenharmony_ci   a) Accompany the work with the complete corresponding machine-readable
29562306a36Sopenharmony_ci      source code for the Library including whatever changes were used in
29662306a36Sopenharmony_ci      the work (which must be distributed under Sections 1 and 2 above);
29762306a36Sopenharmony_ci      and, if the work is an executable linked with the Library, with the
29862306a36Sopenharmony_ci      complete machine-readable "work that uses the Library", as object
29962306a36Sopenharmony_ci      code and/or source code, so that the user can modify the Library and
30062306a36Sopenharmony_ci      then relink to produce a modified executable containing the modified
30162306a36Sopenharmony_ci      Library. (It is understood that the user who changes the contents of
30262306a36Sopenharmony_ci      definitions files in the Library will not necessarily be able to
30362306a36Sopenharmony_ci      recompile the application to use the modified definitions.)
30462306a36Sopenharmony_ci
30562306a36Sopenharmony_ci   b) Use a suitable shared library mechanism for linking with the
30662306a36Sopenharmony_ci      Library. A suitable mechanism is one that (1) uses at run time a copy
30762306a36Sopenharmony_ci      of the library already present on the user's computer system, rather
30862306a36Sopenharmony_ci      than copying library functions into the executable, and (2) will
30962306a36Sopenharmony_ci      operate properly with a modified version of the library, if the user
31062306a36Sopenharmony_ci      installs one, as long as the modified version is interface-compatible
31162306a36Sopenharmony_ci      with the version that the work was made with.
31262306a36Sopenharmony_ci
31362306a36Sopenharmony_ci   c) Accompany the work with a written offer, valid for at least three
31462306a36Sopenharmony_ci      years, to give the same user the materials specified in Subsection
31562306a36Sopenharmony_ci      6a, above, for a charge no more than the cost of performing this
31662306a36Sopenharmony_ci      distribution.
31762306a36Sopenharmony_ci
31862306a36Sopenharmony_ci   d) If distribution of the work is made by offering access to copy from a
31962306a36Sopenharmony_ci      designated place, offer equivalent access to copy the above specified
32062306a36Sopenharmony_ci      materials from the same place.
32162306a36Sopenharmony_ci
32262306a36Sopenharmony_ci   e) Verify that the user has already received a copy of these materials
32362306a36Sopenharmony_ci      or that you have already sent this user a copy.
32462306a36Sopenharmony_ci
32562306a36Sopenharmony_ci   For an executable, the required form of the "work that uses the Library"
32662306a36Sopenharmony_ci   must include any data and utility programs needed for reproducing the
32762306a36Sopenharmony_ci   executable from it. However, as a special exception, the materials to be
32862306a36Sopenharmony_ci   distributed need not include anything that is normally distributed (in
32962306a36Sopenharmony_ci   either source or binary form) with the major components (compiler,
33062306a36Sopenharmony_ci   kernel, and so on) of the operating system on which the executable runs,
33162306a36Sopenharmony_ci   unless that component itself accompanies the executable.
33262306a36Sopenharmony_ci
33362306a36Sopenharmony_ci   It may happen that this requirement contradicts the license restrictions
33462306a36Sopenharmony_ci   of other proprietary libraries that do not normally accompany the
33562306a36Sopenharmony_ci   operating system. Such a contradiction means you cannot use both them
33662306a36Sopenharmony_ci   and the Library together in an executable that you distribute.
33762306a36Sopenharmony_ci
33862306a36Sopenharmony_ci7. You may place library facilities that are a work based on the Library
33962306a36Sopenharmony_ci   side-by-side in a single library together with other library facilities
34062306a36Sopenharmony_ci   not covered by this License, and distribute such a combined library,
34162306a36Sopenharmony_ci   provided that the separate distribution of the work based on the Library
34262306a36Sopenharmony_ci   and of the other library facilities is otherwise permitted, and provided
34362306a36Sopenharmony_ci   that you do these two things:
34462306a36Sopenharmony_ci
34562306a36Sopenharmony_ci   a) Accompany the combined library with a copy of the same work based on
34662306a36Sopenharmony_ci      the Library, uncombined with any other library facilities. This must
34762306a36Sopenharmony_ci      be distributed under the terms of the Sections above.
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_ci   b) Give prominent notice with the combined library of the fact that part
35062306a36Sopenharmony_ci      of it is a work based on the Library, and explaining where to find
35162306a36Sopenharmony_ci      the accompanying uncombined form of the same work.
35262306a36Sopenharmony_ci
35362306a36Sopenharmony_ci8. You may not copy, modify, sublicense, link with, or distribute the
35462306a36Sopenharmony_ci   Library except as expressly provided under this License. Any attempt
35562306a36Sopenharmony_ci   otherwise to copy, modify, sublicense, link with, or distribute the
35662306a36Sopenharmony_ci   Library is void, and will automatically terminate your rights under this
35762306a36Sopenharmony_ci   License. However, parties who have received copies, or rights, from you
35862306a36Sopenharmony_ci   under this License will not have their licenses terminated so long as
35962306a36Sopenharmony_ci   such parties remain in full compliance.
36062306a36Sopenharmony_ci
36162306a36Sopenharmony_ci9. You are not required to accept this License, since you have not signed
36262306a36Sopenharmony_ci   it. However, nothing else grants you permission to modify or distribute
36362306a36Sopenharmony_ci   the Library or its derivative works. These actions are prohibited by law
36462306a36Sopenharmony_ci   if you do not accept this License. Therefore, by modifying or
36562306a36Sopenharmony_ci   distributing the Library (or any work based on the Library), you
36662306a36Sopenharmony_ci   indicate your acceptance of this License to do so, and all its terms and
36762306a36Sopenharmony_ci   conditions for copying, distributing or modifying the Library or works
36862306a36Sopenharmony_ci   based on it.
36962306a36Sopenharmony_ci
37062306a36Sopenharmony_ci10. Each time you redistribute the Library (or any work based on the
37162306a36Sopenharmony_ci    Library), the recipient automatically receives a license from the
37262306a36Sopenharmony_ci    original licensor to copy, distribute, link with or modify the Library
37362306a36Sopenharmony_ci    subject to these terms and conditions. You may not impose any further
37462306a36Sopenharmony_ci    restrictions on the recipients' exercise of the rights granted
37562306a36Sopenharmony_ci    herein. You are not responsible for enforcing compliance by third
37662306a36Sopenharmony_ci    parties with this License.
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ci11. If, as a consequence of a court judgment or allegation of patent
37962306a36Sopenharmony_ci    infringement or for any other reason (not limited to patent issues),
38062306a36Sopenharmony_ci    conditions are imposed on you (whether by court order, agreement or
38162306a36Sopenharmony_ci    otherwise) that contradict the conditions of this License, they do not
38262306a36Sopenharmony_ci    excuse you from the conditions of this License. If you cannot
38362306a36Sopenharmony_ci    distribute so as to satisfy simultaneously your obligations under this
38462306a36Sopenharmony_ci    License and any other pertinent obligations, then as a consequence you
38562306a36Sopenharmony_ci    may not distribute the Library at all. For example, if a patent license
38662306a36Sopenharmony_ci    would not permit royalty-free redistribution of the Library by all
38762306a36Sopenharmony_ci    those who receive copies directly or indirectly through you, then the
38862306a36Sopenharmony_ci    only way you could satisfy both it and this License would be to refrain
38962306a36Sopenharmony_ci    entirely from distribution of the Library.
39062306a36Sopenharmony_ci
39162306a36Sopenharmony_ci    If any portion of this section is held invalid or unenforceable under
39262306a36Sopenharmony_ci    any particular circumstance, the balance of the section is intended to
39362306a36Sopenharmony_ci    apply, and the section as a whole is intended to apply in other
39462306a36Sopenharmony_ci    circumstances.
39562306a36Sopenharmony_ci
39662306a36Sopenharmony_ci    It is not the purpose of this section to induce you to infringe any
39762306a36Sopenharmony_ci    patents or other property right claims or to contest validity of any
39862306a36Sopenharmony_ci    such claims; this section has the sole purpose of protecting the
39962306a36Sopenharmony_ci    integrity of the free software distribution system which is implemented
40062306a36Sopenharmony_ci    by public license practices. Many people have made generous
40162306a36Sopenharmony_ci    contributions to the wide range of software distributed through that
40262306a36Sopenharmony_ci    system in reliance on consistent application of that system; it is up
40362306a36Sopenharmony_ci    to the author/donor to decide if he or she is willing to distribute
40462306a36Sopenharmony_ci    software through any other system and a licensee cannot impose that
40562306a36Sopenharmony_ci    choice.
40662306a36Sopenharmony_ci
40762306a36Sopenharmony_ci    This section is intended to make thoroughly clear what is believed to
40862306a36Sopenharmony_ci    be a consequence of the rest of this License.
40962306a36Sopenharmony_ci
41062306a36Sopenharmony_ci12. If the distribution and/or use of the Library is restricted in certain
41162306a36Sopenharmony_ci    countries either by patents or by copyrighted interfaces, the original
41262306a36Sopenharmony_ci    copyright holder who places the Library under this License may add an
41362306a36Sopenharmony_ci    explicit geographical distribution limitation excluding those
41462306a36Sopenharmony_ci    countries, so that distribution is permitted only in or among countries
41562306a36Sopenharmony_ci    not thus excluded. In such case, this License incorporates the
41662306a36Sopenharmony_ci    limitation as if written in the body of this License.
41762306a36Sopenharmony_ci
41862306a36Sopenharmony_ci13. The Free Software Foundation may publish revised and/or new versions of
41962306a36Sopenharmony_ci    the Lesser General Public License from time to time. Such new versions
42062306a36Sopenharmony_ci    will be similar in spirit to the present version, but may differ in
42162306a36Sopenharmony_ci    detail to address new problems or concerns.
42262306a36Sopenharmony_ci
42362306a36Sopenharmony_ci    Each version is given a distinguishing version number. If the Library
42462306a36Sopenharmony_ci    specifies a version number of this License which applies to it and "any
42562306a36Sopenharmony_ci    later version", you have the option of following the terms and
42662306a36Sopenharmony_ci    conditions either of that version or of any later version published by
42762306a36Sopenharmony_ci    the Free Software Foundation. If the Library does not specify a license
42862306a36Sopenharmony_ci    version number, you may choose any version ever published by the Free
42962306a36Sopenharmony_ci    Software Foundation.
43062306a36Sopenharmony_ci
43162306a36Sopenharmony_ci14. If you wish to incorporate parts of the Library into other free
43262306a36Sopenharmony_ci    programs whose distribution conditions are incompatible with these,
43362306a36Sopenharmony_ci    write to the author to ask for permission. For software which is
43462306a36Sopenharmony_ci    copyrighted by the Free Software Foundation, write to the Free Software
43562306a36Sopenharmony_ci    Foundation; we sometimes make exceptions for this. Our decision will be
43662306a36Sopenharmony_ci    guided by the two goals of preserving the free status of all
43762306a36Sopenharmony_ci    derivatives of our free software and of promoting the sharing and reuse
43862306a36Sopenharmony_ci    of software generally.
43962306a36Sopenharmony_ci
44062306a36Sopenharmony_ciNO WARRANTY
44162306a36Sopenharmony_ci
44262306a36Sopenharmony_ci15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
44362306a36Sopenharmony_ci    FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
44462306a36Sopenharmony_ci    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
44562306a36Sopenharmony_ci    PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
44662306a36Sopenharmony_ci    EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44762306a36Sopenharmony_ci    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
44862306a36Sopenharmony_ci    ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
44962306a36Sopenharmony_ci    YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
45062306a36Sopenharmony_ci    NECESSARY SERVICING, REPAIR OR CORRECTION.
45162306a36Sopenharmony_ci
45262306a36Sopenharmony_ci16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
45362306a36Sopenharmony_ci    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
45462306a36Sopenharmony_ci    REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
45562306a36Sopenharmony_ci    DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
45662306a36Sopenharmony_ci    DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
45762306a36Sopenharmony_ci    (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
45862306a36Sopenharmony_ci    INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
45962306a36Sopenharmony_ci    THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
46062306a36Sopenharmony_ci    OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
46162306a36Sopenharmony_ci
46262306a36Sopenharmony_ciEND OF TERMS AND CONDITIONS
46362306a36Sopenharmony_ci
46462306a36Sopenharmony_ciHow to Apply These Terms to Your New Libraries
46562306a36Sopenharmony_ci
46662306a36Sopenharmony_ciIf you develop a new library, and you want it to be of the greatest
46762306a36Sopenharmony_cipossible use to the public, we recommend making it free software that
46862306a36Sopenharmony_cieveryone can redistribute and change. You can do so by permitting
46962306a36Sopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the
47062306a36Sopenharmony_ciordinary General Public License).
47162306a36Sopenharmony_ci
47262306a36Sopenharmony_ciTo apply these terms, attach the following notices to the library. It is
47362306a36Sopenharmony_cisafest to attach them to the start of each source file to most effectively
47462306a36Sopenharmony_ciconvey the exclusion of warranty; and each file should have at least the
47562306a36Sopenharmony_ci"copyright" line and a pointer to where the full notice is found.
47662306a36Sopenharmony_ci
47762306a36Sopenharmony_cione line to give the library's name and an idea of what it does.
47862306a36Sopenharmony_ciCopyright (C) year name of author
47962306a36Sopenharmony_ci
48062306a36Sopenharmony_ciThis library is free software; you can redistribute it and/or modify it
48162306a36Sopenharmony_ciunder the terms of the GNU Lesser General Public License as published by
48262306a36Sopenharmony_cithe Free Software Foundation; either version 2.1 of the License, or (at
48362306a36Sopenharmony_ciyour option) any later version.
48462306a36Sopenharmony_ci
48562306a36Sopenharmony_ciThis library is distributed in the hope that it will be useful, but WITHOUT
48662306a36Sopenharmony_ciANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
48762306a36Sopenharmony_ciFITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
48862306a36Sopenharmony_cifor more details.
48962306a36Sopenharmony_ci
49062306a36Sopenharmony_ciYou should have received a copy of the GNU Lesser General Public License
49162306a36Sopenharmony_cialong with this library; if not, write to the Free Software Foundation,
49262306a36Sopenharmony_ciInc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add
49362306a36Sopenharmony_ciinformation on how to contact you by electronic and paper mail.
49462306a36Sopenharmony_ci
49562306a36Sopenharmony_ciYou should also get your employer (if you work as a programmer) or your
49662306a36Sopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if
49762306a36Sopenharmony_cinecessary. Here is a sample; alter the names:
49862306a36Sopenharmony_ci
49962306a36Sopenharmony_ciYoyodyne, Inc., hereby disclaims all copyright interest in
50062306a36Sopenharmony_cithe library `Frob' (a library for tweaking knobs) written
50162306a36Sopenharmony_ciby James Random Hacker.
50262306a36Sopenharmony_ci
50362306a36Sopenharmony_cisignature of Ty Coon, 1 April 1990
50462306a36Sopenharmony_ciTy Coon, President of Vice
50562306a36Sopenharmony_ciThat's all there is to it!
506