Home | History | Annotate | Download | only in e2fsprogs
      1 This package, the EXT2 filesystem utilities, are made available under
      2 the GNU Public License version 2, with the exception of the lib/ext2fs
      3 and lib/e2p libraries, which are made available under the GNU Library
      4 General Public License Version 2, the lib/uuid library which is made
      5 available under a BSD-style license and the lib/et and lib/ss
      6 libraries which are made available under an MIT-style license.  Please
      7 see lib/uuid/COPYING for more details for the license for the files
      8 comprising the libuuid library, and the source file headers of the
      9 libet and libss libraries for more information.
     10 
     11 The most recent officially distributed version can be found at
     12 http://e2fsprogs.sourceforge.net.  If you need to make a distribution,
     13 that's the one you should use.  If there is some reason why you'd like
     14 a more recent version that is still in ALPHA testing (i.e., either
     15 using the "WIP" test distributions or one from the hg or git
     16 repository from the development branch, please contact me
     17 (tytso (a] mit.edu) before you ship.  The release schedules for this
     18 package are flexible, if you give me enough lead time.
     19 
     20 
     21 					Theodore Ts'o
     22 					23-June-2007
     23 
     24 ----------------------------------------------------------------------
     25 
     26 		    GNU GENERAL PUBLIC LICENSE
     27 		       Version 2, June 1991
     28 
     29  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
     30      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     31  Everyone is permitted to copy and distribute verbatim copies
     32  of this license document, but changing it is not allowed.
     33 
     34 			    Preamble
     35 
     36   The licenses for most software are designed to take away your
     37 freedom to share and change it.  By contrast, the GNU General Public
     38 License is intended to guarantee your freedom to share and change free
     39 software--to make sure the software is free for all its users.  This
     40 General Public License applies to most of the Free Software
     41 Foundation's software and to any other program whose authors commit to
     42 using it.  (Some other Free Software Foundation software is covered by
     43 the GNU Library General Public License instead.)  You can apply it to
     44 your programs, too.
     45 
     46   When we speak of free software, we are referring to freedom, not
     47 price.  Our General Public Licenses are designed to make sure that you
     48 have the freedom to distribute copies of free software (and charge for
     49 this service if you wish), that you receive source code or can get it
     50 if you want it, that you can change the software or use pieces of it
     51 in new free programs; and that you know you can do these things.
     52 
     53   To protect your rights, we need to make restrictions that forbid
     54 anyone to deny you these rights or to ask you to surrender the rights.
     55 These restrictions translate to certain responsibilities for you if you
     56 distribute copies of the software, or if you modify it.
     57 
     58   For example, if you distribute copies of such a program, whether
     59 gratis or for a fee, you must give the recipients all the rights that
     60 you have.  You must make sure that they, too, receive or can get the
     61 source code.  And you must show them these terms so they know their
     62 rights.
     63 
     64   We protect your rights with two steps: (1) copyright the software, and
     65 (2) offer you this license which gives you legal permission to copy,
     66 distribute and/or modify the software.
     67 
     68   Also, for each author's protection and ours, we want to make certain
     69 that everyone understands that there is no warranty for this free
     70 software.  If the software is modified by someone else and passed on, we
     71 want its recipients to know that what they have is not the original, so
     72 that any problems introduced by others will not reflect on the original
     73 authors' reputations.
     74 
     75   Finally, any free program is threatened constantly by software
     76 patents.  We wish to avoid the danger that redistributors of a free
     77 program will individually obtain patent licenses, in effect making the
     78 program proprietary.  To prevent this, we have made it clear that any
     79 patent must be licensed for everyone's free use or not licensed at all.
     80 
     81   The precise terms and conditions for copying, distribution and
     82 modification follow.
     83 
     85 		    GNU GENERAL PUBLIC LICENSE
     86    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
     87 
     88   0. This License applies to any program or other work which contains
     89 a notice placed by the copyright holder saying it may be distributed
     90 under the terms of this General Public License.  The "Program", below,
     91 refers to any such program or work, and a "work based on the Program"
     92 means either the Program or any derivative work under copyright law:
     93 that is to say, a work containing the Program or a portion of it,
     94 either verbatim or with modifications and/or translated into another
     95 language.  (Hereinafter, translation is included without limitation in
     96 the term "modification".)  Each licensee is addressed as "you".
     97 
     98 Activities other than copying, distribution and modification are not
     99 covered by this License; they are outside its scope.  The act of
    100 running the Program is not restricted, and the output from the Program
    101 is covered only if its contents constitute a work based on the
    102 Program (independent of having been made by running the Program).
    103 Whether that is true depends on what the Program does.
    104 
    105   1. You may copy and distribute verbatim copies of the Program's
    106 source code as you receive it, in any medium, provided that you
    107 conspicuously and appropriately publish on each copy an appropriate
    108 copyright notice and disclaimer of warranty; keep intact all the
    109 notices that refer to this License and to the absence of any warranty;
    110 and give any other recipients of the Program a copy of this License
    111 along with the Program.
    112 
    113 You may charge a fee for the physical act of transferring a copy, and
    114 you may at your option offer warranty protection in exchange for a fee.
    115 
    116   2. You may modify your copy or copies of the Program or any portion
    117 of it, thus forming a work based on the Program, and copy and
    118 distribute such modifications or work under the terms of Section 1
    119 above, provided that you also meet all of these conditions:
    120 
    121     a) You must cause the modified files to carry prominent notices
    122     stating that you changed the files and the date of any change.
    123 
    124     b) You must cause any work that you distribute or publish, that in
    125     whole or in part contains or is derived from the Program or any
    126     part thereof, to be licensed as a whole at no charge to all third
    127     parties under the terms of this License.
    128 
    129     c) If the modified program normally reads commands interactively
    130     when run, you must cause it, when started running for such
    131     interactive use in the most ordinary way, to print or display an
    132     announcement including an appropriate copyright notice and a
    133     notice that there is no warranty (or else, saying that you provide
    134     a warranty) and that users may redistribute the program under
    135     these conditions, and telling the user how to view a copy of this
    136     License.  (Exception: if the Program itself is interactive but
    137     does not normally print such an announcement, your work based on
    138     the Program is not required to print an announcement.)
    139 
    141 These requirements apply to the modified work as a whole.  If
    142 identifiable sections of that work are not derived from the Program,
    143 and can be reasonably considered independent and separate works in
    144 themselves, then this License, and its terms, do not apply to those
    145 sections when you distribute them as separate works.  But when you
    146 distribute the same sections as part of a whole which is a work based
    147 on the Program, the distribution of the whole must be on the terms of
    148 this License, whose permissions for other licensees extend to the
    149 entire whole, and thus to each and every part regardless of who wrote it.
    150 
    151 Thus, it is not the intent of this section to claim rights or contest
    152 your rights to work written entirely by you; rather, the intent is to
    153 exercise the right to control the distribution of derivative or
    154 collective works based on the Program.
    155 
    156 In addition, mere aggregation of another work not based on the Program
    157 with the Program (or with a work based on the Program) on a volume of
    158 a storage or distribution medium does not bring the other work under
    159 the scope of this License.
    160 
    161   3. You may copy and distribute the Program (or a work based on it,
    162 under Section 2) in object code or executable form under the terms of
    163 Sections 1 and 2 above provided that you also do one of the following:
    164 
    165     a) Accompany it with the complete corresponding machine-readable
    166     source code, which must be distributed under the terms of Sections
    167     1 and 2 above on a medium customarily used for software interchange; or,
    168 
    169     b) Accompany it with a written offer, valid for at least three
    170     years, to give any third party, for a charge no more than your
    171     cost of physically performing source distribution, a complete
    172     machine-readable copy of the corresponding source code, to be
    173     distributed under the terms of Sections 1 and 2 above on a medium
    174     customarily used for software interchange; or,
    175 
    176     c) Accompany it with the information you received as to the offer
    177     to distribute corresponding source code.  (This alternative is
    178     allowed only for noncommercial distribution and only if you
    179     received the program in object code or executable form with such
    180     an offer, in accord with Subsection b above.)
    181 
    182 The source code for a work means the preferred form of the work for
    183 making modifications to it.  For an executable work, complete source
    184 code means all the source code for all modules it contains, plus any
    185 associated interface definition files, plus the scripts used to
    186 control compilation and installation of the executable.  However, as a
    187 special exception, the source code distributed need not include
    188 anything that is normally distributed (in either source or binary
    189 form) with the major components (compiler, kernel, and so on) of the
    190 operating system on which the executable runs, unless that component
    191 itself accompanies the executable.
    192 
    193 If distribution of executable or object code is made by offering
    194 access to copy from a designated place, then offering equivalent
    195 access to copy the source code from the same place counts as
    196 distribution of the source code, even though third parties are not
    197 compelled to copy the source along with the object code.
    198 
    200   4. You may not copy, modify, sublicense, or distribute the Program
    201 except as expressly provided under this License.  Any attempt
    202 otherwise to copy, modify, sublicense or distribute the Program is
    203 void, and will automatically terminate your rights under this License.
    204 However, parties who have received copies, or rights, from you under
    205 this License will not have their licenses terminated so long as such
    206 parties remain in full compliance.
    207 
    208   5. You are not required to accept this License, since you have not
    209 signed it.  However, nothing else grants you permission to modify or
    210 distribute the Program or its derivative works.  These actions are
    211 prohibited by law if you do not accept this License.  Therefore, by
    212 modifying or distributing the Program (or any work based on the
    213 Program), you indicate your acceptance of this License to do so, and
    214 all its terms and conditions for copying, distributing or modifying
    215 the Program or works based on it.
    216 
    217   6. Each time you redistribute the Program (or any work based on the
    218 Program), the recipient automatically receives a license from the
    219 original licensor to copy, distribute or modify the Program subject to
    220 these terms and conditions.  You may not impose any further
    221 restrictions on the recipients' exercise of the rights granted herein.
    222 You are not responsible for enforcing compliance by third parties to
    223 this License.
    224 
    225   7. If, as a consequence of a court judgment or allegation of patent
    226 infringement or for any other reason (not limited to patent issues),
    227 conditions are imposed on you (whether by court order, agreement or
    228 otherwise) that contradict the conditions of this License, they do not
    229 excuse you from the conditions of this License.  If you cannot
    230 distribute so as to satisfy simultaneously your obligations under this
    231 License and any other pertinent obligations, then as a consequence you
    232 may not distribute the Program at all.  For example, if a patent
    233 license would not permit royalty-free redistribution of the Program by
    234 all those who receive copies directly or indirectly through you, then
    235 the only way you could satisfy both it and this License would be to
    236 refrain entirely from distribution of the Program.
    237 
    238 If any portion of this section is held invalid or unenforceable under
    239 any particular circumstance, the balance of the section is intended to
    240 apply and the section as a whole is intended to apply in other
    241 circumstances.
    242 
    243 It is not the purpose of this section to induce you to infringe any
    244 patents or other property right claims or to contest validity of any
    245 such claims; this section has the sole purpose of protecting the
    246 integrity of the free software distribution system, which is
    247 implemented by public license practices.  Many people have made
    248 generous contributions to the wide range of software distributed
    249 through that system in reliance on consistent application of that
    250 system; it is up to the author/donor to decide if he or she is willing
    251 to distribute software through any other system and a licensee cannot
    252 impose that choice.
    253 
    254 This section is intended to make thoroughly clear what is believed to
    255 be a consequence of the rest of this License.
    256 
    258   8. If the distribution and/or use of the Program is restricted in
    259 certain countries either by patents or by copyrighted interfaces, the
    260 original copyright holder who places the Program under this License
    261 may add an explicit geographical distribution limitation excluding
    262 those countries, so that distribution is permitted only in or among
    263 countries not thus excluded.  In such case, this License incorporates
    264 the limitation as if written in the body of this License.
    265 
    266   9. The Free Software Foundation may publish revised and/or new versions
    267 of the General Public License from time to time.  Such new versions will
    268 be similar in spirit to the present version, but may differ in detail to
    269 address new problems or concerns.
    270 
    271 Each version is given a distinguishing version number.  If the Program
    272 specifies a version number of this License which applies to it and "any
    273 later version", you have the option of following the terms and conditions
    274 either of that version or of any later version published by the Free
    275 Software Foundation.  If the Program does not specify a version number of
    276 this License, you may choose any version ever published by the Free Software
    277 Foundation.
    278 
    279   10. If you wish to incorporate parts of the Program into other free
    280 programs whose distribution conditions are different, write to the author
    281 to ask for permission.  For software which is copyrighted by the Free
    282 Software Foundation, write to the Free Software Foundation; we sometimes
    283 make exceptions for this.  Our decision will be guided by the two goals
    284 of preserving the free status of all derivatives of our free software and
    285 of promoting the sharing and reuse of software generally.
    286 
    287 			    NO WARRANTY
    288 
    289   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
    290 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
    291 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
    292 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
    293 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    294 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
    295 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
    296 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
    297 REPAIR OR CORRECTION.
    298 
    299   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
    300 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
    301 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
    302 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
    303 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
    304 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
    305 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
    306 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
    307 POSSIBILITY OF SUCH DAMAGES.
    308 
    309 		     END OF TERMS AND CONDITIONS
    310 
    312 	    How to Apply These Terms to Your New Programs
    313 
    314   If you develop a new program, and you want it to be of the greatest
    315 possible use to the public, the best way to achieve this is to make it
    316 free software which everyone can redistribute and change under these terms.
    317 
    318   To do so, attach the following notices to the program.  It is safest
    319 to attach them to the start of each source file to most effectively
    320 convey the exclusion of warranty; and each file should have at least
    321 the "copyright" line and a pointer to where the full notice is found.
    322 
    323     <one line to give the program's name and a brief idea of what it does.>
    324     Copyright (C) <year>  <name of author>
    325 
    326     This program is free software; you can redistribute it and/or modify
    327     it under the terms of the GNU General Public License as published by
    328     the Free Software Foundation; either version 2 of the License, or
    329     (at your option) any later version.
    330 
    331     This program is distributed in the hope that it will be useful,
    332     but WITHOUT ANY WARRANTY; without even the implied warranty of
    333     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    334     GNU General Public License for more details.
    335 
    336     You should have received a copy of the GNU General Public License
    337     along with this program; if not, write to the Free Software
    338     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    339 
    340 
    341 Also add information on how to contact you by electronic and paper mail.
    342 
    343 If the program is interactive, make it output a short notice like this
    344 when it starts in an interactive mode:
    345 
    346     Gnomovision version 69, Copyright (C) year  name of author
    347     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    348     This is free software, and you are welcome to redistribute it
    349     under certain conditions; type `show c' for details.
    350 
    351 The hypothetical commands `show w' and `show c' should show the appropriate
    352 parts of the General Public License.  Of course, the commands you use may
    353 be called something other than `show w' and `show c'; they could even be
    354 mouse-clicks or menu items--whatever suits your program.
    355 
    356 You should also get your employer (if you work as a programmer) or your
    357 school, if any, to sign a "copyright disclaimer" for the program, if
    358 necessary.  Here is a sample; alter the names:
    359 
    360   Yoyodyne, Inc., hereby disclaims all copyright interest in the program
    361   `Gnomovision' (which makes passes at compilers) written by James Hacker.
    362 
    363   <signature of Ty Coon>, 1 April 1989
    364   Ty Coon, President of Vice
    365 
    366 This General Public License does not permit incorporating your program into
    367 proprietary programs.  If your program is a subroutine library, you may
    368 consider it more useful to permit linking proprietary applications with the
    369 library.  If this is what you want to do, use the GNU Library General
    370 Public License instead of this License.
    371 
    372 ----------------------------------------------------------------------
    373 
    374 		  GNU LIBRARY GENERAL PUBLIC LICENSE
    375 		       Version 2, June 1991
    376 
    377  Copyright (C) 1991 Free Software Foundation, Inc.
    378     		    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    379  Everyone is permitted to copy and distribute verbatim copies
    380  of this license document, but changing it is not allowed.
    381 
    382 [This is the first released version of the library GPL.  It is
    383  numbered 2 because it goes with version 2 of the ordinary GPL.]
    384 
    385 			    Preamble
    386 
    387   The licenses for most software are designed to take away your
    388 freedom to share and change it.  By contrast, the GNU General Public
    389 Licenses are intended to guarantee your freedom to share and change
    390 free software--to make sure the software is free for all its users.
    391 
    392   This license, the Library General Public License, applies to some
    393 specially designated Free Software Foundation software, and to any
    394 other libraries whose authors decide to use it.  You can use it for
    395 your libraries, too.
    396 
    397   When we speak of free software, we are referring to freedom, not
    398 price.  Our General Public Licenses are designed to make sure that you
    399 have the freedom to distribute copies of free software (and charge for
    400 this service if you wish), that you receive source code or can get it
    401 if you want it, that you can change the software or use pieces of it
    402 in new free programs; and that you know you can do these things.
    403 
    404   To protect your rights, we need to make restrictions that forbid
    405 anyone to deny you these rights or to ask you to surrender the rights.
    406 These restrictions translate to certain responsibilities for you if
    407 you distribute copies of the library, or if you modify it.
    408 
    409   For example, if you distribute copies of the library, whether gratis
    410 or for a fee, you must give the recipients all the rights that we gave
    411 you.  You must make sure that they, too, receive or can get the source
    412 code.  If you link a program with the library, you must provide
    413 complete object files to the recipients so that they can relink them
    414 with the library, after making changes to the library and recompiling
    415 it.  And you must show them these terms so they know their rights.
    416 
    417   Our method of protecting your rights has two steps: (1) copyright
    418 the library, and (2) offer you this license which gives you legal
    419 permission to copy, distribute and/or modify the library.
    420 
    421   Also, for each distributor's protection, we want to make certain
    422 that everyone understands that there is no warranty for this free
    423 library.  If the library is modified by someone else and passed on, we
    424 want its recipients to know that what they have is not the original
    425 version, so that any problems introduced by others will not reflect on
    426 the original authors' reputations.
    427 
    429   Finally, any free program is threatened constantly by software
    430 patents.  We wish to avoid the danger that companies distributing free
    431 software will individually obtain patent licenses, thus in effect
    432 transforming the program into proprietary software.  To prevent this,
    433 we have made it clear that any patent must be licensed for everyone's
    434 free use or not licensed at all.
    435 
    436   Most GNU software, including some libraries, is covered by the ordinary
    437 GNU General Public License, which was designed for utility programs.  This
    438 license, the GNU Library General Public License, applies to certain
    439 designated libraries.  This license is quite different from the ordinary
    440 one; be sure to read it in full, and don't assume that anything in it is
    441 the same as in the ordinary license.
    442 
    443   The reason we have a separate public license for some libraries is that
    444 they blur the distinction we usually make between modifying or adding to a
    445 program and simply using it.  Linking a program with a library, without
    446 changing the library, is in some sense simply using the library, and is
    447 analogous to running a utility program or application program.  However, in
    448 a textual and legal sense, the linked executable is a combined work, a
    449 derivative of the original library, and the ordinary General Public License
    450 treats it as such.
    451 
    452   Because of this blurred distinction, using the ordinary General
    453 Public License for libraries did not effectively promote software
    454 sharing, because most developers did not use the libraries.  We
    455 concluded that weaker conditions might promote sharing better.
    456 
    457   However, unrestricted linking of non-free programs would deprive the
    458 users of those programs of all benefit from the free status of the
    459 libraries themselves.  This Library General Public License is intended to
    460 permit developers of non-free programs to use free libraries, while
    461 preserving your freedom as a user of such programs to change the free
    462 libraries that are incorporated in them.  (We have not seen how to achieve
    463 this as regards changes in header files, but we have achieved it as regards
    464 changes in the actual functions of the Library.)  The hope is that this
    465 will lead to faster development of free libraries.
    466 
    467   The precise terms and conditions for copying, distribution and
    468 modification follow.  Pay close attention to the difference between a
    469 "work based on the library" and a "work that uses the library".  The
    470 former contains code derived from the library, while the latter only
    471 works together with the library.
    472 
    473   Note that it is possible for a library to be covered by the ordinary
    474 General Public License rather than by this special one.
    475 
    477 		  GNU LIBRARY GENERAL PUBLIC LICENSE
    478    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    479 
    480   0. This License Agreement applies to any software library which
    481 contains a notice placed by the copyright holder or other authorized
    482 party saying it may be distributed under the terms of this Library
    483 General Public License (also called "this License").  Each licensee is
    484 addressed as "you".
    485 
    486   A "library" means a collection of software functions and/or data
    487 prepared so as to be conveniently linked with application programs
    488 (which use some of those functions and data) to form executables.
    489 
    490   The "Library", below, refers to any such software library or work
    491 which has been distributed under these terms.  A "work based on the
    492 Library" means either the Library or any derivative work under
    493 copyright law: that is to say, a work containing the Library or a
    494 portion of it, either verbatim or with modifications and/or translated
    495 straightforwardly into another language.  (Hereinafter, translation is
    496 included without limitation in the term "modification".)
    497 
    498   "Source code" for a work means the preferred form of the work for
    499 making modifications to it.  For a library, complete source code means
    500 all the source code for all modules it contains, plus any associated
    501 interface definition files, plus the scripts used to control compilation
    502 and installation of the library.
    503 
    504   Activities other than copying, distribution and modification are not
    505 covered by this License; they are outside its scope.  The act of
    506 running a program using the Library is not restricted, and output from
    507 such a program is covered only if its contents constitute a work based
    508 on the Library (independent of the use of the Library in a tool for
    509 writing it).  Whether that is true depends on what the Library does
    510 and what the program that uses the Library does.
    511   
    512   1. You may copy and distribute verbatim copies of the Library's
    513 complete source code as you receive it, in any medium, provided that
    514 you conspicuously and appropriately publish on each copy an
    515 appropriate copyright notice and disclaimer of warranty; keep intact
    516 all the notices that refer to this License and to the absence of any
    517 warranty; and distribute a copy of this License along with the
    518 Library.
    519 
    520   You may charge a fee for the physical act of transferring a copy,
    521 and you may at your option offer warranty protection in exchange for a
    522 fee.
    523 
    525   2. You may modify your copy or copies of the Library or any portion
    526 of it, thus forming a work based on the Library, and copy and
    527 distribute such modifications or work under the terms of Section 1
    528 above, provided that you also meet all of these conditions:
    529 
    530     a) The modified work must itself be a software library.
    531 
    532     b) You must cause the files modified to carry prominent notices
    533     stating that you changed the files and the date of any change.
    534 
    535     c) You must cause the whole of the work to be licensed at no
    536     charge to all third parties under the terms of this License.
    537 
    538     d) If a facility in the modified Library refers to a function or a
    539     table of data to be supplied by an application program that uses
    540     the facility, other than as an argument passed when the facility
    541     is invoked, then you must make a good faith effort to ensure that,
    542     in the event an application does not supply such function or
    543     table, the facility still operates, and performs whatever part of
    544     its purpose remains meaningful.
    545 
    546     (For example, a function in a library to compute square roots has
    547     a purpose that is entirely well-defined independent of the
    548     application.  Therefore, Subsection 2d requires that any
    549     application-supplied function or table used by this function must
    550     be optional: if the application does not supply it, the square
    551     root function must still compute square roots.)
    552 
    553 These requirements apply to the modified work as a whole.  If
    554 identifiable sections of that work are not derived from the Library,
    555 and can be reasonably considered independent and separate works in
    556 themselves, then this License, and its terms, do not apply to those
    557 sections when you distribute them as separate works.  But when you
    558 distribute the same sections as part of a whole which is a work based
    559 on the Library, the distribution of the whole must be on the terms of
    560 this License, whose permissions for other licensees extend to the
    561 entire whole, and thus to each and every part regardless of who wrote
    562 it.
    563 
    564 Thus, it is not the intent of this section to claim rights or contest
    565 your rights to work written entirely by you; rather, the intent is to
    566 exercise the right to control the distribution of derivative or
    567 collective works based on the Library.
    568 
    569 In addition, mere aggregation of another work not based on the Library
    570 with the Library (or with a work based on the Library) on a volume of
    571 a storage or distribution medium does not bring the other work under
    572 the scope of this License.
    573 
    574   3. You may opt to apply the terms of the ordinary GNU General Public
    575 License instead of this License to a given copy of the Library.  To do
    576 this, you must alter all the notices that refer to this License, so
    577 that they refer to the ordinary GNU General Public License, version 2,
    578 instead of to this License.  (If a newer version than version 2 of the
    579 ordinary GNU General Public License has appeared, then you can specify
    580 that version instead if you wish.)  Do not make any other change in
    581 these notices.
    582 
    584   Once this change is made in a given copy, it is irreversible for
    585 that copy, so the ordinary GNU General Public License applies to all
    586 subsequent copies and derivative works made from that copy.
    587 
    588   This option is useful when you wish to copy part of the code of
    589 the Library into a program that is not a library.
    590 
    591   4. You may copy and distribute the Library (or a portion or
    592 derivative of it, under Section 2) in object code or executable form
    593 under the terms of Sections 1 and 2 above provided that you accompany
    594 it with the complete corresponding machine-readable source code, which
    595 must be distributed under the terms of Sections 1 and 2 above on a
    596 medium customarily used for software interchange.
    597 
    598   If distribution of object code is made by offering access to copy
    599 from a designated place, then offering equivalent access to copy the
    600 source code from the same place satisfies the requirement to
    601 distribute the source code, even though third parties are not
    602 compelled to copy the source along with the object code.
    603 
    604   5. A program that contains no derivative of any portion of the
    605 Library, but is designed to work with the Library by being compiled or
    606 linked with it, is called a "work that uses the Library".  Such a
    607 work, in isolation, is not a derivative work of the Library, and
    608 therefore falls outside the scope of this License.
    609 
    610   However, linking a "work that uses the Library" with the Library
    611 creates an executable that is a derivative of the Library (because it
    612 contains portions of the Library), rather than a "work that uses the
    613 library".  The executable is therefore covered by this License.
    614 Section 6 states terms for distribution of such executables.
    615 
    616   When a "work that uses the Library" uses material from a header file
    617 that is part of the Library, the object code for the work may be a
    618 derivative work of the Library even though the source code is not.
    619 Whether this is true is especially significant if the work can be
    620 linked without the Library, or if the work is itself a library.  The
    621 threshold for this to be true is not precisely defined by law.
    622 
    623   If such an object file uses only numerical parameters, data
    624 structure layouts and accessors, and small macros and small inline
    625 functions (ten lines or less in length), then the use of the object
    626 file is unrestricted, regardless of whether it is legally a derivative
    627 work.  (Executables containing this object code plus portions of the
    628 Library will still fall under Section 6.)
    629 
    630   Otherwise, if the work is a derivative of the Library, you may
    631 distribute the object code for the work under the terms of Section 6.
    632 Any executables containing that work also fall under Section 6,
    633 whether or not they are linked directly with the Library itself.
    634 
    636   6. As an exception to the Sections above, you may also compile or
    637 link a "work that uses the Library" with the Library to produce a
    638 work containing portions of the Library, and distribute that work
    639 under terms of your choice, provided that the terms permit
    640 modification of the work for the customer's own use and reverse
    641 engineering for debugging such modifications.
    642 
    643   You must give prominent notice with each copy of the work that the
    644 Library is used in it and that the Library and its use are covered by
    645 this License.  You must supply a copy of this License.  If the work
    646 during execution displays copyright notices, you must include the
    647 copyright notice for the Library among them, as well as a reference
    648 directing the user to the copy of this License.  Also, you must do one
    649 of these things:
    650 
    651     a) Accompany the work with the complete corresponding
    652     machine-readable source code for the Library including whatever
    653     changes were used in the work (which must be distributed under
    654     Sections 1 and 2 above); and, if the work is an executable linked
    655     with the Library, with the complete machine-readable "work that
    656     uses the Library", as object code and/or source code, so that the
    657     user can modify the Library and then relink to produce a modified
    658     executable containing the modified Library.  (It is understood
    659     that the user who changes the contents of definitions files in the
    660     Library will not necessarily be able to recompile the application
    661     to use the modified definitions.)
    662 
    663     b) Accompany the work with a written offer, valid for at
    664     least three years, to give the same user the materials
    665     specified in Subsection 6a, above, for a charge no more
    666     than the cost of performing this distribution.
    667 
    668     c) If distribution of the work is made by offering access to copy
    669     from a designated place, offer equivalent access to copy the above
    670     specified materials from the same place.
    671 
    672     d) Verify that the user has already received a copy of these
    673     materials or that you have already sent this user a copy.
    674 
    675   For an executable, the required form of the "work that uses the
    676 Library" must include any data and utility programs needed for
    677 reproducing the executable from it.  However, as a special exception,
    678 the source code distributed need not include anything that is normally
    679 distributed (in either source or binary form) with the major
    680 components (compiler, kernel, and so on) of the operating system on
    681 which the executable runs, unless that component itself accompanies
    682 the executable.
    683 
    684   It may happen that this requirement contradicts the license
    685 restrictions of other proprietary libraries that do not normally
    686 accompany the operating system.  Such a contradiction means you cannot
    687 use both them and the Library together in an executable that you
    688 distribute.
    689 
    691   7. You may place library facilities that are a work based on the
    692 Library side-by-side in a single library together with other library
    693 facilities not covered by this License, and distribute such a combined
    694 library, provided that the separate distribution of the work based on
    695 the Library and of the other library facilities is otherwise
    696 permitted, and provided that you do these two things:
    697 
    698     a) Accompany the combined library with a copy of the same work
    699     based on the Library, uncombined with any other library
    700     facilities.  This must be distributed under the terms of the
    701     Sections above.
    702 
    703     b) Give prominent notice with the combined library of the fact
    704     that part of it is a work based on the Library, and explaining
    705     where to find the accompanying uncombined form of the same work.
    706 
    707   8. You may not copy, modify, sublicense, link with, or distribute
    708 the Library except as expressly provided under this License.  Any
    709 attempt otherwise to copy, modify, sublicense, link with, or
    710 distribute the Library is void, and will automatically terminate your
    711 rights under this License.  However, parties who have received copies,
    712 or rights, from you under this License will not have their licenses
    713 terminated so long as such parties remain in full compliance.
    714 
    715   9. You are not required to accept this License, since you have not
    716 signed it.  However, nothing else grants you permission to modify or
    717 distribute the Library or its derivative works.  These actions are
    718 prohibited by law if you do not accept this License.  Therefore, by
    719 modifying or distributing the Library (or any work based on the
    720 Library), you indicate your acceptance of this License to do so, and
    721 all its terms and conditions for copying, distributing or modifying
    722 the Library or works based on it.
    723 
    724   10. Each time you redistribute the Library (or any work based on the
    725 Library), the recipient automatically receives a license from the
    726 original licensor to copy, distribute, link with or modify the Library
    727 subject to these terms and conditions.  You may not impose any further
    728 restrictions on the recipients' exercise of the rights granted herein.
    729 You are not responsible for enforcing compliance by third parties to
    730 this License.
    731 
    733   11. If, as a consequence of a court judgment or allegation of patent
    734 infringement or for any other reason (not limited to patent issues),
    735 conditions are imposed on you (whether by court order, agreement or
    736 otherwise) that contradict the conditions of this License, they do not
    737 excuse you from the conditions of this License.  If you cannot
    738 distribute so as to satisfy simultaneously your obligations under this
    739 License and any other pertinent obligations, then as a consequence you
    740 may not distribute the Library at all.  For example, if a patent
    741 license would not permit royalty-free redistribution of the Library by
    742 all those who receive copies directly or indirectly through you, then
    743 the only way you could satisfy both it and this License would be to
    744 refrain entirely from distribution of the Library.
    745 
    746 If any portion of this section is held invalid or unenforceable under any
    747 particular circumstance, the balance of the section is intended to apply,
    748 and the section as a whole is intended to apply in other circumstances.
    749 
    750 It is not the purpose of this section to induce you to infringe any
    751 patents or other property right claims or to contest validity of any
    752 such claims; this section has the sole purpose of protecting the
    753 integrity of the free software distribution system which is
    754 implemented by public license practices.  Many people have made
    755 generous contributions to the wide range of software distributed
    756 through that system in reliance on consistent application of that
    757 system; it is up to the author/donor to decide if he or she is willing
    758 to distribute software through any other system and a licensee cannot
    759 impose that choice.
    760 
    761 This section is intended to make thoroughly clear what is believed to
    762 be a consequence of the rest of this License.
    763 
    764   12. If the distribution and/or use of the Library is restricted in
    765 certain countries either by patents or by copyrighted interfaces, the
    766 original copyright holder who places the Library under this License may add
    767 an explicit geographical distribution limitation excluding those countries,
    768 so that distribution is permitted only in or among countries not thus
    769 excluded.  In such case, this License incorporates the limitation as if
    770 written in the body of this License.
    771 
    772   13. The Free Software Foundation may publish revised and/or new
    773 versions of the Library General Public License from time to time.
    774 Such new versions will be similar in spirit to the present version,
    775 but may differ in detail to address new problems or concerns.
    776 
    777 Each version is given a distinguishing version number.  If the Library
    778 specifies a version number of this License which applies to it and
    779 "any later version", you have the option of following the terms and
    780 conditions either of that version or of any later version published by
    781 the Free Software Foundation.  If the Library does not specify a
    782 license version number, you may choose any version ever published by
    783 the Free Software Foundation.
    784 
    786   14. If you wish to incorporate parts of the Library into other free
    787 programs whose distribution conditions are incompatible with these,
    788 write to the author to ask for permission.  For software which is
    789 copyrighted by the Free Software Foundation, write to the Free
    790 Software Foundation; we sometimes make exceptions for this.  Our
    791 decision will be guided by the two goals of preserving the free status
    792 of all derivatives of our free software and of promoting the sharing
    793 and reuse of software generally.
    794 
    795 			    NO WARRANTY
    796 
    797   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
    798 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
    799 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
    800 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
    801 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
    802 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    803 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
    804 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
    805 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
    806 
    807   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
    808 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
    809 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
    810 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
    811 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
    812 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    813 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    814 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    815 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    816 DAMAGES.
    817 
    818 		     END OF TERMS AND CONDITIONS
    819 
    821            How to Apply These Terms to Your New Libraries
    822 
    823   If you develop a new library, and you want it to be of the greatest
    824 possible use to the public, we recommend making it free software that
    825 everyone can redistribute and change.  You can do so by permitting
    826 redistribution under these terms (or, alternatively, under the terms of the
    827 ordinary General Public License).
    828 
    829   To apply these terms, attach the following notices to the library.  It is
    830 safest to attach them to the start of each source file to most effectively
    831 convey the exclusion of warranty; and each file should have at least the
    832 "copyright" line and a pointer to where the full notice is found.
    833 
    834     <one line to give the library's name and a brief idea of what it does.>
    835     Copyright (C) <year>  <name of author>
    836 
    837     This library is free software; you can redistribute it and/or
    838     modify it under the terms of the GNU Library General Public
    839     License as published by the Free Software Foundation; either
    840     version 2 of the License, or (at your option) any later version.
    841 
    842     This library is distributed in the hope that it will be useful,
    843     but WITHOUT ANY WARRANTY; without even the implied warranty of
    844     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    845     Library General Public License for more details.
    846 
    847     You should have received a copy of the GNU Library General Public
    848     License along with this library; if not, write to the Free Software
    849     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    850 
    851 Also add information on how to contact you by electronic and paper mail.
    852 
    853 You should also get your employer (if you work as a programmer) or your
    854 school, if any, to sign a "copyright disclaimer" for the library, if
    855 necessary.  Here is a sample; alter the names:
    856 
    857   Yoyodyne, Inc., hereby disclaims all copyright interest in the
    858   library `Frob' (a library for tweaking knobs) written by James Random Hacker.
    859 
    860   <signature of Ty Coon>, 1 April 1990
    861   Ty Coon, President of Vice
    862 
    863 That's all there is to it!
    864