blob: b1dcc02c6b3af5ee2682aa39291d533b5cf6a9d7 [file] [log] [blame]
Dan Albert2320eea2015-11-09 11:13:07 -08001 GNU GENERAL PUBLIC LICENSE
2 Version 2, June 1991
3
4 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
8
9 Preamble
10
11 The licenses for most software are designed to take away your
12freedom to share and change it. By contrast, the GNU General Public
13License is intended to guarantee your freedom to share and change free
14software--to make sure the software is free for all its users. This
15General Public License applies to most of the Free Software
16Foundation's software and to any other program whose authors commit to
17using it. (Some other Free Software Foundation software is covered by
18the GNU Library General Public License instead.) You can apply it to
19your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22price. Our General Public Licenses are designed to make sure that you
23have the freedom to distribute copies of free software (and charge for
24this service if you wish), that you receive source code or can get it
25if you want it, that you can change the software or use pieces of it
26in new free programs; and that you know you can do these things.
27
28 To protect your rights, we need to make restrictions that forbid
29anyone to deny you these rights or to ask you to surrender the rights.
30These restrictions translate to certain responsibilities for you if you
31distribute copies of the software, or if you modify it.
32
33 For example, if you distribute copies of such a program, whether
34gratis or for a fee, you must give the recipients all the rights that
35you have. You must make sure that they, too, receive or can get the
36source code. And you must show them these terms so they know their
37rights.
38
39 We protect your rights with two steps: (1) copyright the software, and
40(2) offer you this license which gives you legal permission to copy,
41distribute and/or modify the software.
42
43 Also, for each author's protection and ours, we want to make certain
44that everyone understands that there is no warranty for this free
45software. If the software is modified by someone else and passed on, we
46want its recipients to know that what they have is not the original, so
47that any problems introduced by others will not reflect on the original
48authors' reputations.
49
50 Finally, any free program is threatened constantly by software
51patents. We wish to avoid the danger that redistributors of a free
52program will individually obtain patent licenses, in effect making the
53program proprietary. To prevent this, we have made it clear that any
54patent must be licensed for everyone's free use or not licensed at all.
55
56 The precise terms and conditions for copying, distribution and
57modification follow.
58
59 GNU GENERAL PUBLIC LICENSE
60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
62 0. This License applies to any program or other work which contains
63a notice placed by the copyright holder saying it may be distributed
64under the terms of this General Public License. The "Program", below,
65refers to any such program or work, and a "work based on the Program"
66means either the Program or any derivative work under copyright law:
67that is to say, a work containing the Program or a portion of it,
68either verbatim or with modifications and/or translated into another
69language. (Hereinafter, translation is included without limitation in
70the term "modification".) Each licensee is addressed as "you".
71
72Activities other than copying, distribution and modification are not
73covered by this License; they are outside its scope. The act of
74running the Program is not restricted, and the output from the Program
75is covered only if its contents constitute a work based on the
76Program (independent of having been made by running the Program).
77Whether that is true depends on what the Program does.
78
79 1. You may copy and distribute verbatim copies of the Program's
80source code as you receive it, in any medium, provided that you
81conspicuously and appropriately publish on each copy an appropriate
82copyright notice and disclaimer of warranty; keep intact all the
83notices that refer to this License and to the absence of any warranty;
84and give any other recipients of the Program a copy of this License
85along with the Program.
86
87You may charge a fee for the physical act of transferring a copy, and
88you may at your option offer warranty protection in exchange for a fee.
89
90 2. You may modify your copy or copies of the Program or any portion
91of it, thus forming a work based on the Program, and copy and
92distribute such modifications or work under the terms of Section 1
93above, provided that you also meet all of these conditions:
94
95 a) You must cause the modified files to carry prominent notices
96 stating that you changed the files and the date of any change.
97
98 b) You must cause any work that you distribute or publish, that in
99 whole or in part contains or is derived from the Program or any
100 part thereof, to be licensed as a whole at no charge to all third
101 parties under the terms of this License.
102
103 c) If the modified program normally reads commands interactively
104 when run, you must cause it, when started running for such
105 interactive use in the most ordinary way, to print or display an
106 announcement including an appropriate copyright notice and a
107 notice that there is no warranty (or else, saying that you provide
108 a warranty) and that users may redistribute the program under
109 these conditions, and telling the user how to view a copy of this
110 License. (Exception: if the Program itself is interactive but
111 does not normally print such an announcement, your work based on
112 the Program is not required to print an announcement.)
113
114These requirements apply to the modified work as a whole. If
115identifiable sections of that work are not derived from the Program,
116and can be reasonably considered independent and separate works in
117themselves, then this License, and its terms, do not apply to those
118sections when you distribute them as separate works. But when you
119distribute the same sections as part of a whole which is a work based
120on the Program, the distribution of the whole must be on the terms of
121this License, whose permissions for other licensees extend to the
122entire whole, and thus to each and every part regardless of who wrote it.
123
124Thus, it is not the intent of this section to claim rights or contest
125your rights to work written entirely by you; rather, the intent is to
126exercise the right to control the distribution of derivative or
127collective works based on the Program.
128
129In addition, mere aggregation of another work not based on the Program
130with the Program (or with a work based on the Program) on a volume of
131a storage or distribution medium does not bring the other work under
132the scope of this License.
133
134 3. You may copy and distribute the Program (or a work based on it,
135under Section 2) in object code or executable form under the terms of
136Sections 1 and 2 above provided that you also do one of the following:
137
138 a) Accompany it with the complete corresponding machine-readable
139 source code, which must be distributed under the terms of Sections
140 1 and 2 above on a medium customarily used for software interchange; or,
141
142 b) Accompany it with a written offer, valid for at least three
143 years, to give any third party, for a charge no more than your
144 cost of physically performing source distribution, a complete
145 machine-readable copy of the corresponding source code, to be
146 distributed under the terms of Sections 1 and 2 above on a medium
147 customarily used for software interchange; or,
148
149 c) Accompany it with the information you received as to the offer
150 to distribute corresponding source code. (This alternative is
151 allowed only for noncommercial distribution and only if you
152 received the program in object code or executable form with such
153 an offer, in accord with Subsection b above.)
154
155The source code for a work means the preferred form of the work for
156making modifications to it. For an executable work, complete source
157code means all the source code for all modules it contains, plus any
158associated interface definition files, plus the scripts used to
159control compilation and installation of the executable. However, as a
160special exception, the source code distributed need not include
161anything that is normally distributed (in either source or binary
162form) with the major components (compiler, kernel, and so on) of the
163operating system on which the executable runs, unless that component
164itself accompanies the executable.
165
166If distribution of executable or object code is made by offering
167access to copy from a designated place, then offering equivalent
168access to copy the source code from the same place counts as
169distribution of the source code, even though third parties are not
170compelled to copy the source along with the object code.
171
172 4. You may not copy, modify, sublicense, or distribute the Program
173except as expressly provided under this License. Any attempt
174otherwise to copy, modify, sublicense or distribute the Program is
175void, and will automatically terminate your rights under this License.
176However, parties who have received copies, or rights, from you under
177this License will not have their licenses terminated so long as such
178parties remain in full compliance.
179
180 5. You are not required to accept this License, since you have not
181signed it. However, nothing else grants you permission to modify or
182distribute the Program or its derivative works. These actions are
183prohibited by law if you do not accept this License. Therefore, by
184modifying or distributing the Program (or any work based on the
185Program), you indicate your acceptance of this License to do so, and
186all its terms and conditions for copying, distributing or modifying
187the Program or works based on it.
188
189 6. Each time you redistribute the Program (or any work based on the
190Program), the recipient automatically receives a license from the
191original licensor to copy, distribute or modify the Program subject to
192these terms and conditions. You may not impose any further
193restrictions on the recipients' exercise of the rights granted herein.
194You are not responsible for enforcing compliance by third parties to
195this License.
196
197 7. If, as a consequence of a court judgment or allegation of patent
198infringement or for any other reason (not limited to patent issues),
199conditions are imposed on you (whether by court order, agreement or
200otherwise) that contradict the conditions of this License, they do not
201excuse you from the conditions of this License. If you cannot
202distribute so as to satisfy simultaneously your obligations under this
203License and any other pertinent obligations, then as a consequence you
204may not distribute the Program at all. For example, if a patent
205license would not permit royalty-free redistribution of the Program by
206all those who receive copies directly or indirectly through you, then
207the only way you could satisfy both it and this License would be to
208refrain entirely from distribution of the Program.
209
210If any portion of this section is held invalid or unenforceable under
211any particular circumstance, the balance of the section is intended to
212apply and the section as a whole is intended to apply in other
213circumstances.
214
215It is not the purpose of this section to induce you to infringe any
216patents or other property right claims or to contest validity of any
217such claims; this section has the sole purpose of protecting the
218integrity of the free software distribution system, which is
219implemented by public license practices. Many people have made
220generous contributions to the wide range of software distributed
221through that system in reliance on consistent application of that
222system; it is up to the author/donor to decide if he or she is willing
223to distribute software through any other system and a licensee cannot
224impose that choice.
225
226This section is intended to make thoroughly clear what is believed to
227be a consequence of the rest of this License.
228
229 8. If the distribution and/or use of the Program is restricted in
230certain countries either by patents or by copyrighted interfaces, the
231original copyright holder who places the Program under this License
232may add an explicit geographical distribution limitation excluding
233those countries, so that distribution is permitted only in or among
234countries not thus excluded. In such case, this License incorporates
235the limitation as if written in the body of this License.
236
237 9. The Free Software Foundation may publish revised and/or new versions
238of the General Public License from time to time. Such new versions will
239be similar in spirit to the present version, but may differ in detail to
240address new problems or concerns.
241
242Each version is given a distinguishing version number. If the Program
243specifies a version number of this License which applies to it and "any
244later version", you have the option of following the terms and conditions
245either of that version or of any later version published by the Free
246Software Foundation. If the Program does not specify a version number of
247this License, you may choose any version ever published by the Free Software
248Foundation.
249
250 10. If you wish to incorporate parts of the Program into other free
251programs whose distribution conditions are different, write to the author
252to ask for permission. For software which is copyrighted by the Free
253Software Foundation, write to the Free Software Foundation; we sometimes
254make exceptions for this. Our decision will be guided by the two goals
255of preserving the free status of all derivatives of our free software and
256of promoting the sharing and reuse of software generally.
257
258 NO WARRANTY
259
260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268REPAIR OR CORRECTION.
269
270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278POSSIBILITY OF SUCH DAMAGES.
279
280 END OF TERMS AND CONDITIONS
281
282 How to Apply These Terms to Your New Programs
283
284 If you develop a new program, and you want it to be of the greatest
285possible use to the public, the best way to achieve this is to make it
286free software which everyone can redistribute and change under these terms.
287
288 To do so, attach the following notices to the program. It is safest
289to attach them to the start of each source file to most effectively
290convey the exclusion of warranty; and each file should have at least
291the "copyright" line and a pointer to where the full notice is found.
292
293 <one line to give the program's name and a brief idea of what it does.>
294 Copyright (C) <year> <name of author>
295
296 This program is free software; you can redistribute it and/or modify
297 it under the terms of the GNU General Public License as published by
298 the Free Software Foundation; either version 2 of the License, or
299 (at your option) any later version.
300
301 This program is distributed in the hope that it will be useful,
302 but WITHOUT ANY WARRANTY; without even the implied warranty of
303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 GNU General Public License for more details.
305
306 You should have received a copy of the GNU General Public License
307 along with this program; if not, write to the Free Software
308 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
309
310
311Also add information on how to contact you by electronic and paper mail.
312
313If the program is interactive, make it output a short notice like this
314when it starts in an interactive mode:
315
316 Gnomovision version 69, Copyright (C) year name of author
317 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318 This is free software, and you are welcome to redistribute it
319 under certain conditions; type `show c' for details.
320
321The hypothetical commands `show w' and `show c' should show the appropriate
322parts of the General Public License. Of course, the commands you use may
323be called something other than `show w' and `show c'; they could even be
324mouse-clicks or menu items--whatever suits your program.
325
326You should also get your employer (if you work as a programmer) or your
327school, if any, to sign a "copyright disclaimer" for the program, if
328necessary. Here is a sample; alter the names:
329
330 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331 `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
333 <signature of Ty Coon>, 1 April 1989
334 Ty Coon, President of Vice
335
336This General Public License does not permit incorporating your program into
337proprietary programs. If your program is a subroutine library, you may
338consider it more useful to permit linking proprietary applications with the
339library. If this is what you want to do, use the GNU Library General
340Public License instead of this License.
Dan Albert58e07362015-11-11 13:53:59 -0800341
Josh Gaoc7b00462016-04-29 18:11:04 -0700342Copyright (C) Lucent Technologies 1997
343All Rights Reserved
344
345Permission to use, copy, modify, and distribute this software and
346its documentation for any purpose and without fee is hereby
347granted, provided that the above copyright notice appear in all
348copies and that both that the copyright notice and this
349permission notice and warranty disclaimer appear in supporting
350documentation, and that the name Lucent Technologies or any of
351its entities not be used in advertising or publicity pertaining
352to distribution of the software without specific, written prior
353permission.
354
355LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
356INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
357IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
358SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
359WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
360IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
361ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
362THIS SOFTWARE.
363
364Copyright (C) 2016 The Android Open Source Project
365
366Licensed under the Apache License, Version 2.0 (the "License");
367you may not use this file except in compliance with the License.
368You may obtain a copy of the License at
369
370 http://www.apache.org/licenses/LICENSE-2.0
371
372Unless required by applicable law or agreed to in writing, software
373distributed under the License is distributed on an "AS IS" BASIS,
374WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
375See the License for the specific language governing permissions and
376limitations under the License.
377
378 GNU GENERAL PUBLIC LICENSE
379 Version 2, June 1991
380
381 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
382 59 Temple Place - Suite 330, Boston, MA
383 02111-1307, USA.
384 Everyone is permitted to copy and distribute verbatim copies
385 of this license document, but changing it is not allowed.
386
387 Preamble
388
389 The licenses for most software are designed to take away your
390freedom to share and change it. By contrast, the GNU General Public
391License is intended to guarantee your freedom to share and change free
392software--to make sure the software is free for all its users. This
393General Public License applies to most of the Free Software
394Foundation's software and to any other program whose authors commit to
395using it. (Some other Free Software Foundation software is covered by
396the GNU Library General Public License instead.) You can apply it to
397your programs, too.
398
399 When we speak of free software, we are referring to freedom, not
400price. Our General Public Licenses are designed to make sure that you
401have the freedom to distribute copies of free software (and charge for
402this service if you wish), that you receive source code or can get it
403if you want it, that you can change the software or use pieces of it
404in new free programs; and that you know you can do these things.
405
406 To protect your rights, we need to make restrictions that forbid
407anyone to deny you these rights or to ask you to surrender the rights.
408These restrictions translate to certain responsibilities for you if you
409distribute copies of the software, or if you modify it.
410
411 For example, if you distribute copies of such a program, whether
412gratis or for a fee, you must give the recipients all the rights that
413you have. You must make sure that they, too, receive or can get the
414source code. And you must show them these terms so they know their
415rights.
416
417 We protect your rights with two steps: (1) copyright the software, and
418(2) offer you this license which gives you legal permission to copy,
419distribute and/or modify the software.
420
421 Also, for each author's protection and ours, we want to make certain
422that everyone understands that there is no warranty for this free
423software. If the software is modified by someone else and passed on, we
424want its recipients to know that what they have is not the original, so
425that any problems introduced by others will not reflect on the original
426authors' reputations.
427
428 Finally, any free program is threatened constantly by software
429patents. We wish to avoid the danger that redistributors of a free
430program will individually obtain patent licenses, in effect making the
431program proprietary. To prevent this, we have made it clear that any
432patent must be licensed for everyone's free use or not licensed at all.
433
434 The precise terms and conditions for copying, distribution and
435modification follow.
436
437 GNU GENERAL PUBLIC LICENSE
438 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
439
440 0. This License applies to any program or other work which contains
441a notice placed by the copyright holder saying it may be distributed
442under the terms of this General Public License. The "Program", below,
443refers to any such program or work, and a "work based on the Program"
444means either the Program or any derivative work under copyright law:
445that is to say, a work containing the Program or a portion of it,
446either verbatim or with modifications and/or translated into another
447language. (Hereinafter, translation is included without limitation in
448the term "modification".) Each licensee is addressed as "you".
449
450Activities other than copying, distribution and modification are not
451covered by this License; they are outside its scope. The act of
452running the Program is not restricted, and the output from the Program
453is covered only if its contents constitute a work based on the
454Program (independent of having been made by running the Program).
455Whether that is true depends on what the Program does.
456
457 1. You may copy and distribute verbatim copies of the Program's
458source code as you receive it, in any medium, provided that you
459conspicuously and appropriately publish on each copy an appropriate
460copyright notice and disclaimer of warranty; keep intact all the
461notices that refer to this License and to the absence of any warranty;
462and give any other recipients of the Program a copy of this License
463along with the Program.
464
465You may charge a fee for the physical act of transferring a copy, and
466you may at your option offer warranty protection in exchange for a fee.
467
468 2. You may modify your copy or copies of the Program or any portion
469of it, thus forming a work based on the Program, and copy and
470distribute such modifications or work under the terms of Section 1
471above, provided that you also meet all of these conditions:
472
473 a) You must cause the modified files to carry prominent notices
474 stating that you changed the files and the date of any change.
475
476 b) You must cause any work that you distribute or publish, that in
477 whole or in part contains or is derived from the Program or any
478 part thereof, to be licensed as a whole at no charge to all third
479 parties under the terms of this License.
480
481 c) If the modified program normally reads commands interactively
482 when run, you must cause it, when started running for such
483 interactive use in the most ordinary way, to print or display an
484 announcement including an appropriate copyright notice and a
485 notice that there is no warranty (or else, saying that you provide
486 a warranty) and that users may redistribute the program under
487 these conditions, and telling the user how to view a copy of this
488 License. (Exception: if the Program itself is interactive but
489 does not normally print such an announcement, your work based on
490 the Program is not required to print an announcement.)
491
492These requirements apply to the modified work as a whole. If
493identifiable sections of that work are not derived from the Program,
494and can be reasonably considered independent and separate works in
495themselves, then this License, and its terms, do not apply to those
496sections when you distribute them as separate works. But when you
497distribute the same sections as part of a whole which is a work based
498on the Program, the distribution of the whole must be on the terms of
499this License, whose permissions for other licensees extend to the
500entire whole, and thus to each and every part regardless of who wrote it.
501
502Thus, it is not the intent of this section to claim rights or contest
503your rights to work written entirely by you; rather, the intent is to
504exercise the right to control the distribution of derivative or
505collective works based on the Program.
506
507In addition, mere aggregation of another work not based on the Program
508with the Program (or with a work based on the Program) on a volume of
509a storage or distribution medium does not bring the other work under
510the scope of this License.
511
512 3. You may copy and distribute the Program (or a work based on it,
513under Section 2) in object code or executable form under the terms of
514Sections 1 and 2 above provided that you also do one of the following:
515
516 a) Accompany it with the complete corresponding machine-readable
517 source code, which must be distributed under the terms of Sections
518 1 and 2 above on a medium customarily used for software interchange; or,
519
520 b) Accompany it with a written offer, valid for at least three
521 years, to give any third party, for a charge no more than your
522 cost of physically performing source distribution, a complete
523 machine-readable copy of the corresponding source code, to be
524 distributed under the terms of Sections 1 and 2 above on a medium
525 customarily used for software interchange; or,
526
527 c) Accompany it with the information you received as to the offer
528 to distribute corresponding source code. (This alternative is
529 allowed only for noncommercial distribution and only if you
530 received the program in object code or executable form with such
531 an offer, in accord with Subsection b above.)
532
533The source code for a work means the preferred form of the work for
534making modifications to it. For an executable work, complete source
535code means all the source code for all modules it contains, plus any
536associated interface definition files, plus the scripts used to
537control compilation and installation of the executable. However, as a
538special exception, the source code distributed need not include
539anything that is normally distributed (in either source or binary
540form) with the major components (compiler, kernel, and so on) of the
541operating system on which the executable runs, unless that component
542itself accompanies the executable.
543
544If distribution of executable or object code is made by offering
545access to copy from a designated place, then offering equivalent
546access to copy the source code from the same place counts as
547distribution of the source code, even though third parties are not
548compelled to copy the source along with the object code.
549
550 4. You may not copy, modify, sublicense, or distribute the Program
551except as expressly provided under this License. Any attempt
552otherwise to copy, modify, sublicense or distribute the Program is
553void, and will automatically terminate your rights under this License.
554However, parties who have received copies, or rights, from you under
555this License will not have their licenses terminated so long as such
556parties remain in full compliance.
557
558 5. You are not required to accept this License, since you have not
559signed it. However, nothing else grants you permission to modify or
560distribute the Program or its derivative works. These actions are
561prohibited by law if you do not accept this License. Therefore, by
562modifying or distributing the Program (or any work based on the
563Program), you indicate your acceptance of this License to do so, and
564all its terms and conditions for copying, distributing or modifying
565the Program or works based on it.
566
567 6. Each time you redistribute the Program (or any work based on the
568Program), the recipient automatically receives a license from the
569original licensor to copy, distribute or modify the Program subject to
570these terms and conditions. You may not impose any further
571restrictions on the recipients' exercise of the rights granted herein.
572You are not responsible for enforcing compliance by third parties to
573this License.
574
575 7. If, as a consequence of a court judgment or allegation of patent
576infringement or for any other reason (not limited to patent issues),
577conditions are imposed on you (whether by court order, agreement or
578otherwise) that contradict the conditions of this License, they do not
579excuse you from the conditions of this License. If you cannot
580distribute so as to satisfy simultaneously your obligations under this
581License and any other pertinent obligations, then as a consequence you
582may not distribute the Program at all. For example, if a patent
583license would not permit royalty-free redistribution of the Program by
584all those who receive copies directly or indirectly through you, then
585the only way you could satisfy both it and this License would be to
586refrain entirely from distribution of the Program.
587
588If any portion of this section is held invalid or unenforceable under
589any particular circumstance, the balance of the section is intended to
590apply and the section as a whole is intended to apply in other
591circumstances.
592
593It is not the purpose of this section to induce you to infringe any
594patents or other property right claims or to contest validity of any
595such claims; this section has the sole purpose of protecting the
596integrity of the free software distribution system, which is
597implemented by public license practices. Many people have made
598generous contributions to the wide range of software distributed
599through that system in reliance on consistent application of that
600system; it is up to the author/donor to decide if he or she is willing
601to distribute software through any other system and a licensee cannot
602impose that choice.
603
604This section is intended to make thoroughly clear what is believed to
605be a consequence of the rest of this License.
606
607 8. If the distribution and/or use of the Program is restricted in
608certain countries either by patents or by copyrighted interfaces, the
609original copyright holder who places the Program under this License
610may add an explicit geographical distribution limitation excluding
611those countries, so that distribution is permitted only in or among
612countries not thus excluded. In such case, this License incorporates
613the limitation as if written in the body of this License.
614
615 9. The Free Software Foundation may publish revised and/or new versions
616of the General Public License from time to time. Such new versions will
617be similar in spirit to the present version, but may differ in detail to
618address new problems or concerns.
619
620Each version is given a distinguishing version number. If the Program
621specifies a version number of this License which applies to it and "any
622later version", you have the option of following the terms and conditions
623either of that version or of any later version published by the Free
624Software Foundation. If the Program does not specify a version number of
625this License, you may choose any version ever published by the Free Software
626Foundation.
627
628 10. If you wish to incorporate parts of the Program into other free
629programs whose distribution conditions are different, write to the author
630to ask for permission. For software which is copyrighted by the Free
631Software Foundation, write to the Free Software Foundation; we sometimes
632make exceptions for this. Our decision will be guided by the two goals
633of preserving the free status of all derivatives of our free software and
634of promoting the sharing and reuse of software generally.
635
636 NO WARRANTY
637
638 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
639FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
640OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
641PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
642OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
643MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
644TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
645PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
646REPAIR OR CORRECTION.
647
648 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
649WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
650REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
651INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
652OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
653TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
654YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
655PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
656POSSIBILITY OF SUCH DAMAGES.
657
658 END OF TERMS AND CONDITIONS
659
660 Appendix: How to Apply These Terms to Your New Programs
661
662 If you develop a new program, and you want it to be of the greatest
663possible use to the public, the best way to achieve this is to make it
664free software which everyone can redistribute and change under these terms.
665
666 To do so, attach the following notices to the program. It is safest
667to attach them to the start of each source file to most effectively
668convey the exclusion of warranty; and each file should have at least
669the "copyright" line and a pointer to where the full notice is found.
670
671 <one line to give the program's name and a brief idea of what it does.>
672 Copyright (C) 19yy <name of author>
673
674 This program is free software; you can redistribute it and/or modify
675 it under the terms of the GNU General Public License as published by
676 the Free Software Foundation; either version 2 of the License, or
677 (at your option) any later version.
678
679 This program is distributed in the hope that it will be useful,
680 but WITHOUT ANY WARRANTY; without even the implied warranty of
681 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
682 GNU General Public License for more details.
683
684 You should have received a copy of the GNU General Public License
685 along with this program; if not, write to the Free Software
686 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
687
688Also add information on how to contact you by electronic and paper mail.
689
690If the program is interactive, make it output a short notice like this
691when it starts in an interactive mode:
692
693 Gnomovision version 69, Copyright (C) 19yy name of author
694 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
695 This is free software, and you are welcome to redistribute it
696 under certain conditions; type `show c' for details.
697
698The hypothetical commands `show w' and `show c' should show the appropriate
699parts of the General Public License. Of course, the commands you use may
700be called something other than `show w' and `show c'; they could even be
701mouse-clicks or menu items--whatever suits your program.
702
703You should also get your employer (if you work as a programmer) or your
704school, if any, to sign a "copyright disclaimer" for the program, if
705necessary. Here is a sample; alter the names:
706
707 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
708 `Gnomovision' (which makes passes at compilers) written by James Hacker.
709
710 <signature of Ty Coon>, 1 April 1989
711 Ty Coon, President of Vice
712
713This General Public License does not permit incorporating your program into
714proprietary programs. If your program is a subroutine library, you may
715consider it more useful to permit linking proprietary applications with the
716library. If this is what you want to do, use the GNU Library General
717Public License instead of this License.
718
Dan Albert58e07362015-11-11 13:53:59 -0800719A. HISTORY OF THE SOFTWARE
720==========================
721
722Python was created in the early 1990s by Guido van Rossum at Stichting
723Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
724as a successor of a language called ABC. Guido remains Python's
725principal author, although it includes many contributions from others.
726
727In 1995, Guido continued his work on Python at the Corporation for
728National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
729in Reston, Virginia where he released several versions of the
730software.
731
732In May 2000, Guido and the Python core development team moved to
733BeOpen.com to form the BeOpen PythonLabs team. In October of the same
734year, the PythonLabs team moved to Digital Creations (now Zope
735Corporation, see http://www.zope.com). In 2001, the Python Software
736Foundation (PSF, see http://www.python.org/psf/) was formed, a
737non-profit organization created specifically to own Python-related
738Intellectual Property. Zope Corporation is a sponsoring member of
739the PSF.
740
741All Python releases are Open Source (see http://www.opensource.org for
742the Open Source Definition). Historically, most, but not all, Python
743releases have also been GPL-compatible; the table below summarizes
744the various releases.
745
746 Release Derived Year Owner GPL-
747 from compatible? (1)
748
749 0.9.0 thru 1.2 1991-1995 CWI yes
750 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
751 1.6 1.5.2 2000 CNRI no
752 2.0 1.6 2000 BeOpen.com no
753 1.6.1 1.6 2001 CNRI yes (2)
754 2.1 2.0+1.6.1 2001 PSF no
755 2.0.1 2.0+1.6.1 2001 PSF yes
756 2.1.1 2.1+2.0.1 2001 PSF yes
757 2.2 2.1.1 2001 PSF yes
758 2.1.2 2.1.1 2002 PSF yes
759 2.1.3 2.1.2 2002 PSF yes
760 2.2.1 2.2 2002 PSF yes
761 2.2.2 2.2.1 2002 PSF yes
762 2.2.3 2.2.2 2003 PSF yes
763 2.3 2.2.2 2002-2003 PSF yes
764 2.3.1 2.3 2002-2003 PSF yes
765 2.3.2 2.3.1 2002-2003 PSF yes
766 2.3.3 2.3.2 2002-2003 PSF yes
767 2.3.4 2.3.3 2004 PSF yes
768 2.3.5 2.3.4 2005 PSF yes
769 2.4 2.3 2004 PSF yes
770 2.4.1 2.4 2005 PSF yes
771 2.4.2 2.4.1 2005 PSF yes
772 2.4.3 2.4.2 2006 PSF yes
773 2.4.4 2.4.3 2006 PSF yes
774 2.5 2.4 2006 PSF yes
775 2.5.1 2.5 2007 PSF yes
776 2.5.2 2.5.1 2008 PSF yes
777 2.5.3 2.5.2 2008 PSF yes
778 2.6 2.5 2008 PSF yes
779 2.6.1 2.6 2008 PSF yes
780 2.6.2 2.6.1 2009 PSF yes
781 2.6.3 2.6.2 2009 PSF yes
782 2.6.4 2.6.3 2009 PSF yes
783 2.6.5 2.6.4 2010 PSF yes
784 2.7 2.6 2010 PSF yes
785
786Footnotes:
787
788(1) GPL-compatible doesn't mean that we're distributing Python under
789 the GPL. All Python licenses, unlike the GPL, let you distribute
790 a modified version without making your changes open source. The
791 GPL-compatible licenses make it possible to combine Python with
792 other software that is released under the GPL; the others don't.
793
794(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
795 because its license has a choice of law clause. According to
796 CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
797 is "not incompatible" with the GPL.
798
799Thanks to the many outside volunteers who have worked under Guido's
800direction to make these releases possible.
801
802
803B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
804===============================================================
805
806PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
807--------------------------------------------
808
8091. This LICENSE AGREEMENT is between the Python Software Foundation
810("PSF"), and the Individual or Organization ("Licensee") accessing and
811otherwise using this software ("Python") in source or binary form and
812its associated documentation.
813
8142. Subject to the terms and conditions of this License Agreement, PSF hereby
815grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
816analyze, test, perform and/or display publicly, prepare derivative works,
817distribute, and otherwise use Python alone or in any derivative version,
818provided, however, that PSF's License Agreement and PSF's notice of copyright,
819i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
8202011, 2012, 2013 Python Software Foundation; All Rights Reserved" are retained
821in Python alone or in any derivative version prepared by Licensee.
822
8233. In the event Licensee prepares a derivative work that is based on
824or incorporates Python or any part thereof, and wants to make
825the derivative work available to others as provided herein, then
826Licensee hereby agrees to include in any such work a brief summary of
827the changes made to Python.
828
8294. PSF is making Python available to Licensee on an "AS IS"
830basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
831IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
832DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
833FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
834INFRINGE ANY THIRD PARTY RIGHTS.
835
8365. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
837FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
838A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
839OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
840
8416. This License Agreement will automatically terminate upon a material
842breach of its terms and conditions.
843
8447. Nothing in this License Agreement shall be deemed to create any
845relationship of agency, partnership, or joint venture between PSF and
846Licensee. This License Agreement does not grant permission to use PSF
847trademarks or trade name in a trademark sense to endorse or promote
848products or services of Licensee, or any third party.
849
8508. By copying, installing or otherwise using Python, Licensee
851agrees to be bound by the terms and conditions of this License
852Agreement.
853
854
855BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
856-------------------------------------------
857
858BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
859
8601. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
861office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
862Individual or Organization ("Licensee") accessing and otherwise using
863this software in source or binary form and its associated
864documentation ("the Software").
865
8662. Subject to the terms and conditions of this BeOpen Python License
867Agreement, BeOpen hereby grants Licensee a non-exclusive,
868royalty-free, world-wide license to reproduce, analyze, test, perform
869and/or display publicly, prepare derivative works, distribute, and
870otherwise use the Software alone or in any derivative version,
871provided, however, that the BeOpen Python License is retained in the
872Software, alone or in any derivative version prepared by Licensee.
873
8743. BeOpen is making the Software available to Licensee on an "AS IS"
875basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
876IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
877DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
878FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
879INFRINGE ANY THIRD PARTY RIGHTS.
880
8814. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
882SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
883AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
884DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
885
8865. This License Agreement will automatically terminate upon a material
887breach of its terms and conditions.
888
8896. This License Agreement shall be governed by and interpreted in all
890respects by the law of the State of California, excluding conflict of
891law provisions. Nothing in this License Agreement shall be deemed to
892create any relationship of agency, partnership, or joint venture
893between BeOpen and Licensee. This License Agreement does not grant
894permission to use BeOpen trademarks or trade names in a trademark
895sense to endorse or promote products or services of Licensee, or any
896third party. As an exception, the "BeOpen Python" logos available at
897http://www.pythonlabs.com/logos.html may be used according to the
898permissions granted on that web page.
899
9007. By copying, installing or otherwise using the software, Licensee
901agrees to be bound by the terms and conditions of this License
902Agreement.
903
904
905CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
906---------------------------------------
907
9081. This LICENSE AGREEMENT is between the Corporation for National
909Research Initiatives, having an office at 1895 Preston White Drive,
910Reston, VA 20191 ("CNRI"), and the Individual or Organization
911("Licensee") accessing and otherwise using Python 1.6.1 software in
912source or binary form and its associated documentation.
913
9142. Subject to the terms and conditions of this License Agreement, CNRI
915hereby grants Licensee a nonexclusive, royalty-free, world-wide
916license to reproduce, analyze, test, perform and/or display publicly,
917prepare derivative works, distribute, and otherwise use Python 1.6.1
918alone or in any derivative version, provided, however, that CNRI's
919License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
9201995-2001 Corporation for National Research Initiatives; All Rights
921Reserved" are retained in Python 1.6.1 alone or in any derivative
922version prepared by Licensee. Alternately, in lieu of CNRI's License
923Agreement, Licensee may substitute the following text (omitting the
924quotes): "Python 1.6.1 is made available subject to the terms and
925conditions in CNRI's License Agreement. This Agreement together with
926Python 1.6.1 may be located on the Internet using the following
927unique, persistent identifier (known as a handle): 1895.22/1013. This
928Agreement may also be obtained from a proxy server on the Internet
929using the following URL: http://hdl.handle.net/1895.22/1013".
930
9313. In the event Licensee prepares a derivative work that is based on
932or incorporates Python 1.6.1 or any part thereof, and wants to make
933the derivative work available to others as provided herein, then
934Licensee hereby agrees to include in any such work a brief summary of
935the changes made to Python 1.6.1.
936
9374. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
938basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
939IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
940DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
941FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
942INFRINGE ANY THIRD PARTY RIGHTS.
943
9445. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
9451.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
946A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
947OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
948
9496. This License Agreement will automatically terminate upon a material
950breach of its terms and conditions.
951
9527. This License Agreement shall be governed by the federal
953intellectual property law of the United States, including without
954limitation the federal copyright law, and, to the extent such
955U.S. federal law does not apply, by the law of the Commonwealth of
956Virginia, excluding Virginia's conflict of law provisions.
957Notwithstanding the foregoing, with regard to derivative works based
958on Python 1.6.1 that incorporate non-separable material that was
959previously distributed under the GNU General Public License (GPL), the
960law of the Commonwealth of Virginia shall govern this License
961Agreement only as to issues arising under or with respect to
962Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
963License Agreement shall be deemed to create any relationship of
964agency, partnership, or joint venture between CNRI and Licensee. This
965License Agreement does not grant permission to use CNRI trademarks or
966trade name in a trademark sense to endorse or promote products or
967services of Licensee, or any third party.
968
9698. By clicking on the "ACCEPT" button where indicated, or by copying,
970installing or otherwise using Python 1.6.1, Licensee agrees to be
971bound by the terms and conditions of this License Agreement.
972
973 ACCEPT
974
975
976CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
977--------------------------------------------------
978
979Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
980The Netherlands. All rights reserved.
981
982Permission to use, copy, modify, and distribute this software and its
983documentation for any purpose and without fee is hereby granted,
984provided that the above copyright notice appear in all copies and that
985both that copyright notice and this permission notice appear in
986supporting documentation, and that the name of Stichting Mathematisch
987Centrum or CWI not be used in advertising or publicity pertaining to
988distribution of the software without specific, written prior
989permission.
990
991STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
992THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
993FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
994FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
995WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
996ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
997OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Josh Gaoc7b00462016-04-29 18:11:04 -0700998
999 GNU GENERAL PUBLIC LICENSE
1000 Version 2, June 1991
1001
1002 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
1003 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1004 Everyone is permitted to copy and distribute verbatim copies
1005 of this license document, but changing it is not allowed.
1006
1007 Preamble
1008
1009 The licenses for most software are designed to take away your
1010freedom to share and change it. By contrast, the GNU General Public
1011License is intended to guarantee your freedom to share and change free
1012software--to make sure the software is free for all its users. This
1013General Public License applies to most of the Free Software
1014Foundation's software and to any other program whose authors commit to
1015using it. (Some other Free Software Foundation software is covered by
1016the GNU Library General Public License instead.) You can apply it to
1017your programs, too.
1018
1019 When we speak of free software, we are referring to freedom, not
1020price. Our General Public Licenses are designed to make sure that you
1021have the freedom to distribute copies of free software (and charge for
1022this service if you wish), that you receive source code or can get it
1023if you want it, that you can change the software or use pieces of it
1024in new free programs; and that you know you can do these things.
1025
1026 To protect your rights, we need to make restrictions that forbid
1027anyone to deny you these rights or to ask you to surrender the rights.
1028These restrictions translate to certain responsibilities for you if you
1029distribute copies of the software, or if you modify it.
1030
1031 For example, if you distribute copies of such a program, whether
1032gratis or for a fee, you must give the recipients all the rights that
1033you have. You must make sure that they, too, receive or can get the
1034source code. And you must show them these terms so they know their
1035rights.
1036
1037 We protect your rights with two steps: (1) copyright the software, and
1038(2) offer you this license which gives you legal permission to copy,
1039distribute and/or modify the software.
1040
1041 Also, for each author's protection and ours, we want to make certain
1042that everyone understands that there is no warranty for this free
1043software. If the software is modified by someone else and passed on, we
1044want its recipients to know that what they have is not the original, so
1045that any problems introduced by others will not reflect on the original
1046authors' reputations.
1047
1048 Finally, any free program is threatened constantly by software
1049patents. We wish to avoid the danger that redistributors of a free
1050program will individually obtain patent licenses, in effect making the
1051program proprietary. To prevent this, we have made it clear that any
1052patent must be licensed for everyone's free use or not licensed at all.
1053
1054 The precise terms and conditions for copying, distribution and
1055modification follow.
1056
1057 GNU GENERAL PUBLIC LICENSE
1058 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1059
1060 0. This License applies to any program or other work which contains
1061a notice placed by the copyright holder saying it may be distributed
1062under the terms of this General Public License. The "Program", below,
1063refers to any such program or work, and a "work based on the Program"
1064means either the Program or any derivative work under copyright law:
1065that is to say, a work containing the Program or a portion of it,
1066either verbatim or with modifications and/or translated into another
1067language. (Hereinafter, translation is included without limitation in
1068the term "modification".) Each licensee is addressed as "you".
1069
1070Activities other than copying, distribution and modification are not
1071covered by this License; they are outside its scope. The act of
1072running the Program is not restricted, and the output from the Program
1073is covered only if its contents constitute a work based on the
1074Program (independent of having been made by running the Program).
1075Whether that is true depends on what the Program does.
1076
1077 1. You may copy and distribute verbatim copies of the Program's
1078source code as you receive it, in any medium, provided that you
1079conspicuously and appropriately publish on each copy an appropriate
1080copyright notice and disclaimer of warranty; keep intact all the
1081notices that refer to this License and to the absence of any warranty;
1082and give any other recipients of the Program a copy of this License
1083along with the Program.
1084
1085You may charge a fee for the physical act of transferring a copy, and
1086you may at your option offer warranty protection in exchange for a fee.
1087
1088 2. You may modify your copy or copies of the Program or any portion
1089of it, thus forming a work based on the Program, and copy and
1090distribute such modifications or work under the terms of Section 1
1091above, provided that you also meet all of these conditions:
1092
1093 a) You must cause the modified files to carry prominent notices
1094 stating that you changed the files and the date of any change.
1095
1096 b) You must cause any work that you distribute or publish, that in
1097 whole or in part contains or is derived from the Program or any
1098 part thereof, to be licensed as a whole at no charge to all third
1099 parties under the terms of this License.
1100
1101 c) If the modified program normally reads commands interactively
1102 when run, you must cause it, when started running for such
1103 interactive use in the most ordinary way, to print or display an
1104 announcement including an appropriate copyright notice and a
1105 notice that there is no warranty (or else, saying that you provide
1106 a warranty) and that users may redistribute the program under
1107 these conditions, and telling the user how to view a copy of this
1108 License. (Exception: if the Program itself is interactive but
1109 does not normally print such an announcement, your work based on
1110 the Program is not required to print an announcement.)
1111
1112These requirements apply to the modified work as a whole. If
1113identifiable sections of that work are not derived from the Program,
1114and can be reasonably considered independent and separate works in
1115themselves, then this License, and its terms, do not apply to those
1116sections when you distribute them as separate works. But when you
1117distribute the same sections as part of a whole which is a work based
1118on the Program, the distribution of the whole must be on the terms of
1119this License, whose permissions for other licensees extend to the
1120entire whole, and thus to each and every part regardless of who wrote it.
1121
1122Thus, it is not the intent of this section to claim rights or contest
1123your rights to work written entirely by you; rather, the intent is to
1124exercise the right to control the distribution of derivative or
1125collective works based on the Program.
1126
1127In addition, mere aggregation of another work not based on the Program
1128with the Program (or with a work based on the Program) on a volume of
1129a storage or distribution medium does not bring the other work under
1130the scope of this License.
1131
1132 3. You may copy and distribute the Program (or a work based on it,
1133under Section 2) in object code or executable form under the terms of
1134Sections 1 and 2 above provided that you also do one of the following:
1135
1136 a) Accompany it with the complete corresponding machine-readable
1137 source code, which must be distributed under the terms of Sections
1138 1 and 2 above on a medium customarily used for software interchange; or,
1139
1140 b) Accompany it with a written offer, valid for at least three
1141 years, to give any third party, for a charge no more than your
1142 cost of physically performing source distribution, a complete
1143 machine-readable copy of the corresponding source code, to be
1144 distributed under the terms of Sections 1 and 2 above on a medium
1145 customarily used for software interchange; or,
1146
1147 c) Accompany it with the information you received as to the offer
1148 to distribute corresponding source code. (This alternative is
1149 allowed only for noncommercial distribution and only if you
1150 received the program in object code or executable form with such
1151 an offer, in accord with Subsection b above.)
1152
1153The source code for a work means the preferred form of the work for
1154making modifications to it. For an executable work, complete source
1155code means all the source code for all modules it contains, plus any
1156associated interface definition files, plus the scripts used to
1157control compilation and installation of the executable. However, as a
1158special exception, the source code distributed need not include
1159anything that is normally distributed (in either source or binary
1160form) with the major components (compiler, kernel, and so on) of the
1161operating system on which the executable runs, unless that component
1162itself accompanies the executable.
1163
1164If distribution of executable or object code is made by offering
1165access to copy from a designated place, then offering equivalent
1166access to copy the source code from the same place counts as
1167distribution of the source code, even though third parties are not
1168compelled to copy the source along with the object code.
1169
1170 4. You may not copy, modify, sublicense, or distribute the Program
1171except as expressly provided under this License. Any attempt
1172otherwise to copy, modify, sublicense or distribute the Program is
1173void, and will automatically terminate your rights under this License.
1174However, parties who have received copies, or rights, from you under
1175this License will not have their licenses terminated so long as such
1176parties remain in full compliance.
1177
1178 5. You are not required to accept this License, since you have not
1179signed it. However, nothing else grants you permission to modify or
1180distribute the Program or its derivative works. These actions are
1181prohibited by law if you do not accept this License. Therefore, by
1182modifying or distributing the Program (or any work based on the
1183Program), you indicate your acceptance of this License to do so, and
1184all its terms and conditions for copying, distributing or modifying
1185the Program or works based on it.
1186
1187 6. Each time you redistribute the Program (or any work based on the
1188Program), the recipient automatically receives a license from the
1189original licensor to copy, distribute or modify the Program subject to
1190these terms and conditions. You may not impose any further
1191restrictions on the recipients' exercise of the rights granted herein.
1192You are not responsible for enforcing compliance by third parties to
1193this License.
1194
1195 7. If, as a consequence of a court judgment or allegation of patent
1196infringement or for any other reason (not limited to patent issues),
1197conditions are imposed on you (whether by court order, agreement or
1198otherwise) that contradict the conditions of this License, they do not
1199excuse you from the conditions of this License. If you cannot
1200distribute so as to satisfy simultaneously your obligations under this
1201License and any other pertinent obligations, then as a consequence you
1202may not distribute the Program at all. For example, if a patent
1203license would not permit royalty-free redistribution of the Program by
1204all those who receive copies directly or indirectly through you, then
1205the only way you could satisfy both it and this License would be to
1206refrain entirely from distribution of the Program.
1207
1208If any portion of this section is held invalid or unenforceable under
1209any particular circumstance, the balance of the section is intended to
1210apply and the section as a whole is intended to apply in other
1211circumstances.
1212
1213It is not the purpose of this section to induce you to infringe any
1214patents or other property right claims or to contest validity of any
1215such claims; this section has the sole purpose of protecting the
1216integrity of the free software distribution system, which is
1217implemented by public license practices. Many people have made
1218generous contributions to the wide range of software distributed
1219through that system in reliance on consistent application of that
1220system; it is up to the author/donor to decide if he or she is willing
1221to distribute software through any other system and a licensee cannot
1222impose that choice.
1223
1224This section is intended to make thoroughly clear what is believed to
1225be a consequence of the rest of this License.
1226
1227 8. If the distribution and/or use of the Program is restricted in
1228certain countries either by patents or by copyrighted interfaces, the
1229original copyright holder who places the Program under this License
1230may add an explicit geographical distribution limitation excluding
1231those countries, so that distribution is permitted only in or among
1232countries not thus excluded. In such case, this License incorporates
1233the limitation as if written in the body of this License.
1234
1235 9. The Free Software Foundation may publish revised and/or new versions
1236of the General Public License from time to time. Such new versions will
1237be similar in spirit to the present version, but may differ in detail to
1238address new problems or concerns.
1239
1240Each version is given a distinguishing version number. If the Program
1241specifies a version number of this License which applies to it and "any
1242later version", you have the option of following the terms and conditions
1243either of that version or of any later version published by the Free
1244Software Foundation. If the Program does not specify a version number of
1245this License, you may choose any version ever published by the Free Software
1246Foundation.
1247
1248 10. If you wish to incorporate parts of the Program into other free
1249programs whose distribution conditions are different, write to the author
1250to ask for permission. For software which is copyrighted by the Free
1251Software Foundation, write to the Free Software Foundation; we sometimes
1252make exceptions for this. Our decision will be guided by the two goals
1253of preserving the free status of all derivatives of our free software and
1254of promoting the sharing and reuse of software generally.
1255
1256 NO WARRANTY
1257
1258 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
1259FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
1260OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
1261PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
1262OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1263MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
1264TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
1265PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
1266REPAIR OR CORRECTION.
1267
1268 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
1269WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
1270REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
1271INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
1272OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
1273TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
1274YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
1275PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
1276POSSIBILITY OF SUCH DAMAGES.
1277
1278 END OF TERMS AND CONDITIONS
1279
1280 How to Apply These Terms to Your New Programs
1281
1282 If you develop a new program, and you want it to be of the greatest
1283possible use to the public, the best way to achieve this is to make it
1284free software which everyone can redistribute and change under these terms.
1285
1286 To do so, attach the following notices to the program. It is safest
1287to attach them to the start of each source file to most effectively
1288convey the exclusion of warranty; and each file should have at least
1289the "copyright" line and a pointer to where the full notice is found.
1290
1291 <one line to give the program's name and a brief idea of what it does.>
1292 Copyright (C) <year> <name of author>
1293
1294 This program is free software; you can redistribute it and/or modify
1295 it under the terms of the GNU General Public License as published by
1296 the Free Software Foundation; either version 2 of the License, or
1297 (at your option) any later version.
1298
1299 This program is distributed in the hope that it will be useful,
1300 but WITHOUT ANY WARRANTY; without even the implied warranty of
1301 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1302 GNU General Public License for more details.
1303
1304 You should have received a copy of the GNU General Public License
1305 along with this program; if not, write to the Free Software
1306 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1307
1308
1309Also add information on how to contact you by electronic and paper mail.
1310
1311If the program is interactive, make it output a short notice like this
1312when it starts in an interactive mode:
1313
1314 Gnomovision version 69, Copyright (C) year name of author
1315 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
1316 This is free software, and you are welcome to redistribute it
1317 under certain conditions; type `show c' for details.
1318
1319The hypothetical commands `show w' and `show c' should show the appropriate
1320parts of the General Public License. Of course, the commands you use may
1321be called something other than `show w' and `show c'; they could even be
1322mouse-clicks or menu items--whatever suits your program.
1323
1324You should also get your employer (if you work as a programmer) or your
1325school, if any, to sign a "copyright disclaimer" for the program, if
1326necessary. Here is a sample; alter the names:
1327
1328 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
1329 `Gnomovision' (which makes passes at compilers) written by James Hacker.
1330
1331 <signature of Ty Coon>, 1 April 1989
1332 Ty Coon, President of Vice
1333
1334This General Public License does not permit incorporating your program into
1335proprietary programs. If your program is a subroutine library, you may
1336consider it more useful to permit linking proprietary applications with the
1337library. If this is what you want to do, use the GNU Library General
1338Public License instead of this License.
1339
1340Copyright (C) 2016 The Android Open Source Project
1341
1342Licensed under the Apache License, Version 2.0 (the "License");
1343you may not use this file except in compliance with the License.
1344You may obtain a copy of the License at
1345
1346 http://www.apache.org/licenses/LICENSE-2.0
1347
1348Unless required by applicable law or agreed to in writing, software
1349distributed under the License is distributed on an "AS IS" BASIS,
1350WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1351See the License for the specific language governing permissions and
1352limitations under the License.
1353
1354Yasm is Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.
1355
1356Yasm developers and/or contributors include:
1357 Peter Johnson
1358 Michael Urman
1359 Brian Gladman (Visual Studio build files, other fixes)
1360 Stanislav Karchebny (options parser)
1361 Mathieu Monnier (SSE4 instruction patches, NASM preprocessor additions)
1362 Anonymous "NASM64" developer (NASM preprocessor fixes)
1363 Stephen Polkowski (x86 instruction patches)
1364 Henryk Richter (Mach-O object format)
1365 Ben Skeggs (patches, bug reports)
1366 Alexei Svitkine (GAS preprocessor)
1367 Samuel Thibault (TASM parser and frontend)
1368
1369-----------------------------------
1370Yasm licensing overview and summary
1371-----------------------------------
1372
1373Note: This document does not provide legal advice nor is it the actual
1374license of any part of Yasm. See the individual licenses for complete
1375details. Consult a lawyer for legal advice.
1376
1377The primary license of Yasm is the 2-clause BSD license. Please use this
1378license if you plan on submitting code to the project.
1379
1380Yasm has absolutely no warranty; not even for merchantibility or fitness
1381for a particular purpose.
1382
1383-------
1384Libyasm
1385-------
1386Libyasm is 2-clause or 3-clause BSD licensed, with the exception of
1387bitvect, which is triple-licensed under the Artistic license, GPL, and
1388LGPL. Libyasm is thus GPL and LGPL compatible. In addition, this also
1389means that libyasm is free for binary-only distribution as long as the
1390terms of the 3-clause BSD license and Artistic license (as it applies to
1391bitvect) are fulfilled.
1392
1393-------
1394Modules
1395-------
1396The modules are 2-clause or 3-clause BSD licensed.
1397
1398---------
1399Frontends
1400---------
1401The frontends are 2-clause BSD licensed.
1402
1403-------------
1404License Texts
1405-------------
1406The full text of all licenses are provided in separate files in the source
1407distribution. Each source file may include the entire license (in the case
1408of the BSD and Artistic licenses), or may reference the GPL or LGPL license
1409file.
1410
1411BSD.txt - 2-clause and 3-clause BSD licenses
1412Artistic.txt - Artistic license
1413GNU_GPL-2.0 - GNU General Public License
1414GNU_LGPL-2.0 - GNU Library General Public License
1415
1416Redistribution and use in source and binary forms, with or without
1417modification, are permitted provided that the following conditions
1418are met:
14191. Redistributions of source code must retain the above copyright
1420 notice, this list of conditions and the following disclaimer.
14212. Redistributions in binary form must reproduce the above copyright
1422 notice, this list of conditions and the following disclaimer in the
1423 documentation and/or other materials provided with the distribution.
1424
1425THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS''
1426AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1427IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1428ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
1429LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1430CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1431SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1432INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1433CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1434ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1435POSSIBILITY OF SUCH DAMAGE.
1436-------------------------------------------------------------------------------
1437Redistribution and use in source and binary forms, with or without
1438modification, are permitted provided that the following conditions
1439are met:
14401. Redistributions of source code must retain the above copyright
1441 notice, this list of conditions and the following disclaimer.
14422. Redistributions in binary form must reproduce the above copyright
1443 notice, this list of conditions and the following disclaimer in the
1444 documentation and/or other materials provided with the distribution.
14453. Neither the name of the author nor the names of other contributors
1446 may be used to endorse or promote products derived from this
1447 software without specific prior written permission.
1448
1449THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS''
1450AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1451IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1452ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
1453LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1454CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1455SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1456INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1457CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1458ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1459POSSIBILITY OF SUCH DAMAGE.
1460-------------------------------------------------------------------------------
1461NASM is now licensed under the 2-clause BSD license, also known as the
1462simplified BSD license.
1463
1464 Copyright 1996-2009 the NASM Authors - All rights reserved.
1465
1466 Redistribution and use in source and binary forms, with or without
1467 modification, are permitted provided that the following
1468 conditions are met:
1469
1470 * Redistributions of source code must retain the above copyright
1471 notice, this list of conditions and the following disclaimer.
1472 * Redistributions in binary form must reproduce the above
1473 copyright notice, this list of conditions and the following
1474 disclaimer in the documentation and/or other materials provided
1475 with the distribution.
1476
1477 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
1478 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
1479 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1480 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1481 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1482 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1483 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1484 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1485 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1486 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1487 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1488 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
1489 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1490
1491
1492
1493
1494
1495 The "Artistic License"
1496
1497 Preamble
1498
1499The intent of this document is to state the conditions under which a
1500Package may be copied, such that the Copyright Holder maintains some
1501semblance of artistic control over the development of the package,
1502while giving the users of the package the right to use and distribute
1503the Package in a more-or-less customary fashion, plus the right to make
1504reasonable modifications.
1505
1506Definitions:
1507
1508 "Package" refers to the collection of files distributed by the
1509 Copyright Holder, and derivatives of that collection of files
1510 created through textual modification.
1511
1512 "Standard Version" refers to such a Package if it has not been
1513 modified, or has been modified in accordance with the wishes
1514 of the Copyright Holder as specified below.
1515
1516 "Copyright Holder" is whoever is named in the copyright or
1517 copyrights for the package.
1518
1519 "You" is you, if you're thinking about copying or distributing
1520 this Package.
1521
1522 "Reasonable copying fee" is whatever you can justify on the
1523 basis of media cost, duplication charges, time of people involved,
1524 and so on. (You will not be required to justify it to the
1525 Copyright Holder, but only to the computing community at large
1526 as a market that must bear the fee.)
1527
1528 "Freely Available" means that no fee is charged for the item
1529 itself, though there may be fees involved in handling the item.
1530 It also means that recipients of the item may redistribute it
1531 under the same conditions they received it.
1532
15331. You may make and give away verbatim copies of the source form of the
1534Standard Version of this Package without restriction, provided that you
1535duplicate all of the original copyright notices and associated disclaimers.
1536
15372. You may apply bug fixes, portability fixes and other modifications
1538derived from the Public Domain or from the Copyright Holder. A Package
1539modified in such a way shall still be considered the Standard Version.
1540
15413. You may otherwise modify your copy of this Package in any way, provided
1542that you insert a prominent notice in each changed file stating how and
1543when you changed that file, and provided that you do at least ONE of the
1544following:
1545
1546 a) place your modifications in the Public Domain or otherwise make them
1547 Freely Available, such as by posting said modifications to Usenet or
1548 an equivalent medium, or placing the modifications on a major archive
1549 site such as uunet.uu.net, or by allowing the Copyright Holder to include
1550 your modifications in the Standard Version of the Package.
1551
1552 b) use the modified Package only within your corporation or organization.
1553
1554 c) rename any non-standard executables so the names do not conflict
1555 with standard executables, which must also be provided, and provide
1556 a separate manual page for each non-standard executable that clearly
1557 documents how it differs from the Standard Version.
1558
1559 d) make other distribution arrangements with the Copyright Holder.
1560
15614. You may distribute the programs of this Package in object code or
1562executable form, provided that you do at least ONE of the following:
1563
1564 a) distribute a Standard Version of the executables and library files,
1565 together with instructions (in the manual page or equivalent) on where
1566 to get the Standard Version.
1567
1568 b) accompany the distribution with the machine-readable source of
1569 the Package with your modifications.
1570
1571 c) give non-standard executables non-standard names, and clearly
1572 document the differences in manual pages (or equivalent), together
1573 with instructions on where to get the Standard Version.
1574
1575 d) make other distribution arrangements with the Copyright Holder.
1576
15775. You may charge a reasonable copying fee for any distribution of this
1578Package. You may charge any fee you choose for support of this
1579Package. You may not charge a fee for this Package itself. However,
1580you may distribute this Package in aggregate with other (possibly
1581commercial) programs as part of a larger (possibly commercial) software
1582distribution provided that you do not advertise this Package as a
1583product of your own. You may embed this Package's interpreter within
1584an executable of yours (by linking); this shall be construed as a mere
1585form of aggregation, provided that the complete Standard Version of the
1586interpreter is so embedded.
1587
15886. The scripts and library files supplied as input to or produced as
1589output from the programs of this Package do not automatically fall
1590under the copyright of this Package, but belong to whoever generated
1591them, and may be sold commercially, and may be aggregated with this
1592Package. If such scripts or library files are aggregated with this
1593Package via the so-called "undump" or "unexec" methods of producing a
1594binary executable image, then distribution of such an image shall
1595neither be construed as a distribution of this Package nor shall it
1596fall under the restrictions of Paragraphs 3 and 4, provided that you do
1597not represent such an executable image as a Standard Version of this
1598Package.
1599
16007. C subroutines (or comparably compiled subroutines in other
1601languages) supplied by you and linked into this Package in order to
1602emulate subroutines and variables of the language defined by this
1603Package shall not be considered part of this Package, but are the
1604equivalent of input as in Paragraph 6, provided these subroutines do
1605not change the language in any way that would cause it to fail the
1606regression tests for the language.
1607
16088. Aggregation of this Package with a commercial distribution is always
1609permitted provided that the use of this Package is embedded; that is,
1610when no overt attempt is made to make this Package's interfaces visible
1611to the end user of the commercial distribution. Such use shall not be
1612construed as a distribution of this Package.
1613
16149. The name of the Copyright Holder may not be used to endorse or promote
1615products derived from this software without specific prior written permission.
1616
161710. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
1618IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1619WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1620
1621 The End
1622
1623 GNU GENERAL PUBLIC LICENSE
1624 Version 2, June 1991
1625
1626 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
1627 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1628 Everyone is permitted to copy and distribute verbatim copies
1629 of this license document, but changing it is not allowed.
1630
1631 Preamble
1632
1633 The licenses for most software are designed to take away your
1634freedom to share and change it. By contrast, the GNU General Public
1635License is intended to guarantee your freedom to share and change free
1636software--to make sure the software is free for all its users. This
1637General Public License applies to most of the Free Software
1638Foundation's software and to any other program whose authors commit to
1639using it. (Some other Free Software Foundation software is covered by
1640the GNU Library General Public License instead.) You can apply it to
1641your programs, too.
1642
1643 When we speak of free software, we are referring to freedom, not
1644price. Our General Public Licenses are designed to make sure that you
1645have the freedom to distribute copies of free software (and charge for
1646this service if you wish), that you receive source code or can get it
1647if you want it, that you can change the software or use pieces of it
1648in new free programs; and that you know you can do these things.
1649
1650 To protect your rights, we need to make restrictions that forbid
1651anyone to deny you these rights or to ask you to surrender the rights.
1652These restrictions translate to certain responsibilities for you if you
1653distribute copies of the software, or if you modify it.
1654
1655 For example, if you distribute copies of such a program, whether
1656gratis or for a fee, you must give the recipients all the rights that
1657you have. You must make sure that they, too, receive or can get the
1658source code. And you must show them these terms so they know their
1659rights.
1660
1661 We protect your rights with two steps: (1) copyright the software, and
1662(2) offer you this license which gives you legal permission to copy,
1663distribute and/or modify the software.
1664
1665 Also, for each author's protection and ours, we want to make certain
1666that everyone understands that there is no warranty for this free
1667software. If the software is modified by someone else and passed on, we
1668want its recipients to know that what they have is not the original, so
1669that any problems introduced by others will not reflect on the original
1670authors' reputations.
1671
1672 Finally, any free program is threatened constantly by software
1673patents. We wish to avoid the danger that redistributors of a free
1674program will individually obtain patent licenses, in effect making the
1675program proprietary. To prevent this, we have made it clear that any
1676patent must be licensed for everyone's free use or not licensed at all.
1677
1678 The precise terms and conditions for copying, distribution and
1679modification follow.
1680
1681 GNU GENERAL PUBLIC LICENSE
1682 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1683
1684 0. This License applies to any program or other work which contains
1685a notice placed by the copyright holder saying it may be distributed
1686under the terms of this General Public License. The "Program", below,
1687refers to any such program or work, and a "work based on the Program"
1688means either the Program or any derivative work under copyright law:
1689that is to say, a work containing the Program or a portion of it,
1690either verbatim or with modifications and/or translated into another
1691language. (Hereinafter, translation is included without limitation in
1692the term "modification".) Each licensee is addressed as "you".
1693
1694Activities other than copying, distribution and modification are not
1695covered by this License; they are outside its scope. The act of
1696running the Program is not restricted, and the output from the Program
1697is covered only if its contents constitute a work based on the
1698Program (independent of having been made by running the Program).
1699Whether that is true depends on what the Program does.
1700
1701 1. You may copy and distribute verbatim copies of the Program's
1702source code as you receive it, in any medium, provided that you
1703conspicuously and appropriately publish on each copy an appropriate
1704copyright notice and disclaimer of warranty; keep intact all the
1705notices that refer to this License and to the absence of any warranty;
1706and give any other recipients of the Program a copy of this License
1707along with the Program.
1708
1709You may charge a fee for the physical act of transferring a copy, and
1710you may at your option offer warranty protection in exchange for a fee.
1711
1712 2. You may modify your copy or copies of the Program or any portion
1713of it, thus forming a work based on the Program, and copy and
1714distribute such modifications or work under the terms of Section 1
1715above, provided that you also meet all of these conditions:
1716
1717 a) You must cause the modified files to carry prominent notices
1718 stating that you changed the files and the date of any change.
1719
1720 b) You must cause any work that you distribute or publish, that in
1721 whole or in part contains or is derived from the Program or any
1722 part thereof, to be licensed as a whole at no charge to all third
1723 parties under the terms of this License.
1724
1725 c) If the modified program normally reads commands interactively
1726 when run, you must cause it, when started running for such
1727 interactive use in the most ordinary way, to print or display an
1728 announcement including an appropriate copyright notice and a
1729 notice that there is no warranty (or else, saying that you provide
1730 a warranty) and that users may redistribute the program under
1731 these conditions, and telling the user how to view a copy of this
1732 License. (Exception: if the Program itself is interactive but
1733 does not normally print such an announcement, your work based on
1734 the Program is not required to print an announcement.)
1735
1736These requirements apply to the modified work as a whole. If
1737identifiable sections of that work are not derived from the Program,
1738and can be reasonably considered independent and separate works in
1739themselves, then this License, and its terms, do not apply to those
1740sections when you distribute them as separate works. But when you
1741distribute the same sections as part of a whole which is a work based
1742on the Program, the distribution of the whole must be on the terms of
1743this License, whose permissions for other licensees extend to the
1744entire whole, and thus to each and every part regardless of who wrote it.
1745
1746Thus, it is not the intent of this section to claim rights or contest
1747your rights to work written entirely by you; rather, the intent is to
1748exercise the right to control the distribution of derivative or
1749collective works based on the Program.
1750
1751In addition, mere aggregation of another work not based on the Program
1752with the Program (or with a work based on the Program) on a volume of
1753a storage or distribution medium does not bring the other work under
1754the scope of this License.
1755
1756 3. You may copy and distribute the Program (or a work based on it,
1757under Section 2) in object code or executable form under the terms of
1758Sections 1 and 2 above provided that you also do one of the following:
1759
1760 a) Accompany it with the complete corresponding machine-readable
1761 source code, which must be distributed under the terms of Sections
1762 1 and 2 above on a medium customarily used for software interchange; or,
1763
1764 b) Accompany it with a written offer, valid for at least three
1765 years, to give any third party, for a charge no more than your
1766 cost of physically performing source distribution, a complete
1767 machine-readable copy of the corresponding source code, to be
1768 distributed under the terms of Sections 1 and 2 above on a medium
1769 customarily used for software interchange; or,
1770
1771 c) Accompany it with the information you received as to the offer
1772 to distribute corresponding source code. (This alternative is
1773 allowed only for noncommercial distribution and only if you
1774 received the program in object code or executable form with such
1775 an offer, in accord with Subsection b above.)
1776
1777The source code for a work means the preferred form of the work for
1778making modifications to it. For an executable work, complete source
1779code means all the source code for all modules it contains, plus any
1780associated interface definition files, plus the scripts used to
1781control compilation and installation of the executable. However, as a
1782special exception, the source code distributed need not include
1783anything that is normally distributed (in either source or binary
1784form) with the major components (compiler, kernel, and so on) of the
1785operating system on which the executable runs, unless that component
1786itself accompanies the executable.
1787
1788If distribution of executable or object code is made by offering
1789access to copy from a designated place, then offering equivalent
1790access to copy the source code from the same place counts as
1791distribution of the source code, even though third parties are not
1792compelled to copy the source along with the object code.
1793
1794 4. You may not copy, modify, sublicense, or distribute the Program
1795except as expressly provided under this License. Any attempt
1796otherwise to copy, modify, sublicense or distribute the Program is
1797void, and will automatically terminate your rights under this License.
1798However, parties who have received copies, or rights, from you under
1799this License will not have their licenses terminated so long as such
1800parties remain in full compliance.
1801
1802 5. You are not required to accept this License, since you have not
1803signed it. However, nothing else grants you permission to modify or
1804distribute the Program or its derivative works. These actions are
1805prohibited by law if you do not accept this License. Therefore, by
1806modifying or distributing the Program (or any work based on the
1807Program), you indicate your acceptance of this License to do so, and
1808all its terms and conditions for copying, distributing or modifying
1809the Program or works based on it.
1810
1811 6. Each time you redistribute the Program (or any work based on the
1812Program), the recipient automatically receives a license from the
1813original licensor to copy, distribute or modify the Program subject to
1814these terms and conditions. You may not impose any further
1815restrictions on the recipients' exercise of the rights granted herein.
1816You are not responsible for enforcing compliance by third parties to
1817this License.
1818
1819 7. If, as a consequence of a court judgment or allegation of patent
1820infringement or for any other reason (not limited to patent issues),
1821conditions are imposed on you (whether by court order, agreement or
1822otherwise) that contradict the conditions of this License, they do not
1823excuse you from the conditions of this License. If you cannot
1824distribute so as to satisfy simultaneously your obligations under this
1825License and any other pertinent obligations, then as a consequence you
1826may not distribute the Program at all. For example, if a patent
1827license would not permit royalty-free redistribution of the Program by
1828all those who receive copies directly or indirectly through you, then
1829the only way you could satisfy both it and this License would be to
1830refrain entirely from distribution of the Program.
1831
1832If any portion of this section is held invalid or unenforceable under
1833any particular circumstance, the balance of the section is intended to
1834apply and the section as a whole is intended to apply in other
1835circumstances.
1836
1837It is not the purpose of this section to induce you to infringe any
1838patents or other property right claims or to contest validity of any
1839such claims; this section has the sole purpose of protecting the
1840integrity of the free software distribution system, which is
1841implemented by public license practices. Many people have made
1842generous contributions to the wide range of software distributed
1843through that system in reliance on consistent application of that
1844system; it is up to the author/donor to decide if he or she is willing
1845to distribute software through any other system and a licensee cannot
1846impose that choice.
1847
1848This section is intended to make thoroughly clear what is believed to
1849be a consequence of the rest of this License.
1850
1851 8. If the distribution and/or use of the Program is restricted in
1852certain countries either by patents or by copyrighted interfaces, the
1853original copyright holder who places the Program under this License
1854may add an explicit geographical distribution limitation excluding
1855those countries, so that distribution is permitted only in or among
1856countries not thus excluded. In such case, this License incorporates
1857the limitation as if written in the body of this License.
1858
1859 9. The Free Software Foundation may publish revised and/or new versions
1860of the General Public License from time to time. Such new versions will
1861be similar in spirit to the present version, but may differ in detail to
1862address new problems or concerns.
1863
1864Each version is given a distinguishing version number. If the Program
1865specifies a version number of this License which applies to it and "any
1866later version", you have the option of following the terms and conditions
1867either of that version or of any later version published by the Free
1868Software Foundation. If the Program does not specify a version number of
1869this License, you may choose any version ever published by the Free Software
1870Foundation.
1871
1872 10. If you wish to incorporate parts of the Program into other free
1873programs whose distribution conditions are different, write to the author
1874to ask for permission. For software which is copyrighted by the Free
1875Software Foundation, write to the Free Software Foundation; we sometimes
1876make exceptions for this. Our decision will be guided by the two goals
1877of preserving the free status of all derivatives of our free software and
1878of promoting the sharing and reuse of software generally.
1879
1880 NO WARRANTY
1881
1882 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
1883FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
1884OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
1885PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
1886OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1887MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
1888TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
1889PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
1890REPAIR OR CORRECTION.
1891
1892 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
1893WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
1894REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
1895INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
1896OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
1897TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
1898YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
1899PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
1900POSSIBILITY OF SUCH DAMAGES.
1901
1902 END OF TERMS AND CONDITIONS
1903
1904 How to Apply These Terms to Your New Programs
1905
1906 If you develop a new program, and you want it to be of the greatest
1907possible use to the public, the best way to achieve this is to make it
1908free software which everyone can redistribute and change under these terms.
1909
1910 To do so, attach the following notices to the program. It is safest
1911to attach them to the start of each source file to most effectively
1912convey the exclusion of warranty; and each file should have at least
1913the "copyright" line and a pointer to where the full notice is found.
1914
1915 <one line to give the program's name and a brief idea of what it does.>
1916 Copyright (C) <year> <name of author>
1917
1918 This program is free software; you can redistribute it and/or modify
1919 it under the terms of the GNU General Public License as published by
1920 the Free Software Foundation; either version 2 of the License, or
1921 (at your option) any later version.
1922
1923 This program is distributed in the hope that it will be useful,
1924 but WITHOUT ANY WARRANTY; without even the implied warranty of
1925 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1926 GNU General Public License for more details.
1927
1928 You should have received a copy of the GNU General Public License
1929 along with this program; if not, write to the Free Software
1930 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1931
1932
1933Also add information on how to contact you by electronic and paper mail.
1934
1935If the program is interactive, make it output a short notice like this
1936when it starts in an interactive mode:
1937
1938 Gnomovision version 69, Copyright (C) year name of author
1939 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
1940 This is free software, and you are welcome to redistribute it
1941 under certain conditions; type `show c' for details.
1942
1943The hypothetical commands `show w' and `show c' should show the appropriate
1944parts of the General Public License. Of course, the commands you use may
1945be called something other than `show w' and `show c'; they could even be
1946mouse-clicks or menu items--whatever suits your program.
1947
1948You should also get your employer (if you work as a programmer) or your
1949school, if any, to sign a "copyright disclaimer" for the program, if
1950necessary. Here is a sample; alter the names:
1951
1952 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
1953 `Gnomovision' (which makes passes at compilers) written by James Hacker.
1954
1955 <signature of Ty Coon>, 1 April 1989
1956 Ty Coon, President of Vice
1957
1958This General Public License does not permit incorporating your program into
1959proprietary programs. If your program is a subroutine library, you may
1960consider it more useful to permit linking proprietary applications with the
1961library. If this is what you want to do, use the GNU Library General
1962Public License instead of this License.
1963
1964 GNU LIBRARY GENERAL PUBLIC LICENSE
1965 Version 2, June 1991
1966
1967 Copyright (C) 1991 Free Software Foundation, Inc.
1968 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
1969 Everyone is permitted to copy and distribute verbatim copies
1970 of this license document, but changing it is not allowed.
1971
1972[This is the first released version of the library GPL. It is
1973 numbered 2 because it goes with version 2 of the ordinary GPL.]
1974
1975 Preamble
1976
1977 The licenses for most software are designed to take away your
1978freedom to share and change it. By contrast, the GNU General Public
1979Licenses are intended to guarantee your freedom to share and change
1980free software--to make sure the software is free for all its users.
1981
1982 This license, the Library General Public License, applies to some
1983specially designated Free Software Foundation software, and to any
1984other libraries whose authors decide to use it. You can use it for
1985your libraries, too.
1986
1987 When we speak of free software, we are referring to freedom, not
1988price. Our General Public Licenses are designed to make sure that you
1989have the freedom to distribute copies of free software (and charge for
1990this service if you wish), that you receive source code or can get it
1991if you want it, that you can change the software or use pieces of it
1992in new free programs; and that you know you can do these things.
1993
1994 To protect your rights, we need to make restrictions that forbid
1995anyone to deny you these rights or to ask you to surrender the rights.
1996These restrictions translate to certain responsibilities for you if
1997you distribute copies of the library, or if you modify it.
1998
1999 For example, if you distribute copies of the library, whether gratis
2000or for a fee, you must give the recipients all the rights that we gave
2001you. You must make sure that they, too, receive or can get the source
2002code. If you link a program with the library, you must provide
2003complete object files to the recipients so that they can relink them
2004with the library, after making changes to the library and recompiling
2005it. And you must show them these terms so they know their rights.
2006
2007 Our method of protecting your rights has two steps: (1) copyright
2008the library, and (2) offer you this license which gives you legal
2009permission to copy, distribute and/or modify the library.
2010
2011 Also, for each distributor's protection, we want to make certain
2012that everyone understands that there is no warranty for this free
2013library. If the library is modified by someone else and passed on, we
2014want its recipients to know that what they have is not the original
2015version, so that any problems introduced by others will not reflect on
2016the original authors' reputations.
2017
2018 Finally, any free program is threatened constantly by software
2019patents. We wish to avoid the danger that companies distributing free
2020software will individually obtain patent licenses, thus in effect
2021transforming the program into proprietary software. To prevent this,
2022we have made it clear that any patent must be licensed for everyone's
2023free use or not licensed at all.
2024
2025 Most GNU software, including some libraries, is covered by the ordinary
2026GNU General Public License, which was designed for utility programs. This
2027license, the GNU Library General Public License, applies to certain
2028designated libraries. This license is quite different from the ordinary
2029one; be sure to read it in full, and don't assume that anything in it is
2030the same as in the ordinary license.
2031
2032 The reason we have a separate public license for some libraries is that
2033they blur the distinction we usually make between modifying or adding to a
2034program and simply using it. Linking a program with a library, without
2035changing the library, is in some sense simply using the library, and is
2036analogous to running a utility program or application program. However, in
2037a textual and legal sense, the linked executable is a combined work, a
2038derivative of the original library, and the ordinary General Public License
2039treats it as such.
2040
2041 Because of this blurred distinction, using the ordinary General
2042Public License for libraries did not effectively promote software
2043sharing, because most developers did not use the libraries. We
2044concluded that weaker conditions might promote sharing better.
2045
2046 However, unrestricted linking of non-free programs would deprive the
2047users of those programs of all benefit from the free status of the
2048libraries themselves. This Library General Public License is intended to
2049permit developers of non-free programs to use free libraries, while
2050preserving your freedom as a user of such programs to change the free
2051libraries that are incorporated in them. (We have not seen how to achieve
2052this as regards changes in header files, but we have achieved it as regards
2053changes in the actual functions of the Library.) The hope is that this
2054will lead to faster development of free libraries.
2055
2056 The precise terms and conditions for copying, distribution and
2057modification follow. Pay close attention to the difference between a
2058"work based on the library" and a "work that uses the library". The
2059former contains code derived from the library, while the latter only
2060works together with the library.
2061
2062 Note that it is possible for a library to be covered by the ordinary
2063General Public License rather than by this special one.
2064
2065 GNU LIBRARY GENERAL PUBLIC LICENSE
2066 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
2067
2068 0. This License Agreement applies to any software library which
2069contains a notice placed by the copyright holder or other authorized
2070party saying it may be distributed under the terms of this Library
2071General Public License (also called "this License"). Each licensee is
2072addressed as "you".
2073
2074 A "library" means a collection of software functions and/or data
2075prepared so as to be conveniently linked with application programs
2076(which use some of those functions and data) to form executables.
2077
2078 The "Library", below, refers to any such software library or work
2079which has been distributed under these terms. A "work based on the
2080Library" means either the Library or any derivative work under
2081copyright law: that is to say, a work containing the Library or a
2082portion of it, either verbatim or with modifications and/or translated
2083straightforwardly into another language. (Hereinafter, translation is
2084included without limitation in the term "modification".)
2085
2086 "Source code" for a work means the preferred form of the work for
2087making modifications to it. For a library, complete source code means
2088all the source code for all modules it contains, plus any associated
2089interface definition files, plus the scripts used to control compilation
2090and installation of the library.
2091
2092 Activities other than copying, distribution and modification are not
2093covered by this License; they are outside its scope. The act of
2094running a program using the Library is not restricted, and output from
2095such a program is covered only if its contents constitute a work based
2096on the Library (independent of the use of the Library in a tool for
2097writing it). Whether that is true depends on what the Library does
2098and what the program that uses the Library does.
2099
2100 1. You may copy and distribute verbatim copies of the Library's
2101complete source code as you receive it, in any medium, provided that
2102you conspicuously and appropriately publish on each copy an
2103appropriate copyright notice and disclaimer of warranty; keep intact
2104all the notices that refer to this License and to the absence of any
2105warranty; and distribute a copy of this License along with the
2106Library.
2107
2108 You may charge a fee for the physical act of transferring a copy,
2109and you may at your option offer warranty protection in exchange for a
2110fee.
2111
2112 2. You may modify your copy or copies of the Library or any portion
2113of it, thus forming a work based on the Library, and copy and
2114distribute such modifications or work under the terms of Section 1
2115above, provided that you also meet all of these conditions:
2116
2117 a) The modified work must itself be a software library.
2118
2119 b) You must cause the files modified to carry prominent notices
2120 stating that you changed the files and the date of any change.
2121
2122 c) You must cause the whole of the work to be licensed at no
2123 charge to all third parties under the terms of this License.
2124
2125 d) If a facility in the modified Library refers to a function or a
2126 table of data to be supplied by an application program that uses
2127 the facility, other than as an argument passed when the facility
2128 is invoked, then you must make a good faith effort to ensure that,
2129 in the event an application does not supply such function or
2130 table, the facility still operates, and performs whatever part of
2131 its purpose remains meaningful.
2132
2133 (For example, a function in a library to compute square roots has
2134 a purpose that is entirely well-defined independent of the
2135 application. Therefore, Subsection 2d requires that any
2136 application-supplied function or table used by this function must
2137 be optional: if the application does not supply it, the square
2138 root function must still compute square roots.)
2139
2140These requirements apply to the modified work as a whole. If
2141identifiable sections of that work are not derived from the Library,
2142and can be reasonably considered independent and separate works in
2143themselves, then this License, and its terms, do not apply to those
2144sections when you distribute them as separate works. But when you
2145distribute the same sections as part of a whole which is a work based
2146on the Library, the distribution of the whole must be on the terms of
2147this License, whose permissions for other licensees extend to the
2148entire whole, and thus to each and every part regardless of who wrote
2149it.
2150
2151Thus, it is not the intent of this section to claim rights or contest
2152your rights to work written entirely by you; rather, the intent is to
2153exercise the right to control the distribution of derivative or
2154collective works based on the Library.
2155
2156In addition, mere aggregation of another work not based on the Library
2157with the Library (or with a work based on the Library) on a volume of
2158a storage or distribution medium does not bring the other work under
2159the scope of this License.
2160
2161 3. You may opt to apply the terms of the ordinary GNU General Public
2162License instead of this License to a given copy of the Library. To do
2163this, you must alter all the notices that refer to this License, so
2164that they refer to the ordinary GNU General Public License, version 2,
2165instead of to this License. (If a newer version than version 2 of the
2166ordinary GNU General Public License has appeared, then you can specify
2167that version instead if you wish.) Do not make any other change in
2168these notices.
2169
2170 Once this change is made in a given copy, it is irreversible for
2171that copy, so the ordinary GNU General Public License applies to all
2172subsequent copies and derivative works made from that copy.
2173
2174 This option is useful when you wish to copy part of the code of
2175the Library into a program that is not a library.
2176
2177 4. You may copy and distribute the Library (or a portion or
2178derivative of it, under Section 2) in object code or executable form
2179under the terms of Sections 1 and 2 above provided that you accompany
2180it with the complete corresponding machine-readable source code, which
2181must be distributed under the terms of Sections 1 and 2 above on a
2182medium customarily used for software interchange.
2183
2184 If distribution of object code is made by offering access to copy
2185from a designated place, then offering equivalent access to copy the
2186source code from the same place satisfies the requirement to
2187distribute the source code, even though third parties are not
2188compelled to copy the source along with the object code.
2189
2190 5. A program that contains no derivative of any portion of the
2191Library, but is designed to work with the Library by being compiled or
2192linked with it, is called a "work that uses the Library". Such a
2193work, in isolation, is not a derivative work of the Library, and
2194therefore falls outside the scope of this License.
2195
2196 However, linking a "work that uses the Library" with the Library
2197creates an executable that is a derivative of the Library (because it
2198contains portions of the Library), rather than a "work that uses the
2199library". The executable is therefore covered by this License.
2200Section 6 states terms for distribution of such executables.
2201
2202 When a "work that uses the Library" uses material from a header file
2203that is part of the Library, the object code for the work may be a
2204derivative work of the Library even though the source code is not.
2205Whether this is true is especially significant if the work can be
2206linked without the Library, or if the work is itself a library. The
2207threshold for this to be true is not precisely defined by law.
2208
2209 If such an object file uses only numerical parameters, data
2210structure layouts and accessors, and small macros and small inline
2211functions (ten lines or less in length), then the use of the object
2212file is unrestricted, regardless of whether it is legally a derivative
2213work. (Executables containing this object code plus portions of the
2214Library will still fall under Section 6.)
2215
2216 Otherwise, if the work is a derivative of the Library, you may
2217distribute the object code for the work under the terms of Section 6.
2218Any executables containing that work also fall under Section 6,
2219whether or not they are linked directly with the Library itself.
2220
2221 6. As an exception to the Sections above, you may also compile or
2222link a "work that uses the Library" with the Library to produce a
2223work containing portions of the Library, and distribute that work
2224under terms of your choice, provided that the terms permit
2225modification of the work for the customer's own use and reverse
2226engineering for debugging such modifications.
2227
2228 You must give prominent notice with each copy of the work that the
2229Library is used in it and that the Library and its use are covered by
2230this License. You must supply a copy of this License. If the work
2231during execution displays copyright notices, you must include the
2232copyright notice for the Library among them, as well as a reference
2233directing the user to the copy of this License. Also, you must do one
2234of these things:
2235
2236 a) Accompany the work with the complete corresponding
2237 machine-readable source code for the Library including whatever
2238 changes were used in the work (which must be distributed under
2239 Sections 1 and 2 above); and, if the work is an executable linked
2240 with the Library, with the complete machine-readable "work that
2241 uses the Library", as object code and/or source code, so that the
2242 user can modify the Library and then relink to produce a modified
2243 executable containing the modified Library. (It is understood
2244 that the user who changes the contents of definitions files in the
2245 Library will not necessarily be able to recompile the application
2246 to use the modified definitions.)
2247
2248 b) Accompany the work with a written offer, valid for at
2249 least three years, to give the same user the materials
2250 specified in Subsection 6a, above, for a charge no more
2251 than the cost of performing this distribution.
2252
2253 c) If distribution of the work is made by offering access to copy
2254 from a designated place, offer equivalent access to copy the above
2255 specified materials from the same place.
2256
2257 d) Verify that the user has already received a copy of these
2258 materials or that you have already sent this user a copy.
2259
2260 For an executable, the required form of the "work that uses the
2261Library" must include any data and utility programs needed for
2262reproducing the executable from it. However, as a special exception,
2263the source code distributed need not include anything that is normally
2264distributed (in either source or binary form) with the major
2265components (compiler, kernel, and so on) of the operating system on
2266which the executable runs, unless that component itself accompanies
2267the executable.
2268
2269 It may happen that this requirement contradicts the license
2270restrictions of other proprietary libraries that do not normally
2271accompany the operating system. Such a contradiction means you cannot
2272use both them and the Library together in an executable that you
2273distribute.
2274
2275 7. You may place library facilities that are a work based on the
2276Library side-by-side in a single library together with other library
2277facilities not covered by this License, and distribute such a combined
2278library, provided that the separate distribution of the work based on
2279the Library and of the other library facilities is otherwise
2280permitted, and provided that you do these two things:
2281
2282 a) Accompany the combined library with a copy of the same work
2283 based on the Library, uncombined with any other library
2284 facilities. This must be distributed under the terms of the
2285 Sections above.
2286
2287 b) Give prominent notice with the combined library of the fact
2288 that part of it is a work based on the Library, and explaining
2289 where to find the accompanying uncombined form of the same work.
2290
2291 8. You may not copy, modify, sublicense, link with, or distribute
2292the Library except as expressly provided under this License. Any
2293attempt otherwise to copy, modify, sublicense, link with, or
2294distribute the Library is void, and will automatically terminate your
2295rights under this License. However, parties who have received copies,
2296or rights, from you under this License will not have their licenses
2297terminated so long as such parties remain in full compliance.
2298
2299 9. You are not required to accept this License, since you have not
2300signed it. However, nothing else grants you permission to modify or
2301distribute the Library or its derivative works. These actions are
2302prohibited by law if you do not accept this License. Therefore, by
2303modifying or distributing the Library (or any work based on the
2304Library), you indicate your acceptance of this License to do so, and
2305all its terms and conditions for copying, distributing or modifying
2306the Library or works based on it.
2307
2308 10. Each time you redistribute the Library (or any work based on the
2309Library), the recipient automatically receives a license from the
2310original licensor to copy, distribute, link with or modify the Library
2311subject to these terms and conditions. You may not impose any further
2312restrictions on the recipients' exercise of the rights granted herein.
2313You are not responsible for enforcing compliance by third parties to
2314this License.
2315
2316 11. If, as a consequence of a court judgment or allegation of patent
2317infringement or for any other reason (not limited to patent issues),
2318conditions are imposed on you (whether by court order, agreement or
2319otherwise) that contradict the conditions of this License, they do not
2320excuse you from the conditions of this License. If you cannot
2321distribute so as to satisfy simultaneously your obligations under this
2322License and any other pertinent obligations, then as a consequence you
2323may not distribute the Library at all. For example, if a patent
2324license would not permit royalty-free redistribution of the Library by
2325all those who receive copies directly or indirectly through you, then
2326the only way you could satisfy both it and this License would be to
2327refrain entirely from distribution of the Library.
2328
2329If any portion of this section is held invalid or unenforceable under any
2330particular circumstance, the balance of the section is intended to apply,
2331and the section as a whole is intended to apply in other circumstances.
2332
2333It is not the purpose of this section to induce you to infringe any
2334patents or other property right claims or to contest validity of any
2335such claims; this section has the sole purpose of protecting the
2336integrity of the free software distribution system which is
2337implemented by public license practices. Many people have made
2338generous contributions to the wide range of software distributed
2339through that system in reliance on consistent application of that
2340system; it is up to the author/donor to decide if he or she is willing
2341to distribute software through any other system and a licensee cannot
2342impose that choice.
2343
2344This section is intended to make thoroughly clear what is believed to
2345be a consequence of the rest of this License.
2346
2347 12. If the distribution and/or use of the Library is restricted in
2348certain countries either by patents or by copyrighted interfaces, the
2349original copyright holder who places the Library under this License may add
2350an explicit geographical distribution limitation excluding those countries,
2351so that distribution is permitted only in or among countries not thus
2352excluded. In such case, this License incorporates the limitation as if
2353written in the body of this License.
2354
2355 13. The Free Software Foundation may publish revised and/or new
2356versions of the Library General Public License from time to time.
2357Such new versions will be similar in spirit to the present version,
2358but may differ in detail to address new problems or concerns.
2359
2360Each version is given a distinguishing version number. If the Library
2361specifies a version number of this License which applies to it and
2362"any later version", you have the option of following the terms and
2363conditions either of that version or of any later version published by
2364the Free Software Foundation. If the Library does not specify a
2365license version number, you may choose any version ever published by
2366the Free Software Foundation.
2367
2368 14. If you wish to incorporate parts of the Library into other free
2369programs whose distribution conditions are incompatible with these,
2370write to the author to ask for permission. For software which is
2371copyrighted by the Free Software Foundation, write to the Free
2372Software Foundation; we sometimes make exceptions for this. Our
2373decision will be guided by the two goals of preserving the free status
2374of all derivatives of our free software and of promoting the sharing
2375and reuse of software generally.
2376
2377 NO WARRANTY
2378
2379 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
2380WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
2381EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
2382OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
2383KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
2384IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2385PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
2386LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
2387THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
2388
2389 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
2390WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
2391AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
2392FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
2393CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
2394LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
2395RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
2396FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
2397SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
2398DAMAGES.
2399
2400 END OF TERMS AND CONDITIONS
2401
2402 How to Apply These Terms to Your New Libraries
2403
2404 If you develop a new library, and you want it to be of the greatest
2405possible use to the public, we recommend making it free software that
2406everyone can redistribute and change. You can do so by permitting
2407redistribution under these terms (or, alternatively, under the terms of the
2408ordinary General Public License).
2409
2410 To apply these terms, attach the following notices to the library. It is
2411safest to attach them to the start of each source file to most effectively
2412convey the exclusion of warranty; and each file should have at least the
2413"copyright" line and a pointer to where the full notice is found.
2414
2415 <one line to give the library's name and a brief idea of what it does.>
2416 Copyright (C) <year> <name of author>
2417
2418 This library is free software; you can redistribute it and/or
2419 modify it under the terms of the GNU Library General Public
2420 License as published by the Free Software Foundation; either
2421 version 2 of the License, or (at your option) any later version.
2422
2423 This library is distributed in the hope that it will be useful,
2424 but WITHOUT ANY WARRANTY; without even the implied warranty of
2425 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2426 Library General Public License for more details.
2427
2428 You should have received a copy of the GNU Library General Public
2429 License along with this library; if not, write to the Free Software
2430 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
2431
2432Also add information on how to contact you by electronic and paper mail.
2433
2434You should also get your employer (if you work as a programmer) or your
2435school, if any, to sign a "copyright disclaimer" for the library, if
2436necessary. Here is a sample; alter the names:
2437
2438 Yoyodyne, Inc., hereby disclaims all copyright interest in the
2439 library `Frob' (a library for tweaking knobs) written by James Random Hacker.
2440
2441 <signature of Ty Coon>, 1 April 1990
2442 Ty Coon, President of Vice
2443
2444That's all there is to it!