]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/sum.html
Updated cupsGetDest() to accept NULL for name - default destination.
[thirdparty/cups.git] / doc / sum.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <HTML>
3 <HEAD>
4 <TITLE>CUPS Software Users Manual</TITLE>
5 <META NAME="AUTHOR" CONTENT="Easy Software Products">
6 <META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
7 <META NAME="DOCNUMBER" CONTENT="CUPS-SUM-1.1">
8 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
9 <STYLE>
10 BODY { font-family: serif; font-size: 11.0pt }
11 H1 { font-family: sans-serif; font-size: 20.0pt }
12 H2 { font-family: sans-serif; font-size: 17.0pt }
13 H3 { font-family: sans-serif; font-size: 14.0pt }
14 H4 { font-family: sans-serif; font-size: 11.0pt }
15 H5 { font-family: sans-serif; font-size: 9.0pt }
16 H6 { font-family: sans-serif; font-size: 8.0pt }
17 SUB { font-size: 8.0pt }
18 SUP { font-size: 8.0pt }
19 PRE { font-size: 9.0pt }
20 </STYLE>
21 </HEAD>
22 <BODY BGCOLOR="#ffffff">
23 <CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
24 <H1>CUPS Software Users Manual</H1></A><BR>
25 CUPS-SUM-1.1<BR>
26 Easy Software Products<BR>
27 Copyright 1997-2000, All Rights Reserved<BR>
28 </CENTER>
29 <HR>
30 <H1 ALIGN="CENTER"><A NAME="CONTENTS">Table of Contents</A></H1>
31 <BR>
32 <BR><B><A HREF="#1">Preface</A></B>
33 <UL>
34 <LI><A HREF="#1_1">System Overview</A></LI>
35 <LI><A HREF="#1_2">Document Overview</A></LI>
36 <LI><A HREF="#1_3">Notation Conventions</A></LI>
37 <LI><A HREF="#1_4">Abbreviations</A></LI>
38 <LI><A HREF="#1_5">Other References</A></LI>
39 </UL>
40 <B><A HREF="#OVERVIEW">1 - Printing System Overview</A></B>
41 <UL>
42 <LI><A HREF="#2_1">The Printing Problem</A></LI>
43 <LI><A HREF="#2_2">The Technology</A></LI>
44 <LI><A HREF="#2_3">Jobs</A></LI>
45 <LI><A HREF="#2_4">Classes</A></LI>
46 <LI><A HREF="#2_5">Filters</A></LI>
47 <LI><A HREF="#2_6">Backends</A></LI>
48 <LI><A HREF="#2_7">Printer Drivers</A></LI>
49 <LI><A HREF="#2_8">Networking</A></LI>
50 </UL>
51 <B><A HREF="#USING_SYSTEM">2 - Using the Printing System</A></B>
52 <UL>
53 <LI><A HREF="#3_1">Submitting Files for Printing</A></LI>
54 <LI><A HREF="#3_2">Choosing a Printer</A></LI>
55 <LI><A HREF="#3_3">Setting Printer Options</A></LI>
56 <LI><A HREF="#3_4">Printing Multiple Copies</A></LI>
57 <LI><A HREF="#3_5">Checking the Printer Status from the Command-Line</A></LI>
58 <LI><A HREF="#3_6">Checking the Printer Status from the Web</A></LI>
59 <LI><A HREF="#3_7">Canceling a Print Job</A></LI>
60 </UL>
61 <B><A HREF="#STANDARD_OPTIONS">3 - Standard Printer Options</A></B>
62 <UL>
63 <LI><A HREF="#4_1">General Options</A></LI>
64 <UL>
65 <LI><A HREF="#4_1_1">Setting the Orientation</A></LI>
66 <LI><A HREF="#4_1_2">Selecting the Media Size, Type, and Source</A></LI>
67 <LI><A HREF="#4_1_3">Printing On Both Sides of the Paper</A></LI>
68 <LI><A HREF="#4_1_4">Selecting a Range of Pages</A></LI>
69 <LI><A HREF="#4_1_5">Selecting Even or Odd Pages</A></LI>
70 <LI><A HREF="#4_1_6">N-Up Printing</A></LI>
71 <LI><A HREF="#4_1_7">Setting the Brightness</A></LI>
72 <LI><A HREF="#4_1_8">Setting the Gamma Correction</A></LI>
73 </UL>
74 <LI><A HREF="#4_2">Text Options</A></LI>
75 <UL>
76 <LI><A HREF="#4_2_1">Setting the Number of Characters Per Inch</A></LI>
77 <LI><A HREF="#4_2_2">Setting the Number of Lines Per Inch</A></LI>
78 <LI><A HREF="#4_2_3">Setting the Number of Columns</A></LI>
79 <LI><A HREF="#4_2_4">Setting the Page Margins</A></LI>
80 <LI><A HREF="#4_2_5">Pretty Printing</A></LI>
81 </UL>
82 <LI><A HREF="#4_3">Image Options</A></LI>
83 <UL>
84 <LI><A HREF="#4_3_1">Scaling the Image</A></LI>
85 <LI><A HREF="#4_3_2">Adjusting the Hue (Tint) of an Image</A></LI>
86 <LI><A HREF="#4_3_3">Adjusting the Saturation (Color) of an Image</A></LI>
87 </UL>
88 <LI><A HREF="#4_4">HP-GL/2 Options</A></LI>
89 <UL>
90 <LI><A HREF="#4_4_1">Printing in Black</A></LI>
91 <LI><A HREF="#4_4_2">Fitting the Plot on the Page</A></LI>
92 <LI><A HREF="#4_4_3">Setting the Default Pen Width</A></LI>
93 </UL>
94 </UL>
95 <B><A HREF="#SAVING_OPTIONS">4 - Saving Printer Options and Defaults</A></B>
96 <UL>
97 <LI><A HREF="#5_1">Printer Options</A></LI>
98 <LI><A HREF="#5_2">Setting Options for a Specific Printer</A></LI>
99 <LI><A HREF="#5_3">Viewing the Current Defaults</A></LI>
100 <LI><A HREF="#5_4">Setting the Default Printer</A></LI>
101 <LI><A HREF="#5_5">Printer Instances</A></LI>
102 <LI><A HREF="#5_6">Removing Instances</A></LI>
103 </UL>
104 <B><A HREF="#LICENSE">A - Software License Agreement</A></B>
105 <UL>
106 <LI><A HREF="#6_1">Common UNIX Printing System License Agreement</A></LI>
107 <UL>
108 <LI><A HREF="#6_1_1">Introduction</A></LI>
109 <LI><A HREF="#6_1_2">Trademarks</A></LI>
110 <LI><A HREF="#6_1_3">Binary Distribution Rights</A></LI>
111 <LI><A HREF="#6_1_4">Support</A></LI>
112 </UL>
113 <LI><A HREF="#6_2">GNU GENERAL PUBLIC LICENSE</A></LI>
114 <LI><A HREF="#6_3">GNU LIBRARY GENERAL PUBLIC LICENSE</A></LI>
115 </UL>
116 <HR>
117 <H1 ALIGN="RIGHT"><A NAME="1">Preface</A></H1>
118 <P>This software users manual describes how to use the Common UNIX
119 Printing System<SUP>TM</SUP> (&quot;CUPS<SUP>TM</SUP>&quot;) Version 1.1. </P>
120 <H2><A NAME="1_1">System Overview</A></H2>
121 <P>CUPS provides a portable printing layer for UNIX&reg;-based operating
122 systems. It has been developed by <A HREF="http://www.easysw.com">Easy
123 Software Products</A> to promote a standard printing solution for all
124 UNIX vendors and users. CUPS provides the System V and Berkeley
125 command-line interfaces. </P>
126 <P>CUPS uses the Internet Printing Protocol (&quot;IPP&quot;) as the basis for
127 managing print jobs and queues. The Line Printer Daemon (&quot;LPD&quot;) Server
128 Message Block (&quot;SMB&quot;), and AppSocket (a.k.a. JetDirect) protocols are
129 also supported with reduced functionality. CUPS adds network printer
130 browsing and PostScript Printer Description (&quot;PPD&quot;) based printing
131 options to support real-world printing under UNIX. </P>
132 <P>CUPS also includes a customized version of GNU Ghostscript
133 (currently based off GNU Ghostscript 5.50) and an image file RIP that
134 are used to support non-PostScript printers. Sample drivers for HP and
135 EPSON printers are included that use these filters. </P>
136
137 <!-- NEED 2in ---->
138 <H2><A NAME="1_2">Document Overview</A></H2>
139 <P>This software users manual is organized into the following sections:</P>
140 <UL>
141 <LI><A HREF="#OVERVIEW">1 - Printing System Overview</A></LI>
142 <LI><A HREF="#USING_SYSTEM">2 - Using the Printing System</A></LI>
143 <LI><A HREF="#STANDARD_OPTIONS">3 - Standard Printer Options</A></LI>
144 <LI><A HREF="#SAVING_OPTIONS">4 - Saving Printer Options and Defaults</A>
145 </LI>
146 <LI><A HREF="#LICENSE">A - Software License Agreement</A></LI>
147 </UL>
148 <H2><A NAME="1_3">Notation Conventions</A></H2>
149 <P>Various font and syntax conventions are used in this guide. Examples
150 and their meanings and uses are explained below:
151 <CENTER>
152 <TABLE WIDTH="80%">
153 <TR><TH>Example</TH><TD>&nbsp;&nbsp;&nbsp;</TD><TH>Description</TH></TR>
154 <TR><TD>&nbsp;</TD></TR>
155 <TR VALIGN="TOP"><TD><CODE>lpstat</CODE>
156 <BR><CODE>lpstat(1)</CODE></TD><TD>&nbsp;&nbsp;&nbsp;</TD><TD>The names of commands;
157 the first mention of a command or function in a chapter is followed by
158 a manual page section number.</TD></TR>
159 <TR><TD>&nbsp;</TD></TR>
160 <TR VALIGN="TOP"><TD><VAR>/var</VAR>
161 <BR><VAR>/usr/share/cups/data/testprint.ps</VAR></TD><TD>&nbsp;&nbsp;&nbsp;</TD><TD>
162 File and directory names.</TD></TR>
163 <TR><TD>&nbsp;</TD></TR>
164 <TR VALIGN="TOP"><TD NOWRAP><TT>Request ID is Printer-123</TT></TD><TD>
165 &nbsp;&nbsp;&nbsp;</TD><TD>Screen output.</TD></TR>
166 <TR><TD>&nbsp;</TD></TR>
167 <TR VALIGN="TOP"><TD NOWRAP><KBD>lp -d printer filename ENTER</KBD></TD><TD>
168 &nbsp;&nbsp;&nbsp;</TD><TD>Literal user input; special keys like <KBD>ENTER</KBD> are
169 in ALL CAPS.</TD></TR>
170 <TR><TD>&nbsp;</TD></TR>
171 <TR VALIGN="TOP"><TD>12.3</TD><TD>&nbsp;&nbsp;&nbsp;</TD><TD>Numbers in the text are
172 written using the period (.) to indicate the decimal point.</TD></TR>
173 </TABLE>
174 </CENTER>
175
176 <!-- NEED 3in ---->
177 </P>
178 <H2><A NAME="1_4">Abbreviations</A></H2>
179 The following abbreviations are used throughout this manual:
180 <UL>
181 <DL>
182 <DT>kb </DT>
183 <DD>Kilobytes, or 1024 bytes
184 <BR>&nbsp; </DD>
185 <DT>Mb </DT>
186 <DD>Megabytes, or 1048576 bytes
187 <BR>&nbsp; </DD>
188 <DT>Gb </DT>
189 <DD>Gigabytes, or 1073741824 bytes
190 <BR>&nbsp; </DD>
191 </DL>
192 </UL>
193 <H2><A NAME="1_5">Other References</A></H2>
194 <UL>
195 <DL>
196 <DT>CUPS Software Administrators Manual </DT>
197 <DD>An administration guide for the CUPS software.
198 <BR>&nbsp; </DD>
199 <DT>CUPS Software Programmers Manual </DT>
200 <DD>A programmer guide for interfacing with and/or extending the CUPS
201 software.
202 <BR>&nbsp; </DD>
203 </DL>
204 </UL>
205 <H1 ALIGN="RIGHT"><A NAME="OVERVIEW">1 - Printing System Overview</A></H1>
206 <P>This chapter provides an overview of how the Common UNIX Printing
207 System works. </P>
208 <H2><A NAME="2_1">The Printing Problem</A></H2>
209 <P>For years <I>the printing problem</I> has plagued UNIX. Unlike
210 Microsoft&reg; Windows&reg; or Mac OS, UNIX has no standard interface or system
211 in place for supporting printers. Among the solutions currently
212 available, the Berkeley and System V printing systems are the most
213 prevalent. </P>
214 <P>These printing systems support line printers (text only) or
215 PostScript printers (text and graphics), and with some coaxing they can
216 be made to support a full range of printers and file formats. However,
217 because each varient of the UNIX operating system uses a different
218 printing system than the next developing printer drivers for a wide
219 range of printers and operating systems is extremely difficult. That
220 combined with the limited volume of customers for each UNIX varient has
221 forced most printer vendors to give up supporting UNIX entirely. </P>
222 <P>CUPS is designed to eliminate <I>the printing problem</I>. One
223 common printing system can be used by all UNIX varients to support the
224 printing needs of users. Printer vendors can use its modular filter
225 interface to develop a single driver program that supports a wide range
226 of file formats with little or no effort. Since CUPS provides both the
227 System V and Berkeley printing commands, users (and applications) can
228 reap the benefits of this new technology with no changes. </P>
229 <H2><A NAME="2_2">The Technology</A></H2>
230 <P>CUPS is based upon an emerging Internet standard called the Internet
231 Printing Protocol. IPP has been embraced by dozens of printer and
232 printer server manufacturers and is supported by Microsoft Windows
233 2000. </P>
234 <P>IPP defines a standard protocol for printing as well as managing
235 print jobs and printer options like media size, resolution, and so
236 forth. Like all IP-based protocols, IPP can be used locally or over the
237 Internet to printers hundreds or thousands of miles away. Unlike other
238 protocols, however, IPP also supports access control, authentication,
239 and encryption, making it a much more capable and secure printing
240 solution than older ones. </P>
241 <P>IPP is layered on top of the Hyper-Text Transport Protocol (&quot;HTTP&quot;)
242 which is the basis of web servers on the Internet. This allows users to
243 view documentation, check status information on a printer or server,
244 and manage their printers, classes, and jobs using their web browser. </P>
245 <P>CUPS provides a complete IPP/1.1 based printing system that provides
246 Basic, Digest, and local certificate authentication and user, domain,
247 or IP-based access control. TLS encryption will be available in future
248 versions of CUPS. </P>
249 <H2><A NAME="2_3">Jobs</A></H2>
250 <P>Each file or set of files that is submitted for printing is called a <I>
251 job</I>. Jobs are identified by a unique number starting at 1 and are
252 assigned to a particular destination, usually a printer. Jobs can also
253 have options associated with them such as media size, number of copies,
254 and priority. </P>
255 <H2><A NAME="2_4">Classes</A></H2>
256 <P>CUPS supports collections of printers known as <I>classes</I>. Jobs
257 sent to a class are forwarded to the first available printer in the
258 class. </P>
259 <H2><A NAME="2_5">Filters</A></H2>
260 <P>Filters allow a user or application to print many types of files
261 without extra effort. Print jobs sent to a CUPS server are filtered
262 before sending them to a printer. Some filters convert job files to
263 different formats that the printer can understand. Others perform page
264 selection and ordering tasks. </P>
265 <P>CUPS provides filters for printing many types of image files,
266 HP-GL/2 files, PDF files, and text files. CUPS also supplies PostScript
267 and image file Raster Image Processor (&quot;RIP&quot;) filters that convert
268 PostScript or image files into bitmaps that can be sent to a raster
269 printer. </P>
270 <H2><A NAME="2_6">Backends</A></H2>
271 <P>Backends perform the most important task of all - they send the
272 filtered print data to the printer. </P>
273 <P>CUPS provides backends for printing over parallel, serial, and USB
274 ports, and over the network via the IPP, JetDirect (AppSocket), and
275 Line Printer Daemon (&quot;LPD&quot;) protocols. Additional backends are
276 available in network service packages such as the SMB backend included
277 with the popular SAMBA software. </P>
278 <P>Backends are also used to determine the available devices. On
279 startup each backend is asked for a list of devices it supports, and
280 any information that is available. This allows the parallel backend to
281 tell CUPS that an EPSON Stylus Color 600 printer is attached to
282 parallel port 1, for example. </P>
283 <H2><A NAME="2_7">Printer Drivers</A></H2>
284 <P>Printer drivers in CUPS consist of one of more filters specific to a
285 printer. CUPS includes sample printer drivers for Hewlett-Packard
286 LaserJet and DeskJet printers and EPSON 9-pin, 24-pin, Stylus Color,
287 and Stylus Photo printers. While these drivers do not generate optimal
288 output for the different printer models, they do provide basic printing
289 and demonstrate how you can write your own printer drivers and
290 incorporate them into CUPS. </P>
291 <H2><A NAME="2_8">Networking</A></H2>
292 <P>Printers and classes on the local system are automatically shared
293 with other systems on the network. This allows you to setup one system
294 to print to a printer and use this system as a printer server or spool
295 host for all of the others. Users may then select a local printer by
296 name or a remote printer using &quot;name@server&quot;. </P>
297 <P>CUPS also provides <I>implicit classes</I>, which are collections of
298 printers and/or classes with the same name. This allows you to setup
299 multiple servers pointing to the same physical network printer, for
300 example, so that you aren't relying on a single system for printing.
301 Because this also works with printer classes, you can setup multiple
302 servers and printers and never worry about a single point of failure
303 unless all of the printers and servers go down! </P>
304 <H1 ALIGN="RIGHT"><A NAME="USING_SYSTEM">2 - Using the Printing System</A>
305 </H1>
306 <P>This chapter shows you how to submit, query, and cancel print jobs
307 to different printers. </P>
308 <H2><A NAME="3_1">Submitting Files for Printing</A></H2>
309 <P>CUPS provides both the System V (<CODE>lp(1)</CODE>) and Berkeley (<CODE>
310 lpr(1)</CODE>) printing commands. Type the following command to print a
311 file to the default (or only) printer on the system: </P>
312 <UL>
313 <PRE>
314 <B>lp filename ENTER</B>
315 </PRE>
316 </UL>
317 <P>or: </P>
318 <UL>
319 <PRE>
320 <B>lpr filename ENTER</B>
321 </PRE>
322 </UL>
323 <P>CUPS understands many different types of files directly, including
324 PostScript and image files. This allows you to print from inside your
325 applications or at the command-line, whichever is most convenient! </P>
326 <H2><A NAME="3_2">Choosing a Printer</A></H2>
327 <P>Many systems will have more than one printer available to the user.
328 These printers can be attached to the local system via a parallel,
329 serial, or USB port, or available over the network. </P>
330 <P>Use the <CODE>lpstat(1)</CODE> command to see a list of available
331 printers: </P>
332 <UL>
333 <PRE>
334 <B>lpstat -p -d ENTER</B>
335 </PRE>
336 </UL>
337 <P>The <CODE>-p</CODE> option specifies that you want to see a list of
338 printers, and the <CODE>-d</CODE> option reports the current system
339 default printer or class. </P>
340 <P>Use the <CODE>-d</CODE> option with the <CODE>lp</CODE> command to
341 print to a specific printer: </P>
342 <UL>
343 <PRE>
344 <B>lp -d printer filename ENTER</B>
345 </PRE>
346 </UL>
347 <P>or the <CODE>-P</CODE> option with the <CODE>lpr</CODE> command: </P>
348 <UL>
349 <PRE>
350 <B>lpr -P printer filename ENTER</B>
351 </PRE>
352 </UL>
353 <H2><A NAME="3_3">Setting Printer Options</A></H2>
354 <P>For many types of files, the default printer options may be
355 sufficient for your needs. However, there may be times when you need to
356 change the options for a particular file you are printing. </P>
357 <P>The <CODE>lp</CODE> and <CODE>lpr</CODE> commands allow you to pass
358 printer options using the <CODE>-o</CODE> option: </P>
359 <UL>
360 <PRE>
361 <B>lp -o landscape -o scaling=75 -o media=A4 filename.jpg
362 <B>lpr -o landscape -o scaling=75 -o media=A4 filename.jpg
363 </B></B></PRE>
364 </UL>
365 <P>The available printer options vary depending on the printer. The
366 standard options are described in <A HREF="#STANDARD_OPTIONS">Chapter
367 3, &quot;Standard Printing Options&quot;</A>. </P>
368 <H2><A NAME="3_4">Printing Multiple Copies</A></H2>
369 <P>Both the <CODE>lp</CODE> and <CODE>lpr</CODE> commands have options
370 for printing more than one copy of a file: </P>
371 <UL>
372 <PRE>
373 <B>lp -n <I>num-copies</I> filename ENTER</B>
374 <B>lpr -#<I>num-copies</I> filename ENTER</B>
375 </PRE>
376 </UL>
377 <P>Copies are normally <I>not</I> collated for you. Use the <CODE>-o
378 Collate=True</CODE> option to get collated copies : </P>
379 <UL>
380 <PRE>
381 <B>lp -n <I>num-copies</I> -o Collate=True filename ENTER</B>
382 <B>lpr -#<I>num-copies</I> -o Collate=True filename ENTER</B>
383 </PRE>
384 </UL>
385
386 <!-- NEED 3in ---->
387 <H2><A NAME="3_5">Checking the Printer Status from the Command-Line</A></H2>
388 <P>The <CODE>lpstat</CODE> command can be used to check for jobs that
389 you have submitted for printing: </P>
390 <UL>
391 <PRE>
392 <B>lpstat ENTER</B>
393 Printer-1 johndoe 4427776
394 Printer-2 johndoe 15786
395 Printer-3 johndoe 372842
396 </PRE>
397 </UL>
398 <P>The jobs are listed in the order they will be printed. Use the <CODE>
399 -p</CODE> option to see which files and printers are active: </P>
400 <UL>
401 <PRE>
402 <B>lpstat -p ENTER</B>
403 printer DeskJet now printing DeskJet-1.
404 </PRE>
405 </UL>
406
407 <!-- NEED 2in ---->
408 <P>Use the <CODE>-o</CODE> and <CODE>-p</CODE> options together to show
409 the jobs and the printers: </P>
410 <UL>
411 <PRE>
412 <B>lpstat -o -p ENTER</B>
413 Printer-1 johndoe 4427776
414 Printer-2 johndoe 15786
415 Printer-3 johndoe 372842
416 printer DeskJet now printing DeskJet-1.
417 </PRE>
418 </UL>
419 <H2><A NAME="3_6">Checking the Printer Status from the Web</A></H2>
420 <P>Since CUPS uses the Internet Printing Protocol, it is also a
421 fully-functional web server. To use your web browser to monitor the
422 printers on your system, open the URL: </P>
423 <UL>
424 <PRE>
425 <A HREF="http://localhost:631">http://localhost:631</A>
426 </PRE>
427 </UL>
428 <P>From there you can view the status of classes, jobs, and printers
429 with the click of a button! </P>
430 <H2><A NAME="3_7">Canceling a Print Job</A></H2>
431 <P>The <CODE>cancel(1)</CODE> and <CODE>lprm(1)</CODE> commands cancel
432 a print job: </P>
433 <UL>
434 <PRE>
435 <B>cancel <I>job-id</I> ENTER</B>
436 <B>lprm <I>job-id</I> ENTER</B>
437 </PRE>
438 </UL>
439 <P>The <CODE>job-id</CODE> is the number that was reported to you by
440 the <CODE>lp</CODE> or <CODE>lpstat</CODE> commands. </P>
441 <H1 ALIGN="RIGHT"><A NAME="STANDARD_OPTIONS">3 - Standard Printer
442 Options</A></H1>
443 <P>This chapter describes the standard printer options that are
444 available when printing with the <CODE>lp</CODE> and <CODE>lpr</CODE>
445 commands. </P>
446 <H2><A NAME="4_1">General Options</A></H2>
447 <P>The following options apply when printing all types of files. </P>
448 <H3><A NAME="4_1_1">Setting the Orientation</A></H3>
449 <P>The <CODE>-o landscape</CODE> option will rotate the page 90 degrees
450 to print in landscape orientation: </P>
451 <UL>
452 <PRE>
453 <B>lp -o landscape filename ENTER</B>
454 <B>lpr -o landscape filename ENTER</B>
455 </PRE>
456 </UL>
457
458 <!-- NEED 2in ---->
459 <H3><A NAME="4_1_2">Selecting the Media Size, Type, and Source</A></H3>
460 <P>The <CODE>-o media=xyz</CODE> option sets the media size, type,
461 and/or source: </P>
462 <UL>
463 <PRE>
464 <B>lp -o media=Letter filename ENTER</B>
465 <B>lp -o media=Letter,MultiPurpose filename ENTER</B>
466 <B>lpr -o media=Letter,Transparency filename ENTER</B>
467 <B>lpr -o media=Letter,MultiPurpose,Transparency filename ENTER</B>
468 </PRE>
469 </UL>
470
471 <!-- NEED 3in ---->
472 <P>The available media sizes, types, and sources depend on the printer,
473 but most support the following options (case is not significant): </P>
474 <UL>
475 <LI><CODE>Letter</CODE> - US Letter (8.5x11 inches, or 216x279mm) </LI>
476 <LI><CODE>Legal</CODE> - US Legal (8.5x14 inches, or 216x356mm) </LI>
477 <LI><CODE>A4</CODE> - ISO A4 (8.27x11.69 inches, or 210x297mm) </LI>
478 <LI><CODE>COM10</CODE> - US #10 Envelope (9.5x4.125 inches, or
479 241x105mm) </LI>
480 <LI><CODE>DL</CODE> - ISO DL Envelope (8.66x4.33 inches, or 220x110mm) </LI>
481 <LI><CODE>Transparency</CODE> - Transparency media type or source </LI>
482 <LI><CODE>Upper</CODE> - Upper paper tray </LI>
483 <LI><CODE>Lower</CODE> - Lower paper tray </LI>
484 <LI><CODE>MultiPurpose</CODE> - Multi-purpose paper tray </LI>
485 <LI><CODE>LargeCapacity</CODE> - Large capacity paper tray </LI>
486 </UL>
487 <P>The actual options supported are defined in the printer's PPD file
488 in the <CODE>PageSize</CODE>, <CODE>InputSlot</CODE>, and <CODE>
489 MediaType</CODE> options. </P>
490 <H3><A NAME="4_1_3">Printing On Both Sides of the Paper</A></H3>
491 <P>The <CODE>-o sides=two-sided-short-edge</CODE> and <CODE>-o
492 sides=two-sided-long-edge</CODE> options will enable duplexing on the
493 printer, if the printer supports it. The <CODE>-o
494 sides=two-sided-short-edge</CODE> option is suitable for landscape
495 pages, while the <CODE>-o sides=two-sided-long-edge</CODE> option is
496 suitable for portrait pages: </P>
497 <UL>
498 <PRE>
499 <B>lp -o sides=two-sided-short-edge filename ENTER</B>
500 <B>lp -o sides=two-sided-long-edge filename ENTER</B>
501 <B>lpr -o sides=two-sided-long-edge filename ENTER</B>
502 </PRE>
503 </UL>
504 <P>The default is to print single-sided: </P>
505 <UL>
506 <PRE>
507 <B>lp -o sides=one-sided filename ENTER</B>
508 <B>lpr -o sides=one-sided filename ENTER</B>
509 </PRE>
510 </UL>
511 <H3><A NAME="4_1_4">Selecting a Range of Pages</A></H3>
512 <P>The <CODE>-o page-ranges=pages</CODE> option selects a range of
513 pages for printing: </P>
514 <UL>
515 <PRE>
516 <B>lp -o page-ranges=1 filename ENTER</B>
517 <B>lp -o page-ranges=1-4 filename ENTER</B>
518 <B>lp -o page-ranges=1-4,7,9-12 filename ENTER</B>
519 <B>lpr -o page-ranges=1-4,7,9-12 filename ENTER</B>
520 </PRE>
521 </UL>
522 <P>As shown above, the <CODE>pages</CODE> value can be a single page, a
523 range of pages, or a collection of page numbers and ranges separated by
524 commas. The pages will always be printed in ascending order, regardless
525 of the order of the pages in the <CODE>page-ranges</CODE> option. </P>
526 <P>The default is to print all pages. </P>
527 <H3><A NAME="4_1_5">Selecting Even or Odd Pages</A></H3>
528 <P>Use the <CODE>-o page-set=set</CODE> option to select the even or
529 odd pages: </P>
530 <UL>
531 <PRE>
532 <B>lp -o page-set=odd filename ENTER</B>
533 <B>lp -o page-set=even filename ENTER</B>
534 <B>lpr -o page-set=even filename ENTER</B>
535 </PRE>
536 </UL>
537 <P>The default is to print all pages. </P>
538 <H3><A NAME="4_1_6">N-Up Printing</A></H3>
539 <P>The <CODE>-o number-up=value</CODE> option selects N-Up printing.
540 N-Up printing places multiple document pages on a single printed page.
541 CUPS supports 1-Up, 2-Up, and 4-Up formats: </P>
542 <UL>
543 <PRE>
544 <B>lp -o number-up=1 filename ENTER</B>
545 <B>lp -o number-up=2 filename ENTER</B>
546 <B>lp -o number-up=4 filename ENTER</B>
547 <B>lpr -o number-up=4 filename ENTER</B>
548 </PRE>
549 </UL>
550 <P>The default format is 1-Up. </P>
551 <H3><A NAME="4_1_7">Setting the Brightness</A></H3>
552 <P>You can control the overall brightness of the printed output using
553 the <CODE>-o brightness=percent</CODE> option: </P>
554 <UL>
555 <PRE>
556 <B>lp -o brightness=120 filename ENTER</B>
557 <B>lpr -o brightness=120 filename ENTER</B>
558 </PRE>
559 </UL>
560 <P>Values greater than 100 will lighten the print, while values less
561 than 100 will darken it. </P>
562 <H3><A NAME="4_1_8">Setting the Gamma Correction</A></H3>
563 <P>You can control the overall gamma correction of the printed output
564 using the <CODE>-o gamma=value</CODE> option: </P>
565 <UL>
566 <PRE>
567 <B>lp -o gamma=1700 filename ENTER</B>
568 <B>lpr -o gamma=1700 filename ENTER</B>
569 </PRE>
570 </UL>
571 <P>Values greater than 1000 will lighten the print, while values less
572 than 1000 will darken it. The default gamma is 1000. </P>
573 <H2><A NAME="4_2">Text Options</A></H2>
574 <P>The following options apply when printing text files. </P>
575 <H3><A NAME="4_2_1">Setting the Number of Characters Per Inch</A></H3>
576 <P>The <CODE>-o cpi=value</CODE> option sets the number of characters
577 per inch: </P>
578 <UL>
579 <PRE>
580 <B>lp -o cpi=10 filename ENTER</B>
581 <B>lp -o cpi=12 filename ENTER</B>
582 <B>lpr -o cpi=17 filename ENTER</B>
583 </PRE>
584 </UL>
585 <P>The default characters per inch is 10. </P>
586 <H3><A NAME="4_2_2">Setting the Number of Lines Per Inch</A></H3>
587 <P>The <CODE>-o lpi=value</CODE> option sets the number of lines per
588 inch: </P>
589 <UL>
590 <PRE>
591 <B>lp -o lpi=6 filename ENTER</B>
592 <B>lpr -o lpi=8 filename ENTER</B>
593 </PRE>
594 </UL>
595 <P>The default lines per inch is 6. </P>
596 <H3><A NAME="4_2_3">Setting the Number of Columns</A></H3>
597 <P>The <CODE>-o columns=value</CODE> option sets the number of text
598 columns: </P>
599 <UL>
600 <PRE>
601 <B>lp -o columns=2 filename ENTER</B>
602 <B>lpr -o columns=3 filename ENTER</B>
603 </PRE>
604 </UL>
605 <P>The default number of columns is 1. </P>
606 <H3><A NAME="4_2_4">Setting the Page Margins</A></H3>
607 <P>Normally the page margins are set to the hard limits of the printer.
608 Use the <CODE>-o page-left=value</CODE>, <CODE>-o page-right=value</CODE>
609 , <CODE>-o page-top=value</CODE>, and <CODE>-o page-bottom=value</CODE>
610 options to adjust the page margins: </P>
611 <UL>
612 <PRE>
613 <B>lp -o page-left=<I>value</I> filename ENTER</B>
614 <B>lp -o page-right=<I>value</I> filename ENTER</B>
615 <B>lp -o page-top=<I>value</I> filename ENTER</B>
616 <B>lp -o page-bottom=<I>value</I> filename ENTER</B>
617 <B>lpr -o page-bottom=<I>value</I> filename ENTER</B>
618 </PRE>
619 </UL>
620 <P>The <CODE>value</CODE> argument is the margin in points; each point
621 is 1/72 inch or 0.35mm. </P>
622 <H3><A NAME="4_2_5">Pretty Printing</A></H3>
623 <P>The <CODE>-o prettyprint</CODE> option puts a header at the top of
624 each page with the page number, job title (usually the filename), and
625 the date. Also, C and C++ keywords are highlighted, and comment lines
626 are italicized: </P>
627 <UL>
628 <PRE>
629 <B>lp -o prettyprint filename ENTER</B>
630 <B>lpr -o prettyprint filename ENTER</B>
631 </PRE>
632 </UL>
633 <H2><A NAME="4_3">Image Options</A></H2>
634 <P>The following options apply when printing image files. </P>
635 <H3><A NAME="4_3_1">Scaling the Image</A></H3>
636 <P>The <CODE>-o scaling=percent</CODE> and <CODE>-o ppi=value</CODE>
637 options change the size of a printed image: </P>
638 <UL>
639 <PRE>
640 <B>lp -o scaling=<I>percent</I> filename ENTER</B>
641 <B>lp -o ppi=<I>value</I> filename ENTER</B>
642 <B>lpr -o ppi=<I>value</I> filename ENTER</B>
643 </PRE>
644 </UL>
645 <P>The <CODE>percent</CODE> value is a number from 1 to 800 specifying
646 the size in relation to the page (<I>not</I> the image.) A scaling of
647 100 percent will fill the page as completely as the image aspect ratio
648 allows. A scaling of 200 percent will print on up to 4 pages. </P>
649 <P>The ppi <CODE>value</CODE> is a number from 1 to 1200 specifying the
650 resolution of the image in pixels per inch. An image that is 3000x2400
651 pixels will print 10x8 inches at 300 pixels per inch, for example. If
652 the specified resolution makes the image larger than the page, multiple
653 pages will be printed to satisfy the request. </P>
654 <H3><A NAME="4_3_2">Adjusting the Hue (Tint) of an Image</A></H3>
655 <P>The <CODE>-o hue=value</CODE> option will adjust the hue of the
656 printed image, much like the tint control on your television: </P>
657 <UL>
658 <PRE>
659 <B>lp -o hue=<I>value</I> filename ENTER</B>
660 <B>lpr -o hue=<I>value</I> filename ENTER</B>
661 </PRE>
662 </UL>
663
664 <!-- NEED 3in ---->
665 <P>The <CODE>value</CODE> argument is a number from -360 to 360 and
666 represents the color hue rotation. The following table summarizes the
667 change you'll see with different colors:
668 <CENTER>
669 <TABLE BORDER="1" WIDTH="50%">
670 <TR><TH>Original</TH><TH>hue=-45</TH><TH>hue=45</TH></TR>
671 <TR><TD>Red</TD><TD>Purple</TD><TD>Yellow-orange</TD></TR>
672 <TR><TD>Green</TD><TD>Yellow-green</TD><TD>Blue-green</TD></TR>
673 <TR><TD>Yellow</TD><TD>Orange</TD><TD>Green-yellow</TD></TR>
674 <TR><TD>Blue</TD><TD>Sky-blue</TD><TD>Purple</TD></TR>
675 <TR><TD>Magenta</TD><TD>Indigo</TD><TD>Crimson</TD></TR>
676 <TR><TD>Cyan</TD><TD>Blue-green</TD><TD>Light-navy-blue</TD></TR>
677 </TABLE>
678 </CENTER>
679 </P>
680 <P>The default hue adjustment is 0. </P>
681 <H3><A NAME="4_3_3">Adjusting the Saturation (Color) of an Image</A></H3>
682 <P>The <CODE>-o saturation=percent</CODE> option adjusts the saturation
683 of the colors in an image, much like the color knob on your television: </P>
684 <UL>
685 <PRE>
686 <B>lp -o saturation=<I>percent</I> filename ENTER</B>
687 <B>lpr -o saturation=<I>percent</I> filename ENTER</B>
688 </PRE>
689 </UL>
690 <P>The <CODE>percent</CODE> argument specifies the color saturation
691 from 0 to 200. A color saturation of 0 produces a black-and-white
692 print, while a value of 200 will make the colors extremely intense. </P>
693 <P>The default saturation is 100.
694 <!-- NEED 2in ---->
695 </P>
696 <H2><A NAME="4_4">HP-GL/2 Options</A></H2>
697 <P>The following options apply to HP-GL/2 files. </P>
698 <H3><A NAME="4_4_1">Printing in Black</A></H3>
699 <P>The <CODE>-o blackplot</CODE> option specifies that all pens should
700 plot in black: <U></P>
701 <PRE>
702 <B>lp -o blackplot filename ENTER</B>
703 <B>lpr -o blackplot filename ENTER</B>
704 </PRE>
705 <P>The default is to use the colors defined in the plot file or the
706 standard pen colors defined in the HP-GL/2 reference manual from
707 Hewlett Packard. </P>
708 <H3><A NAME="4_4_2">Fitting the Plot on the Page</A></H3>
709 <P>The <CODE>-o fitplot</CODE> option specifies that the plot should be
710 scaled to fit on the page: <U></P>
711 <PRE>
712 <B>lp -o fitplot filename ENTER</B>
713 <B>lpr -o fitplot filename ENTER</B>
714 </PRE>
715 <P>The default is to use the absolute distances specified in the plot
716 file.
717 <CENTER>
718 <TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
719 <TR><TD><B>NOTE:</B>
720 <P>This feature depends upon an accurate plot size (<CODE>PS</CODE>)
721 command in the HP-GL/2 file. If no plot size is given in the file
722 than the HP-GL/2 filter assumes the plot is ANSI E size. </P>
723 </TD></TR>
724 </TABLE>
725 </CENTER>
726 </P>
727 <H3><A NAME="4_4_3">Setting the Default Pen Width</A></H3>
728 <P>The <CODE>-o penwidth=value</CODE> option specifies the default pen
729 width for HP-GL/2 files: </P>
730 <UL>
731 <PRE>
732 <B>lp -o penwidth=<I>value</I> filename ENTER</B>
733 <B>lpr -o penwidth=<I>value</I> filename ENTER</B>
734 </PRE>
735 </UL>
736 <P>The pen width <CODE>value</CODE> specifies the pen width in
737 micrometers. The default value of 1000 produces lines that are 1
738 millimeter in width. Specifying a pen width of 0 produces lines that
739 are exactly 1 pixel wide.
740 <CENTER>
741 <TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
742 <TR><TD><B>NOTE:</B>
743 <P>This option is ignored when the pen widths are set in the plot
744 file. </P>
745 </TD></TR>
746 </TABLE>
747 </CENTER>
748 </P>
749 <H1 ALIGN="RIGHT"><A NAME="SAVING_OPTIONS">4 - Saving Printer Options
750 and Defaults</A></H1>
751 <P>This chapter describes how to save printer options for your printer
752 and set your own default printer. </P>
753 <H2><A NAME="5_1">Printer Options</A></H2>
754 <P>Each printer supports a large number of options, which you learned
755 about in <A HREF="#STANDARD_OPTIONS">Chapter 3, &quot;Standard Printer
756 Options&quot;</A>. Rather than specifying these options each time you print
757 a file, CUPS allows you to save them as &quot;default&quot; options for the
758 printer. </P>
759 <P>The <CODE>lpoptions(1)</CODE> command saves the options for your
760 printers. Like the <CODE>lp</CODE> and <CODE>lpr</CODE> commands, it
761 accepts printer options using the <CODE>-o</CODE> argument: </P>
762 <UL>
763 <PRE>
764 <B>lpoptions -o media=A4 -o sides=two-sided-long-edge ENTER</B>
765 <B>lpoptions -o media=Legal -o scaling=100 ENTER</B>
766 </PRE>
767 </UL>
768 <P>Once saved, any <CODE>lp</CODE> or <CODE>lpr</CODE> command will use
769 them when you print. </P>
770 <H2><A NAME="5_2">Setting Options for a Specific Printer</A></H2>
771 <P>The previous example shows how to set the options for the default
772 printer. The <CODE>-p printer</CODE> option specifies the options are
773 for another printer: </P>
774 <UL>
775 <PRE>
776 <B>lpoptions -p laserjet -o media=A4 -o sides=two-sided-long-edge ENTER</B>
777 <B>lpoptions -p deskjet -o media=Legal -o scaling=100 ENTER</B>
778 </PRE>
779 </UL>
780 <H2><A NAME="5_3">Viewing the Current Defaults</A></H2>
781 <P>The <CODE>lpoptions</CODE> command can also be used to show the
782 current options by not specifying any new options on the command-line: </P>
783 <UL>
784 <PRE>
785 <B>lpoptions ENTER</B>
786 media=A4 sides=two-sided-long-edge
787 <B>lpoptions -p deskjet ENTER</B>
788 media=Legal scaling=100
789 </PRE>
790 </UL>
791 <H2><A NAME="5_4">Setting the Default Printer</A></H2>
792 <P>The administrator normally will set a system-wide default printer
793 that is normally used as the default printer by everyone. Use the <CODE>
794 -d printer</CODE> option to set your own default printer: </P>
795 <UL>
796 <PRE>
797 <B>lpoptions -d deskjet ENTER</B>
798 </PRE>
799 </UL>
800 <P>The printer can be local (<CODE>deskjet</CODE>) or remote (<CODE>
801 deskjet@server</CODE>). </P>
802 <H2><A NAME="5_5">Printer Instances</A></H2>
803 <P>Besides setting options for each print queue, CUPS supports <I>
804 printer instances</I> which allow you to define several different sets
805 of options for each printer. You specify a printer instance using the
806 slash (<CODE>/</CODE>) character: </P>
807 <UL>
808 <PRE>
809 <B>lpoptions -p laserjet/duplex -o sides=two-sided-long-edge ENTER</B>
810 <B>lpoptions -p laserjet/legal -o media=Legal ENTER</B>
811 </PRE>
812 </UL>
813 <P>The <CODE>lp</CODE> and lpr commands also understand this notation: </P>
814 <UL>
815 <PRE>
816 <B>lp -d laserjet/duplex filename ENTER</B>
817 <B>lpr -P laserjet/legal filename ENTER</B>
818 </PRE>
819 </UL>
820 <H2><A NAME="5_6">Removing Instances</A></H2>
821 <P>Use the <CODE>-x printer/instance</CODE> option to remove a printer
822 instance that you no longer need: </P>
823 <UL>
824 <PRE>
825 <B>lpoptions -x laserjet ENTER</B>
826 <B>lpoptions -x laserjet/duplex ENTER</B>
827 <B>lpoptions -x laserjet/legal ENTER</B>
828 </PRE>
829 </UL>
830 <P>The <CODE>-x</CODE> option only removes the default options for that
831 printer and instance; the original print queue will remain until
832 deleted with the <CODE>lpadmin(8)</CODE> command by the administrator. </P>
833 <H1 ALIGN="RIGHT"><A NAME="LICENSE">A - Software License Agreement</A></H1>
834 <H2 ALIGN="CENTER"><A NAME="6_1">Common UNIX Printing System License
835 Agreement</A></H2>
836 <P ALIGN="CENTER">Copyright 1997-2000 by Easy Software Products
837 <BR> 44141 AIRPORT VIEW DR STE 204
838 <BR> HOLLYWOOD, MARYLAND 20636-3111 USA
839 <BR>
840 <BR> Voice: +1.301.373.9603
841 <BR> Email: <A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A>
842 <BR> WWW: <A HREF="http://www.cups.org">http://www.cups.org</A></P>
843 <H3><A NAME="6_1_1">Introduction</A></H3>
844 <P>The Common UNIX Printing System<SUP>TM</SUP>, or CUPS<SUP>TM</SUP>,
845 is provided under the GNU General Public License (&quot;GPL&quot;) and GNU
846 Library General Public License (&quot;LGPL&quot;), Version 2. A copy of these
847 licenses follow this introduction. </P>
848 <P>The GNU LGPL applies to the CUPS API library, located in the &quot;cups&quot;
849 subdirectory of the CUPS source distribution and in the
850 &quot;/usr/include/cups&quot; directory and &quot;/usr/lib/libcups.so&quot; or
851 &quot;/usr/lib32/libcups.so&quot; files in the binary distributions. </P>
852 <P>The GNU GPL applies to the remainder of the CUPS distribution,
853 including the &quot;pstoraster&quot; filter which is based upon GNU Ghostscript
854 5.50. </P>
855 <P>For those not familiar with the GNU GPL, the license basically
856 allows you to: </P>
857 <UL>
858 <LI>Use the CUPS software at no charge. </LI>
859 <LI>Distribute verbatim copies of the software in source or binary
860 form. </LI>
861 <LI>Sell verbatim copies of the software for a media fee, or sell
862 support for the software. </LI>
863 <LI>Distribute or sell printer drivers and filters that use the CUPS
864 API so long as source code is made available under the GPL. </LI>
865 </UL>
866 <P>What this license <B>does not</B> allow you to do is make changes or
867 add features to CUPS and then sell a binary distribution without source
868 code. You must provide source for any new drivers, changes, or
869 additions to the software, and all code must be provided under the GPL. </P>
870 <P>The GNU LGPL relaxes the &quot;link-to&quot; restriction, allowing you to
871 develop applications that use the CUPS API library under other licenses
872 and/or conditions as appropriate for your application. </P>
873 <H3><A NAME="6_1_2">Trademarks</A></H3>
874 <P>Easy Software Products has trademarked the Common UNIX Printing
875 System, CUPS, and CUPS logo. These names and logos may be used freely
876 in any direct port or binary distribution of CUPS. To use them in
877 derivative products, please contract Easy Software Products for written
878 permission. Our intention is to protect the value of these trademarks
879 and ensure that any derivative product meets the same high-quality
880 standards as the original. </P>
881 <H3><A NAME="6_1_3">Binary Distribution Rights</A></H3>
882 <P>Easy Software Products also sells rights to the CUPS source code
883 under a binary distribution license for vendors that are unable to
884 release source code for their drivers, additions, and modifications to
885 CUPS under the GNU GPL. For pricing information please contact us at
886 the address shown above. </P>
887 <P>The Common UNIX Printing System provides a &quot;pstoraster&quot; filter that
888 utilizes GNU GhostScript 5.50 to convert PostScript files into a stream
889 of raster images. For binary distribution licensing of this software,
890 please contact: <BLOCKQUOTE>Miles Jones
891 <BR> Director of Marketing
892 <BR> Artifex Software Inc.
893 <BR> 454 Las Gallinas Ave., Suite 108
894 <BR> San Rafael, CA 94903 USA
895 <BR> Voice: +1.415.492.9861
896 <BR> Fax: +1.415.492.9862
897 <BR> EMail: info@arsoft.com </BLOCKQUOTE></P>
898 <H3><A NAME="6_1_4">Support</A></H3>
899 <P>Easy Software Products sells software support for CUPS as well as a
900 commercial printing product based on CUPS called ESP Print Pro. You can
901 find out more at our web site: </P>
902 <UL>
903 <PRE>
904 <A HREF="http://www.easysw.com">http://www.easysw.com</A>
905 </PRE>
906 </UL>
907
908 <!-- NEW PAGE ---->
909 <H2><A NAME="6_2">GNU GENERAL PUBLIC LICENSE</A></H2>
910 <P>Version 2, June 1991 </P>
911 <PRE>
912 Copyright 1989, 1991 Free Software Foundation, Inc.
913 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
914
915 Everyone is permitted to copy and distribute verbatim
916 copies of this license document, but changing it is not allowed.
917 </PRE>
918 <PRE>
919
920 </PRE>
921 <H4>Preamble</H4>
922 <P>The licenses for most software are designed to take away your
923 freedom to share and change it. By contrast, the GNU General Public
924 License is intended to guarantee your freedom to share and change free
925 software--to make sure the software is free for all its users. This
926 General Public License applies to most of the Free Software
927 Foundation's software and to any other program whose authors commit to
928 using it. (Some other Free Software Foundation software is covered by
929 the GNU Library General Public License instead.) You can apply it to
930 your programs, too. </P>
931 <P>When we speak of free software, we are referring to freedom, not
932 price. Our General Public Licenses are designed to make sure that you
933 have the freedom to distribute copies of free software (and charge for
934 this service if you wish), that you receive source code or can get it
935 if you want it, that you can change the software or use pieces of it in
936 new free programs; and that you know you can do these things. </P>
937 <P>To protect your rights, we need to make restrictions that forbid
938 anyone to deny you these rights or to ask you to surrender the rights.
939 These restrictions translate to certain responsibilities for you if you
940 distribute copies of the software, or if you modify it. </P>
941 <P>For example, if you distribute copies of such a program, whether
942 gratis or for a fee, you must give the recipients all the rights that
943 you have. You must make sure that they, too, receive or can get the
944 source code. And you must show them these terms so they know their
945 rights. </P>
946 <P>We protect your rights with two steps: (1) copyright the software,
947 and (2) offer you this license which gives you legal permission to
948 copy, distribute and/or modify the software. </P>
949 <P>Also, for each author's protection and ours, we want to make certain
950 that everyone understands that there is no warranty for this free
951 software. If the software is modified by someone else and passed on,
952 we want its recipients to know that what they have is not the original,
953 so that any problems introduced by others will not reflect on the
954 original authors' reputations. </P>
955 <P>Finally, any free program is threatened constantly by software
956 patents. We wish to avoid the danger that redistributors of a free
957 program will individually obtain patent licenses, in effect making the
958 program proprietary. To prevent this, we have made it clear that any
959 patent must be licensed for everyone's free use or not licensed at all. </P>
960 <P>The precise terms and conditions for copying, distribution and
961 modification follow. </P>
962 <H4>GNU GENERAL PUBLIC LICENSE
963 <BR> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H4>
964 <OL START="0">
965 <LI>This License applies to any program or other work which contains a
966 notice placed by the copyright holder saying it may be distributed
967 under the terms of this General Public License. The &quot;Program&quot;, below,
968 refers to any such program or work, and a &quot;work based on the Program&quot;
969 means either the Program or any derivative work under copyright law:
970 that is to say, a work containing the Program or a portion of it,
971 either verbatim or with modifications and/or translated into another
972 language. (Hereinafter, translation is included without limitation in
973 the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;. </LI>
974 <P>Activities other than copying, distribution and modification are not
975 covered by this License; they are outside its scope. The act of
976 running the Program is not restricted, and the output from the Program
977 is covered only if its contents constitute a work based on the Program
978 (independent of having been made by running the Program). Whether that
979 is true depends on what the Program does. </P>
980 <LI>You may copy and distribute verbatim copies of the Program's source
981 code as you receive it, in any medium, provided that you conspicuously
982 and appropriately publish on each copy an appropriate copyright notice
983 and disclaimer of warranty; keep intact all the notices that refer to
984 this License and to the absence of any warranty; and give any other
985 recipients of the Program a copy of this License along with the
986 Program. </LI>
987 <P>You may charge a fee for the physical act of transferring a copy,
988 and you may at your option offer warranty protection in exchange for a
989 fee. </P>
990 <LI>You may modify your copy or copies of the Program or any portion of
991 it, thus forming a work based on the Program, and copy and distribute
992 such modifications or work under the terms of Section 1 above, provided
993 that you also meet all of these conditions:
994 <OL TYPE="a">
995 <LI>You must cause the modified files to carry prominent notices
996 stating that you changed the files and the date of any change. </LI>
997 <LI>You must cause any work that you distribute or publish, that in
998 whole or in part contains or is derived from the Program or any part
999 thereof, to be licensed as a whole at no charge to all third parties
1000 under the terms of this License. </LI>
1001 <LI>if the modified program normally reads commands interactively when
1002 run, you must cause it, when started running for such interactive use
1003 in the most ordinary way, to print or display an announcement including
1004 an appropriate copyright notice and a notice that there is no warranty
1005 (or else, saying that you provide a warranty) and that users may
1006 redistribute the program under these conditions, and telling the user
1007 how to view a copy of this License. (Exception: if the Program itself
1008 is interactive but does not normally print such an announcement, your
1009 work based on the Program is not required to print an announcement.) </LI>
1010 </OL>
1011 </LI>
1012 <P>These requirements apply to the modified work as a whole. If
1013 identifiable sections of that work are not derived from the Program,
1014 and can be reasonably considered independent and separate works in
1015 themselves, then this License, and its terms, do not apply to those
1016 sections when you distribute them as separate works. But when you
1017 distribute the same sections as part of a whole which is a work based
1018 on the Program, the distribution of the whole must be on the terms of
1019 this License, whose permissions for other licensees extend to the
1020 entire whole, and thus to each and every part regardless of who wrote
1021 it. </P>
1022 <P>Thus, it is not the intent of this section to claim rights or
1023 contest your rights to work written entirely by you; rather, the intent
1024 is to exercise the right to control the distribution of derivative or
1025 collective works based on the Program. </P>
1026 <P>In addition, mere aggregation of another work not based on the
1027 Program with the Program (or with a work based on the Program) on a
1028 volume of a storage or distribution medium does not bring the other
1029 work under the scope of this License. </P>
1030 <LI>You may copy and distribute the Program (or a work based on it,
1031 under Section 2) in object code or executable form under the terms of
1032 Sections 1 and 2 above provided that you also do one of the following:
1033 <OL TYPE="a">
1034 <LI>Accompany it with the complete corresponding machine-readable
1035 source code, which must be distributed under the terms of Sections 1
1036 and 2 above on a medium customarily used for software interchange; or, </LI>
1037 <LI>Accompany it with a written offer, valid for at least three years,
1038 to give any third party, for a charge no more than your cost of
1039 physically performing source distribution, a complete machine-readable
1040 copy of the corresponding source code, to be distributed under the
1041 terms of Sections 1 and 2 above on a medium customarily used for
1042 software interchange; or, </LI>
1043 <LI>Accompany it with the information you received as to the offer to
1044 distribute corresponding source code. (This alternative is allowed
1045 only for noncommercial distribution and only if you received the
1046 program in object code or executable form with such an offer, in accord
1047 with Subsection b above.) </LI>
1048 </OL>
1049 </LI>
1050 <P>The source code for a work means the preferred form of the work for
1051 making modifications to it. For an executable work, complete source
1052 code means all the source code for all modules it contains, plus any
1053 associated interface definition files, plus the scripts used to control
1054 compilation and installation of the executable. However, as a special
1055 exception, the source code distributed need not include anything that
1056 is normally distributed (in either source or binary form) with the
1057 major components (compiler, kernel, and so on) of the operating system
1058 on which the executable runs, unless that component itself accompanies
1059 the executable. </P>
1060 <P>If distribution of executable or object code is made by offering
1061 access to copy from a designated place, then offering equivalent access
1062 to copy the source code from the same place counts as distribution of
1063 the source code, even though third parties are not compelled to copy
1064 the source along with the object code. </P>
1065 <LI>You may not copy, modify, sublicense, or distribute the Program
1066 except as expressly provided under this License. Any attempt otherwise
1067 to copy, modify, sublicense or distribute the Program is void, and will
1068 automatically terminate your rights under this License. However,
1069 parties who have received copies, or rights, from you under this
1070 License will not have their licenses terminated so long as such parties
1071 remain in full compliance. </LI>
1072 <LI>You are not required to accept this License, since you have not
1073 signed it. However, nothing else grants you permission to modify or
1074 distribute the Program or its derivative works. These actions are
1075 prohibited by law if you do not accept this License. Therefore, by
1076 modifying or distributing the Program (or any work based on the
1077 Program), you indicate your acceptance of this License to do so, and
1078 all its terms and conditions for copying, distributing or modifying the
1079 Program or works based on it. </LI>
1080 <LI>Each time you redistribute the Program (or any work based on the
1081 Program), the recipient automatically receives a license from the
1082 original licensor to copy, distribute or modify the Program subject to
1083 these terms and conditions. You may not impose any further
1084 restrictions on the recipients' exercise of the rights granted herein.
1085 You are not responsible for enforcing compliance by third parties to
1086 this License. </LI>
1087 <LI>If, as a consequence of a court judgment or allegation of patent
1088 infringement or for any other reason (not limited to patent issues),
1089 conditions are imposed on you (whether by court order, agreement or
1090 otherwise) that contradict the conditions of this License, they do not
1091 excuse you from the conditions of this License. If you cannot
1092 distribute so as to satisfy simultaneously your obligations under this
1093 License and any other pertinent obligations, then as a consequence you
1094 may not distribute the Program at all. For example, if a patent
1095 license would not permit royalty-free redistribution of the Program by
1096 all those who receive copies directly or indirectly through you, then
1097 the only way you could satisfy both it and this License would be to
1098 refrain entirely from distribution of the Program. </LI>
1099 <P>If any portion of this section is held invalid or unenforceable
1100 under any particular circumstance, the balance of the section is
1101 intended to apply and the section as a whole is intended to apply in
1102 other circumstances. </P>
1103 <P>It is not the purpose of this section to induce you to infringe any
1104 patents or other property right claims or to contest validity of any
1105 such claims; this section has the sole purpose of protecting the
1106 integrity of the free software distribution system, which is
1107 implemented by public license practices. Many people have made
1108 generous contributions to the wide range of software distributed
1109 through that system in reliance on consistent application of that
1110 system; it is up to the author/donor to decide if he or she is willing
1111 to distribute software through any other system and a licensee cannot
1112 impose that choice. </P>
1113 <P>This section is intended to make thoroughly clear what is believed
1114 to be a consequence of the rest of this License. </P>
1115 <LI>If the distribution and/or use of the Program is restricted in
1116 certain countries either by patents or by copyrighted interfaces, the
1117 original copyright holder who places the Program under this License may
1118 add an explicit geographical distribution limitation excluding those
1119 countries, so that distribution is permitted only in or among countries
1120 not thus excluded. In such case, this License incorporates the
1121 limitation as if written in the body of this License. </LI>
1122 <LI>The Free Software Foundation may publish revised and/or new
1123 versions of the General Public License from time to time. Such new
1124 versions will be similar in spirit to the present version, but may
1125 differ in detail to address new problems or concerns. </LI>
1126 <P>Each version is given a distinguishing version number. If the
1127 Program specifies a version number of this License which applies to it
1128 and &quot;any later version&quot;, you have the option of following the terms and
1129 conditions either of that version or of any later version published by
1130 the Free Software Foundation. If the Program does not specify a
1131 version number of this License, you may choose any version ever
1132 published by the Free Software Foundation. </P>
1133 <LI>If you wish to incorporate parts of the Program into other free
1134 programs whose distribution conditions are different, write to the
1135 author to ask for permission. For software which is copyrighted by the
1136 Free Software Foundation, write to the Free Software Foundation; we
1137 sometimes make exceptions for this. Our decision will be guided by the
1138 two goals of preserving the free status of all derivatives of our free
1139 software and of promoting the sharing and reuse of software generally. </LI>
1140 </OL>
1141 <H4>NO WARRANTY</H4>
1142 <OL START="11">
1143 <LI>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
1144 WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
1145 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
1146 OTHER PARTIES PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND,
1147 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1148 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1149 THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
1150 WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
1151 ALL NECESSARY SERVICING, REPAIR OR CORRECTION. </LI>
1152 <LI>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
1153 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
1154 AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
1155 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
1156 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1157 PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1158 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1159 FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
1160 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1161 DAMAGES. </LI>
1162 </OL>
1163 <H4>END OF TERMS AND CONDITIONS</H4>
1164
1165 <!-- NEW PAGE ---->
1166 <H2><A NAME="6_3">GNU LIBRARY GENERAL PUBLIC LICENSE</A></H2>
1167 <P>Version 2, June 1991 </P>
1168 <PRE>
1169 Copyright (C) 1991 Free Software Foundation, Inc.
1170 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
1171 Everyone is permitted to copy and distribute verbatim copies
1172 of this license document, but changing it is not allowed.
1173
1174 [This is the first released version of the library GPL. It is
1175 numbered 2 because it goes with version 2 of the ordinary GPL.]
1176 </PRE>
1177 <H4>Preamble</H4>
1178 <P>The licenses for most software are designed to take away your
1179 freedom to share and change it. By contrast, the GNU General Public
1180 Licenses are intended to guarantee your freedom to share and change
1181 free software--to make sure the software is free for all its users. </P>
1182 <P>This license, the Library General Public License, applies to some
1183 specially designated Free Software Foundation software, and to any
1184 other libraries whose authors decide to use it. You can use it for
1185 your libraries, too. </P>
1186 <P>When we speak of free software, we are referring to freedom, not
1187 price. Our General Public Licenses are designed to make sure that you
1188 have the freedom to distribute copies of free software (and charge for
1189 this service if you wish), that you receive source code or can get it
1190 if you want it, that you can change the software or use pieces of it in
1191 new free programs; and that you know you can do these things. </P>
1192 <P>To protect your rights, we need to make restrictions that forbid
1193 anyone to deny you these rights or to ask you to surrender the rights.
1194 These restrictions translate to certain responsibilities for you if you
1195 distribute copies of the library, or if you modify it. </P>
1196 <P>For example, if you distribute copies of the library, whether gratis
1197 or for a fee, you must give the recipients all the rights that we gave
1198 you. You must make sure that they, too, receive or can get the source
1199 code. If you link a program with the library, you must provide
1200 complete object files to the recipients so that they can relink them
1201 with the library, after making changes to the library and recompiling
1202 it. And you must show them these terms so they know their rights. </P>
1203 <P>Our method of protecting your rights has two steps: (1) copyright
1204 the library, and (2) offer you this license which gives you legal
1205 permission to copy, distribute and/or modify the library. </P>
1206 <P>Also, for each distributor's protection, we want to make certain
1207 that everyone understands that there is no warranty for this free
1208 library. If the library is modified by someone else and passed on, we
1209 want its recipients to know that what they have is not the original
1210 version, so that any problems introduced by others will not reflect on
1211 the original authors' reputations. </P>
1212 <P>Finally, any free program is threatened constantly by software
1213 patents. We wish to avoid the danger that companies distributing free
1214 software will individually obtain patent licenses, thus in effect
1215 transforming the program into proprietary software. To prevent this,
1216 we have made it clear that any patent must be licensed for everyone's
1217 free use or not licensed at all. </P>
1218 <P>Most GNU software, including some libraries, is covered by the
1219 ordinary GNU General Public License, which was designed for utility
1220 programs. This license, the GNU Library General Public License,
1221 applies to certain designated libraries. This license is quite
1222 different from the ordinary one; be sure to read it in full, and don't
1223 assume that anything in it is the same as in the ordinary license. </P>
1224 <P>The reason we have a separate public license for some libraries is
1225 that they blur the distinction we usually make between modifying or
1226 adding to a program and simply using it. Linking a program with a
1227 library, without changing the library, is in some sense simply using
1228 the library, and is analogous to running a utility program or
1229 application program. However, in a textual and legal sense, the linked
1230 executable is a combined work, a derivative of the original library,
1231 and the ordinary General Public License treats it as such. </P>
1232 <P>Because of this blurred distinction, using the ordinary General
1233 Public License for libraries did not effectively promote software
1234 sharing, because most developers did not use the libraries. We
1235 concluded that weaker conditions might promote sharing better. </P>
1236 <P>However, unrestricted linking of non-free programs would deprive the
1237 users of those programs of all benefit from the free status of the
1238 libraries themselves. This Library General Public License is intended
1239 to permit developers of non-free programs to use free libraries, while
1240 preserving your freedom as a user of such programs to change the free
1241 libraries that are incorporated in them. (We have not seen how to
1242 achieve this as regards changes in header files, but we have achieved
1243 it as regards changes in the actual functions of the Library.) The
1244 hope is that this will lead to faster development of free libraries. </P>
1245 <P>The precise terms and conditions for copying, distribution and
1246 modification follow. Pay close attention to the difference between a
1247 &quot;work based on the library&quot; and a &quot;work that uses the library&quot;. The
1248 former contains code derived from the library, while the latter only
1249 works together with the library. </P>
1250 <P>Note that it is possible for a library to be covered by the ordinary
1251 General Public License rather than by this special one. </P>
1252 <H4>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H4>
1253 <P><STRONG>0.</STRONG> This License Agreement applies to any software
1254 library which contains a notice placed by the copyright holder or other
1255 authorized party saying it may be distributed under the terms of this
1256 Library General Public License (also called &quot;this License&quot;). Each
1257 licensee is addressed as &quot;you&quot;. </P>
1258 <P>A &quot;library&quot; means a collection of software functions and/or data
1259 prepared so as to be conveniently linked with application programs
1260 (which use some of those functions and data) to form executables. </P>
1261 <P>The &quot;Library&quot;, below, refers to any such software library or work
1262 which has been distributed under these terms. A &quot;work based on the
1263 Library&quot; means either the Library or any derivative work under
1264 copyright law: that is to say, a work containing the Library or a
1265 portion of it, either verbatim or with modifications and/or translated
1266 straightforwardly into another language. (Hereinafter, translation is
1267 included without limitation in the term &quot;modification&quot;.) </P>
1268 <P>&quot;Source code&quot; for a work means the preferred form of the work for
1269 making modifications to it. For a library, complete source code means
1270 all the source code for all modules it contains, plus any associated
1271 interface definition files, plus the scripts used to control
1272 compilation and installation of the library. </P>
1273 <P>Activities other than copying, distribution and modification are not
1274 covered by this License; they are outside its scope. The act of
1275 running a program using the Library is not restricted, and output from
1276 such a program is covered only if its contents constitute a work based
1277 on the Library (independent of the use of the Library in a tool for
1278 writing it). Whether that is true depends on what the Library does and
1279 what the program that uses the Library does. </P>
1280 <P><STRONG>1.</STRONG> You may copy and distribute verbatim copies of
1281 the Library's complete source code as you receive it, in any medium,
1282 provided that you conspicuously and appropriately publish on each copy
1283 an appropriate copyright notice and disclaimer of warranty; keep intact
1284 all the notices that refer to this License and to the absence of any
1285 warranty; and distribute a copy of this License along with the Library. </P>
1286 <P>You may charge a fee for the physical act of transferring a copy,
1287 and you may at your option offer warranty protection in exchange for a
1288 fee. </P>
1289 <P><STRONG>2.</STRONG> You may modify your copy or copies of the
1290 Library or any portion of it, thus forming a work based on the Library,
1291 and copy and distribute such modifications or work under the terms of
1292 Section 1 above, provided that you also meet all of these conditions: </P>
1293 <OL TYPE="a">
1294 <LI>The modified work must itself be a software library. </LI>
1295 <P>
1296 <LI>You must cause the files modified to carry prominent notices
1297 stating that you changed the files and the date of any change. </LI>
1298 <P>
1299 <LI>You must cause the whole of the work to be licensed at no charge
1300 to all third parties under the terms of this License. </LI>
1301 <P>
1302 <LI>If a facility in the modified Library refers to a function or a
1303 table of data to be supplied by an application program that uses the
1304 facility, other than as an argument passed when the facility is
1305 invoked, then you must make a good faith effort to ensure that, in the
1306 event an application does not supply such function or table, the
1307 facility still operates, and performs whatever part of its purpose
1308 remains meaningful. </LI>
1309 <P>(For example, a function in a library to compute square roots has a
1310 purpose that is entirely well-defined independent of the application.
1311 Therefore, Subsection 2d requires that any application-supplied
1312 function or table used by this function must be optional: if the
1313 application does not supply it, the square root function must still
1314 compute square roots.) </P>
1315 </OL>
1316 <P>These requirements apply to the modified work as a whole. If
1317 identifiable sections of that work are not derived from the Library,
1318 and can be reasonably considered independent and separate works in
1319 themselves, then this License, and its terms, do not apply to those
1320 sections when you distribute them as separate works. But when you
1321 distribute the same sections as part of a whole which is a work based
1322 on the Library, the distribution of the whole must be on the terms of
1323 this License, whose permissions for other licensees extend to the
1324 entire whole, and thus to each and every part regardless of who wrote
1325 it. </P>
1326 <P>Thus, it is not the intent of this section to claim rights or
1327 contest your rights to work written entirely by you; rather, the intent
1328 is to exercise the right to control the distribution of derivative or
1329 collective works based on the Library. </P>
1330 <P>In addition, mere aggregation of another work not based on the
1331 Library with the Library (or with a work based on the Library) on a
1332 volume of a storage or distribution medium does not bring the other
1333 work under the scope of this License. </P>
1334 <P><STRONG>3.</STRONG> You may opt to apply the terms of the ordinary
1335 GNU General Public License instead of this License to a given copy of
1336 the Library. To do this, you must alter all the notices that refer to
1337 this License, so that they refer to the ordinary GNU General Public
1338 License, version 2, instead of to this License. (If a newer version
1339 than version 2 of the ordinary GNU General Public License has appeared,
1340 then you can specify that version instead if you wish.) Do not make
1341 any other change in these notices. </P>
1342 <P>Once this change is made in a given copy, it is irreversible for
1343 that copy, so the ordinary GNU General Public License applies to all
1344 subsequent copies and derivative works made from that copy. </P>
1345 <P>This option is useful when you wish to copy part of the code of the
1346 Library into a program that is not a library. </P>
1347 <P><STRONG>4.</STRONG> You may copy and distribute the Library (or a
1348 portion or derivative of it, under Section 2) in object code or
1349 executable form under the terms of Sections 1 and 2 above provided that
1350 you accompany it with the complete corresponding machine-readable
1351 source code, which must be distributed under the terms of Sections 1
1352 and 2 above on a medium customarily used for software interchange. </P>
1353 <P>If distribution of object code is made by offering access to copy
1354 from a designated place, then offering equivalent access to copy the
1355 source code from the same place satisfies the requirement to distribute
1356 the source code, even though third parties are not compelled to copy
1357 the source along with the object code. </P>
1358 <P><STRONG>5.</STRONG> A program that contains no derivative of any
1359 portion of the Library, but is designed to work with the Library by
1360 being compiled or linked with it, is called a &quot;work that uses the
1361 Library&quot;. Such a work, in isolation, is not a derivative work of the
1362 Library, and therefore falls outside the scope of this License. </P>
1363 <P>However, linking a &quot;work that uses the Library&quot; with the Library
1364 creates an executable that is a derivative of the Library (because it
1365 contains portions of the Library), rather than a &quot;work that uses the
1366 library&quot;. The executable is therefore covered by this License. Section
1367 6 states terms for distribution of such executables. </P>
1368 <P>When a &quot;work that uses the Library&quot; uses material from a header file
1369 that is part of the Library, the object code for the work may be a
1370 derivative work of the Library even though the source code is not.
1371 Whether this is true is especially significant if the work can be
1372 linked without the Library, or if the work is itself a library. The
1373 threshold for this to be true is not precisely defined by law. </P>
1374 <P>If such an object file uses only numerical parameters, data
1375 structure layouts and accessors, and small macros and small inline
1376 functions (ten lines or less in length), then the use of the object
1377 file is unrestricted, regardless of whether it is legally a derivative
1378 work. (Executables containing this object code plus portions of the
1379 Library will still fall under Section 6.) </P>
1380 <P>Otherwise, if the work is a derivative of the Library, you may
1381 distribute the object code for the work under the terms of Section 6.
1382 Any executables containing that work also fall under Section 6, whether
1383 or not they are linked directly with the Library itself. </P>
1384 <P><STRONG>6.</STRONG> As an exception to the Sections above, you may
1385 also compile or link a &quot;work that uses the Library&quot; with the Library to
1386 produce a work containing portions of the Library, and distribute that
1387 work under terms of your choice, provided that the terms permit
1388 modification of the work for the customer's own use and reverse
1389 engineering for debugging such modifications. </P>
1390 <P>You must give prominent notice with each copy of the work that the
1391 Library is used in it and that the Library and its use are covered by
1392 this License. You must supply a copy of this License. If the work
1393 during execution displays copyright notices, you must include the
1394 copyright notice for the Library among them, as well as a reference
1395 directing the user to the copy of this License. Also, you must do one
1396 of these things: </P>
1397 <OL TYPE="a">
1398 <LI>Accompany the work with the complete corresponding
1399 machine-readable source code for the Library including whatever
1400 changes were used in the work (which must be distributed under
1401 Sections 1 and 2 above); and, if the work is an executable linked
1402 with the Library, with the complete machine-readable &quot;work that uses
1403 the Library&quot;, as object code and/or source code, so that the user can
1404 modify the Library and then relink to produce a modified executable
1405 containing the modified Library. (It is understood that the user who
1406 changes the contents of definitions files in the Library will not
1407 necessarily be able to recompile the application to use the modified
1408 definitions.) </LI>
1409 <P>
1410 <LI>Accompany the work with a written offer, valid for at least three
1411 years, to give the same user the materials specified in Subsection 6a,
1412 above, for a charge no more than the cost of performing this
1413 distribution. </LI>
1414 <P>
1415 <LI>If distribution of the work is made by offering access to copy
1416 from a designated place, offer equivalent access to copy the above
1417 specified materials from the same place. </LI>
1418 <P>
1419 <LI>Verify that the user has already received a copy of these
1420 materials or that you have already sent this user a copy. </LI>
1421 </OL>
1422 <P>For an executable, the required form of the &quot;work that uses the
1423 Library&quot; must include any data and utility programs needed for
1424 reproducing the executable from it. However, as a special exception,
1425 the source code distributed need not include anything that is normally
1426 distributed (in either source or binary form) with the major components
1427 (compiler, kernel, and so on) of the operating system on which the
1428 executable runs, unless that component itself accompanies the
1429 executable. </P>
1430 <P>It may happen that this requirement contradicts the license
1431 restrictions of other proprietary libraries that do not normally
1432 accompany the operating system. Such a contradiction means you cannot
1433 use both them and the Library together in an executable that you
1434 distribute. </P>
1435 <P><STRONG>7.</STRONG> You may place library facilities that are a work
1436 based on the Library side-by-side in a single library together with
1437 other library facilities not covered by this License, and distribute
1438 such a combined library, provided that the separate distribution of the
1439 work based on the Library and of the other library facilities is
1440 otherwise permitted, and provided that you do these two things: </P>
1441 <OL TYPE="a">
1442 <LI>Accompany the combined library with a copy of the same work based
1443 on the Library, uncombined with any other library facilities. This
1444 must be distributed under the terms of the Sections above. </LI>
1445 <P>
1446 <LI>Give prominent notice with the combined library of the fact that
1447 part of it is a work based on the Library, and explaining where to
1448 find the accompanying uncombined form of the same work. </LI>
1449 </OL>
1450 <P><STRONG>8.</STRONG> You may not copy, modify, sublicense, link with,
1451 or distribute the Library except as expressly provided under this
1452 License. Any attempt otherwise to copy, modify, sublicense, link with,
1453 or distribute the Library is void, and will automatically terminate
1454 your rights under this License. However, parties who have received
1455 copies, or rights, from you under this License will not have their
1456 licenses terminated so long as such parties remain in full compliance. </P>
1457 <P><STRONG>9.</STRONG> You are not required to accept this License,
1458 since you have not signed it. However, nothing else grants you
1459 permission to modify or distribute the Library or its derivative works.
1460 These actions are prohibited by law if you do not accept this License.
1461 Therefore, by modifying or distributing the Library (or any work based
1462 on the Library), you indicate your acceptance of this License to do so,
1463 and all its terms and conditions for copying, distributing or modifying
1464 the Library or works based on it. </P>
1465 <P><STRONG>10.</STRONG> Each time you redistribute the Library (or any
1466 work based on the Library), the recipient automatically receives a
1467 license from the original licensor to copy, distribute, link with or
1468 modify the Library subject to these terms and conditions. You may not
1469 impose any further restrictions on the recipients' exercise of the
1470 rights granted herein. You are not responsible for enforcing compliance
1471 by third parties to this License. </P>
1472 <P><STRONG>11.</STRONG> If, as a consequence of a court judgment or
1473 allegation of patent infringement or for any other reason (not limited
1474 to patent issues), conditions are imposed on you (whether by court
1475 order, agreement or otherwise) that contradict the conditions of this
1476 License, they do not excuse you from the conditions of this License.
1477 If you cannot distribute so as to satisfy simultaneously your
1478 obligations under this License and any other pertinent obligations,
1479 then as a consequence you may not distribute the Library at all. For
1480 example, if a patent license would not permit royalty-free
1481 redistribution of the Library by all those who receive copies directly
1482 or indirectly through you, then the only way you could satisfy both it
1483 and this License would be to refrain entirely from distribution of the
1484 Library. </P>
1485 <P>If any portion of this section is held invalid or unenforceable
1486 under any particular circumstance, the balance of the section is
1487 intended to apply, and the section as a whole is intended to apply in
1488 other circumstances. </P>
1489 <P>It is not the purpose of this section to induce you to infringe any
1490 patents or other property right claims or to contest validity of any
1491 such claims; this section has the sole purpose of protecting the
1492 integrity of the free software distribution system which is implemented
1493 by public license practices. Many people have made generous
1494 contributions to the wide range of software distributed through that
1495 system in reliance on consistent application of that system; it is up
1496 to the author/donor to decide if he or she is willing to distribute
1497 software through any other system and a licensee cannot impose that
1498 choice. </P>
1499 <P>This section is intended to make thoroughly clear what is believed
1500 to be a consequence of the rest of this License. </P>
1501 <P><STRONG>12.</STRONG> If the distribution and/or use of the Library
1502 is restricted in certain countries either by patents or by copyrighted
1503 interfaces, the original copyright holder who places the Library under
1504 this License may add an explicit geographical distribution limitation
1505 excluding those countries, so that distribution is permitted only in or
1506 among countries not thus excluded. In such case, this License
1507 incorporates the limitation as if written in the body of this License. </P>
1508 <P><STRONG>13.</STRONG> The Free Software Foundation may publish
1509 revised and/or new versions of the Library General Public License from
1510 time to time. Such new versions will be similar in spirit to the
1511 present version, but may differ in detail to address new problems or
1512 concerns. </P>
1513 <P>Each version is given a distinguishing version number. If the
1514 Library specifies a version number of this License which applies to it
1515 and &quot;any later version&quot;, you have the option of following the terms and
1516 conditions either of that version or of any later version published by
1517 the Free Software Foundation. If the Library does not specify a
1518 license version number, you may choose any version ever published by
1519 the Free Software Foundation. </P>
1520 <P><STRONG>14.</STRONG> If you wish to incorporate parts of the Library
1521 into other free programs whose distribution conditions are incompatible
1522 with these, write to the author to ask for permission. For software
1523 which is copyrighted by the Free Software Foundation, write to the Free
1524 Software Foundation; we sometimes make exceptions for this. Our
1525 decision will be guided by the two goals of preserving the free status
1526 of all derivatives of our free software and of promoting the sharing
1527 and reuse of software generally. </P>
1528 <P><STRONG>NO WARRANTY</STRONG></P>
1529 <P><STRONG>15.</STRONG> BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE,
1530 THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY
1531 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
1532 HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY &quot;AS IS&quot; WITHOUT
1533 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
1534 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
1535 PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
1536 OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU
1537 ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. </P>
1538 <P><STRONG>16.</STRONG> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW
1539 OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY
1540 WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE
1541 LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL
1542 OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1543 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1544 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1545 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
1546 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1547 DAMAGES. </P>
1548 <H4>END OF TERMS AND CONDITIONS</H4>
1549 </BODY>
1550 </HTML>