mysql2 0.3.18-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +539 -0
- data/examples/eventmachine.rb +21 -0
- data/examples/threaded.rb +20 -0
- data/ext/mysql2/client.c +1416 -0
- data/ext/mysql2/client.h +56 -0
- data/ext/mysql2/extconf.rb +177 -0
- data/ext/mysql2/infile.c +122 -0
- data/ext/mysql2/infile.h +1 -0
- data/ext/mysql2/mysql2_ext.c +12 -0
- data/ext/mysql2/mysql2_ext.h +45 -0
- data/ext/mysql2/mysql_enc_name_to_ruby.h +168 -0
- data/ext/mysql2/mysql_enc_to_ruby.h +246 -0
- data/ext/mysql2/result.c +684 -0
- data/ext/mysql2/result.h +23 -0
- data/ext/mysql2/wait_for_single_fd.h +36 -0
- data/lib/mysql2.rb +64 -0
- data/lib/mysql2/2.0/mysql2.so +0 -0
- data/lib/mysql2/2.1/mysql2.so +0 -0
- data/lib/mysql2/client.rb +90 -0
- data/lib/mysql2/console.rb +5 -0
- data/lib/mysql2/em.rb +56 -0
- data/lib/mysql2/error.rb +80 -0
- data/lib/mysql2/mysql2.rb +2 -0
- data/lib/mysql2/result.rb +5 -0
- data/lib/mysql2/version.rb +3 -0
- data/spec/configuration.yml.example +17 -0
- data/spec/em/em_spec.rb +135 -0
- data/spec/my.cnf.example +9 -0
- data/spec/mysql2/client_spec.rb +897 -0
- data/spec/mysql2/error_spec.rb +83 -0
- data/spec/mysql2/result_spec.rb +505 -0
- data/spec/rcov.opts +3 -0
- data/spec/spec_helper.rb +87 -0
- data/spec/test_data +1 -0
- data/support/libmysql.def +219 -0
- data/support/mysql_enc_to_ruby.rb +82 -0
- data/support/ruby_enc_to_mysql.rb +61 -0
- data/vendor/README +654 -0
- data/vendor/libmysql.dll +0 -0
- metadata +149 -0
data/vendor/README
ADDED
@@ -0,0 +1,654 @@
|
|
1
|
+
MySQL Connector/C 6.1
|
2
|
+
|
3
|
+
This is a release of MySQL Connector/C, Oracle's dual-
|
4
|
+
license C Driver for MySQL. For the avoidance of
|
5
|
+
doubt, this particular copy of the software is released
|
6
|
+
under the version 2 of the GNU General Public License.
|
7
|
+
MySQL Connector/C is brought to you by Oracle.
|
8
|
+
|
9
|
+
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
|
10
|
+
|
11
|
+
License information can be found in the COPYING file.
|
12
|
+
|
13
|
+
MySQL FOSS License Exception
|
14
|
+
We want free and open source software applications under
|
15
|
+
certain licenses to be able to use the GPL-licensed MySQL
|
16
|
+
Connector/C (specified GPL-licensed MySQL client libraries)
|
17
|
+
despite the fact that not all such FOSS licenses are
|
18
|
+
compatible with version 2 of the GNU General Public License.
|
19
|
+
Therefore there are special exceptions to the terms and
|
20
|
+
conditions of the GPLv2 as applied to these client libraries,
|
21
|
+
which are identified and described in more detail in the
|
22
|
+
FOSS License Exception at
|
23
|
+
<http://www.mysql.com/about/legal/licensing/foss-exception/>
|
24
|
+
|
25
|
+
This software is OSI Certified Open Source Software.
|
26
|
+
OSI Certified is a certification mark of the Open Source Initiative.
|
27
|
+
|
28
|
+
This distribution may include materials developed by third
|
29
|
+
parties. For license and attribution notices for these
|
30
|
+
materials, please refer to the documentation that accompanies
|
31
|
+
this distribution (see the "Licenses for Third-Party Components"
|
32
|
+
appendix) or view the online documentation at
|
33
|
+
<http://dev.mysql.com/doc/>
|
34
|
+
A copy of the license/notices is also reproduced below.
|
35
|
+
|
36
|
+
GPLv2 Disclaimer
|
37
|
+
For the avoidance of doubt, except that if any license choice
|
38
|
+
other than GPL or LGPL is available it will apply instead,
|
39
|
+
Oracle elects to use only the General Public License version 2
|
40
|
+
(GPLv2) at this time for any software where a choice of GPL
|
41
|
+
license versions is made available with the language indicating
|
42
|
+
that GPLv2 or any later version may be used, or where a choice
|
43
|
+
of which version of the GPL is applied is otherwise unspecified.
|
44
|
+
|
45
|
+
CONTENTS
|
46
|
+
|
47
|
+
* Documentation Location
|
48
|
+
* Third-Party Component Notices
|
49
|
+
|
50
|
+
DOCUMENTATION LOCATION
|
51
|
+
|
52
|
+
You may also find the latest copy of the documentation on
|
53
|
+
the MySQL website at
|
54
|
+
<http://dev.mysql.com/doc/connector-c/en/index.html>
|
55
|
+
|
56
|
+
|
57
|
+
***************************************************************
|
58
|
+
|
59
|
+
Third-Party Component Notices
|
60
|
+
|
61
|
+
****************************************************************
|
62
|
+
Appendix A. Licenses for Third-Party Components
|
63
|
+
|
64
|
+
The following is a list of the libraries we have included with the
|
65
|
+
Connector/C source and components used to test it. We are
|
66
|
+
thankful to all individuals that have created these. Some of the
|
67
|
+
components require that their licensing terms be included in the
|
68
|
+
documentation of products that include them. Cross references to
|
69
|
+
these licensing terms are given with the applicable items in the
|
70
|
+
list.
|
71
|
+
|
72
|
+
* GroupLens Research Project
|
73
|
+
The MySQL Quality Assurance team would like to acknowledge the
|
74
|
+
use of the MovieLens Data Sets (10 million ratings and 100,000
|
75
|
+
tags for 10681 movies by 71567 users) to help test MySQL
|
76
|
+
products and to thank the GroupLens Research Project at the
|
77
|
+
University of Minnesota for making the data sets available.
|
78
|
+
|
79
|
+
|
80
|
+
* Section A.1, "dtoa.c License"
|
81
|
+
* Section A.2, "Fred Fish's Dbug Library License"
|
82
|
+
* Section A.3, "GNU General Public License Version 2.0, June
|
83
|
+
1991"
|
84
|
+
* Section A.4, "md5 (Message-Digest Algorithm 5) License"
|
85
|
+
* Section A.5, "RegEX-Spencer Library License"
|
86
|
+
* Section A.6, "Richard A. O'Keefe String Library License"
|
87
|
+
* Section A.7, "SHA-1 in C License"
|
88
|
+
* Section A.8, "zlib License"
|
89
|
+
|
90
|
+
|
91
|
+
A.1. dtoa.c License
|
92
|
+
----------------------------------------------------------------
|
93
|
+
The following software may be included in this product:
|
94
|
+
|
95
|
+
dtoa.c
|
96
|
+
|
97
|
+
The author of this software is David M. Gay.
|
98
|
+
|
99
|
+
Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
|
100
|
+
|
101
|
+
Permission to use, copy, modify, and distribute this software for
|
102
|
+
any purpose without fee is hereby granted, provided that this entire
|
103
|
+
notice is included in all copies of any software which is or includes
|
104
|
+
|
105
|
+
a copy or modification of this software and in all copies of the
|
106
|
+
supporting documentation for such software.
|
107
|
+
|
108
|
+
THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
|
109
|
+
IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT
|
110
|
+
MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
|
111
|
+
MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
|
112
|
+
PURPOSE.
|
113
|
+
|
114
|
+
|
115
|
+
A.2. Fred Fish's Dbug Library License
|
116
|
+
----------------------------------------------------------------
|
117
|
+
The following software may be included in this product:
|
118
|
+
|
119
|
+
Fred Fish's Dbug Library
|
120
|
+
N O T I C E
|
121
|
+
|
122
|
+
Copyright Abandoned, 1987, Fred Fish
|
123
|
+
|
124
|
+
This previously copyrighted work has been placed into the public
|
125
|
+
domain by the author and may be freely used for any purpose,
|
126
|
+
private or commercial.
|
127
|
+
|
128
|
+
Because of the number of inquiries I was receiving about the use
|
129
|
+
of this product in commercially developed works I have decided to
|
130
|
+
simply make it public domain to further its unrestricted use. I
|
131
|
+
specifically would be most happy to see this material become a
|
132
|
+
part of the standard Unix distributions by AT&T and the Berkeley
|
133
|
+
Computer Science Research Group, and a standard part of the GNU
|
134
|
+
system from the Free Software Foundation.
|
135
|
+
|
136
|
+
I would appreciate it, as a courtesy, if this notice is left in
|
137
|
+
all copies and derivative works. Thank you.
|
138
|
+
|
139
|
+
The author makes no warranty of any kind with respect to this
|
140
|
+
product and explicitly disclaims any implied warranties of mer-
|
141
|
+
chantability or fitness for any particular purpose.
|
142
|
+
|
143
|
+
The dbug_analyze.c file is subject to the following notice:
|
144
|
+
|
145
|
+
Copyright June 1987, Binayak Banerjee
|
146
|
+
All rights reserved.
|
147
|
+
|
148
|
+
This program may be freely distributed under the same terms and
|
149
|
+
conditions as Fred Fish's Dbug package.
|
150
|
+
|
151
|
+
|
152
|
+
A.3. GNU General Public License Version 2.0, June 1991
|
153
|
+
----------------------------------------------------------------
|
154
|
+
The following applies to all products licensed under the GNU General
|
155
|
+
Public License, Version 2.0: You may not use the identified files
|
156
|
+
except in compliance with the GNU General Public License, Version
|
157
|
+
2.0 (the "License.") You may obtain a copy of the License at
|
158
|
+
http://www.gnu.org/licenses/gpl-2.0.txt. A copy of the license is
|
159
|
+
also reproduced below. Unless required by applicable law or agreed
|
160
|
+
to in writing, software distributed under the License is distributed
|
161
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
162
|
+
either express or implied. See the License for the specific language
|
163
|
+
governing permissions and limitations under the License.
|
164
|
+
|
165
|
+
GNU GENERAL PUBLIC LICENSE
|
166
|
+
Version 2, June 1991
|
167
|
+
|
168
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
169
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
170
|
+
Everyone is permitted to copy and distribute verbatim
|
171
|
+
copies of this license document, but changing it is not
|
172
|
+
allowed.
|
173
|
+
|
174
|
+
Preamble
|
175
|
+
|
176
|
+
The licenses for most software are designed to take away your
|
177
|
+
freedom to share and change it. By contrast, the GNU General Public
|
178
|
+
License is intended to guarantee your freedom to share and change free
|
179
|
+
software--to make sure the software is free for all its users. This
|
180
|
+
General Public License applies to most of the Free Software
|
181
|
+
Foundation's software and to any other program whose authors commit to
|
182
|
+
using it. (Some other Free Software Foundation software is covered by
|
183
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
184
|
+
your programs, too.
|
185
|
+
|
186
|
+
When we speak of free software, we are referring to freedom, not
|
187
|
+
price. Our General Public Licenses are designed to make sure that you
|
188
|
+
have the freedom to distribute copies of free software (and charge for
|
189
|
+
this service if you wish), that you receive source code or can get it
|
190
|
+
if you want it, that you can change the software or use pieces of it
|
191
|
+
in new free programs; and that you know you can do these things.
|
192
|
+
|
193
|
+
To protect your rights, we need to make restrictions that forbid
|
194
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
195
|
+
These restrictions translate to certain responsibilities for you if you
|
196
|
+
distribute copies of the software, or if you modify it.
|
197
|
+
|
198
|
+
For example, if you distribute copies of such a program, whether
|
199
|
+
gratis or for a fee, you must give the recipients all the rights that
|
200
|
+
you have. You must make sure that they, too, receive or can get the
|
201
|
+
source code. And you must show them these terms so they know their
|
202
|
+
rights.
|
203
|
+
|
204
|
+
We protect your rights with two steps: (1) copyright the software,
|
205
|
+
and (2) offer you this license which gives you legal permission to
|
206
|
+
copy, distribute and/or modify the software.
|
207
|
+
|
208
|
+
Also, for each author's protection and ours, we want to make certain
|
209
|
+
that everyone understands that there is no warranty for this free
|
210
|
+
software. If the software is modified by someone else and passed on,
|
211
|
+
|
212
|
+
we want its recipients to know that what they have is not the original,
|
213
|
+
so that any problems introduced by others will not reflect on the
|
214
|
+
original authors' reputations.
|
215
|
+
|
216
|
+
Finally, any free program is threatened constantly by software
|
217
|
+
patents. We wish to avoid the danger that redistributors of a free
|
218
|
+
program will individually obtain patent licenses, in effect making the
|
219
|
+
program proprietary. To prevent this, we have made it clear that any
|
220
|
+
patent must be licensed for everyone's free use or not licensed at all.
|
221
|
+
|
222
|
+
The precise terms and conditions for copying, distribution and
|
223
|
+
modification follow.
|
224
|
+
|
225
|
+
GNU GENERAL PUBLIC LICENSE
|
226
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
227
|
+
|
228
|
+
0. This License applies to any program or other work which contains
|
229
|
+
a notice placed by the copyright holder saying it may be distributed
|
230
|
+
under the terms of this General Public License. The "Program", below,
|
231
|
+
refers to any such program or work, and a "work based on the Program"
|
232
|
+
means either the Program or any derivative work under copyright law:
|
233
|
+
that is to say, a work containing the Program or a portion of it,
|
234
|
+
either verbatim or with modifications and/or translated into another
|
235
|
+
language. (Hereinafter, translation is included without limitation in
|
236
|
+
the term "modification".) Each licensee is addressed as "you".
|
237
|
+
|
238
|
+
Activities other than copying, distribution and modification are not
|
239
|
+
covered by this License; they are outside its scope. The act of
|
240
|
+
running the Program is not restricted, and the output from the Program
|
241
|
+
is covered only if its contents constitute a work based on the
|
242
|
+
Program (independent of having been made by running the Program).
|
243
|
+
Whether that is true depends on what the Program does.
|
244
|
+
|
245
|
+
|
246
|
+
1. You may copy and distribute verbatim copies of the Program's
|
247
|
+
source code as you receive it, in any medium, provided that you
|
248
|
+
conspicuously and appropriately publish on each copy an appropriate
|
249
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
250
|
+
notices that refer to this License and to the absence of any warranty;
|
251
|
+
and give any other recipients of the Program a copy of this License
|
252
|
+
along with the Program.
|
253
|
+
|
254
|
+
You may charge a fee for the physical act of transferring a copy, and
|
255
|
+
you may at your option offer warranty protection in exchange for a fee.
|
256
|
+
|
257
|
+
|
258
|
+
2. You may modify your copy or copies of the Program or any portion
|
259
|
+
of it, thus forming a work based on the Program, and copy and
|
260
|
+
distribute such modifications or work under the terms of Section 1
|
261
|
+
above, provided that you also meet all of these conditions:
|
262
|
+
|
263
|
+
a) You must cause the modified files to carry prominent notices
|
264
|
+
stating that you changed the files and the date of any change.
|
265
|
+
|
266
|
+
b) You must cause any work that you distribute or publish, that in
|
267
|
+
whole or in part contains or is derived from the Program or any
|
268
|
+
part thereof, to be licensed as a whole at no charge to all third
|
269
|
+
parties under the terms of this License.
|
270
|
+
|
271
|
+
c) If the modified program normally reads commands interactively
|
272
|
+
when run, you must cause it, when started running for such
|
273
|
+
interactive use in the most ordinary way, to print or display an
|
274
|
+
announcement including an appropriate copyright notice and a
|
275
|
+
notice that there is no warranty (or else, saying that you provide
|
276
|
+
a warranty) and that users may redistribute the program under
|
277
|
+
these conditions, and telling the user how to view a copy of this
|
278
|
+
License. (Exception: if the Program itself is interactive but
|
279
|
+
does not normally print such an announcement, your work based on
|
280
|
+
the Program is not required to print an announcement.)
|
281
|
+
|
282
|
+
These requirements apply to the modified work as a whole. If
|
283
|
+
identifiable sections of that work are not derived from the Program,
|
284
|
+
and can be reasonably considered independent and separate works in
|
285
|
+
themselves, then this License, and its terms, do not apply to those
|
286
|
+
sections when you distribute them as separate works. But when you
|
287
|
+
distribute the same sections as part of a whole which is a work based
|
288
|
+
on the Program, the distribution of the whole must be on the terms of
|
289
|
+
this License, whose permissions for other licensees extend to the
|
290
|
+
entire whole, and thus to each and every part regardless of who wrote it.
|
291
|
+
|
292
|
+
Thus, it is not the intent of this section to claim rights or contest
|
293
|
+
your rights to work written entirely by you; rather, the intent is to
|
294
|
+
exercise the right to control the distribution of derivative or
|
295
|
+
collective works based on the Program.
|
296
|
+
|
297
|
+
In addition, mere aggregation of another work not based on the Program
|
298
|
+
with the Program (or with a work based on the Program) on a volume of
|
299
|
+
a storage or distribution medium does not bring the other work under
|
300
|
+
the scope of this License.
|
301
|
+
|
302
|
+
|
303
|
+
3. You may copy and distribute the Program (or a work based on it,
|
304
|
+
under Section 2) in object code or executable form under the terms of
|
305
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
306
|
+
|
307
|
+
a) Accompany it with the complete corresponding machine-readable
|
308
|
+
source code, which must be distributed under the terms of Sections
|
309
|
+
1 and 2 above on a medium customarily used for software
|
310
|
+
interchange; or,
|
311
|
+
|
312
|
+
b) Accompany it with a written offer, valid for at least three
|
313
|
+
years, to give any third party, for a charge no more than your
|
314
|
+
cost of physically performing source distribution, a complete
|
315
|
+
machine-readable copy of the corresponding source code, to be
|
316
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
317
|
+
customarily used for software interchange; or,
|
318
|
+
|
319
|
+
c) Accompany it with the information you received as to the offer
|
320
|
+
to distribute corresponding source code. (This alternative is
|
321
|
+
allowed only for noncommercial distribution and only if you
|
322
|
+
received the program in object code or executable form with such
|
323
|
+
an offer, in accord with Subsection b above.)
|
324
|
+
|
325
|
+
The source code for a work means the preferred form of the work for
|
326
|
+
making modifications to it. For an executable work, complete source
|
327
|
+
code means all the source code for all modules it contains, plus any
|
328
|
+
associated interface definition files, plus the scripts used to
|
329
|
+
control compilation and installation of the executable. However, as
|
330
|
+
a special exception, the source code distributed need not include
|
331
|
+
anything that is normally distributed (in either source or binary
|
332
|
+
form) with the major components (compiler, kernel, and so on) of the
|
333
|
+
operating system on which the executable runs, unless that component
|
334
|
+
itself accompanies the executable.
|
335
|
+
|
336
|
+
If distribution of executable or object code is made by offering
|
337
|
+
access to copy from a designated place, then offering equivalent
|
338
|
+
access to copy the source code from the same place counts as
|
339
|
+
distribution of the source code, even though third parties are not
|
340
|
+
compelled to copy the source along with the object code.
|
341
|
+
|
342
|
+
|
343
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
344
|
+
except as expressly provided under this License. Any attempt
|
345
|
+
otherwise to copy, modify, sublicense or distribute the Program is
|
346
|
+
void, and will automatically terminate your rights under this License.
|
347
|
+
However, parties who have received copies, or rights, from you under
|
348
|
+
this License will not have their licenses terminated so long as such
|
349
|
+
parties remain in full compliance.
|
350
|
+
|
351
|
+
|
352
|
+
5. You are not required to accept this License, since you have not
|
353
|
+
signed it. However, nothing else grants you permission to modify or
|
354
|
+
distribute the Program or its derivative works. These actions are
|
355
|
+
prohibited by law if you do not accept this License. Therefore, by
|
356
|
+
modifying or distributing the Program (or any work based on the
|
357
|
+
Program), you indicate your acceptance of this License to do so, and
|
358
|
+
all its terms and conditions for copying, distributing or modifying
|
359
|
+
the Program or works based on it.
|
360
|
+
|
361
|
+
|
362
|
+
6. Each time you redistribute the Program (or any work based on the
|
363
|
+
Program), the recipient automatically receives a license from the
|
364
|
+
original licensor to copy, distribute or modify the Program subject to
|
365
|
+
these terms and conditions. You may not impose any further
|
366
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
367
|
+
You are not responsible for enforcing compliance by third parties to
|
368
|
+
this License.
|
369
|
+
|
370
|
+
|
371
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
372
|
+
infringement or for any other reason (not limited to patent issues),
|
373
|
+
conditions are imposed on you (whether by court order, agreement or
|
374
|
+
otherwise) that contradict the conditions of this License, they do not
|
375
|
+
excuse you from the conditions of this License. If you cannot
|
376
|
+
distribute so as to satisfy simultaneously your obligations under this
|
377
|
+
License and any other pertinent obligations, then as a consequence you
|
378
|
+
may not distribute the Program at all. For example, if a patent
|
379
|
+
license would not permit royalty-free redistribution of the Program by
|
380
|
+
all those who receive copies directly or indirectly through you, then
|
381
|
+
the only way you could satisfy both it and this License would be to
|
382
|
+
refrain entirely from distribution of the Program.
|
383
|
+
|
384
|
+
If any portion of this section is held invalid or unenforceable under
|
385
|
+
any particular circumstance, the balance of the section is intended to
|
386
|
+
apply and the section as a whole is intended to apply in other
|
387
|
+
circumstances.
|
388
|
+
|
389
|
+
It is not the purpose of this section to induce you to infringe any
|
390
|
+
patents or other property right claims or to contest validity of any
|
391
|
+
such claims; this section has the sole purpose of protecting the
|
392
|
+
integrity of the free software distribution system, which is
|
393
|
+
implemented by public license practices. Many people have made
|
394
|
+
generous contributions to the wide range of software distributed
|
395
|
+
through that system in reliance on consistent application of that
|
396
|
+
system; it is up to the author/donor to decide if he or she is willing
|
397
|
+
to distribute software through any other system and a licensee cannot
|
398
|
+
impose that choice.
|
399
|
+
|
400
|
+
This section is intended to make thoroughly clear what is believed to
|
401
|
+
be a consequence of the rest of this License.
|
402
|
+
|
403
|
+
|
404
|
+
8. If the distribution and/or use of the Program is restricted in
|
405
|
+
certain countries either by patents or by copyrighted interfaces, the
|
406
|
+
original copyright holder who places the Program under this License
|
407
|
+
may add an explicit geographical distribution limitation excluding
|
408
|
+
those countries, so that distribution is permitted only in or among
|
409
|
+
countries not thus excluded. In such case, this License incorporates
|
410
|
+
the limitation as if written in the body of this License.
|
411
|
+
|
412
|
+
|
413
|
+
9. The Free Software Foundation may publish revised and/or new
|
414
|
+
versions of the General Public License from time to time. Such new
|
415
|
+
versions will be similar in spirit to the present version, but may
|
416
|
+
differ in detail to address new problems or concerns.
|
417
|
+
|
418
|
+
Each version is given a distinguishing version number. If the Program
|
419
|
+
specifies a version number of this License which applies to it and
|
420
|
+
"any later version", you have the option of following the terms and
|
421
|
+
conditions either of that version or of any later version published by
|
422
|
+
the Free Software Foundation. If the Program does not specify a
|
423
|
+
version number of this License, you may choose any version ever
|
424
|
+
published by the Free Software Foundation.
|
425
|
+
|
426
|
+
10. If you wish to incorporate parts of the Program into other free
|
427
|
+
programs whose distribution conditions are different, write to the
|
428
|
+
author to ask for permission. For software which is copyrighted by the
|
429
|
+
Free Software Foundation, write to the Free Software Foundation; we
|
430
|
+
sometimes make exceptions for this. Our decision will be guided by the
|
431
|
+
two goals of preserving the free status of all derivatives of our free
|
432
|
+
software and of promoting the sharing and reuse of software generally.
|
433
|
+
|
434
|
+
NO WARRANTY
|
435
|
+
|
436
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
|
437
|
+
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
438
|
+
|
439
|
+
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
440
|
+
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
441
|
+
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
442
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
443
|
+
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
|
444
|
+
WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
445
|
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
446
|
+
|
447
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
448
|
+
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
449
|
+
AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
|
450
|
+
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
451
|
+
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
452
|
+
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
453
|
+
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
454
|
+
FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
|
455
|
+
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
456
|
+
DAMAGES.
|
457
|
+
|
458
|
+
END OF TERMS AND CONDITIONS
|
459
|
+
|
460
|
+
How to Apply These Terms to Your New Programs
|
461
|
+
|
462
|
+
If you develop a new program, and you want it to be of the greatest
|
463
|
+
possible use to the public, the best way to achieve this is to make it
|
464
|
+
free software which everyone can redistribute and change under these
|
465
|
+
terms.
|
466
|
+
|
467
|
+
To do so, attach the following notices to the program. It is safest
|
468
|
+
to attach them to the start of each source file to most effectively
|
469
|
+
convey the exclusion of warranty; and each file should have at least
|
470
|
+
the "copyright" line and a pointer to where the full notice is found.
|
471
|
+
|
472
|
+
<one line to give the program's name and a brief idea of what it
|
473
|
+
does.>
|
474
|
+
Copyright (C) <year> <name of author>
|
475
|
+
|
476
|
+
This program is free software; you can redistribute it and/or
|
477
|
+
modify it under the terms of the GNU General Public License as
|
478
|
+
published by the Free Software Foundation; either version
|
479
|
+
2 of the License, or (at your option) any later version.
|
480
|
+
|
481
|
+
This program is distributed in the hope that it will be useful,
|
482
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
483
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
484
|
+
GNU General Public License for more details.
|
485
|
+
|
486
|
+
You should have received a copy of the GNU General Public License
|
487
|
+
along with this program; if not, write to the Free Software
|
488
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
489
|
+
02110-1301 USA.
|
490
|
+
|
491
|
+
Also add information on how to contact you by electronic and paper mail.
|
492
|
+
|
493
|
+
If the program is interactive, make it output a short notice like this
|
494
|
+
when it starts in an interactive mode:
|
495
|
+
|
496
|
+
Gnomovision version 69, Copyright (C) year name of author
|
497
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
|
498
|
+
type 'show w'. This is free software, and you are welcome
|
499
|
+
to redistribute it under certain conditions; type 'show c'
|
500
|
+
for details.
|
501
|
+
|
502
|
+
The hypothetical commands 'show w' and 'show c' should show the
|
503
|
+
appropriate parts of the General Public License. Of course, the
|
504
|
+
commands you use may be called something other than 'show w' and
|
505
|
+
'show c'; they could even be mouse-clicks or menu items--whatever
|
506
|
+
suits your program.
|
507
|
+
|
508
|
+
You should also get your employer (if you work as a programmer) or your
|
509
|
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
510
|
+
necessary. Here is a sample; alter the names:
|
511
|
+
|
512
|
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
513
|
+
program 'Gnomovision' (which makes passes at compilers) written
|
514
|
+
by James Hacker.
|
515
|
+
|
516
|
+
<signature of Ty Coon>, 1 April 1989
|
517
|
+
Ty Coon, President of Vice
|
518
|
+
|
519
|
+
This General Public License does not permit incorporating your program
|
520
|
+
into proprietary programs. If your program is a subroutine library,
|
521
|
+
you may consider it more useful to permit linking proprietary
|
522
|
+
applications with the library. If this is what you want to do, use
|
523
|
+
the GNU Lesser General Public License instead of this License.
|
524
|
+
|
525
|
+
|
526
|
+
A.4. md5 (Message-Digest Algorithm 5) License
|
527
|
+
----------------------------------------------------------------
|
528
|
+
The following software may be included in this product:
|
529
|
+
|
530
|
+
md5 (Message-Digest Algorithm 5)
|
531
|
+
|
532
|
+
This code implements the MD5 message-digest algorithm.
|
533
|
+
The algorithm is due to Ron Rivest. This code was
|
534
|
+
written by Colin Plumb in 1993, no copyright is claimed.
|
535
|
+
This code is in the public domain; do with it what you wish.
|
536
|
+
|
537
|
+
Equivalent code is available from RSA Data Security, Inc.
|
538
|
+
This code has been tested against that, and is equivalent,
|
539
|
+
except that you don't need to include two pages of legalese
|
540
|
+
with every copy.
|
541
|
+
|
542
|
+
The code has been modified by Mikael Ronstroem to handle
|
543
|
+
calculating a hash value of a key that is always a multiple
|
544
|
+
of 4 bytes long. Word 0 of the calculated 4-word hash value
|
545
|
+
is returned as the hash value.
|
546
|
+
|
547
|
+
|
548
|
+
A.5. RegEX-Spencer Library License
|
549
|
+
----------------------------------------------------------------
|
550
|
+
|
551
|
+
The following software may be included in this product:
|
552
|
+
|
553
|
+
Henry Spencer's Regular-Expression Library (RegEX-Spencer)
|
554
|
+
|
555
|
+
Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.
|
556
|
+
This software is not subject to any license of the American Telephone
|
557
|
+
and Telegraph Company or of the Regents of the University of California.
|
558
|
+
|
559
|
+
Permission is granted to anyone to use this software for any purposeon
|
560
|
+
any computer system, and to alter it and redistribute it, subject
|
561
|
+
to the following restrictions:
|
562
|
+
|
563
|
+
1. The author is not responsible for the consequences of use of this
|
564
|
+
software, no matter how awful, even if they arise from flaws in it.
|
565
|
+
|
566
|
+
2. The origin of this software must not be misrepresented, either by
|
567
|
+
explicit claim or by omission. Since few users ever read sources,
|
568
|
+
credits must appear in the documentation.
|
569
|
+
|
570
|
+
3. Altered versions must be plainly marked as such, and must not be
|
571
|
+
misrepresented as being the original software. Since few users
|
572
|
+
ever read sources, credits must appear in the documentation.
|
573
|
+
|
574
|
+
4. This notice may not be removed or altered.
|
575
|
+
|
576
|
+
|
577
|
+
A.6. Richard A. O'Keefe String Library License
|
578
|
+
----------------------------------------------------------------
|
579
|
+
|
580
|
+
The following software may be included in this product:
|
581
|
+
|
582
|
+
Richard A. O'Keefe String Library
|
583
|
+
|
584
|
+
The Richard O'Keefe String Library is subject to the following notice:
|
585
|
+
|
586
|
+
These files are in the public domain. This includes getopt.c, which
|
587
|
+
is the work of Henry Spencer, University of Toronto Zoology, who
|
588
|
+
says of it "None of this software is derived from Bell software. I
|
589
|
+
had no access to the source for Bell's versions at the time I wrote
|
590
|
+
it. This software is hereby explicitly placed in the public domain.
|
591
|
+
It may be used for any purpose on any machine by anyone." I would
|
592
|
+
greatly prefer it if *my* material received no military use.
|
593
|
+
|
594
|
+
The t_ctype.h file is subject to the following notice:
|
595
|
+
|
596
|
+
Copyright (C) 1998, 1999 by Pruet Boonma, all rights reserved.
|
597
|
+
Copyright (C) 1998 by Theppitak Karoonboonyanan, all rights reserved.
|
598
|
+
|
599
|
+
Permission to use, copy, modify, distribute and sell this software
|
600
|
+
and its documentation for any purpose is hereby granted without fee,
|
601
|
+
provided that the above copyright notice appear in all copies.
|
602
|
+
|
603
|
+
Smaphan Raruenrom and Pruet Boonma makes no representations about
|
604
|
+
the suitability of this software for any purpose. It is provided
|
605
|
+
"as is" without express or implied warranty.
|
606
|
+
|
607
|
+
|
608
|
+
A.7. SHA-1 in C License
|
609
|
+
----------------------------------------------------------------
|
610
|
+
The following software may be included in this product:
|
611
|
+
|
612
|
+
SHA-1 in C
|
613
|
+
|
614
|
+
By Steve Reid <steve@edmweb.com>
|
615
|
+
100% Public Domain
|
616
|
+
|
617
|
+
|
618
|
+
A.8. zlib License
|
619
|
+
----------------------------------------------------------------
|
620
|
+
The following software may be included in this product:
|
621
|
+
|
622
|
+
zlib
|
623
|
+
|
624
|
+
Oracle gratefully acknowledges the contributions of Jean-loup Gailly
|
625
|
+
and Mark Adler in creating the zlib general purpose compression library
|
626
|
+
which is used in this product.
|
627
|
+
|
628
|
+
zlib.h -- interface of the 'zlib' general purpose compression library
|
629
|
+
Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler
|
630
|
+
|
631
|
+
zlib.h -- interface of the 'zlib' general purpose compression library
|
632
|
+
version 1.2.3, July 18th, 2005
|
633
|
+
Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
|
634
|
+
|
635
|
+
zlib.h -- interface of the 'zlib' general purpose compression library
|
636
|
+
version 1.2.5, April 19th, 2010
|
637
|
+
Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
|
638
|
+
|
639
|
+
This software is provided 'as-is', without any express or implied warranty.
|
640
|
+
In no event will the authors be held liable for any damages arising from the
|
641
|
+
use of this software. Permission is granted to anyone to use this software
|
642
|
+
for any purpose,including commercial applications, and to alter it and
|
643
|
+
redistribute it freely, subject to the following restrictions:
|
644
|
+
|
645
|
+
1. The origin of this software must not be misrepresented; you must not
|
646
|
+
claim that you wrote the original software. If you use this software
|
647
|
+
in a product, an acknowledgment in the product documentation would
|
648
|
+
be appreciated but is not required.
|
649
|
+
2. Altered source versions must be plainly marked as such, and must not
|
650
|
+
be misrepresented as being the original software.
|
651
|
+
3. This notice may not be removed or altered from any source distribution.
|
652
|
+
|
653
|
+
Jean-loup Gailly jloup@gzip.org
|
654
|
+
Mark Adler madler@alumni.caltech.edu
|