xref: /netbsd-src/external/gpl2/dtc/dist/GPL (revision cc7d2833ecf67da5a5ddc470841931eb9f6723e4)
1b8ae3907Smacallan                    GNU GENERAL PUBLIC LICENSE
2b8ae3907Smacallan                       Version 2, June 1991
3b8ae3907Smacallan
4*cc7d2833Sskrll Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5*cc7d2833Sskrll 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6b8ae3907Smacallan Everyone is permitted to copy and distribute verbatim copies
7b8ae3907Smacallan of this license document, but changing it is not allowed.
8b8ae3907Smacallan
9b8ae3907Smacallan                            Preamble
10b8ae3907Smacallan
11b8ae3907Smacallan  The licenses for most software are designed to take away your
12b8ae3907Smacallanfreedom to share and change it.  By contrast, the GNU General Public
13b8ae3907SmacallanLicense is intended to guarantee your freedom to share and change free
14b8ae3907Smacallansoftware--to make sure the software is free for all its users.  This
15b8ae3907SmacallanGeneral Public License applies to most of the Free Software
16b8ae3907SmacallanFoundation's software and to any other program whose authors commit to
17b8ae3907Smacallanusing it.  (Some other Free Software Foundation software is covered by
18*cc7d2833Sskrllthe GNU Lesser General Public License instead.)  You can apply it to
19b8ae3907Smacallanyour programs, too.
20b8ae3907Smacallan
21b8ae3907Smacallan  When we speak of free software, we are referring to freedom, not
22b8ae3907Smacallanprice.  Our General Public Licenses are designed to make sure that you
23b8ae3907Smacallanhave the freedom to distribute copies of free software (and charge for
24b8ae3907Smacallanthis service if you wish), that you receive source code or can get it
25b8ae3907Smacallanif you want it, that you can change the software or use pieces of it
26b8ae3907Smacallanin new free programs; and that you know you can do these things.
27b8ae3907Smacallan
28b8ae3907Smacallan  To protect your rights, we need to make restrictions that forbid
29b8ae3907Smacallananyone to deny you these rights or to ask you to surrender the rights.
30b8ae3907SmacallanThese restrictions translate to certain responsibilities for you if you
31b8ae3907Smacallandistribute copies of the software, or if you modify it.
32b8ae3907Smacallan
33b8ae3907Smacallan  For example, if you distribute copies of such a program, whether
34b8ae3907Smacallangratis or for a fee, you must give the recipients all the rights that
35b8ae3907Smacallanyou have.  You must make sure that they, too, receive or can get the
36b8ae3907Smacallansource code.  And you must show them these terms so they know their
37b8ae3907Smacallanrights.
38b8ae3907Smacallan
39b8ae3907Smacallan  We protect your rights with two steps: (1) copyright the software, and
40b8ae3907Smacallan(2) offer you this license which gives you legal permission to copy,
41b8ae3907Smacallandistribute and/or modify the software.
42b8ae3907Smacallan
43b8ae3907Smacallan  Also, for each author's protection and ours, we want to make certain
44b8ae3907Smacallanthat everyone understands that there is no warranty for this free
45b8ae3907Smacallansoftware.  If the software is modified by someone else and passed on, we
46b8ae3907Smacallanwant its recipients to know that what they have is not the original, so
47b8ae3907Smacallanthat any problems introduced by others will not reflect on the original
48b8ae3907Smacallanauthors' reputations.
49b8ae3907Smacallan
50b8ae3907Smacallan  Finally, any free program is threatened constantly by software
51b8ae3907Smacallanpatents.  We wish to avoid the danger that redistributors of a free
52b8ae3907Smacallanprogram will individually obtain patent licenses, in effect making the
53b8ae3907Smacallanprogram proprietary.  To prevent this, we have made it clear that any
54b8ae3907Smacallanpatent must be licensed for everyone's free use or not licensed at all.
55b8ae3907Smacallan
56b8ae3907Smacallan  The precise terms and conditions for copying, distribution and
57b8ae3907Smacallanmodification follow.
58*cc7d2833Sskrll
59b8ae3907Smacallan                    GNU GENERAL PUBLIC LICENSE
60b8ae3907Smacallan   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61b8ae3907Smacallan
62b8ae3907Smacallan  0. This License applies to any program or other work which contains
63b8ae3907Smacallana notice placed by the copyright holder saying it may be distributed
64b8ae3907Smacallanunder the terms of this General Public License.  The "Program", below,
65b8ae3907Smacallanrefers to any such program or work, and a "work based on the Program"
66b8ae3907Smacallanmeans either the Program or any derivative work under copyright law:
67b8ae3907Smacallanthat is to say, a work containing the Program or a portion of it,
68b8ae3907Smacallaneither verbatim or with modifications and/or translated into another
69b8ae3907Smacallanlanguage.  (Hereinafter, translation is included without limitation in
70b8ae3907Smacallanthe term "modification".)  Each licensee is addressed as "you".
71b8ae3907Smacallan
72b8ae3907SmacallanActivities other than copying, distribution and modification are not
73b8ae3907Smacallancovered by this License; they are outside its scope.  The act of
74b8ae3907Smacallanrunning the Program is not restricted, and the output from the Program
75b8ae3907Smacallanis covered only if its contents constitute a work based on the
76b8ae3907SmacallanProgram (independent of having been made by running the Program).
77b8ae3907SmacallanWhether that is true depends on what the Program does.
78b8ae3907Smacallan
79b8ae3907Smacallan  1. You may copy and distribute verbatim copies of the Program's
80b8ae3907Smacallansource code as you receive it, in any medium, provided that you
81b8ae3907Smacallanconspicuously and appropriately publish on each copy an appropriate
82b8ae3907Smacallancopyright notice and disclaimer of warranty; keep intact all the
83b8ae3907Smacallannotices that refer to this License and to the absence of any warranty;
84b8ae3907Smacallanand give any other recipients of the Program a copy of this License
85b8ae3907Smacallanalong with the Program.
86b8ae3907Smacallan
87b8ae3907SmacallanYou may charge a fee for the physical act of transferring a copy, and
88b8ae3907Smacallanyou may at your option offer warranty protection in exchange for a fee.
89b8ae3907Smacallan
90b8ae3907Smacallan  2. You may modify your copy or copies of the Program or any portion
91b8ae3907Smacallanof it, thus forming a work based on the Program, and copy and
92b8ae3907Smacallandistribute such modifications or work under the terms of Section 1
93b8ae3907Smacallanabove, provided that you also meet all of these conditions:
94b8ae3907Smacallan
95b8ae3907Smacallan    a) You must cause the modified files to carry prominent notices
96b8ae3907Smacallan    stating that you changed the files and the date of any change.
97b8ae3907Smacallan
98b8ae3907Smacallan    b) You must cause any work that you distribute or publish, that in
99b8ae3907Smacallan    whole or in part contains or is derived from the Program or any
100b8ae3907Smacallan    part thereof, to be licensed as a whole at no charge to all third
101b8ae3907Smacallan    parties under the terms of this License.
102b8ae3907Smacallan
103b8ae3907Smacallan    c) If the modified program normally reads commands interactively
104b8ae3907Smacallan    when run, you must cause it, when started running for such
105b8ae3907Smacallan    interactive use in the most ordinary way, to print or display an
106b8ae3907Smacallan    announcement including an appropriate copyright notice and a
107b8ae3907Smacallan    notice that there is no warranty (or else, saying that you provide
108b8ae3907Smacallan    a warranty) and that users may redistribute the program under
109b8ae3907Smacallan    these conditions, and telling the user how to view a copy of this
110b8ae3907Smacallan    License.  (Exception: if the Program itself is interactive but
111b8ae3907Smacallan    does not normally print such an announcement, your work based on
112b8ae3907Smacallan    the Program is not required to print an announcement.)
113*cc7d2833Sskrll
114b8ae3907SmacallanThese requirements apply to the modified work as a whole.  If
115b8ae3907Smacallanidentifiable sections of that work are not derived from the Program,
116b8ae3907Smacallanand can be reasonably considered independent and separate works in
117b8ae3907Smacallanthemselves, then this License, and its terms, do not apply to those
118b8ae3907Smacallansections when you distribute them as separate works.  But when you
119b8ae3907Smacallandistribute the same sections as part of a whole which is a work based
120b8ae3907Smacallanon the Program, the distribution of the whole must be on the terms of
121b8ae3907Smacallanthis License, whose permissions for other licensees extend to the
122b8ae3907Smacallanentire whole, and thus to each and every part regardless of who wrote it.
123b8ae3907Smacallan
124b8ae3907SmacallanThus, it is not the intent of this section to claim rights or contest
125b8ae3907Smacallanyour rights to work written entirely by you; rather, the intent is to
126b8ae3907Smacallanexercise the right to control the distribution of derivative or
127b8ae3907Smacallancollective works based on the Program.
128b8ae3907Smacallan
129b8ae3907SmacallanIn addition, mere aggregation of another work not based on the Program
130b8ae3907Smacallanwith the Program (or with a work based on the Program) on a volume of
131b8ae3907Smacallana storage or distribution medium does not bring the other work under
132b8ae3907Smacallanthe scope of this License.
133b8ae3907Smacallan
134b8ae3907Smacallan  3. You may copy and distribute the Program (or a work based on it,
135b8ae3907Smacallanunder Section 2) in object code or executable form under the terms of
136b8ae3907SmacallanSections 1 and 2 above provided that you also do one of the following:
137b8ae3907Smacallan
138b8ae3907Smacallan    a) Accompany it with the complete corresponding machine-readable
139b8ae3907Smacallan    source code, which must be distributed under the terms of Sections
140b8ae3907Smacallan    1 and 2 above on a medium customarily used for software interchange; or,
141b8ae3907Smacallan
142b8ae3907Smacallan    b) Accompany it with a written offer, valid for at least three
143b8ae3907Smacallan    years, to give any third party, for a charge no more than your
144b8ae3907Smacallan    cost of physically performing source distribution, a complete
145b8ae3907Smacallan    machine-readable copy of the corresponding source code, to be
146b8ae3907Smacallan    distributed under the terms of Sections 1 and 2 above on a medium
147b8ae3907Smacallan    customarily used for software interchange; or,
148b8ae3907Smacallan
149b8ae3907Smacallan    c) Accompany it with the information you received as to the offer
150b8ae3907Smacallan    to distribute corresponding source code.  (This alternative is
151b8ae3907Smacallan    allowed only for noncommercial distribution and only if you
152b8ae3907Smacallan    received the program in object code or executable form with such
153b8ae3907Smacallan    an offer, in accord with Subsection b above.)
154b8ae3907Smacallan
155b8ae3907SmacallanThe source code for a work means the preferred form of the work for
156b8ae3907Smacallanmaking modifications to it.  For an executable work, complete source
157b8ae3907Smacallancode means all the source code for all modules it contains, plus any
158b8ae3907Smacallanassociated interface definition files, plus the scripts used to
159b8ae3907Smacallancontrol compilation and installation of the executable.  However, as a
160b8ae3907Smacallanspecial exception, the source code distributed need not include
161b8ae3907Smacallananything that is normally distributed (in either source or binary
162b8ae3907Smacallanform) with the major components (compiler, kernel, and so on) of the
163b8ae3907Smacallanoperating system on which the executable runs, unless that component
164b8ae3907Smacallanitself accompanies the executable.
165b8ae3907Smacallan
166b8ae3907SmacallanIf distribution of executable or object code is made by offering
167b8ae3907Smacallanaccess to copy from a designated place, then offering equivalent
168b8ae3907Smacallanaccess to copy the source code from the same place counts as
169b8ae3907Smacallandistribution of the source code, even though third parties are not
170b8ae3907Smacallancompelled to copy the source along with the object code.
171*cc7d2833Sskrll
172b8ae3907Smacallan  4. You may not copy, modify, sublicense, or distribute the Program
173b8ae3907Smacallanexcept as expressly provided under this License.  Any attempt
174b8ae3907Smacallanotherwise to copy, modify, sublicense or distribute the Program is
175b8ae3907Smacallanvoid, and will automatically terminate your rights under this License.
176b8ae3907SmacallanHowever, parties who have received copies, or rights, from you under
177b8ae3907Smacallanthis License will not have their licenses terminated so long as such
178b8ae3907Smacallanparties remain in full compliance.
179b8ae3907Smacallan
180b8ae3907Smacallan  5. You are not required to accept this License, since you have not
181b8ae3907Smacallansigned it.  However, nothing else grants you permission to modify or
182b8ae3907Smacallandistribute the Program or its derivative works.  These actions are
183b8ae3907Smacallanprohibited by law if you do not accept this License.  Therefore, by
184b8ae3907Smacallanmodifying or distributing the Program (or any work based on the
185b8ae3907SmacallanProgram), you indicate your acceptance of this License to do so, and
186b8ae3907Smacallanall its terms and conditions for copying, distributing or modifying
187b8ae3907Smacallanthe Program or works based on it.
188b8ae3907Smacallan
189b8ae3907Smacallan  6. Each time you redistribute the Program (or any work based on the
190b8ae3907SmacallanProgram), the recipient automatically receives a license from the
191b8ae3907Smacallanoriginal licensor to copy, distribute or modify the Program subject to
192b8ae3907Smacallanthese terms and conditions.  You may not impose any further
193b8ae3907Smacallanrestrictions on the recipients' exercise of the rights granted herein.
194b8ae3907SmacallanYou are not responsible for enforcing compliance by third parties to
195b8ae3907Smacallanthis License.
196b8ae3907Smacallan
197b8ae3907Smacallan  7. If, as a consequence of a court judgment or allegation of patent
198b8ae3907Smacallaninfringement or for any other reason (not limited to patent issues),
199b8ae3907Smacallanconditions are imposed on you (whether by court order, agreement or
200b8ae3907Smacallanotherwise) that contradict the conditions of this License, they do not
201b8ae3907Smacallanexcuse you from the conditions of this License.  If you cannot
202b8ae3907Smacallandistribute so as to satisfy simultaneously your obligations under this
203b8ae3907SmacallanLicense and any other pertinent obligations, then as a consequence you
204b8ae3907Smacallanmay not distribute the Program at all.  For example, if a patent
205b8ae3907Smacallanlicense would not permit royalty-free redistribution of the Program by
206b8ae3907Smacallanall those who receive copies directly or indirectly through you, then
207b8ae3907Smacallanthe only way you could satisfy both it and this License would be to
208b8ae3907Smacallanrefrain entirely from distribution of the Program.
209b8ae3907Smacallan
210b8ae3907SmacallanIf any portion of this section is held invalid or unenforceable under
211b8ae3907Smacallanany particular circumstance, the balance of the section is intended to
212b8ae3907Smacallanapply and the section as a whole is intended to apply in other
213b8ae3907Smacallancircumstances.
214b8ae3907Smacallan
215b8ae3907SmacallanIt is not the purpose of this section to induce you to infringe any
216b8ae3907Smacallanpatents or other property right claims or to contest validity of any
217b8ae3907Smacallansuch claims; this section has the sole purpose of protecting the
218b8ae3907Smacallanintegrity of the free software distribution system, which is
219b8ae3907Smacallanimplemented by public license practices.  Many people have made
220b8ae3907Smacallangenerous contributions to the wide range of software distributed
221b8ae3907Smacallanthrough that system in reliance on consistent application of that
222b8ae3907Smacallansystem; it is up to the author/donor to decide if he or she is willing
223b8ae3907Smacallanto distribute software through any other system and a licensee cannot
224b8ae3907Smacallanimpose that choice.
225b8ae3907Smacallan
226b8ae3907SmacallanThis section is intended to make thoroughly clear what is believed to
227b8ae3907Smacallanbe a consequence of the rest of this License.
228*cc7d2833Sskrll
229b8ae3907Smacallan  8. If the distribution and/or use of the Program is restricted in
230b8ae3907Smacallancertain countries either by patents or by copyrighted interfaces, the
231b8ae3907Smacallanoriginal copyright holder who places the Program under this License
232b8ae3907Smacallanmay add an explicit geographical distribution limitation excluding
233b8ae3907Smacallanthose countries, so that distribution is permitted only in or among
234b8ae3907Smacallancountries not thus excluded.  In such case, this License incorporates
235b8ae3907Smacallanthe limitation as if written in the body of this License.
236b8ae3907Smacallan
237b8ae3907Smacallan  9. The Free Software Foundation may publish revised and/or new versions
238b8ae3907Smacallanof the General Public License from time to time.  Such new versions will
239b8ae3907Smacallanbe similar in spirit to the present version, but may differ in detail to
240b8ae3907Smacallanaddress new problems or concerns.
241b8ae3907Smacallan
242b8ae3907SmacallanEach version is given a distinguishing version number.  If the Program
243b8ae3907Smacallanspecifies a version number of this License which applies to it and "any
244b8ae3907Smacallanlater version", you have the option of following the terms and conditions
245b8ae3907Smacallaneither of that version or of any later version published by the Free
246b8ae3907SmacallanSoftware Foundation.  If the Program does not specify a version number of
247b8ae3907Smacallanthis License, you may choose any version ever published by the Free Software
248b8ae3907SmacallanFoundation.
249b8ae3907Smacallan
250b8ae3907Smacallan  10. If you wish to incorporate parts of the Program into other free
251b8ae3907Smacallanprograms whose distribution conditions are different, write to the author
252b8ae3907Smacallanto ask for permission.  For software which is copyrighted by the Free
253b8ae3907SmacallanSoftware Foundation, write to the Free Software Foundation; we sometimes
254b8ae3907Smacallanmake exceptions for this.  Our decision will be guided by the two goals
255b8ae3907Smacallanof preserving the free status of all derivatives of our free software and
256b8ae3907Smacallanof promoting the sharing and reuse of software generally.
257b8ae3907Smacallan
258b8ae3907Smacallan                            NO WARRANTY
259b8ae3907Smacallan
260b8ae3907Smacallan  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261b8ae3907SmacallanFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262b8ae3907SmacallanOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263b8ae3907SmacallanPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264b8ae3907SmacallanOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265b8ae3907SmacallanMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266b8ae3907SmacallanTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267b8ae3907SmacallanPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268b8ae3907SmacallanREPAIR OR CORRECTION.
269b8ae3907Smacallan
270b8ae3907Smacallan  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271b8ae3907SmacallanWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272b8ae3907SmacallanREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273b8ae3907SmacallanINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274b8ae3907SmacallanOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275b8ae3907SmacallanTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276b8ae3907SmacallanYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277b8ae3907SmacallanPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278b8ae3907SmacallanPOSSIBILITY OF SUCH DAMAGES.
279b8ae3907Smacallan
280b8ae3907Smacallan                     END OF TERMS AND CONDITIONS
281*cc7d2833Sskrll
282b8ae3907Smacallan            How to Apply These Terms to Your New Programs
283b8ae3907Smacallan
284b8ae3907Smacallan  If you develop a new program, and you want it to be of the greatest
285b8ae3907Smacallanpossible use to the public, the best way to achieve this is to make it
286b8ae3907Smacallanfree software which everyone can redistribute and change under these terms.
287b8ae3907Smacallan
288b8ae3907Smacallan  To do so, attach the following notices to the program.  It is safest
289b8ae3907Smacallanto attach them to the start of each source file to most effectively
290b8ae3907Smacallanconvey the exclusion of warranty; and each file should have at least
291b8ae3907Smacallanthe "copyright" line and a pointer to where the full notice is found.
292b8ae3907Smacallan
293b8ae3907Smacallan    <one line to give the program's name and a brief idea of what it does.>
294b8ae3907Smacallan    Copyright (C) <year>  <name of author>
295b8ae3907Smacallan
296b8ae3907Smacallan    This program is free software; you can redistribute it and/or modify
297b8ae3907Smacallan    it under the terms of the GNU General Public License as published by
298b8ae3907Smacallan    the Free Software Foundation; either version 2 of the License, or
299b8ae3907Smacallan    (at your option) any later version.
300b8ae3907Smacallan
301b8ae3907Smacallan    This program is distributed in the hope that it will be useful,
302b8ae3907Smacallan    but WITHOUT ANY WARRANTY; without even the implied warranty of
303b8ae3907Smacallan    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304b8ae3907Smacallan    GNU General Public License for more details.
305b8ae3907Smacallan
306*cc7d2833Sskrll    You should have received a copy of the GNU General Public License along
307*cc7d2833Sskrll    with this program; if not, write to the Free Software Foundation, Inc.,
308*cc7d2833Sskrll    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309b8ae3907Smacallan
310b8ae3907SmacallanAlso add information on how to contact you by electronic and paper mail.
311b8ae3907Smacallan
312b8ae3907SmacallanIf the program is interactive, make it output a short notice like this
313b8ae3907Smacallanwhen it starts in an interactive mode:
314b8ae3907Smacallan
315b8ae3907Smacallan    Gnomovision version 69, Copyright (C) year name of author
316b8ae3907Smacallan    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317b8ae3907Smacallan    This is free software, and you are welcome to redistribute it
318b8ae3907Smacallan    under certain conditions; type `show c' for details.
319b8ae3907Smacallan
320b8ae3907SmacallanThe hypothetical commands `show w' and `show c' should show the appropriate
321b8ae3907Smacallanparts of the General Public License.  Of course, the commands you use may
322b8ae3907Smacallanbe called something other than `show w' and `show c'; they could even be
323b8ae3907Smacallanmouse-clicks or menu items--whatever suits your program.
324b8ae3907Smacallan
325b8ae3907SmacallanYou should also get your employer (if you work as a programmer) or your
326b8ae3907Smacallanschool, if any, to sign a "copyright disclaimer" for the program, if
327b8ae3907Smacallannecessary.  Here is a sample; alter the names:
328b8ae3907Smacallan
329b8ae3907Smacallan  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330b8ae3907Smacallan  `Gnomovision' (which makes passes at compilers) written by James Hacker.
331b8ae3907Smacallan
332b8ae3907Smacallan  <signature of Ty Coon>, 1 April 1989
333b8ae3907Smacallan  Ty Coon, President of Vice
334b8ae3907Smacallan
335b8ae3907SmacallanThis General Public License does not permit incorporating your program into
336b8ae3907Smacallanproprietary programs.  If your program is a subroutine library, you may
337b8ae3907Smacallanconsider it more useful to permit linking proprietary applications with the
338*cc7d2833Sskrlllibrary.  If this is what you want to do, use the GNU Lesser General
339b8ae3907SmacallanPublic License instead of this License.
340