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