xref: /nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/COPYING (revision 104654410c56c573564690304ae786df310c91fc)
1*10465441SEvalZero		    GNU GENERAL PUBLIC LICENSE
2*10465441SEvalZero		       Version 2, June 1991
3*10465441SEvalZero
4*10465441SEvalZero Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5*10465441SEvalZero 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6*10465441SEvalZero Everyone is permitted to copy and distribute verbatim copies
7*10465441SEvalZero of this license document, but changing it is not allowed.
8*10465441SEvalZero
9*10465441SEvalZero			    Preamble
10*10465441SEvalZero
11*10465441SEvalZero  The licenses for most software are designed to take away your
12*10465441SEvalZerofreedom to share and change it.  By contrast, the GNU General Public
13*10465441SEvalZeroLicense is intended to guarantee your freedom to share and change free
14*10465441SEvalZerosoftware--to make sure the software is free for all its users.  This
15*10465441SEvalZeroGeneral Public License applies to most of the Free Software
16*10465441SEvalZeroFoundation's software and to any other program whose authors commit to
17*10465441SEvalZerousing it.  (Some other Free Software Foundation software is covered by
18*10465441SEvalZerothe GNU Lesser General Public License instead.)  You can apply it to
19*10465441SEvalZeroyour programs, too.
20*10465441SEvalZero
21*10465441SEvalZero  When we speak of free software, we are referring to freedom, not
22*10465441SEvalZeroprice.  Our General Public Licenses are designed to make sure that you
23*10465441SEvalZerohave the freedom to distribute copies of free software (and charge for
24*10465441SEvalZerothis service if you wish), that you receive source code or can get it
25*10465441SEvalZeroif you want it, that you can change the software or use pieces of it
26*10465441SEvalZeroin new free programs; and that you know you can do these things.
27*10465441SEvalZero
28*10465441SEvalZero  To protect your rights, we need to make restrictions that forbid
29*10465441SEvalZeroanyone to deny you these rights or to ask you to surrender the rights.
30*10465441SEvalZeroThese restrictions translate to certain responsibilities for you if you
31*10465441SEvalZerodistribute copies of the software, or if you modify it.
32*10465441SEvalZero
33*10465441SEvalZero  For example, if you distribute copies of such a program, whether
34*10465441SEvalZerogratis or for a fee, you must give the recipients all the rights that
35*10465441SEvalZeroyou have.  You must make sure that they, too, receive or can get the
36*10465441SEvalZerosource code.  And you must show them these terms so they know their
37*10465441SEvalZerorights.
38*10465441SEvalZero
39*10465441SEvalZero  We protect your rights with two steps: (1) copyright the software, and
40*10465441SEvalZero(2) offer you this license which gives you legal permission to copy,
41*10465441SEvalZerodistribute and/or modify the software.
42*10465441SEvalZero
43*10465441SEvalZero  Also, for each author's protection and ours, we want to make certain
44*10465441SEvalZerothat everyone understands that there is no warranty for this free
45*10465441SEvalZerosoftware.  If the software is modified by someone else and passed on, we
46*10465441SEvalZerowant its recipients to know that what they have is not the original, so
47*10465441SEvalZerothat any problems introduced by others will not reflect on the original
48*10465441SEvalZeroauthors' reputations.
49*10465441SEvalZero
50*10465441SEvalZero  Finally, any free program is threatened constantly by software
51*10465441SEvalZeropatents.  We wish to avoid the danger that redistributors of a free
52*10465441SEvalZeroprogram will individually obtain patent licenses, in effect making the
53*10465441SEvalZeroprogram proprietary.  To prevent this, we have made it clear that any
54*10465441SEvalZeropatent must be licensed for everyone's free use or not licensed at all.
55*10465441SEvalZero
56*10465441SEvalZero  The precise terms and conditions for copying, distribution and
57*10465441SEvalZeromodification follow.
58*10465441SEvalZero
59*10465441SEvalZero		    GNU GENERAL PUBLIC LICENSE
60*10465441SEvalZero   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61*10465441SEvalZero
62*10465441SEvalZero  0. This License applies to any program or other work which contains
63*10465441SEvalZeroa notice placed by the copyright holder saying it may be distributed
64*10465441SEvalZerounder the terms of this General Public License.  The "Program", below,
65*10465441SEvalZerorefers to any such program or work, and a "work based on the Program"
66*10465441SEvalZeromeans either the Program or any derivative work under copyright law:
67*10465441SEvalZerothat is to say, a work containing the Program or a portion of it,
68*10465441SEvalZeroeither verbatim or with modifications and/or translated into another
69*10465441SEvalZerolanguage.  (Hereinafter, translation is included without limitation in
70*10465441SEvalZerothe term "modification".)  Each licensee is addressed as "you".
71*10465441SEvalZero
72*10465441SEvalZeroActivities other than copying, distribution and modification are not
73*10465441SEvalZerocovered by this License; they are outside its scope.  The act of
74*10465441SEvalZerorunning the Program is not restricted, and the output from the Program
75*10465441SEvalZerois covered only if its contents constitute a work based on the
76*10465441SEvalZeroProgram (independent of having been made by running the Program).
77*10465441SEvalZeroWhether that is true depends on what the Program does.
78*10465441SEvalZero
79*10465441SEvalZero  1. You may copy and distribute verbatim copies of the Program's
80*10465441SEvalZerosource code as you receive it, in any medium, provided that you
81*10465441SEvalZeroconspicuously and appropriately publish on each copy an appropriate
82*10465441SEvalZerocopyright notice and disclaimer of warranty; keep intact all the
83*10465441SEvalZeronotices that refer to this License and to the absence of any warranty;
84*10465441SEvalZeroand give any other recipients of the Program a copy of this License
85*10465441SEvalZeroalong with the Program.
86*10465441SEvalZero
87*10465441SEvalZeroYou may charge a fee for the physical act of transferring a copy, and
88*10465441SEvalZeroyou may at your option offer warranty protection in exchange for a fee.
89*10465441SEvalZero
90*10465441SEvalZero  2. You may modify your copy or copies of the Program or any portion
91*10465441SEvalZeroof it, thus forming a work based on the Program, and copy and
92*10465441SEvalZerodistribute such modifications or work under the terms of Section 1
93*10465441SEvalZeroabove, provided that you also meet all of these conditions:
94*10465441SEvalZero
95*10465441SEvalZero    a) You must cause the modified files to carry prominent notices
96*10465441SEvalZero    stating that you changed the files and the date of any change.
97*10465441SEvalZero
98*10465441SEvalZero    b) You must cause any work that you distribute or publish, that in
99*10465441SEvalZero    whole or in part contains or is derived from the Program or any
100*10465441SEvalZero    part thereof, to be licensed as a whole at no charge to all third
101*10465441SEvalZero    parties under the terms of this License.
102*10465441SEvalZero
103*10465441SEvalZero    c) If the modified program normally reads commands interactively
104*10465441SEvalZero    when run, you must cause it, when started running for such
105*10465441SEvalZero    interactive use in the most ordinary way, to print or display an
106*10465441SEvalZero    announcement including an appropriate copyright notice and a
107*10465441SEvalZero    notice that there is no warranty (or else, saying that you provide
108*10465441SEvalZero    a warranty) and that users may redistribute the program under
109*10465441SEvalZero    these conditions, and telling the user how to view a copy of this
110*10465441SEvalZero    License.  (Exception: if the Program itself is interactive but
111*10465441SEvalZero    does not normally print such an announcement, your work based on
112*10465441SEvalZero    the Program is not required to print an announcement.)
113*10465441SEvalZero
114*10465441SEvalZeroThese requirements apply to the modified work as a whole.  If
115*10465441SEvalZeroidentifiable sections of that work are not derived from the Program,
116*10465441SEvalZeroand can be reasonably considered independent and separate works in
117*10465441SEvalZerothemselves, then this License, and its terms, do not apply to those
118*10465441SEvalZerosections when you distribute them as separate works.  But when you
119*10465441SEvalZerodistribute the same sections as part of a whole which is a work based
120*10465441SEvalZeroon the Program, the distribution of the whole must be on the terms of
121*10465441SEvalZerothis License, whose permissions for other licensees extend to the
122*10465441SEvalZeroentire whole, and thus to each and every part regardless of who wrote it.
123*10465441SEvalZero
124*10465441SEvalZeroThus, it is not the intent of this section to claim rights or contest
125*10465441SEvalZeroyour rights to work written entirely by you; rather, the intent is to
126*10465441SEvalZeroexercise the right to control the distribution of derivative or
127*10465441SEvalZerocollective works based on the Program.
128*10465441SEvalZero
129*10465441SEvalZeroIn addition, mere aggregation of another work not based on the Program
130*10465441SEvalZerowith the Program (or with a work based on the Program) on a volume of
131*10465441SEvalZeroa storage or distribution medium does not bring the other work under
132*10465441SEvalZerothe scope of this License.
133*10465441SEvalZero
134*10465441SEvalZero  3. You may copy and distribute the Program (or a work based on it,
135*10465441SEvalZerounder Section 2) in object code or executable form under the terms of
136*10465441SEvalZeroSections 1 and 2 above provided that you also do one of the following:
137*10465441SEvalZero
138*10465441SEvalZero    a) Accompany it with the complete corresponding machine-readable
139*10465441SEvalZero    source code, which must be distributed under the terms of Sections
140*10465441SEvalZero    1 and 2 above on a medium customarily used for software interchange; or,
141*10465441SEvalZero
142*10465441SEvalZero    b) Accompany it with a written offer, valid for at least three
143*10465441SEvalZero    years, to give any third party, for a charge no more than your
144*10465441SEvalZero    cost of physically performing source distribution, a complete
145*10465441SEvalZero    machine-readable copy of the corresponding source code, to be
146*10465441SEvalZero    distributed under the terms of Sections 1 and 2 above on a medium
147*10465441SEvalZero    customarily used for software interchange; or,
148*10465441SEvalZero
149*10465441SEvalZero    c) Accompany it with the information you received as to the offer
150*10465441SEvalZero    to distribute corresponding source code.  (This alternative is
151*10465441SEvalZero    allowed only for noncommercial distribution and only if you
152*10465441SEvalZero    received the program in object code or executable form with such
153*10465441SEvalZero    an offer, in accord with Subsection b above.)
154*10465441SEvalZero
155*10465441SEvalZeroThe source code for a work means the preferred form of the work for
156*10465441SEvalZeromaking modifications to it.  For an executable work, complete source
157*10465441SEvalZerocode means all the source code for all modules it contains, plus any
158*10465441SEvalZeroassociated interface definition files, plus the scripts used to
159*10465441SEvalZerocontrol compilation and installation of the executable.  However, as a
160*10465441SEvalZerospecial exception, the source code distributed need not include
161*10465441SEvalZeroanything that is normally distributed (in either source or binary
162*10465441SEvalZeroform) with the major components (compiler, kernel, and so on) of the
163*10465441SEvalZerooperating system on which the executable runs, unless that component
164*10465441SEvalZeroitself accompanies the executable.
165*10465441SEvalZero
166*10465441SEvalZeroIf distribution of executable or object code is made by offering
167*10465441SEvalZeroaccess to copy from a designated place, then offering equivalent
168*10465441SEvalZeroaccess to copy the source code from the same place counts as
169*10465441SEvalZerodistribution of the source code, even though third parties are not
170*10465441SEvalZerocompelled to copy the source along with the object code.
171*10465441SEvalZero
172*10465441SEvalZero  4. You may not copy, modify, sublicense, or distribute the Program
173*10465441SEvalZeroexcept as expressly provided under this License.  Any attempt
174*10465441SEvalZerootherwise to copy, modify, sublicense or distribute the Program is
175*10465441SEvalZerovoid, and will automatically terminate your rights under this License.
176*10465441SEvalZeroHowever, parties who have received copies, or rights, from you under
177*10465441SEvalZerothis License will not have their licenses terminated so long as such
178*10465441SEvalZeroparties remain in full compliance.
179*10465441SEvalZero
180*10465441SEvalZero  5. You are not required to accept this License, since you have not
181*10465441SEvalZerosigned it.  However, nothing else grants you permission to modify or
182*10465441SEvalZerodistribute the Program or its derivative works.  These actions are
183*10465441SEvalZeroprohibited by law if you do not accept this License.  Therefore, by
184*10465441SEvalZeromodifying or distributing the Program (or any work based on the
185*10465441SEvalZeroProgram), you indicate your acceptance of this License to do so, and
186*10465441SEvalZeroall its terms and conditions for copying, distributing or modifying
187*10465441SEvalZerothe Program or works based on it.
188*10465441SEvalZero
189*10465441SEvalZero  6. Each time you redistribute the Program (or any work based on the
190*10465441SEvalZeroProgram), the recipient automatically receives a license from the
191*10465441SEvalZerooriginal licensor to copy, distribute or modify the Program subject to
192*10465441SEvalZerothese terms and conditions.  You may not impose any further
193*10465441SEvalZerorestrictions on the recipients' exercise of the rights granted herein.
194*10465441SEvalZeroYou are not responsible for enforcing compliance by third parties to
195*10465441SEvalZerothis License.
196*10465441SEvalZero
197*10465441SEvalZero  7. If, as a consequence of a court judgment or allegation of patent
198*10465441SEvalZeroinfringement or for any other reason (not limited to patent issues),
199*10465441SEvalZeroconditions are imposed on you (whether by court order, agreement or
200*10465441SEvalZerootherwise) that contradict the conditions of this License, they do not
201*10465441SEvalZeroexcuse you from the conditions of this License.  If you cannot
202*10465441SEvalZerodistribute so as to satisfy simultaneously your obligations under this
203*10465441SEvalZeroLicense and any other pertinent obligations, then as a consequence you
204*10465441SEvalZeromay not distribute the Program at all.  For example, if a patent
205*10465441SEvalZerolicense would not permit royalty-free redistribution of the Program by
206*10465441SEvalZeroall those who receive copies directly or indirectly through you, then
207*10465441SEvalZerothe only way you could satisfy both it and this License would be to
208*10465441SEvalZerorefrain entirely from distribution of the Program.
209*10465441SEvalZero
210*10465441SEvalZeroIf any portion of this section is held invalid or unenforceable under
211*10465441SEvalZeroany particular circumstance, the balance of the section is intended to
212*10465441SEvalZeroapply and the section as a whole is intended to apply in other
213*10465441SEvalZerocircumstances.
214*10465441SEvalZero
215*10465441SEvalZeroIt is not the purpose of this section to induce you to infringe any
216*10465441SEvalZeropatents or other property right claims or to contest validity of any
217*10465441SEvalZerosuch claims; this section has the sole purpose of protecting the
218*10465441SEvalZerointegrity of the free software distribution system, which is
219*10465441SEvalZeroimplemented by public license practices.  Many people have made
220*10465441SEvalZerogenerous contributions to the wide range of software distributed
221*10465441SEvalZerothrough that system in reliance on consistent application of that
222*10465441SEvalZerosystem; it is up to the author/donor to decide if he or she is willing
223*10465441SEvalZeroto distribute software through any other system and a licensee cannot
224*10465441SEvalZeroimpose that choice.
225*10465441SEvalZero
226*10465441SEvalZeroThis section is intended to make thoroughly clear what is believed to
227*10465441SEvalZerobe a consequence of the rest of this License.
228*10465441SEvalZero
229*10465441SEvalZero  8. If the distribution and/or use of the Program is restricted in
230*10465441SEvalZerocertain countries either by patents or by copyrighted interfaces, the
231*10465441SEvalZerooriginal copyright holder who places the Program under this License
232*10465441SEvalZeromay add an explicit geographical distribution limitation excluding
233*10465441SEvalZerothose countries, so that distribution is permitted only in or among
234*10465441SEvalZerocountries not thus excluded.  In such case, this License incorporates
235*10465441SEvalZerothe limitation as if written in the body of this License.
236*10465441SEvalZero
237*10465441SEvalZero  9. The Free Software Foundation may publish revised and/or new versions
238*10465441SEvalZeroof the General Public License from time to time.  Such new versions will
239*10465441SEvalZerobe similar in spirit to the present version, but may differ in detail to
240*10465441SEvalZeroaddress new problems or concerns.
241*10465441SEvalZero
242*10465441SEvalZeroEach version is given a distinguishing version number.  If the Program
243*10465441SEvalZerospecifies a version number of this License which applies to it and "any
244*10465441SEvalZerolater version", you have the option of following the terms and conditions
245*10465441SEvalZeroeither of that version or of any later version published by the Free
246*10465441SEvalZeroSoftware Foundation.  If the Program does not specify a version number of
247*10465441SEvalZerothis License, you may choose any version ever published by the Free Software
248*10465441SEvalZeroFoundation.
249*10465441SEvalZero
250*10465441SEvalZero  10. If you wish to incorporate parts of the Program into other free
251*10465441SEvalZeroprograms whose distribution conditions are different, write to the author
252*10465441SEvalZeroto ask for permission.  For software which is copyrighted by the Free
253*10465441SEvalZeroSoftware Foundation, write to the Free Software Foundation; we sometimes
254*10465441SEvalZeromake exceptions for this.  Our decision will be guided by the two goals
255*10465441SEvalZeroof preserving the free status of all derivatives of our free software and
256*10465441SEvalZeroof promoting the sharing and reuse of software generally.
257*10465441SEvalZero
258*10465441SEvalZero			    NO WARRANTY
259*10465441SEvalZero
260*10465441SEvalZero  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261*10465441SEvalZeroFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262*10465441SEvalZeroOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263*10465441SEvalZeroPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264*10465441SEvalZeroOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265*10465441SEvalZeroMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266*10465441SEvalZeroTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267*10465441SEvalZeroPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268*10465441SEvalZeroREPAIR OR CORRECTION.
269*10465441SEvalZero
270*10465441SEvalZero  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271*10465441SEvalZeroWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272*10465441SEvalZeroREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273*10465441SEvalZeroINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274*10465441SEvalZeroOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275*10465441SEvalZeroTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276*10465441SEvalZeroYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277*10465441SEvalZeroPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278*10465441SEvalZeroPOSSIBILITY OF SUCH DAMAGES.
279*10465441SEvalZero
280*10465441SEvalZero		     END OF TERMS AND CONDITIONS
281*10465441SEvalZero
282*10465441SEvalZero	    How to Apply These Terms to Your New Programs
283*10465441SEvalZero
284*10465441SEvalZero  If you develop a new program, and you want it to be of the greatest
285*10465441SEvalZeropossible use to the public, the best way to achieve this is to make it
286*10465441SEvalZerofree software which everyone can redistribute and change under these terms.
287*10465441SEvalZero
288*10465441SEvalZero  To do so, attach the following notices to the program.  It is safest
289*10465441SEvalZeroto attach them to the start of each source file to most effectively
290*10465441SEvalZeroconvey the exclusion of warranty; and each file should have at least
291*10465441SEvalZerothe "copyright" line and a pointer to where the full notice is found.
292*10465441SEvalZero
293*10465441SEvalZero    <one line to give the program's name and a brief idea of what it does.>
294*10465441SEvalZero    Copyright (C) <year>  <name of author>
295*10465441SEvalZero
296*10465441SEvalZero    This program is free software; you can redistribute it and/or modify
297*10465441SEvalZero    it under the terms of the GNU General Public License as published by
298*10465441SEvalZero    the Free Software Foundation; either version 2 of the License, or
299*10465441SEvalZero    (at your option) any later version.
300*10465441SEvalZero
301*10465441SEvalZero    This program is distributed in the hope that it will be useful,
302*10465441SEvalZero    but WITHOUT ANY WARRANTY; without even the implied warranty of
303*10465441SEvalZero    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304*10465441SEvalZero    GNU General Public License for more details.
305*10465441SEvalZero
306*10465441SEvalZero    You should have received a copy of the GNU General Public License along
307*10465441SEvalZero    with this program; if not, write to the Free Software Foundation, Inc.,
308*10465441SEvalZero    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309*10465441SEvalZero
310*10465441SEvalZeroAlso add information on how to contact you by electronic and paper mail.
311*10465441SEvalZero
312*10465441SEvalZeroIf the program is interactive, make it output a short notice like this
313*10465441SEvalZerowhen it starts in an interactive mode:
314*10465441SEvalZero
315*10465441SEvalZero    Gnomovision version 69, Copyright (C) year name of author
316*10465441SEvalZero    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317*10465441SEvalZero    This is free software, and you are welcome to redistribute it
318*10465441SEvalZero    under certain conditions; type `show c' for details.
319*10465441SEvalZero
320*10465441SEvalZeroThe hypothetical commands `show w' and `show c' should show the appropriate
321*10465441SEvalZeroparts of the General Public License.  Of course, the commands you use may
322*10465441SEvalZerobe called something other than `show w' and `show c'; they could even be
323*10465441SEvalZeromouse-clicks or menu items--whatever suits your program.
324*10465441SEvalZero
325*10465441SEvalZeroYou should also get your employer (if you work as a programmer) or your
326*10465441SEvalZeroschool, if any, to sign a "copyright disclaimer" for the program, if
327*10465441SEvalZeronecessary.  Here is a sample; alter the names:
328*10465441SEvalZero
329*10465441SEvalZero  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330*10465441SEvalZero  `Gnomovision' (which makes passes at compilers) written by James Hacker.
331*10465441SEvalZero
332*10465441SEvalZero  <signature of Ty Coon>, 1 April 1989
333*10465441SEvalZero  Ty Coon, President of Vice
334*10465441SEvalZero
335*10465441SEvalZeroThis General Public License does not permit incorporating your program into
336*10465441SEvalZeroproprietary programs.  If your program is a subroutine library, you may
337*10465441SEvalZeroconsider it more useful to permit linking proprietary applications with the
338*10465441SEvalZerolibrary.  If this is what you want to do, use the GNU Lesser General
339*10465441SEvalZeroPublic License instead of this License.
340