1*584308e5Szhongyang GNU GENERAL PUBLIC LICENSE 2*584308e5Szhongyang Version 3, 29 June 2007 3a51ceaf6Szhongyang219 4*584308e5Szhongyang Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 5*584308e5Szhongyang Everyone is permitted to copy and distribute verbatim copies 6*584308e5Szhongyang of this license document, but changing it is not allowed. 7a51ceaf6Szhongyang219 8*584308e5Szhongyang Preamble 9a51ceaf6Szhongyang219 10*584308e5Szhongyang The GNU General Public License is a free, copyleft license for 11*584308e5Szhongyangsoftware and other kinds of works. 12a51ceaf6Szhongyang219 13*584308e5Szhongyang The licenses for most software and other practical works are designed 14*584308e5Szhongyangto take away your freedom to share and change the works. By contrast, 15*584308e5Szhongyangthe GNU General Public License is intended to guarantee your freedom to 16*584308e5Szhongyangshare and change all versions of a program--to make sure it remains free 17*584308e5Szhongyangsoftware for all its users. We, the Free Software Foundation, use the 18*584308e5SzhongyangGNU General Public License for most of our software; it applies also to 19*584308e5Szhongyangany other work released this way by its authors. You can apply it to 20*584308e5Szhongyangyour programs, too. 21*584308e5Szhongyang 22*584308e5Szhongyang When we speak of free software, we are referring to freedom, not 23*584308e5Szhongyangprice. Our General Public Licenses are designed to make sure that you 24*584308e5Szhongyanghave the freedom to distribute copies of free software (and charge for 25*584308e5Szhongyangthem if you wish), that you receive source code or can get it if you 26*584308e5Szhongyangwant it, that you can change the software or use pieces of it in new 27*584308e5Szhongyangfree programs, and that you know you can do these things. 28*584308e5Szhongyang 29*584308e5Szhongyang To protect your rights, we need to prevent others from denying you 30*584308e5Szhongyangthese rights or asking you to surrender the rights. Therefore, you have 31*584308e5Szhongyangcertain responsibilities if you distribute copies of the software, or if 32*584308e5Szhongyangyou modify it: responsibilities to respect the freedom of others. 33*584308e5Szhongyang 34*584308e5Szhongyang For example, if you distribute copies of such a program, whether 35*584308e5Szhongyanggratis or for a fee, you must pass on to the recipients the same 36*584308e5Szhongyangfreedoms that you received. You must make sure that they, too, receive 37*584308e5Szhongyangor can get the source code. And you must show them these terms so they 38*584308e5Szhongyangknow their rights. 39*584308e5Szhongyang 40*584308e5Szhongyang Developers that use the GNU GPL protect your rights with two steps: 41*584308e5Szhongyang(1) assert copyright on the software, and (2) offer you this License 42*584308e5Szhongyanggiving you legal permission to copy, distribute and/or modify it. 43*584308e5Szhongyang 44*584308e5Szhongyang For the developers' and authors' protection, the GPL clearly explains 45*584308e5Szhongyangthat there is no warranty for this free software. For both users' and 46*584308e5Szhongyangauthors' sake, the GPL requires that modified versions be marked as 47*584308e5Szhongyangchanged, so that their problems will not be attributed erroneously to 48*584308e5Szhongyangauthors of previous versions. 49*584308e5Szhongyang 50*584308e5Szhongyang Some devices are designed to deny users access to install or run 51*584308e5Szhongyangmodified versions of the software inside them, although the manufacturer 52*584308e5Szhongyangcan do so. This is fundamentally incompatible with the aim of 53*584308e5Szhongyangprotecting users' freedom to change the software. The systematic 54*584308e5Szhongyangpattern of such abuse occurs in the area of products for individuals to 55*584308e5Szhongyanguse, which is precisely where it is most unacceptable. Therefore, we 56*584308e5Szhongyanghave designed this version of the GPL to prohibit the practice for those 57*584308e5Szhongyangproducts. If such problems arise substantially in other domains, we 58*584308e5Szhongyangstand ready to extend this provision to those domains in future versions 59*584308e5Szhongyangof the GPL, as needed to protect the freedom of users. 60*584308e5Szhongyang 61*584308e5Szhongyang Finally, every program is threatened constantly by software patents. 62*584308e5SzhongyangStates should not allow patents to restrict development and use of 63*584308e5Szhongyangsoftware on general-purpose computers, but in those that do, we wish to 64*584308e5Szhongyangavoid the special danger that patents applied to a free program could 65*584308e5Szhongyangmake it effectively proprietary. To prevent this, the GPL assures that 66*584308e5Szhongyangpatents cannot be used to render the program non-free. 67*584308e5Szhongyang 68*584308e5Szhongyang The precise terms and conditions for copying, distribution and 69*584308e5Szhongyangmodification follow. 70*584308e5Szhongyang 71*584308e5Szhongyang TERMS AND CONDITIONS 72*584308e5Szhongyang 73*584308e5Szhongyang 0. Definitions. 74*584308e5Szhongyang 75*584308e5Szhongyang "This License" refers to version 3 of the GNU General Public License. 76*584308e5Szhongyang 77*584308e5Szhongyang "Copyright" also means copyright-like laws that apply to other kinds of 78*584308e5Szhongyangworks, such as semiconductor masks. 79*584308e5Szhongyang 80*584308e5Szhongyang "The Program" refers to any copyrightable work licensed under this 81*584308e5SzhongyangLicense. Each licensee is addressed as "you". "Licensees" and 82*584308e5Szhongyang"recipients" may be individuals or organizations. 83*584308e5Szhongyang 84*584308e5Szhongyang To "modify" a work means to copy from or adapt all or part of the work 85*584308e5Szhongyangin a fashion requiring copyright permission, other than the making of an 86*584308e5Szhongyangexact copy. The resulting work is called a "modified version" of the 87*584308e5Szhongyangearlier work or a work "based on" the earlier work. 88*584308e5Szhongyang 89*584308e5Szhongyang A "covered work" means either the unmodified Program or a work based 90*584308e5Szhongyangon the Program. 91*584308e5Szhongyang 92*584308e5Szhongyang To "propagate" a work means to do anything with it that, without 93*584308e5Szhongyangpermission, would make you directly or secondarily liable for 94*584308e5Szhongyanginfringement under applicable copyright law, except executing it on a 95*584308e5Szhongyangcomputer or modifying a private copy. Propagation includes copying, 96*584308e5Szhongyangdistribution (with or without modification), making available to the 97*584308e5Szhongyangpublic, and in some countries other activities as well. 98*584308e5Szhongyang 99*584308e5Szhongyang To "convey" a work means any kind of propagation that enables other 100*584308e5Szhongyangparties to make or receive copies. Mere interaction with a user through 101*584308e5Szhongyanga computer network, with no transfer of a copy, is not conveying. 102*584308e5Szhongyang 103*584308e5Szhongyang An interactive user interface displays "Appropriate Legal Notices" 104*584308e5Szhongyangto the extent that it includes a convenient and prominently visible 105*584308e5Szhongyangfeature that (1) displays an appropriate copyright notice, and (2) 106*584308e5Szhongyangtells the user that there is no warranty for the work (except to the 107*584308e5Szhongyangextent that warranties are provided), that licensees may convey the 108*584308e5Szhongyangwork under this License, and how to view a copy of this License. If 109*584308e5Szhongyangthe interface presents a list of user commands or options, such as a 110*584308e5Szhongyangmenu, a prominent item in the list meets this criterion. 111*584308e5Szhongyang 112*584308e5Szhongyang 1. Source Code. 113*584308e5Szhongyang 114*584308e5Szhongyang The "source code" for a work means the preferred form of the work 115*584308e5Szhongyangfor making modifications to it. "Object code" means any non-source 116*584308e5Szhongyangform of a work. 117*584308e5Szhongyang 118*584308e5Szhongyang A "Standard Interface" means an interface that either is an official 119*584308e5Szhongyangstandard defined by a recognized standards body, or, in the case of 120*584308e5Szhongyanginterfaces specified for a particular programming language, one that 121*584308e5Szhongyangis widely used among developers working in that language. 122*584308e5Szhongyang 123*584308e5Szhongyang The "System Libraries" of an executable work include anything, other 124*584308e5Szhongyangthan the work as a whole, that (a) is included in the normal form of 125*584308e5Szhongyangpackaging a Major Component, but which is not part of that Major 126*584308e5SzhongyangComponent, and (b) serves only to enable use of the work with that 127*584308e5SzhongyangMajor Component, or to implement a Standard Interface for which an 128*584308e5Szhongyangimplementation is available to the public in source code form. A 129*584308e5Szhongyang"Major Component", in this context, means a major essential component 130*584308e5Szhongyang(kernel, window system, and so on) of the specific operating system 131*584308e5Szhongyang(if any) on which the executable work runs, or a compiler used to 132*584308e5Szhongyangproduce the work, or an object code interpreter used to run it. 133*584308e5Szhongyang 134*584308e5Szhongyang The "Corresponding Source" for a work in object code form means all 135*584308e5Szhongyangthe source code needed to generate, install, and (for an executable 136*584308e5Szhongyangwork) run the object code and to modify the work, including scripts to 137*584308e5Szhongyangcontrol those activities. However, it does not include the work's 138*584308e5SzhongyangSystem Libraries, or general-purpose tools or generally available free 139*584308e5Szhongyangprograms which are used unmodified in performing those activities but 140*584308e5Szhongyangwhich are not part of the work. For example, Corresponding Source 141*584308e5Szhongyangincludes interface definition files associated with source files for 142*584308e5Szhongyangthe work, and the source code for shared libraries and dynamically 143*584308e5Szhongyanglinked subprograms that the work is specifically designed to require, 144*584308e5Szhongyangsuch as by intimate data communication or control flow between those 145*584308e5Szhongyangsubprograms and other parts of the work. 146*584308e5Szhongyang 147*584308e5Szhongyang The Corresponding Source need not include anything that users 148*584308e5Szhongyangcan regenerate automatically from other parts of the Corresponding 149*584308e5SzhongyangSource. 150*584308e5Szhongyang 151*584308e5Szhongyang The Corresponding Source for a work in source code form is that 152*584308e5Szhongyangsame work. 153*584308e5Szhongyang 154*584308e5Szhongyang 2. Basic Permissions. 155*584308e5Szhongyang 156*584308e5Szhongyang All rights granted under this License are granted for the term of 157*584308e5Szhongyangcopyright on the Program, and are irrevocable provided the stated 158*584308e5Szhongyangconditions are met. This License explicitly affirms your unlimited 159*584308e5Szhongyangpermission to run the unmodified Program. The output from running a 160*584308e5Szhongyangcovered work is covered by this License only if the output, given its 161*584308e5Szhongyangcontent, constitutes a covered work. This License acknowledges your 162*584308e5Szhongyangrights of fair use or other equivalent, as provided by copyright law. 163*584308e5Szhongyang 164*584308e5Szhongyang You may make, run and propagate covered works that you do not 165*584308e5Szhongyangconvey, without conditions so long as your license otherwise remains 166*584308e5Szhongyangin force. You may convey covered works to others for the sole purpose 167*584308e5Szhongyangof having them make modifications exclusively for you, or provide you 168*584308e5Szhongyangwith facilities for running those works, provided that you comply with 169*584308e5Szhongyangthe terms of this License in conveying all material for which you do 170*584308e5Szhongyangnot control copyright. Those thus making or running the covered works 171*584308e5Szhongyangfor you must do so exclusively on your behalf, under your direction 172*584308e5Szhongyangand control, on terms that prohibit them from making any copies of 173*584308e5Szhongyangyour copyrighted material outside their relationship with you. 174*584308e5Szhongyang 175*584308e5Szhongyang Conveying under any other circumstances is permitted solely under 176*584308e5Szhongyangthe conditions stated below. Sublicensing is not allowed; section 10 177*584308e5Szhongyangmakes it unnecessary. 178*584308e5Szhongyang 179*584308e5Szhongyang 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180*584308e5Szhongyang 181*584308e5Szhongyang No covered work shall be deemed part of an effective technological 182*584308e5Szhongyangmeasure under any applicable law fulfilling obligations under article 183*584308e5Szhongyang11 of the WIPO copyright treaty adopted on 20 December 1996, or 184*584308e5Szhongyangsimilar laws prohibiting or restricting circumvention of such 185*584308e5Szhongyangmeasures. 186*584308e5Szhongyang 187*584308e5Szhongyang When you convey a covered work, you waive any legal power to forbid 188*584308e5Szhongyangcircumvention of technological measures to the extent such circumvention 189*584308e5Szhongyangis effected by exercising rights under this License with respect to 190*584308e5Szhongyangthe covered work, and you disclaim any intention to limit operation or 191*584308e5Szhongyangmodification of the work as a means of enforcing, against the work's 192*584308e5Szhongyangusers, your or third parties' legal rights to forbid circumvention of 193*584308e5Szhongyangtechnological measures. 194*584308e5Szhongyang 195*584308e5Szhongyang 4. Conveying Verbatim Copies. 196*584308e5Szhongyang 197*584308e5Szhongyang You may convey verbatim copies of the Program's source code as you 198*584308e5Szhongyangreceive it, in any medium, provided that you conspicuously and 199*584308e5Szhongyangappropriately publish on each copy an appropriate copyright notice; 200*584308e5Szhongyangkeep intact all notices stating that this License and any 201*584308e5Szhongyangnon-permissive terms added in accord with section 7 apply to the code; 202*584308e5Szhongyangkeep intact all notices of the absence of any warranty; and give all 203*584308e5Szhongyangrecipients a copy of this License along with the Program. 204*584308e5Szhongyang 205*584308e5Szhongyang You may charge any price or no price for each copy that you convey, 206*584308e5Szhongyangand you may offer support or warranty protection for a fee. 207*584308e5Szhongyang 208*584308e5Szhongyang 5. Conveying Modified Source Versions. 209*584308e5Szhongyang 210*584308e5Szhongyang You may convey a work based on the Program, or the modifications to 211*584308e5Szhongyangproduce it from the Program, in the form of source code under the 212*584308e5Szhongyangterms of section 4, provided that you also meet all of these conditions: 213*584308e5Szhongyang 214*584308e5Szhongyang a) The work must carry prominent notices stating that you modified 215*584308e5Szhongyang it, and giving a relevant date. 216*584308e5Szhongyang 217*584308e5Szhongyang b) The work must carry prominent notices stating that it is 218*584308e5Szhongyang released under this License and any conditions added under section 219*584308e5Szhongyang 7. This requirement modifies the requirement in section 4 to 220*584308e5Szhongyang "keep intact all notices". 221*584308e5Szhongyang 222*584308e5Szhongyang c) You must license the entire work, as a whole, under this 223*584308e5Szhongyang License to anyone who comes into possession of a copy. This 224*584308e5Szhongyang License will therefore apply, along with any applicable section 7 225*584308e5Szhongyang additional terms, to the whole of the work, and all its parts, 226*584308e5Szhongyang regardless of how they are packaged. This License gives no 227*584308e5Szhongyang permission to license the work in any other way, but it does not 228*584308e5Szhongyang invalidate such permission if you have separately received it. 229*584308e5Szhongyang 230*584308e5Szhongyang d) If the work has interactive user interfaces, each must display 231*584308e5Szhongyang Appropriate Legal Notices; however, if the Program has interactive 232*584308e5Szhongyang interfaces that do not display Appropriate Legal Notices, your 233*584308e5Szhongyang work need not make them do so. 234*584308e5Szhongyang 235*584308e5Szhongyang A compilation of a covered work with other separate and independent 236*584308e5Szhongyangworks, which are not by their nature extensions of the covered work, 237*584308e5Szhongyangand which are not combined with it such as to form a larger program, 238*584308e5Szhongyangin or on a volume of a storage or distribution medium, is called an 239*584308e5Szhongyang"aggregate" if the compilation and its resulting copyright are not 240*584308e5Szhongyangused to limit the access or legal rights of the compilation's users 241*584308e5Szhongyangbeyond what the individual works permit. Inclusion of a covered work 242*584308e5Szhongyangin an aggregate does not cause this License to apply to the other 243*584308e5Szhongyangparts of the aggregate. 244*584308e5Szhongyang 245*584308e5Szhongyang 6. Conveying Non-Source Forms. 246*584308e5Szhongyang 247*584308e5Szhongyang You may convey a covered work in object code form under the terms 248*584308e5Szhongyangof sections 4 and 5, provided that you also convey the 249*584308e5Szhongyangmachine-readable Corresponding Source under the terms of this License, 250*584308e5Szhongyangin one of these ways: 251*584308e5Szhongyang 252*584308e5Szhongyang a) Convey the object code in, or embodied in, a physical product 253*584308e5Szhongyang (including a physical distribution medium), accompanied by the 254*584308e5Szhongyang Corresponding Source fixed on a durable physical medium 255*584308e5Szhongyang customarily used for software interchange. 256*584308e5Szhongyang 257*584308e5Szhongyang b) Convey the object code in, or embodied in, a physical product 258*584308e5Szhongyang (including a physical distribution medium), accompanied by a 259*584308e5Szhongyang written offer, valid for at least three years and valid for as 260*584308e5Szhongyang long as you offer spare parts or customer support for that product 261*584308e5Szhongyang model, to give anyone who possesses the object code either (1) a 262*584308e5Szhongyang copy of the Corresponding Source for all the software in the 263*584308e5Szhongyang product that is covered by this License, on a durable physical 264*584308e5Szhongyang medium customarily used for software interchange, for a price no 265*584308e5Szhongyang more than your reasonable cost of physically performing this 266*584308e5Szhongyang conveying of source, or (2) access to copy the 267*584308e5Szhongyang Corresponding Source from a network server at no charge. 268*584308e5Szhongyang 269*584308e5Szhongyang c) Convey individual copies of the object code with a copy of the 270*584308e5Szhongyang written offer to provide the Corresponding Source. This 271*584308e5Szhongyang alternative is allowed only occasionally and noncommercially, and 272*584308e5Szhongyang only if you received the object code with such an offer, in accord 273*584308e5Szhongyang with subsection 6b. 274*584308e5Szhongyang 275*584308e5Szhongyang d) Convey the object code by offering access from a designated 276*584308e5Szhongyang place (gratis or for a charge), and offer equivalent access to the 277*584308e5Szhongyang Corresponding Source in the same way through the same place at no 278*584308e5Szhongyang further charge. You need not require recipients to copy the 279*584308e5Szhongyang Corresponding Source along with the object code. If the place to 280*584308e5Szhongyang copy the object code is a network server, the Corresponding Source 281*584308e5Szhongyang may be on a different server (operated by you or a third party) 282*584308e5Szhongyang that supports equivalent copying facilities, provided you maintain 283*584308e5Szhongyang clear directions next to the object code saying where to find the 284*584308e5Szhongyang Corresponding Source. Regardless of what server hosts the 285*584308e5Szhongyang Corresponding Source, you remain obligated to ensure that it is 286*584308e5Szhongyang available for as long as needed to satisfy these requirements. 287*584308e5Szhongyang 288*584308e5Szhongyang e) Convey the object code using peer-to-peer transmission, provided 289*584308e5Szhongyang you inform other peers where the object code and Corresponding 290*584308e5Szhongyang Source of the work are being offered to the general public at no 291*584308e5Szhongyang charge under subsection 6d. 292*584308e5Szhongyang 293*584308e5Szhongyang A separable portion of the object code, whose source code is excluded 294*584308e5Szhongyangfrom the Corresponding Source as a System Library, need not be 295*584308e5Szhongyangincluded in conveying the object code work. 296*584308e5Szhongyang 297*584308e5Szhongyang A "User Product" is either (1) a "consumer product", which means any 298*584308e5Szhongyangtangible personal property which is normally used for personal, family, 299*584308e5Szhongyangor household purposes, or (2) anything designed or sold for incorporation 300*584308e5Szhongyanginto a dwelling. In determining whether a product is a consumer product, 301*584308e5Szhongyangdoubtful cases shall be resolved in favor of coverage. For a particular 302*584308e5Szhongyangproduct received by a particular user, "normally used" refers to a 303*584308e5Szhongyangtypical or common use of that class of product, regardless of the status 304*584308e5Szhongyangof the particular user or of the way in which the particular user 305*584308e5Szhongyangactually uses, or expects or is expected to use, the product. A product 306*584308e5Szhongyangis a consumer product regardless of whether the product has substantial 307*584308e5Szhongyangcommercial, industrial or non-consumer uses, unless such uses represent 308*584308e5Szhongyangthe only significant mode of use of the product. 309*584308e5Szhongyang 310*584308e5Szhongyang "Installation Information" for a User Product means any methods, 311*584308e5Szhongyangprocedures, authorization keys, or other information required to install 312*584308e5Szhongyangand execute modified versions of a covered work in that User Product from 313*584308e5Szhongyanga modified version of its Corresponding Source. The information must 314*584308e5Szhongyangsuffice to ensure that the continued functioning of the modified object 315*584308e5Szhongyangcode is in no case prevented or interfered with solely because 316*584308e5Szhongyangmodification has been made. 317*584308e5Szhongyang 318*584308e5Szhongyang If you convey an object code work under this section in, or with, or 319*584308e5Szhongyangspecifically for use in, a User Product, and the conveying occurs as 320*584308e5Szhongyangpart of a transaction in which the right of possession and use of the 321*584308e5SzhongyangUser Product is transferred to the recipient in perpetuity or for a 322*584308e5Szhongyangfixed term (regardless of how the transaction is characterized), the 323*584308e5SzhongyangCorresponding Source conveyed under this section must be accompanied 324*584308e5Szhongyangby the Installation Information. But this requirement does not apply 325*584308e5Szhongyangif neither you nor any third party retains the ability to install 326*584308e5Szhongyangmodified object code on the User Product (for example, the work has 327*584308e5Szhongyangbeen installed in ROM). 328*584308e5Szhongyang 329*584308e5Szhongyang The requirement to provide Installation Information does not include a 330*584308e5Szhongyangrequirement to continue to provide support service, warranty, or updates 331*584308e5Szhongyangfor a work that has been modified or installed by the recipient, or for 332*584308e5Szhongyangthe User Product in which it has been modified or installed. Access to a 333*584308e5Szhongyangnetwork may be denied when the modification itself materially and 334*584308e5Szhongyangadversely affects the operation of the network or violates the rules and 335*584308e5Szhongyangprotocols for communication across the network. 336*584308e5Szhongyang 337*584308e5Szhongyang Corresponding Source conveyed, and Installation Information provided, 338*584308e5Szhongyangin accord with this section must be in a format that is publicly 339*584308e5Szhongyangdocumented (and with an implementation available to the public in 340*584308e5Szhongyangsource code form), and must require no special password or key for 341*584308e5Szhongyangunpacking, reading or copying. 342*584308e5Szhongyang 343*584308e5Szhongyang 7. Additional Terms. 344*584308e5Szhongyang 345*584308e5Szhongyang "Additional permissions" are terms that supplement the terms of this 346*584308e5SzhongyangLicense by making exceptions from one or more of its conditions. 347*584308e5SzhongyangAdditional permissions that are applicable to the entire Program shall 348*584308e5Szhongyangbe treated as though they were included in this License, to the extent 349*584308e5Szhongyangthat they are valid under applicable law. If additional permissions 350*584308e5Szhongyangapply only to part of the Program, that part may be used separately 351*584308e5Szhongyangunder those permissions, but the entire Program remains governed by 352*584308e5Szhongyangthis License without regard to the additional permissions. 353*584308e5Szhongyang 354*584308e5Szhongyang When you convey a copy of a covered work, you may at your option 355*584308e5Szhongyangremove any additional permissions from that copy, or from any part of 356*584308e5Szhongyangit. (Additional permissions may be written to require their own 357*584308e5Szhongyangremoval in certain cases when you modify the work.) You may place 358*584308e5Szhongyangadditional permissions on material, added by you to a covered work, 359*584308e5Szhongyangfor which you have or can give appropriate copyright permission. 360*584308e5Szhongyang 361*584308e5Szhongyang Notwithstanding any other provision of this License, for material you 362*584308e5Szhongyangadd to a covered work, you may (if authorized by the copyright holders of 363*584308e5Szhongyangthat material) supplement the terms of this License with terms: 364*584308e5Szhongyang 365*584308e5Szhongyang a) Disclaiming warranty or limiting liability differently from the 366*584308e5Szhongyang terms of sections 15 and 16 of this License; or 367*584308e5Szhongyang 368*584308e5Szhongyang b) Requiring preservation of specified reasonable legal notices or 369*584308e5Szhongyang author attributions in that material or in the Appropriate Legal 370*584308e5Szhongyang Notices displayed by works containing it; or 371*584308e5Szhongyang 372*584308e5Szhongyang c) Prohibiting misrepresentation of the origin of that material, or 373*584308e5Szhongyang requiring that modified versions of such material be marked in 374*584308e5Szhongyang reasonable ways as different from the original version; or 375*584308e5Szhongyang 376*584308e5Szhongyang d) Limiting the use for publicity purposes of names of licensors or 377*584308e5Szhongyang authors of the material; or 378*584308e5Szhongyang 379*584308e5Szhongyang e) Declining to grant rights under trademark law for use of some 380*584308e5Szhongyang trade names, trademarks, or service marks; or 381*584308e5Szhongyang 382*584308e5Szhongyang f) Requiring indemnification of licensors and authors of that 383*584308e5Szhongyang material by anyone who conveys the material (or modified versions of 384*584308e5Szhongyang it) with contractual assumptions of liability to the recipient, for 385*584308e5Szhongyang any liability that these contractual assumptions directly impose on 386*584308e5Szhongyang those licensors and authors. 387*584308e5Szhongyang 388*584308e5Szhongyang All other non-permissive additional terms are considered "further 389*584308e5Szhongyangrestrictions" within the meaning of section 10. If the Program as you 390*584308e5Szhongyangreceived it, or any part of it, contains a notice stating that it is 391*584308e5Szhongyanggoverned by this License along with a term that is a further 392*584308e5Szhongyangrestriction, you may remove that term. If a license document contains 393*584308e5Szhongyanga further restriction but permits relicensing or conveying under this 394*584308e5SzhongyangLicense, you may add to a covered work material governed by the terms 395*584308e5Szhongyangof that license document, provided that the further restriction does 396*584308e5Szhongyangnot survive such relicensing or conveying. 397*584308e5Szhongyang 398*584308e5Szhongyang If you add terms to a covered work in accord with this section, you 399*584308e5Szhongyangmust place, in the relevant source files, a statement of the 400*584308e5Szhongyangadditional terms that apply to those files, or a notice indicating 401*584308e5Szhongyangwhere to find the applicable terms. 402*584308e5Szhongyang 403*584308e5Szhongyang Additional terms, permissive or non-permissive, may be stated in the 404*584308e5Szhongyangform of a separately written license, or stated as exceptions; 405*584308e5Szhongyangthe above requirements apply either way. 406*584308e5Szhongyang 407*584308e5Szhongyang 8. Termination. 408*584308e5Szhongyang 409*584308e5Szhongyang You may not propagate or modify a covered work except as expressly 410*584308e5Szhongyangprovided under this License. Any attempt otherwise to propagate or 411*584308e5Szhongyangmodify it is void, and will automatically terminate your rights under 412*584308e5Szhongyangthis License (including any patent licenses granted under the third 413*584308e5Szhongyangparagraph of section 11). 414*584308e5Szhongyang 415*584308e5Szhongyang However, if you cease all violation of this License, then your 416*584308e5Szhongyanglicense from a particular copyright holder is reinstated (a) 417*584308e5Szhongyangprovisionally, unless and until the copyright holder explicitly and 418*584308e5Szhongyangfinally terminates your license, and (b) permanently, if the copyright 419*584308e5Szhongyangholder fails to notify you of the violation by some reasonable means 420*584308e5Szhongyangprior to 60 days after the cessation. 421*584308e5Szhongyang 422*584308e5Szhongyang Moreover, your license from a particular copyright holder is 423*584308e5Szhongyangreinstated permanently if the copyright holder notifies you of the 424*584308e5Szhongyangviolation by some reasonable means, this is the first time you have 425*584308e5Szhongyangreceived notice of violation of this License (for any work) from that 426*584308e5Szhongyangcopyright holder, and you cure the violation prior to 30 days after 427*584308e5Szhongyangyour receipt of the notice. 428*584308e5Szhongyang 429*584308e5Szhongyang Termination of your rights under this section does not terminate the 430*584308e5Szhongyanglicenses of parties who have received copies or rights from you under 431*584308e5Szhongyangthis License. If your rights have been terminated and not permanently 432*584308e5Szhongyangreinstated, you do not qualify to receive new licenses for the same 433*584308e5Szhongyangmaterial under section 10. 434*584308e5Szhongyang 435*584308e5Szhongyang 9. Acceptance Not Required for Having Copies. 436*584308e5Szhongyang 437*584308e5Szhongyang You are not required to accept this License in order to receive or 438*584308e5Szhongyangrun a copy of the Program. Ancillary propagation of a covered work 439*584308e5Szhongyangoccurring solely as a consequence of using peer-to-peer transmission 440*584308e5Szhongyangto receive a copy likewise does not require acceptance. However, 441*584308e5Szhongyangnothing other than this License grants you permission to propagate or 442*584308e5Szhongyangmodify any covered work. These actions infringe copyright if you do 443*584308e5Szhongyangnot accept this License. Therefore, by modifying or propagating a 444*584308e5Szhongyangcovered work, you indicate your acceptance of this License to do so. 445*584308e5Szhongyang 446*584308e5Szhongyang 10. Automatic Licensing of Downstream Recipients. 447*584308e5Szhongyang 448*584308e5Szhongyang Each time you convey a covered work, the recipient automatically 449*584308e5Szhongyangreceives a license from the original licensors, to run, modify and 450*584308e5Szhongyangpropagate that work, subject to this License. You are not responsible 451*584308e5Szhongyangfor enforcing compliance by third parties with this License. 452*584308e5Szhongyang 453*584308e5Szhongyang An "entity transaction" is a transaction transferring control of an 454*584308e5Szhongyangorganization, or substantially all assets of one, or subdividing an 455*584308e5Szhongyangorganization, or merging organizations. If propagation of a covered 456*584308e5Szhongyangwork results from an entity transaction, each party to that 457*584308e5Szhongyangtransaction who receives a copy of the work also receives whatever 458*584308e5Szhongyanglicenses to the work the party's predecessor in interest had or could 459*584308e5Szhongyanggive under the previous paragraph, plus a right to possession of the 460*584308e5SzhongyangCorresponding Source of the work from the predecessor in interest, if 461*584308e5Szhongyangthe predecessor has it or can get it with reasonable efforts. 462*584308e5Szhongyang 463*584308e5Szhongyang You may not impose any further restrictions on the exercise of the 464*584308e5Szhongyangrights granted or affirmed under this License. For example, you may 465*584308e5Szhongyangnot impose a license fee, royalty, or other charge for exercise of 466*584308e5Szhongyangrights granted under this License, and you may not initiate litigation 467*584308e5Szhongyang(including a cross-claim or counterclaim in a lawsuit) alleging that 468*584308e5Szhongyangany patent claim is infringed by making, using, selling, offering for 469*584308e5Szhongyangsale, or importing the Program or any portion of it. 470*584308e5Szhongyang 471*584308e5Szhongyang 11. Patents. 472*584308e5Szhongyang 473*584308e5Szhongyang A "contributor" is a copyright holder who authorizes use under this 474*584308e5SzhongyangLicense of the Program or a work on which the Program is based. The 475*584308e5Szhongyangwork thus licensed is called the contributor's "contributor version". 476*584308e5Szhongyang 477*584308e5Szhongyang A contributor's "essential patent claims" are all patent claims 478*584308e5Szhongyangowned or controlled by the contributor, whether already acquired or 479*584308e5Szhongyanghereafter acquired, that would be infringed by some manner, permitted 480*584308e5Szhongyangby this License, of making, using, or selling its contributor version, 481*584308e5Szhongyangbut do not include claims that would be infringed only as a 482*584308e5Szhongyangconsequence of further modification of the contributor version. For 483*584308e5Szhongyangpurposes of this definition, "control" includes the right to grant 484*584308e5Szhongyangpatent sublicenses in a manner consistent with the requirements of 485*584308e5Szhongyangthis License. 486*584308e5Szhongyang 487*584308e5Szhongyang Each contributor grants you a non-exclusive, worldwide, royalty-free 488*584308e5Szhongyangpatent license under the contributor's essential patent claims, to 489*584308e5Szhongyangmake, use, sell, offer for sale, import and otherwise run, modify and 490*584308e5Szhongyangpropagate the contents of its contributor version. 491*584308e5Szhongyang 492*584308e5Szhongyang In the following three paragraphs, a "patent license" is any express 493*584308e5Szhongyangagreement or commitment, however denominated, not to enforce a patent 494*584308e5Szhongyang(such as an express permission to practice a patent or covenant not to 495*584308e5Szhongyangsue for patent infringement). To "grant" such a patent license to a 496*584308e5Szhongyangparty means to make such an agreement or commitment not to enforce a 497*584308e5Szhongyangpatent against the party. 498*584308e5Szhongyang 499*584308e5Szhongyang If you convey a covered work, knowingly relying on a patent license, 500*584308e5Szhongyangand the Corresponding Source of the work is not available for anyone 501*584308e5Szhongyangto copy, free of charge and under the terms of this License, through a 502*584308e5Szhongyangpublicly available network server or other readily accessible means, 503*584308e5Szhongyangthen you must either (1) cause the Corresponding Source to be so 504*584308e5Szhongyangavailable, or (2) arrange to deprive yourself of the benefit of the 505*584308e5Szhongyangpatent license for this particular work, or (3) arrange, in a manner 506*584308e5Szhongyangconsistent with the requirements of this License, to extend the patent 507*584308e5Szhongyanglicense to downstream recipients. "Knowingly relying" means you have 508*584308e5Szhongyangactual knowledge that, but for the patent license, your conveying the 509*584308e5Szhongyangcovered work in a country, or your recipient's use of the covered work 510*584308e5Szhongyangin a country, would infringe one or more identifiable patents in that 511*584308e5Szhongyangcountry that you have reason to believe are valid. 512*584308e5Szhongyang 513*584308e5Szhongyang If, pursuant to or in connection with a single transaction or 514*584308e5Szhongyangarrangement, you convey, or propagate by procuring conveyance of, a 515*584308e5Szhongyangcovered work, and grant a patent license to some of the parties 516*584308e5Szhongyangreceiving the covered work authorizing them to use, propagate, modify 517*584308e5Szhongyangor convey a specific copy of the covered work, then the patent license 518*584308e5Szhongyangyou grant is automatically extended to all recipients of the covered 519*584308e5Szhongyangwork and works based on it. 520*584308e5Szhongyang 521*584308e5Szhongyang A patent license is "discriminatory" if it does not include within 522*584308e5Szhongyangthe scope of its coverage, prohibits the exercise of, or is 523*584308e5Szhongyangconditioned on the non-exercise of one or more of the rights that are 524*584308e5Szhongyangspecifically granted under this License. You may not convey a covered 525*584308e5Szhongyangwork if you are a party to an arrangement with a third party that is 526*584308e5Szhongyangin the business of distributing software, under which you make payment 527*584308e5Szhongyangto the third party based on the extent of your activity of conveying 528*584308e5Szhongyangthe work, and under which the third party grants, to any of the 529*584308e5Szhongyangparties who would receive the covered work from you, a discriminatory 530*584308e5Szhongyangpatent license (a) in connection with copies of the covered work 531*584308e5Szhongyangconveyed by you (or copies made from those copies), or (b) primarily 532*584308e5Szhongyangfor and in connection with specific products or compilations that 533*584308e5Szhongyangcontain the covered work, unless you entered into that arrangement, 534*584308e5Szhongyangor that patent license was granted, prior to 28 March 2007. 535*584308e5Szhongyang 536*584308e5Szhongyang Nothing in this License shall be construed as excluding or limiting 537*584308e5Szhongyangany implied license or other defenses to infringement that may 538*584308e5Szhongyangotherwise be available to you under applicable patent law. 539*584308e5Szhongyang 540*584308e5Szhongyang 12. No Surrender of Others' Freedom. 541*584308e5Szhongyang 542*584308e5Szhongyang If conditions are imposed on you (whether by court order, agreement or 543*584308e5Szhongyangotherwise) that contradict the conditions of this License, they do not 544*584308e5Szhongyangexcuse you from the conditions of this License. If you cannot convey a 545*584308e5Szhongyangcovered work so as to satisfy simultaneously your obligations under this 546*584308e5SzhongyangLicense and any other pertinent obligations, then as a consequence you may 547*584308e5Szhongyangnot convey it at all. For example, if you agree to terms that obligate you 548*584308e5Szhongyangto collect a royalty for further conveying from those to whom you convey 549*584308e5Szhongyangthe Program, the only way you could satisfy both those terms and this 550*584308e5SzhongyangLicense would be to refrain entirely from conveying the Program. 551*584308e5Szhongyang 552*584308e5Szhongyang 13. Use with the GNU Affero General Public License. 553*584308e5Szhongyang 554*584308e5Szhongyang Notwithstanding any other provision of this License, you have 555*584308e5Szhongyangpermission to link or combine any covered work with a work licensed 556*584308e5Szhongyangunder version 3 of the GNU Affero General Public License into a single 557*584308e5Szhongyangcombined work, and to convey the resulting work. The terms of this 558*584308e5SzhongyangLicense will continue to apply to the part which is the covered work, 559*584308e5Szhongyangbut the special requirements of the GNU Affero General Public License, 560*584308e5Szhongyangsection 13, concerning interaction through a network will apply to the 561*584308e5Szhongyangcombination as such. 562*584308e5Szhongyang 563*584308e5Szhongyang 14. Revised Versions of this License. 564*584308e5Szhongyang 565*584308e5Szhongyang The Free Software Foundation may publish revised and/or new versions of 566*584308e5Szhongyangthe GNU General Public License from time to time. Such new versions will 567*584308e5Szhongyangbe similar in spirit to the present version, but may differ in detail to 568*584308e5Szhongyangaddress new problems or concerns. 569*584308e5Szhongyang 570*584308e5Szhongyang Each version is given a distinguishing version number. If the 571*584308e5SzhongyangProgram specifies that a certain numbered version of the GNU General 572*584308e5SzhongyangPublic License "or any later version" applies to it, you have the 573*584308e5Szhongyangoption of following the terms and conditions either of that numbered 574*584308e5Szhongyangversion or of any later version published by the Free Software 575*584308e5SzhongyangFoundation. If the Program does not specify a version number of the 576*584308e5SzhongyangGNU General Public License, you may choose any version ever published 577*584308e5Szhongyangby the Free Software Foundation. 578*584308e5Szhongyang 579*584308e5Szhongyang If the Program specifies that a proxy can decide which future 580*584308e5Szhongyangversions of the GNU General Public License can be used, that proxy's 581*584308e5Szhongyangpublic statement of acceptance of a version permanently authorizes you 582*584308e5Szhongyangto choose that version for the Program. 583*584308e5Szhongyang 584*584308e5Szhongyang Later license versions may give you additional or different 585*584308e5Szhongyangpermissions. However, no additional obligations are imposed on any 586*584308e5Szhongyangauthor or copyright holder as a result of your choosing to follow a 587*584308e5Szhongyanglater version. 588*584308e5Szhongyang 589*584308e5Szhongyang 15. Disclaimer of Warranty. 590*584308e5Szhongyang 591*584308e5Szhongyang THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592*584308e5SzhongyangAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593*584308e5SzhongyangHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594*584308e5SzhongyangOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595*584308e5SzhongyangTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596*584308e5SzhongyangPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597*584308e5SzhongyangIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598*584308e5SzhongyangALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599*584308e5Szhongyang 600*584308e5Szhongyang 16. Limitation of Liability. 601*584308e5Szhongyang 602*584308e5Szhongyang IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603*584308e5SzhongyangWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604*584308e5SzhongyangTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605*584308e5SzhongyangGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606*584308e5SzhongyangUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607*584308e5SzhongyangDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608*584308e5SzhongyangPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609*584308e5SzhongyangEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610*584308e5SzhongyangSUCH DAMAGES. 611*584308e5Szhongyang 612*584308e5Szhongyang 17. Interpretation of Sections 15 and 16. 613*584308e5Szhongyang 614*584308e5Szhongyang If the disclaimer of warranty and limitation of liability provided 615*584308e5Szhongyangabove cannot be given local legal effect according to their terms, 616*584308e5Szhongyangreviewing courts shall apply local law that most closely approximates 617*584308e5Szhongyangan absolute waiver of all civil liability in connection with the 618*584308e5SzhongyangProgram, unless a warranty or assumption of liability accompanies a 619*584308e5Szhongyangcopy of the Program in return for a fee. 620*584308e5Szhongyang 621*584308e5Szhongyang END OF TERMS AND CONDITIONS 622*584308e5Szhongyang 623*584308e5Szhongyang How to Apply These Terms to Your New Programs 624*584308e5Szhongyang 625*584308e5Szhongyang If you develop a new program, and you want it to be of the greatest 626*584308e5Szhongyangpossible use to the public, the best way to achieve this is to make it 627*584308e5Szhongyangfree software which everyone can redistribute and change under these terms. 628*584308e5Szhongyang 629*584308e5Szhongyang To do so, attach the following notices to the program. It is safest 630*584308e5Szhongyangto attach them to the start of each source file to most effectively 631*584308e5Szhongyangstate the exclusion of warranty; and each file should have at least 632*584308e5Szhongyangthe "copyright" line and a pointer to where the full notice is found. 633*584308e5Szhongyang 634*584308e5Szhongyang {one line to give the program's name and a brief idea of what it does.} 635*584308e5Szhongyang Copyright (C) {year} {name of author} 636*584308e5Szhongyang 637*584308e5Szhongyang This program is free software: you can redistribute it and/or modify 638*584308e5Szhongyang it under the terms of the GNU General Public License as published by 639*584308e5Szhongyang the Free Software Foundation, either version 3 of the License, or 640*584308e5Szhongyang (at your option) any later version. 641*584308e5Szhongyang 642*584308e5Szhongyang This program is distributed in the hope that it will be useful, 643*584308e5Szhongyang but WITHOUT ANY WARRANTY; without even the implied warranty of 644*584308e5Szhongyang MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645*584308e5Szhongyang GNU General Public License for more details. 646*584308e5Szhongyang 647*584308e5Szhongyang You should have received a copy of the GNU General Public License 648*584308e5Szhongyang along with this program. If not, see <http://www.gnu.org/licenses/>. 649*584308e5Szhongyang 650*584308e5SzhongyangAlso add information on how to contact you by electronic and paper mail. 651*584308e5Szhongyang 652*584308e5Szhongyang If the program does terminal interaction, make it output a short 653*584308e5Szhongyangnotice like this when it starts in an interactive mode: 654*584308e5Szhongyang 655*584308e5Szhongyang {project} Copyright (C) {year} {fullname} 656*584308e5Szhongyang This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657*584308e5Szhongyang This is free software, and you are welcome to redistribute it 658*584308e5Szhongyang under certain conditions; type `show c' for details. 659*584308e5Szhongyang 660*584308e5SzhongyangThe hypothetical commands `show w' and `show c' should show the appropriate 661*584308e5Szhongyangparts of the General Public License. Of course, your program's commands 662*584308e5Szhongyangmight be different; for a GUI interface, you would use an "about box". 663*584308e5Szhongyang 664*584308e5Szhongyang You should also get your employer (if you work as a programmer) or school, 665*584308e5Szhongyangif any, to sign a "copyright disclaimer" for the program, if necessary. 666*584308e5SzhongyangFor more information on this, and how to apply and follow the GNU GPL, see 667*584308e5Szhongyang<http://www.gnu.org/licenses/>. 668*584308e5Szhongyang 669*584308e5Szhongyang The GNU General Public License does not permit incorporating your program 670*584308e5Szhongyanginto proprietary programs. If your program is a subroutine library, you 671*584308e5Szhongyangmay consider it more useful to permit linking proprietary applications with 672*584308e5Szhongyangthe library. If this is what you want to do, use the GNU Lesser General 673*584308e5SzhongyangPublic License instead of this License. But first, please read 674*584308e5Szhongyang<http://www.gnu.org/philosophy/why-not-lgpl.html>. 675