This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
msgrcv: properly downgrade the receive buffer
[perl5.git] / pod / perlgpl.pod
CommitLineData
cc2b665f
JH
1
2=head1 NAME
3
fa861958 4perlgpl - the GNU General Public License, version 1
cc2b665f
JH
5
6=head1 SYNOPSIS
7
8 You can refer to this document in Pod via "L<perlgpl>"
9 Or you can see this document by entering "perldoc perlgpl"
10
cc2b665f
JH
11=head1 DESCRIPTION
12
fa861958
DG
13Perl is free software; you can redistribute it and/or modify
14it under the terms of either:
cc2b665f 15
fa861958
DG
16 a) the GNU General Public License as published by the Free
17 Software Foundation; either version 1, or (at your option) any
18 later version, or
cc2b665f 19
fa861958 20 b) the "Artistic License" which comes with this Kit.
cc2b665f 21
fa861958
DG
22This is the B<"GNU General Public License, version 1">.
23It's here so that modules, programs, etc., that want to declare
24this as their distribution license can link to it.
cc2b665f 25
fa861958 26For the Perl Artistic License, see L<perlartistic>.
cc2b665f 27
fa861958 28=cut
cc2b665f 29
fa861958
DG
30# Because the following document's language disallows "changing"
31# it, we haven't gone thru and prettied it up with =item's or
32# anything. It's good enough the way it is.
cc2b665f 33
fa861958 34=head1 GNU GENERAL PUBLIC LICENSE
8d9043d1 35
fa861958
DG
36 GNU GENERAL PUBLIC LICENSE
37 Version 1, February 1989
f703fc96 38
fa861958 39 Copyright (C) 1989 Free Software Foundation, Inc.
f185f654 40 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
f703fc96 41
fa861958
DG
42 Everyone is permitted to copy and distribute verbatim copies
43 of this license document, but changing it is not allowed.
f703fc96 44
fa861958 45 Preamble
f703fc96 46
fa861958
DG
47 The license agreements of most software companies try to keep users
48 at the mercy of those companies. By contrast, our General Public
49 License is intended to guarantee your freedom to share and change free
50 software--to make sure the software is free for all its users. The
51 General Public License applies to the Free Software Foundation's
52 software and to any other program whose authors commit to using it.
53 You can use it for your programs, too.
f703fc96 54
fa861958
DG
55 When we speak of free software, we are referring to freedom, not
56 price. Specifically, the General Public License is designed to make
57 sure that you have the freedom to give away or sell copies of free
58 software, that you receive source code or can get it if you want it,
59 that you can change the software or use pieces of it in new free
60 programs; and that you know you can do these things.
f703fc96 61
fa861958
DG
62 To protect your rights, we need to make restrictions that forbid
63 anyone to deny you these rights or to ask you to surrender the rights.
64 These restrictions translate to certain responsibilities for you if you
65 distribute copies of the software, or if you modify it.
f703fc96 66
fa861958
DG
67 For example, if you distribute copies of a such a program, whether
68 gratis or for a fee, you must give the recipients all the rights that
69 you have. You must make sure that they, too, receive or can get the
70 source code. And you must tell them their rights.
f703fc96 71
f185f654
KW
72 We protect your rights with two steps: (1) copyright the software,
73 and (2) offer you this license which gives you legal permission to
74 copy, distribute and/or modify the software.
f703fc96 75
fa861958
DG
76 Also, for each author's protection and ours, we want to make certain
77 that everyone understands that there is no warranty for this free
f185f654
KW
78 software. If the software is modified by someone else and passed on,
79 we want its recipients to know that what they have is not the original,
80 so that any problems introduced by others will not reflect on the
81 original authors' reputations.
f703fc96 82
fa861958
DG
83 The precise terms and conditions for copying, distribution and
84 modification follow.
f703fc96 85
fa861958
DG
86 GNU GENERAL PUBLIC LICENSE
87 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
f703fc96 88
fa861958
DG
89 0. This License Agreement applies to any program or other work which
90 contains a notice placed by the copyright holder saying it may be
91 distributed under the terms of this General Public License. The
92 "Program", below, refers to any such program or work, and a "work based
93 on the Program" means either the Program or any work containing the
f185f654
KW
94 Program or a portion of it, either verbatim or with modifications.
95 Each licensee is addressed as "you".
96
97 1. You may copy and distribute verbatim copies of the Program's
98 source code as you receive it, in any medium, provided that you
99 conspicuously and appropriately publish on each copy an appropriate
100 copyright notice and disclaimer of warranty; keep intact all the
101 notices that refer to this General Public License and to the absence of
102 any warranty; and give any other recipients of the Program a copy of
103 this General Public License along with the Program. You may charge a
104 fee for the physical act of transferring a copy.
105
106 2. You may modify your copy or copies of the Program or any portion
107 of it, and copy and distribute such modifications under the terms of
108 Paragraph 1 above, provided that you also do the following:
f703fc96 109
fa861958
DG
110 a) cause the modified files to carry prominent notices stating that
111 you changed the files and the date of any change; and
f703fc96 112
fa861958 113 b) cause the whole of any work that you distribute or publish, that
f185f654
KW
114 in whole or in part contains the Program or any part thereof,
115 either with or without modifications, to be licensed at no charge
116 to all third parties under the terms of this General Public License
117 (except that you may choose to grant warranty protection to some or
118 all third parties, at your option).
119
120 c) If the modified program normally reads commands interactively
121 when run, you must cause it, when started running for such
122 interactive use in the simplest and most usual way, to print or
123 display an announcement including an appropriate copyright notice
124 and a notice that there is no warranty (or else, saying that you
125 provide a warranty) and that users may redistribute the program
126 under these conditions, and telling the user how to view a copy of
127 this General Public License.
f703fc96 128
fa861958
DG
129 d) You may charge a fee for the physical act of transferring a
130 copy, and you may at your option offer warranty protection in
131 exchange for a fee.
f703fc96 132
fa861958 133 Mere aggregation of another independent work with the Program (or its
f185f654
KW
134 derivative) on a volume of a storage or distribution medium does not
135 bring the other work under the scope of these terms.
f703fc96 136
f185f654
KW
137 3. You may copy and distribute the Program (or a portion or
138 derivative of it, under Paragraph 2) in object code or executable form
139 under the terms of Paragraphs 1 and 2 above provided that you also do
140 one of the following:
f703fc96 141
fa861958
DG
142 a) accompany it with the complete corresponding machine-readable
143 source code, which must be distributed under the terms of
144 Paragraphs 1 and 2 above; or,
f703fc96 145
fa861958
DG
146 b) accompany it with a written offer, valid for at least three
147 years, to give any third party free (except for a nominal charge
f185f654
KW
148 for the cost of distribution) a complete machine-readable copy of
149 the corresponding source code, to be distributed under the terms of
fa861958 150 Paragraphs 1 and 2 above; or,
f703fc96 151
fa861958
DG
152 c) accompany it with the information you received as to where the
153 corresponding source code may be obtained. (This alternative is
154 allowed only for noncommercial distribution and only if you
155 received the program in object code or executable form alone.)
f703fc96 156
fa861958 157 Source code for a work means the preferred form of the work for making
f185f654
KW
158 modifications to it. For an executable file, complete source code
159 means all the source code for all modules it contains; but, as a
160 special exception, it need not include source code for modules which
161 are standard libraries that accompany the operating system on which the
162 executable file runs, or for standard header files or definitions files
163 that accompany that operating system.
f703fc96 164
fa861958
DG
165 4. You may not copy, modify, sublicense, distribute or transfer the
166 Program except as expressly provided under this General Public License.
f185f654
KW
167 Any attempt otherwise to copy, modify, sublicense, distribute or
168 transfer the Program is void, and will automatically terminate your
169 rights to use the Program under this License. However, parties who
170 have received copies, or rights to use copies, from you under this
171 General Public License will not have their licenses terminated so long
172 as such parties remain in full compliance.
f703fc96 173
f185f654
KW
174 5. By copying, distributing or modifying the Program (or any work
175 based on the Program) you indicate your acceptance of this license to
176 do so, and all its terms and conditions.
f703fc96 177
fa861958 178 6. Each time you redistribute the Program (or any work based on the
f185f654
KW
179 Program), the recipient automatically receives a license from the
180 original licensor to copy, distribute or modify the Program subject to
181 these terms and conditions. You may not impose any further
182 restrictions on the recipients' exercise of the rights granted herein.
f703fc96 183
f185f654
KW
184 7. The Free Software Foundation may publish revised and/or new
185 versions of the General Public License from time to time. Such new
186 versions will be similar in spirit to the present version, but may
187 differ in detail to address new problems or concerns.
f703fc96 188
fa861958
DG
189 Each version is given a distinguishing version number. If the Program
190 specifies a version number of the license which applies to it and "any
f185f654
KW
191 later version", you have the option of following the terms and
192 conditions either of that version or of any later version published by
193 the Free Software Foundation. If the Program does not specify a
194 version number of the license, you may choose any version ever
195 published by the Free Software Foundation.
f703fc96 196
fa861958 197 8. If you wish to incorporate parts of the Program into other free
f185f654
KW
198 programs whose distribution conditions are different, write to the
199 author to ask for permission. For software which is copyrighted by the
200 Free Software Foundation, write to the Free Software Foundation; we
201 sometimes make exceptions for this. Our decision will be guided by the
202 two goals of preserving the free status of all derivatives of our free
203 software and of promoting the sharing and reuse of software generally.
f703fc96 204
fa861958 205 NO WARRANTY
f703fc96 206
f185f654
KW
207 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
208 WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
209 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
210 OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
211 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
212 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
213 THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
214 WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
215 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
216
217 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
218 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
219 AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
220 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
221 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
222 PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
223 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
224 FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
225 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
226 DAMAGES.
f703fc96 227
fa861958 228 END OF TERMS AND CONDITIONS
f703fc96 229
fa861958 230 Appendix: How to Apply These Terms to Your New Programs
f703fc96 231
fa861958
DG
232 If you develop a new program, and you want it to be of the greatest
233 possible use to humanity, the best way to achieve this is to make it
234 free software which everyone can redistribute and change under these
235 terms.
f703fc96 236
f185f654
KW
237 To do so, attach the following notices to the program. It is safest
238 to attach them to the start of each source file to most effectively
239 convey the exclusion of warranty; and each file should have at least
240 the "copyright" line and a pointer to where the full notice is found.
f703fc96 241
f185f654
KW
242 <one line to give the program's name and a brief idea of what it
243 does.>
fa861958 244 Copyright (C) 19yy <name of author>
f703fc96 245
f185f654
KW
246 This program is free software; you can redistribute it and/or
247 modify it under the terms of the GNU General Public License as
248 published by the Free Software Foundation; either version 1, or (at
249 your option) any later version.
f703fc96 250
fa861958
DG
251 This program is distributed in the hope that it will be useful,
252 but WITHOUT ANY WARRANTY; without even the implied warranty of
253 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
254 GNU General Public License for more details.
f703fc96 255
fa861958 256 You should have received a copy of the GNU General Public License
de89470c 257 along with this program; if not, write to the Free Software
8b753649
FC
258 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA
259 02110-1301 USA
f703fc96
KW
260
261
f185f654
KW
262 Also add information on how to contact you by electronic and paper
263 mail.
f703fc96 264
fa861958
DG
265 If the program is interactive, make it output a short notice like this
266 when it starts in an interactive mode:
f703fc96 267
fa861958 268 Gnomovision version 69, Copyright (C) 19xx name of author
f185f654
KW
269 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
270 'show w'. This is free software, and you are welcome to
271 redistribute it under certain conditions; type 'show c' for
272 details.
f703fc96 273
ccf3535a 274 The hypothetical commands 'show w' and 'show c' should show the
fa861958 275 appropriate parts of the General Public License. Of course, the
ccf3535a 276 commands you use may be called something other than 'show w' and 'show
fa861958
DG
277 c'; they could even be mouse-clicks or menu items--whatever suits your
278 program.
f703fc96 279
fa861958
DG
280 You should also get your employer (if you work as a programmer) or your
281 school, if any, to sign a "copyright disclaimer" for the program, if
282 necessary. Here a sample; alter the names:
f703fc96 283
fa861958 284 Yoyodyne, Inc., hereby disclaims all copyright interest in the
ccf3535a 285 program 'Gnomovision' (a program to direct compilers to make passes
fa861958 286 at assemblers) written by James Hacker.
f703fc96 287
fa861958
DG
288 <signature of Ty Coon>, 1 April 1989
289 Ty Coon, President of Vice
f703fc96 290
fa861958 291 That's all there is to it!
2a551100
JH
292
293=cut