]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Sync changes and files from 1.1.x.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 Feb 2005 02:09:53 +0000 (02:09 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 Feb 2005 02:09:53 +0000 (02:09 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@4493 7a7537e8-13f0-0310-91df-b6672ffda945

94 files changed:
ENCRYPTION.txt
LICENSE.html
LICENSE.txt
Makefile
README.txt
backend/parallel.c
backend/scsi-linux.c
backend/socket.c
berkeley/Makefile
cgi-bin/Makefile
cgi-bin/admin.c
conf/cupsd.conf.in
cups.sh.in
cups.spec
cups/debug.h
cups/emit.c
cups/http.h
cups/ipp.c
cups/ppd.c
cups/ppd.h
cups/snprintf.c
cups/string.c
cups/string.h
filter/common.h
filter/raster.c
filter/raster.h
filter/rastertohp.c
filter/testimage.c [new file with mode: 0644]
filter/textcommon.h
filter/texttops.c
man/accept.man
man/backend.man
man/classes.conf.man
man/cups-config.man
man/cups-lpd.man
man/cups-polld.man
man/cupsaddsmb.man
man/cupsd.conf.man
man/cupsd.man
man/cupstestppd.man
man/enable.man
man/filter.man
man/lp.man
man/lpadmin.man
man/lpc.man
man/lpinfo.man
man/lpmove.man
man/lpoptions.man
man/lppasswd.man
man/lpq.man
man/lpr.man
man/lprm.man
man/lpstat.man
man/mime.convs.man
man/mime.types.man
man/printers.conf.man
ppd/Makefile
ppd/deskjet.ppd
ppd/deskjet2.ppd
ppd/dymo.ppd
ppd/epson24.ppd
ppd/epson9.ppd
ppd/laserjet.ppd
ppd/okidat24.ppd
ppd/okidata9.ppd
ppd/stcolor.ppd
ppd/stcolor2.ppd
ppd/stphoto.ppd
ppd/stphoto2.ppd
ppd/zebra.ppd
pstoraster/cups.mak
pstoraster/gdevcups.c
pstoraster/pstopxl [new file with mode: 0644]
pstoraster/pstopxl.in
pstoraster/pstoraster
pstoraster/pstoraster.convs
pstoraster/pstoraster.in
pstoraster/pxlcolor.ppd
pstoraster/pxlmono.ppd
scheduler/auth.c
scheduler/classes.c
scheduler/client.c
scheduler/conf.c
scheduler/dirsvc.c
scheduler/ipp.c
scheduler/main.c
scheduler/printers.c
systemv/Makefile
systemv/lpinfo.c
templates/choose-uri.tmpl
templates/trailer.tmpl
test/Makefile
test/ipptest.c
test/run-stp-tests.sh

index 5ec656ea5f34d1371aa25fabd54c84b06fee5e19..e0e3ba9ffd70f71319ac2392ea11c4ce9b672a0c 100644 (file)
@@ -1,5 +1,5 @@
-ENCRYPTION - CUPS v1.1.7 - 02/21/2001
--------------------------------------
+ENCRYPTION - CUPS v1.1.20 - 11/24/2003
+--------------------------------------
 
 This file describes the encryption support provided by CUPS.
 
@@ -17,15 +17,16 @@ LEGAL STUFF
 
 BEFORE USING THE ENCRYPTION SUPPORT, PLEASE VERIFY THAT IT IS
 LEGAL TO DO SO IN YOUR COUNTRY.  CUPS by itself doesn't include
-any encryption code, but it can link against the OpenSSL library
-which does.
+any encryption code, but it can link against the OpenSSL, GNU
+TLS, or CDSA libraries which do.
 
 
 OVERVIEW OF ENCRYPTION SUPPORT IN CUPS
 
 CUPS supports SSL/2.0, SSL/3.0, and TLS/1.0 encryption using
 keys as large as 128-bits.  Encryption support is provided via
-the OpenSSL library and some new hooks in the CUPS code.
+the OpenSSL, GNU TLS, or CDSA libraries and some new hooks in
+the CUPS code.
 
 CUPS provides support for dedicated (https) and "upgrade" (TLS)
 encryption of sessions.  The "HTTP Upgrade" method is described
@@ -79,19 +80,22 @@ to /etc/cups/cupsd.conf.
 
 BEFORE YOU BEGIN
 
-You'll need the OpenSSL library from:
+You'll need the OpenSSL, GNU TLS, or CDSA libraries from:
 
-    http://www.openssl.org
+    http://www.openssl.org/
+    http://www.gnutls.org/
+    http://www.intel.com/labs/archive/cdsa.htm
 
 
 CONFIGURING WITH ENCRYPTION SUPPORT
 
-Once you have the OpenSSL library installed, you'll need to
-configure CUPS to use it with the "--enable-ssl" option:
+Once you have the OpenSSL, GNU TLS, or CDSA libraries installed,
+you'll need to configure CUPS to use it with the "--enable-ssl"
+option:
 
     ./configure --enable-ssl
 
-If the OpenSSL stuff is not in a standard location, make sure to
+If the library stuff is not in a standard location, make sure to
 define the CFLAGS, CXXFLAGS, and LDFLAGS environment variables
 with the appropriate compiler and linker options first.
 
index 17bfcc72cd5bd35bfa7fa17e6f916916cd01b31b..53bdcb053920e7a00d3f1e3e815896a89c86d013 100644 (file)
@@ -7,9 +7,9 @@
 
 <H2 ALIGN="CENTER">Common UNIX Printing System License Agreement</H2>
 
-<P ALIGN="CENTER">Copyright 1997-2004 by Easy Software Products<BR>
+<P ALIGN="CENTER">Copyright 1997-2005 by Easy Software Products<BR>
 44141 AIRPORT VIEW DR STE 204<BR>
-HOLLYWOOD, MARYLAND 20636-3142 USA<BR>
+HOLLYWOOD, MARYLAND 20636 USA<BR>
 <BR>
 Voice: +1.301.373.9600<BR>
 Email: <A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A><BR>
@@ -475,6 +475,69 @@ POSSIBILITY OF SUCH DAMAGES.
 
 <H4>END OF TERMS AND CONDITIONS</H4>
 
+<H4>How to Apply These Terms to Your New Programs</H4>
+
+<P>If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+<P>To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+<PRE>
+<VAR>one line to give the program's name and an idea of what it does.</VAR>
+Copyright (C) <VAR>yyyy</VAR>  <VAR>name of author</VAR>
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+</PRE>
+
+<P>Also add information on how to contact you by electronic and paper mail.
+
+<P>If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+<PRE>
+Gnomovision version 69, Copyright (C) <VAR>year</VAR> <VAR>name of author</VAR>
+Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
+type `show w'.  This is free software, and you are welcome
+to redistribute it under certain conditions; type `show c' 
+for details.
+</PRE>
+
+<P>The hypothetical commands <SAMP>`show w'</SAMP> and <SAMP>`show c'</SAMP> should show
+the appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than <SAMP>`show w'</SAMP> and
+<SAMP>`show c'</SAMP>; they could even be mouse-clicks or menu items--whatever
+suits your program.
+
+<P>You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+<PRE>
+Yoyodyne, Inc., hereby disclaims all copyright
+interest in the program `Gnomovision'
+(which makes passes at compilers) written 
+by James Hacker.
+
+<VAR>signature of Ty Coon</VAR>, 1 April 1989
+Ty Coon, President of Vice
+</PRE>
+
 <!-- NEW PAGE -->
 <H2>GNU LIBRARY GENERAL PUBLIC LICENSE</H2>
 
@@ -952,5 +1015,54 @@ DAMAGES.
 
 <H4>END OF TERMS AND CONDITIONS</H4>
 
+<H4>How to Apply These Terms to Your New Libraries</H4>
+
+<P>If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+<P>To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+<PRE>
+<VAR>one line to give the library's name and an idea of what it does.</VAR>
+Copyright (C) <VAR>year</VAR>  <VAR>name of author</VAR>
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+</PRE>
+
+<P>Also add information on how to contact you by electronic and paper mail.
+
+<P>You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+<PRE>
+Yoyodyne, Inc., hereby disclaims all copyright interest in
+the library `Frob' (a library for tweaking knobs) written
+by James Random Hacker.
+
+<VAR>signature of Ty Coon</VAR>, 1 April 1990
+Ty Coon, President of Vice
+</PRE>
+
+<P>That's all there is to it!
+
 </BODY>
 </HTML>
index d3095f2fed771f85f42a41957807cd63aae2f3d5..c83f6b34aee0022349b51fc2db794996c7ad01df 100644 (file)
@@ -1,8 +1,8 @@
                 Common UNIX Printing System License Agreement
 
-                Copyright 1997-2004 by Easy Software Products
+                Copyright 1997-2005 by Easy Software Products
                         44141 AIRPORT VIEW DR STE 204
-                     HOLLYWOOD, MARYLAND 20636-3142 USA
+                     HOLLYWOOD, MARYLAND 20636 USA
 
                            Voice: +1.301.373.9600
                           Email: cups-info@cups.org
@@ -420,6 +420,65 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGES.
 
                     END OF TERMS AND CONDITIONS
+\f
+       Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19yy name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
 \f
                  GNU LIBRARY GENERAL PUBLIC LICENSE
                         Version 2, June 1991
@@ -859,3 +918,47 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 DAMAGES.
 
                     END OF TERMS AND CONDITIONS
+\f
+     Appendix: How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the library's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public
+    License along with this library; if not, write to the Free
+    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  <signature of Ty Coon>, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
index c30436787d6d30fadf220693e066c3fb50ed455d..cb7aedf5d89ee645653ae4960d301d5a551b23a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.31.2.14 2004/06/29 20:16:29 mike Exp $"
+# "$Id$"
 #
 #   Top-level Makefile for the Common UNIX Printing System (CUPS).
 #
@@ -78,6 +78,8 @@ install:      installhdrs
        (cd data; $(MAKE) $(MFLAGS) install)
        echo Installing in doc...
        (cd doc; $(MAKE) $(MFLAGS) install)
+       echo Installing in fonts...
+       (cd fonts; $(MAKE) $(MFLAGS) install)
        echo Installing in locale...
        (cd locale; $(MAKE) $(MFLAGS) install)
        echo Installing in ppd...
@@ -165,5 +167,5 @@ tardist:
        epm $(EPMFLAGS) -f tardist cups
 
 #
-# End of "$Id: Makefile,v 1.31.2.14 2004/06/29 20:16:29 mike Exp $".
+# End of "$Id$".
 #
index 2993d57a45b1a6ed1486a1489c4068f12dc25ce4..ab7cf76c11c3898225ea80226bea3cec8909b60d 100644 (file)
@@ -1,10 +1,10 @@
-README - CUPS v1.2.0a1 - 01/07/2003
+README - CUPS v1.2.0b1 - 02/17/2005
 -----------------------------------
 
 *****************************************************************
 *****************************************************************
 ****                                                         ****
-**** WARNING: THIS IS ALPHA RELEASE SOFTWARE AND MAY BE      ****
+**** WARNING: THIS IS BETA RELEASE SOFTWARE AND MAY BE       ****
 ****          TOTALLY UNSTABLE.  DO NOT USE IN ENVIRONMENTS  ****
 ****          WHERE RELIABLE SOFTWARE IS REQUIRED!           ****
 ****                                                         ****
@@ -71,11 +71,10 @@ The following operating system software is required to install
 one of the binary distributions from Easy Software Products:
 
     - AIX 4.3 or higher
-    - Compaq Tru64 UNIX (aka OSF1 aka Digital UNIX) 4.0 or higher
-    - HP-UX 10.20 or higher
-    - IRIX 5.3 or higher
-    - Linux 2.0 with glibc2 or higher
-    - Solaris 2.5 or higher (SPARC or Intel)
+    - HP-UX 11.00 or higher
+    - IRIX 6.5 or higher
+    - Linux 2.4 with glibc 2.2 or higher
+    - Solaris 7 or higher (SPARC or Intel)
 
 
 INSTALLING "PORTABLE" CUPS DISTRIBUTIONS
@@ -179,10 +178,6 @@ and HP printer drivers.  To add the sample DeskJet driver to the
 system for a printer connected to the parallel port, use one of
 the following commands:
 
-    Digital UNIX:
-
-        /usr/lib/lpadmin -p DeskJet -m deskjet.ppd -v parallel:/dev/lp0 -E
-
     HP-UX:
 
         /usr/lib/lpadmin -p DeskJet -m deskjet.ppd -v parallel:/dev/c2t0d0_lp -E
@@ -258,14 +253,14 @@ file.
 
 LEGAL STUFF
 
-CUPS is Copyright 1993-2003 by Easy Software Products.  CUPS,
+CUPS is Copyright 1993-2005 by Easy Software Products.  CUPS,
 the CUPS logo, and the Common UNIX Printing System are the
 trademark property of Easy Software Products.
 
 The MD5 Digest code is Copyright 1999 Aladdin Enterprises.
 
 The PDF filter (pdftops) is based on the Xpdf software,
-Copyright 1996-2002 by Derek B. Noonburg.
+Copyright 1996-2005 by Derek B. Noonburg.
 
 This software is based in part on the work of the Independent
 JPEG Group.
@@ -282,13 +277,12 @@ For commercial licensing information, please contact:
     Attn: CUPS Licensing Information
     Easy Software Products
     44141 Airport View Drive, Suite 204
-    Hollywood, Maryland 20636-3111 USA
+    Hollywood, Maryland 20636 USA
 
     Voice: +1.301.373.9600
     Email: cups-info@cups.org
     WWW: http://www.cups.org
 
 Note that commercial licensors may also require a license from
-Artifex Software Inc. which handles commercial licensing of the
-Ghostscript software, and from Derek B. Noonburg who developed
-the Xpdf software used to print PDF files.
+Derek B. Noonburg who developed the Xpdf software used to print
+PDF files.
index 93356e1e81dfd610ef2f519dd63abfb7b5fe5b28..4c37313e1b4611dd0edc362aa310887bf41f46e4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: parallel.c,v 1.29.2.17 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   Parallel port backend for the Common UNIX Printing System (CUPS).
  *
@@ -222,20 +222,24 @@ main(int  argc,           /* I - Number of command-line arguments (6 or 7) */
  /*
   * Now that we are "connected" to the port, ignore SIGTERM so that we
   * can finish out any page data the driver sends (e.g. to eject the
-  * current page...
+  * current page...  Only ignore SIGTERM if we are printing data from
+  * stdin (otherwise you can't cancel raw jobs...)
   */
 
+  if (argc < 7)
+  {
 #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */
-  sigset(SIGTERM, SIG_IGN);
+    sigset(SIGTERM, SIG_IGN);
 #elif defined(HAVE_SIGACTION)
-  memset(&action, 0, sizeof(action));
+    memset(&action, 0, sizeof(action));
 
-  sigemptyset(&action.sa_mask);
-  action.sa_handler = SIG_IGN;
-  sigaction(SIGTERM, &action, NULL);
+    sigemptyset(&action.sa_mask);
+    action.sa_handler = SIG_IGN;
+    sigaction(SIGTERM, &action, NULL);
 #else
-  signal(SIGTERM, SIG_IGN);
+    signal(SIGTERM, SIG_IGN);
 #endif /* HAVE_SIGSET */
+  }
 
  /*
   * Finally, send the print file...
@@ -671,5 +675,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: parallel.c,v 1.29.2.17 2004/06/29 13:15:08 mike Exp $".
+ * End of "$Id$".
  */
index be18107e4e58d7f44da45d48b5ff59e20c17b7de..a51f22f8bd98b85aeaf46d63be732637cd9c1288 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: scsi-linux.c,v 1.1.2.2 2004/05/13 15:13:52 mike Exp $"
+ * "$Id$"
  *
  *   Linux SCSI printer support for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 2003-2004 by Easy Software Products, all rights reserved.
+ *   Copyright 2003-2005 by Easy Software Products, all rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or
  *   without modification, are permitted provided that the
 #include <scsi/sg.h>
 
 
+/*
+ * We currently only support the Linux 2.4 generic SCSI interface.
+ */
+
+#ifndef SG_DXFER_TO_DEV
+/*
+ * Dummy functions that do nothing on unsupported platforms...
+ */
+void   list_devices(void) {}
+int    print_device(const char *resource, int fd, int copies) { return (1); }
+#else
+
+
 /*
  * 'list_devices()' - List the available SCSI printer devices.
  */
@@ -84,9 +97,9 @@ print_device(const char *resource,    /* I - SCSI device */
   sg_io_hdr_t  scsi_req;               /* SCSI request */
   char         scsi_cmd[6],            /* SCSI command data */
                scsi_sense[32];         /* SCSI sense data */
-#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
+#  if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
   struct sigaction action;             /* Actions for POSIX signals */
-#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
+#  endif /* HAVE_SIGACTION && !HAVE_SIGSET */
 
 
  /*
@@ -132,17 +145,17 @@ print_device(const char *resource,        /* I - SCSI device */
 
   if (fd != 0)
   {
-#ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */
+#  ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */
     sigset(SIGTERM, SIG_IGN);
-#elif defined(HAVE_SIGACTION)
+#  elif defined(HAVE_SIGACTION)
     memset(&action, 0, sizeof(action));
 
     sigemptyset(&action.sa_mask);
     action.sa_handler = SIG_IGN;
     sigaction(SIGTERM, &action, NULL);
-#else
+#  else
     signal(SIGTERM, SIG_IGN);
-#endif /* HAVE_SIGSET */
+#  endif /* HAVE_SIGSET */
   }
 
  /*
@@ -207,8 +220,9 @@ print_device(const char *resource,  /* I - SCSI device */
 
   return (0);
 }
+#endif /* !SG_DXFER_TO_DEV */
 
 
 /*
- * End of "$Id: scsi-linux.c,v 1.1.2.2 2004/05/13 15:13:52 mike Exp $".
+ * End of "$Id$".
  */
index bea7a17abf9aabc6b4cdbb4e219dff5857ac09f4..a8b5e0d202641114bb2bfb015870d8c725b37280 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: socket.c,v 1.17.2.18 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   AppSocket backend for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products, all rights reserved.
+ *   Copyright 1997-2005 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
 #endif /* WIN32 */
 
 
+/*
+ * Local functions...
+ */
+
+void   print_backchannel(const unsigned char *buffer, int nbytes);
+
+
 /*
  * 'main()' - Send a file to the printer or server.
  *
@@ -221,20 +228,24 @@ main(int  argc,                   /* I - Number of command-line arguments (6 or 7) */
    /*
     * Now that we are "connected" to the port, ignore SIGTERM so that we
     * can finish out any page data the driver sends (e.g. to eject the
-    * current page...
+    * current page...  Only ignore SIGTERM if we are printing data from
+    * stdin (otherwise you can't cancel raw jobs...)
     */
 
+    if (argc < 7)
+    {
 #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */
-    sigset(SIGTERM, SIG_IGN);
+      sigset(SIGTERM, SIG_IGN);
 #elif defined(HAVE_SIGACTION)
-    memset(&action, 0, sizeof(action));
+      memset(&action, 0, sizeof(action));
 
-    sigemptyset(&action.sa_mask);
-    action.sa_handler = SIG_IGN;
-    sigaction(SIGTERM, &action, NULL);
+      sigemptyset(&action.sa_mask);
+      action.sa_handler = SIG_IGN;
+      sigaction(SIGTERM, &action, NULL);
 #else
-    signal(SIGTERM, SIG_IGN);
+      signal(SIGTERM, SIG_IGN);
 #endif /* HAVE_SIGSET */
+    }
 
    /*
     * Finally, send the print file...
@@ -291,8 +302,11 @@ main(int  argc,                    /* I - Number of command-line arguments (6 or 7) */
        */
 
        if ((nbytes = recv(fd, buffer, sizeof(buffer), 0)) > 0)
+       {
          fprintf(stderr, "INFO: Received %d bytes of back-channel data!\n",
                  nbytes);
+          print_backchannel((unsigned char *)buffer, nbytes);
+        }
       }
       else if (argc > 6)
        fprintf(stderr, "INFO: Sending print file, %lu bytes...\n",
@@ -331,9 +345,12 @@ main(int  argc,                    /* I - Number of command-line arguments (6 or 7) */
        */
 
        if ((nbytes = recv(fd, buffer, sizeof(buffer), 0)) > 0)
+       {
          fprintf(stderr, "INFO: Received %d bytes of back-channel data!\n",
                  nbytes);
-        else
+          print_backchannel((unsigned char *)buffer, nbytes);
+        }
+       else
          break;
       }
       else
@@ -359,5 +376,43 @@ main(int  argc,                    /* I - Number of command-line arguments (6 or 7) */
 
 
 /*
- * End of "$Id: socket.c,v 1.17.2.18 2004/06/29 13:15:08 mike Exp $".
+ * 'print_backchannel()' - Print the contents of a back-channel buffer.
+ */
+
+void
+print_backchannel(const unsigned char *buffer, /* I - Data buffer */
+                  int                 nbytes)  /* I - Number of bytes */
+{
+  char line[255],                              /* Formatted line */
+       *lineptr;                               /* Pointer into line */
+
+
+  for (lineptr = line; nbytes > 0; buffer ++, nbytes --)
+  {
+    if (*buffer < 0x20 || *buffer >= 0x7f)
+    {
+      snprintf(lineptr, sizeof(line) - (lineptr - line), "<%02X>", *buffer);
+      lineptr += strlen(lineptr);
+    }
+    else
+      *lineptr++ = *buffer;
+
+    if ((lineptr - line) > 72)
+    {
+      *lineptr = '\0';
+      fprintf(stderr, "DEBUG: DATA: %s\n", line);
+      lineptr = line;
+    }
+  }
+
+  if (lineptr > line)
+  {
+    *lineptr = '\0';
+    fprintf(stderr, "DEBUG: DATA: %s\n", line);
+  }
+}
+
+
+/*
+ * End of "$Id$".
  */
index 161286e31b4802fb026662ae4803be2e7e981579..d570b4646a3149354461acaa037dcfd040fc45cd 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.13.2.6 2004/06/29 13:15:08 mike Exp $"
+# "$Id$"
 #
 #   Berkeley commands makefile for the Common UNIX Printing System (CUPS).
 #
@@ -103,10 +103,10 @@ lprm:     lprm.o ../cups/$(LIBCUPS)
 #
 # Dependencies...
 #
-  
+
 include Dependencies
 
-  
+
 #
-# End of "$Id: Makefile,v 1.13.2.6 2004/06/29 13:15:08 mike Exp $".
+# End of "$Id$".
 #
index 69460e9c11349eab7b36d6790e944947d9b23031..49a5a1c1b8fab4ae26b36f358c75629fda527a9a 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile,v 1.15.2.7 2004/06/29 13:15:08 mike Exp $"
+# "$Id$"
 #
 #   CGI makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2004 by Easy Software Products.
+#   Copyright 1997-2005 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 #       Attn: CUPS Licensing Information
 #       Easy Software Products
 #       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636-3142 USA
+#       Hollywood, Maryland 20636 USA
 #
 #       Voice: (301) 373-9600
 #       EMail: cups-info@cups.org
@@ -79,7 +79,7 @@ libcgi.a:     $(LIBOBJS)
 # admin.cgi
 #
 
-admin.cgi:     admin.o ../cups/$(LIBCUPS) libcgi.a
+admin.cgi:     admin.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ admin.o libcgi.a $(LIBS)
 
@@ -88,7 +88,7 @@ admin.cgi:    admin.o ../cups/$(LIBCUPS) libcgi.a
 # classes.cgi
 #
 
-classes.cgi:   classes.o ../cups/$(LIBCUPS) libcgi.a
+classes.cgi:   classes.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ classes.o libcgi.a $(LIBS)
 
@@ -97,7 +97,7 @@ classes.cgi:  classes.o ../cups/$(LIBCUPS) libcgi.a
 # jobs.cgi
 #
 
-jobs.cgi:      jobs.o ../cups/$(LIBCUPS) libcgi.a
+jobs.cgi:      jobs.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ jobs.o libcgi.a $(LIBS)
 
@@ -106,7 +106,7 @@ jobs.cgi:   jobs.o ../cups/$(LIBCUPS) libcgi.a
 # printers.cgi
 #
 
-printers.cgi:  printers.o ../cups/$(LIBCUPS) libcgi.a
+printers.cgi:  printers.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ printers.o libcgi.a $(LIBS)
 
@@ -114,10 +114,10 @@ printers.cgi:     printers.o ../cups/$(LIBCUPS) libcgi.a
 #
 # Dependencies...
 #
-  
+
 include Dependencies
 
-  
+
 #
-# End of "$Id: Makefile,v 1.15.2.7 2004/06/29 13:15:08 mike Exp $".
+# End of "$Id$".
 #
index 8aa9ab4d9b268642b48f18eb56ecfc17d6f47ee9..5fe3e9e075334ed056db059783e931c4194b5b1a 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: admin.c,v 1.22.2.27 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   Administration CGI for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -119,6 +119,8 @@ main(int  argc,                     /* I - Number of command-line arguments */
       do_printer_op(http, language, CUPS_REJECT_JOBS);
     else if (strcmp(op, "purge-jobs") == 0)
       do_printer_op(http, language, IPP_PURGE_JOBS);
+    else if (strcmp(op, "set-as-default") == 0)
+      do_printer_op(http, language, CUPS_SET_DEFAULT);
     else if (strcmp(op, "add-class") == 0)
       do_am_class(http, language, 0);
     else if (strcmp(op, "add-printer") == 0)
@@ -263,7 +265,7 @@ do_am_class(http_t      *http,              /* I - HTTP connection */
   if (*ptr || ptr == name || strlen(name) > 127)
   {
     cgiSetVariable("ERROR", "The class name may only contain up to 127 printable "
-                            "characters.");
+                            "characters and may not contain spaces.");
     cgiCopyTemplateLang(stdout, TEMPLATES, "error.tmpl", getenv("LANG"));
     return;
   }
@@ -574,7 +576,7 @@ do_am_printer(http_t      *http,    /* I - HTTP connection */
   if (*ptr || ptr == name || strlen(name) > 127)
   {
     cgiSetVariable("ERROR", "The printer name may only contain up to 127 printable "
-                            "characters.");
+                            "characters and may not contain spaces.");
     cgiCopyTemplateLang(stdout, TEMPLATES, "error.tmpl", getenv("LANG"));
     return;
   }
@@ -1029,7 +1031,7 @@ do_config_printer(http_t      *http,      /* I - HTTP connection */
         i > 0;
         i --, group ++)
     {
-      if (strcmp(group->name, "InstallableOptions") == 0)
+      if (strcmp(group->text, "InstallableOptions") == 0)
        cgiSetVariable("GROUP",
                       cupsLangString(language, CUPS_MSG_OPTIONS_INSTALLED));
       else
@@ -1545,6 +1547,8 @@ do_printer_op(http_t      *http,  /* I - HTTP connection */
     cgiCopyTemplateLang(stdout, TEMPLATES, "printer-reject.tmpl", getenv("LANG"));
   else if (op == IPP_PURGE_JOBS)
     cgiCopyTemplateLang(stdout, TEMPLATES, "printer-purge.tmpl", getenv("LANG"));
+  else if (op == CUPS_SET_DEFAULT)
+    cgiCopyTemplateLang(stdout, TEMPLATES, "printer-default.tmpl", getenv("LANG"));
 }
 
 
@@ -1597,5 +1601,5 @@ get_line(char *buf,       /* I - Line buffer */
 
 
 /*
- * End of "$Id: admin.c,v 1.22.2.27 2004/06/29 13:15:08 mike Exp $".
+ * End of "$Id$".
  */
index d602d8c1d3eda0ec1b625ea8bcdf79ff051720cf..c8a0f6b75b3647b13ecd92a12a55d4cfbdbb9fc0 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: cupsd.conf.in,v 1.2.2.16 2004/08/19 12:46:28 mike Exp $"
+# "$Id$"
 #
 #   Sample configuration file for the Common UNIX Printing System (CUPS)
 #   scheduler.
@@ -218,6 +218,28 @@ LogLevel info
 
 #MaxJobs 500
 
+#
+# MaxJobsPerPrinter: maximum number of active jobs per printer. The default
+# is 0 for no limit.
+#
+
+#MaxJobsPerPrinter 0
+
+#
+# MaxJobsPerUser: maximum number of active jobs per user. The default
+# is 0 for no limit.
+#
+
+#MaxJobsPerUser 0
+
+#
+# MaxPrinterHistory: controls the maximum number of history collections
+# in the printer-state-history attribute.  Set to 0 to disable history
+# data.
+#
+
+#MaxPrinterHistory 10
+
 #
 # Printcap: the name of the printcap file.  Default is /etc/printcap.
 # Leave blank to disable printcap file generation.
@@ -824,5 +846,5 @@ Allow From 127.0.0.1
 </Location>
 
 #
-# End of "$Id: cupsd.conf.in,v 1.2.2.16 2004/08/19 12:46:28 mike Exp $".
+# End of "$Id$".
 #
index 8f91e3dd173c257adf63a9ae0279645a3c3ea9eb..15fec09968ddc5791375660e87d2f614c0accac4 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# "$Id: cups.sh.in,v 1.9.2.9 2004/06/29 13:15:08 mike Exp $"
+# "$Id$"
 #
 #   Startup/shutdown script for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2004 by Easy Software Products, all rights reserved.
+#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -16,7 +16,7 @@
 #       Attn: CUPS Licensing Information
 #       Easy Software Products
 #       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636-3142 USA
+#       Hollywood, Maryland 20636 USA
 #
 #       Voice: (301) 373-9600
 #       EMail: cups-info@cups.org
@@ -131,41 +131,22 @@ fi
 # See if the CUPS server (cupsd) is running...
 #
 
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-cupsd=@sbindir@/cupsd
-
 case "`uname`" in
        HP-UX* | AIX* | SINIX*)
-               awkstart='{if ($4 == "';
-               awkend='") print $1}';
-               awkcmd="$awkstart$cupsd$awkend"
-               pid=`ps -e | awk "$awkcmd"`
+               pid=`ps -e | awk '{if (match($4, ".*/cupsd$") || $4 == "cupsd") print $1}'`
                ;;
        IRIX* | SunOS*)
-               awkstart='{if ($4 == "';
-               awkend='") print $1}';
-               awkcmd="$awkstart$cupsd$awkend"
-               pid=`ps -e | nawk "$awkcmd"`
+               pid=`ps -e | nawk '{if (match($4, ".*/cupsd$") || $4 == "cupsd") print $1}'`
                ;;
        UnixWare*)
-               awkstart='{if ($6 == "';
-               awkend='") print $1}';
-               awkcmd="$awkstart$cupsd$awkend"
-               pid=`ps -e | awk "$awkcmd"`
+               pid=`ps -e | awk '{if (match($6, ".*/cupsd$") || $6 == "cupsd") print $1}'`
                . /etc/TIMEZONE
                ;;
        OSF1*)
-               awkstart='{if ($5 == "';
-               awkend='") print $1}';
-               awkcmd="$awkstart$cupsd$awkend"
-               pid=`ps -e | awk "$awkcmd"`
+               pid=`ps -e | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
                ;;
        Linux* | *BSD* | Darwin*)
-               awkstart='{if ($5 == "';
-               awkend='") print $1}';
-               awkcmd="$awkstart$cupsd$awkend"
-               pid=`ps ax | awk "$awkcmd"`
+               pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
                ;;
        *)
                pid=""
@@ -182,7 +163,9 @@ case $1 in
                        if test "$pid" != ""; then
                                kill -HUP $pid
                        else
-                               $cupsd
+                               prefix=@prefix@
+                               exec_prefix=@exec_prefix@
+                               @sbindir@/cupsd
                                if test $? != 0; then
                                        $ECHO_FAIL
                                        $ECHO "cups: unable to $1 scheduler."
@@ -224,5 +207,5 @@ exit 0
 
 
 #
-# End of "$Id: cups.sh.in,v 1.9.2.9 2004/06/29 13:15:08 mike Exp $".
+# End of "$Id$".
 #
index c74ca9ba44757a09cb87f7e2ef3415fd6ef6f51c..d2cf354a4ca3cb330432ec0fc42445b6e89299da 100644 (file)
--- a/cups.spec
+++ b/cups.spec
@@ -1,5 +1,5 @@
 #
-# "$Id: cups.spec,v 1.30.2.13 2004/05/27 15:37:47 mike Exp $"
+# "$Id$"
 #
 #   RPM "spec" file for the Common UNIX Printing System (CUPS).
 #
@@ -53,22 +53,19 @@ Group: System Environment/Libraries
 Provides: libcups1
 
 %description
-The Common UNIX Printing System provides a portable printing
-layer for  UNIX® operating systems. It has been developed by
-Easy Software Products  to promote a standard printing solution
-for all UNIX vendors and users.  CUPS provides the System V and
-Berkeley command-line interfaces. 
+The Common UNIX Printing System provides a portable printing layer for 
+UNIX® operating systems. It has been developed by Easy Software Products 
+to promote a standard printing solution for all UNIX vendors and users. 
+CUPS provides the System V and Berkeley command-line interfaces. 
 
 %description devel
-The Common UNIX Printing System provides a portable printing
-layer for  UNIX® operating systems. This is the development
-package for creating additional printer drivers and other CUPS
-services.
+The Common UNIX Printing System provides a portable printing layer for 
+UNIX® operating systems. This is the development package for creating
+additional printer drivers and other CUPS services.
 
 %description libs
-The Common UNIX Printing System provides a portable printing
-layer for  UNIX® operating systems. This package contains the
-CUPS shared libraries.
+The Common UNIX Printing System provides a portable printing layer for 
+UNIX® operating systems. This package contains the CUPS shared libraries.
 
 %prep
 %setup
@@ -188,16 +185,16 @@ rm -rf $RPM_BUILD_ROOT
 %dir /usr/share/man/cat8
 /usr/share/man/cat8/*
 %dir /usr/share/man/man1
-/usr/share/man/man1/backend.1
-/usr/share/man/man1/cupstestppd.1
-/usr/share/man/man1/filter.1
-/usr/share/man/man1/lp.1
-/usr/share/man/man1/lpoptions.1
-/usr/share/man/man1/lppasswd.1
-/usr/share/man/man1/lpq.1
-/usr/share/man/man1/lpr.1
-/usr/share/man/man1/lprm.1
-/usr/share/man/man1/lpstat.1
+/usr/share/man/man1/backend.1.gz
+/usr/share/man/man1/cupstestppd.1.gz
+/usr/share/man/man1/filter.1.gz
+/usr/share/man/man1/lp.1.gz
+/usr/share/man/man1/lpoptions.1.gz
+/usr/share/man/man1/lppasswd.1.gz
+/usr/share/man/man1/lpq.1.gz
+/usr/share/man/man1/lpr.1.gz
+/usr/share/man/man1/lprm.1.gz
+/usr/share/man/man1/lpstat.1.gz
 %dir /usr/share/man/man5
 /usr/share/man/man5/*
 %dir /usr/share/man/man8
@@ -240,12 +237,14 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %dir /usr/share/man/cat1
 /usr/share/man/cat1/cups-config.1
-%dir /usr/share/man/fr/cat1
-/usr/share/man/fr/cat1/cups-config.1
 %dir /usr/share/man/man1
-/usr/share/man/man1/cups-config.1
-%dir /usr/share/man/fr/man1
-/usr/share/man/fr/man1/cups-config.1
+/usr/share/man/man1/cups-config.1.gz
+
+%dir /usr/share/man/es/cat1
+/usr/share/man/es/cat1/cups-config.1
+%dir /usr/share/man/es/man1
+/usr/share/man/es/man1/cups-config.1.gz
+
 /usr/bin/cups-config
 %dir /usr/include/cups
 /usr/include/cups/*
@@ -255,5 +254,5 @@ rm -rf $RPM_BUILD_ROOT
 /usr/lib/*.so*
 
 #
-# End of "$Id: cups.spec,v 1.30.2.13 2004/05/27 15:37:47 mike Exp $".
+# End of "$Id$".
 #
index 6930987eb9e26d3ca4ec193ea52660e887340bbb..09e305f4d87767c8c935ede9d22a62d3bbaf2812 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: debug.h,v 1.4.2.6 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   Debugging macros for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -24,8 +24,8 @@
  *   This file is subject to the Apple OS-Developed Software exception.
  */
 
-#ifndef _IPP_DEBUG_H_
-#  define _IPP_DEBUG_H_
+#ifndef _CUPS_DEBUG_H_
+#  define _CUPS_DEBUG_H_
 
 /*
  * Include necessary headers...
@@ -52,8 +52,8 @@
 #    define DEBUG_printf(x)
 #  endif /* DEBUG */
 
-#endif /* !_IPP_DEBUG_H_ */
+#endif /* !_CUPS_DEBUG_H_ */
 
 /*
- * End of "$Id: debug.h,v 1.4.2.6 2004/06/29 13:15:08 mike Exp $".
+ * End of "$Id$".
  */
index d2cce18c5730f56ef76f6d93b68dd921ec6610d3..c2a5c6b798e152ed8ae5b0a3df2dea731e2529bd 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: emit.c,v 1.23.2.16 2004/09/08 20:31:30 mike Exp $"
+ * "$Id$"
  *
  *   PPD code emission routines for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products, all rights reserved.
+ *   Copyright 1997-2005 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -564,9 +564,17 @@ ppdEmitJCL(ppd_file_t *ppd,                /* I - PPD file record */
   char         temp[81];               /* Local title string */
 
 
+ /*
+  * Range check the input...
+  */
+
   if (ppd == NULL || ppd->jcl_begin == NULL || ppd->jcl_ps == NULL)
     return (0);
 
+ /*
+  * See if the printer supports HP PJL...
+  */
+
   if (strncmp(ppd->jcl_begin, "\033%-12345X@", 10) == 0)
   {
    /*
@@ -610,6 +618,13 @@ ppdEmitJCL(ppd_file_t *ppd,                /* I - PPD file record */
          ptr ++;
       }
 
+   /*
+    * Eliminate any path info from the job title...
+    */
+
+    if ((ptr = strrchr(title, '/')) != NULL)
+      title = ptr + 1;
+
    /*
     * Replace double quotes with single quotes so that the title
     * does not cause a PJL syntax error.
@@ -737,5 +752,5 @@ ppd_sort(ppd_choice_t **c1, /* I - First choice */
 
 
 /*
- * End of "$Id: emit.c,v 1.23.2.16 2004/09/08 20:31:30 mike Exp $".
+ * End of "$Id$".
  */
index a41ee3d6813d6058bacdb0fa9ee23d48aedccd91..5112825f67741d45389a576af2ed0fa27534315d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: http.h,v 1.33.2.25 2004/08/18 17:49:19 mike Exp $"
+ * "$Id$"
  *
  *   Hyper-Text Transport Protocol definitions for the Common UNIX Printing
  *   System (CUPS).
@@ -25,8 +25,8 @@
  *   This file is subject to the Apple OS-Developed Software exception.
  */
 
-#ifndef _IPP_HTTP_H_
-#  define _IPP_HTTP_H_
+#ifndef _CUPS_HTTP_H_
+#  define _CUPS_HTTP_H_
 
 /*
  * Include necessary headers...
@@ -429,8 +429,8 @@ extern char         *httpAddrString(const http_addr_t *addr,
 #  ifdef __cplusplus
 }
 #  endif /* __cplusplus */
-#endif /* !_IPP_HTTP_H_ */
+#endif /* !_CUPS_HTTP_H_ */
 
 /*
- * End of "$Id: http.h,v 1.33.2.25 2004/08/18 17:49:19 mike Exp $".
+ * End of "$Id$".
  */
index fb88d4b99f66758aa42ca9a88d41b412e879ed54..d14f047b803299eda53e93a2fa72f8c51e58335f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.55.2.41 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   Internet Printing Protocol support functions for the Common UNIX
  *   Printing System (CUPS).
 #include <ctype.h>
 #include <errno.h>
 
+#ifdef WIN32
+#  include <io.h>
+#endif // WIN32
+
 
 /*
  * Local functions...
@@ -1718,7 +1722,7 @@ ippWriteIO(void       *dst,                       /* I - Destination */
                   DEBUG_printf(("ippWrite: writing string = %d, \'%s\'\n", n,
                                value->string.text));
 
-                  if ((sizeof(buffer) - (bufptr - buffer)) < (n + 2))
+                  if ((int)(sizeof(buffer) - (bufptr - buffer)) < (n + 2))
                  {
                     if ((*cb)(dst, buffer, bufptr - buffer) < 0)
                    {
@@ -1943,7 +1947,7 @@ ippWriteIO(void       *dst,                       /* I - Destination */
                   if (n > (sizeof(buffer) - 2))
                    return (IPP_ERROR);
 
-                  if ((sizeof(buffer) - (bufptr - buffer)) < (n + 2))
+                  if ((int)(sizeof(buffer) - (bufptr - buffer)) < (n + 2))
                  {
                     if ((*cb)(dst, buffer, bufptr - buffer) < 0)
                    {
@@ -2093,7 +2097,7 @@ ippWriteIO(void       *dst,                       /* I - Destination */
                   if (n > (sizeof(buffer) - 2))
                    return (IPP_ERROR);
 
-                  if ((sizeof(buffer) - (bufptr - buffer)) < (n + 2))
+                  if ((int)(sizeof(buffer) - (bufptr - buffer)) < (n + 2))
                  {
                     if ((*cb)(dst, buffer, bufptr - buffer) < 0)
                    {
@@ -2553,5 +2557,5 @@ ipp_write_file(int         *fd,                   /* I - File descriptor */
 
 
 /*
- * End of "$Id: ipp.c,v 1.55.2.41 2004/06/29 13:15:08 mike Exp $".
+ * End of "$Id$".
  */
index 07e654e46bb0bcd0b6ca08c1e69b9665050782db..6bf7d27a13499a21ce8fdbabdeb3bc09ebb0c9b9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ppd.c,v 1.51.2.65 2004/06/29 13:15:08 mike Exp $"
+ * "$Id$"
  *
  *   PPD file routines for the Common UNIX Printing System (CUPS).
  *
@@ -2787,6 +2787,7 @@ ppd_read(FILE *fp,                        /* I - File to read from */
             * Line is too long...
            */
 
+            ppd_line   = startline;
             ppd_status = PPD_LINE_TOO_LONG;
 
             return (0);
@@ -3025,5 +3026,5 @@ ppd_read(FILE *fp,                        /* I - File to read from */
 
 
 /*
- * End of "$Id: ppd.c,v 1.51.2.65 2004/06/29 13:15:08 mike Exp $".
+ * End of "$Id$".
  */
index 1f8730934b6061ed42c99ea26b7a208fe4567c8d..a307ae8c2eebc1d631b31924827b1145160aabf1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ppd.h,v 1.24.2.21 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   PostScript Printer Description definitions for the Common UNIX Printing
  *   System (CUPS).
@@ -350,6 +350,8 @@ typedef struct ppd_file_str /**** Files ****/
   int          num_attrs;      /* Number of attributes */
   int          cur_attr;       /* Current attribute */
   ppd_attr_t   **attrs;        /* Attributes */
+
+  /**** New in CUPS 1.2 ****/
   int          num_extended;   /* Number of extended options */
   ppd_ext_option_t **extended; /* Extended options */
 } ppd_file_t;
@@ -391,6 +393,11 @@ extern ppd_attr_t  *ppdFindAttr(ppd_file_t *ppd, const char *name,
 extern ppd_attr_t      *ppdFindNextAttr(ppd_file_t *ppd, const char *name,
                                         const char *spec);
 extern ppd_status_t    ppdLastError(int *line);
+
+/**** New in CUPS 1.1.20 ****/
+extern void            ppdSetConformance(ppd_conform_t c);
+
+/**** New in CUPS 1.2 ****/
 extern ppd_ext_option_t        *ppdFindExtOption(ppd_file_t *ppd, const char *keyword);
 extern ppd_ext_param_t *ppdFindExtParam(ppd_ext_option_t *opt, const char *param);
 extern int             ppdMarkCurve(ppd_file_t *ppd, const char *keyword,
@@ -413,11 +420,6 @@ extern int         ppdMarkText(ppd_file_t *ppd, const char *keyword,
 extern int             ppdMarkXYArray(ppd_file_t *ppd, const char *keyword,
                                       const char *param, int num_values,
                                       const float *values);
-
-/**** New in CUPS 1.1.20 ****/
-extern void            ppdSetConformance(ppd_conform_t c);
-
-/**** New in CUPS 1.2 ****/
 extern int             ppdSave(ppd_file_t *ppd, FILE *fp);
 extern int             ppdSaveFd(ppd_file_t *ppd, int fd);
 extern int             ppdSaveFile(ppd_file_t *ppd, const char *filename);
@@ -433,5 +435,5 @@ extern int          ppdSaveFile(ppd_file_t *ppd, const char *filename);
 #endif /* !_CUPS_PPD_H_ */
 
 /*
- * End of "$Id: ppd.h,v 1.24.2.21 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
index c34c1311113dbdc51823dc0dc1a2ba91144be173..49eb911248c298f4d7948cc3475dedf21c9e76d9 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: snprintf.c,v 1.4.2.10 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   snprintf functions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -45,9 +45,9 @@
 
 int                                    /* O - Number of bytes formatted */
 cups_vsnprintf(char       *buffer,     /* O - Output buffer */
-              size_t     bufsize,      /* O - Size of output buffer */
-             const char *format,       /* I - printf-style format string */
-             va_list    ap)            /* I - Pointer to additional arguments */
+               size_t     bufsize,     /* O - Size of output buffer */
+              const char *format,      /* I - printf-style format string */
+              va_list    ap)           /* I - Pointer to additional arguments */
 {
   char         *bufptr,                /* Pointer to position in buffer */
                *bufend,                /* Pointer to end of buffer */
@@ -61,6 +61,7 @@ cups_vsnprintf(char       *buffer,    /* O - Output buffer */
                temp[1024];             /* Buffer for formatted numbers */
   char         *s;                     /* Pointer to string */
   int          slen;                   /* Length of string */
+  int          bytes;                  /* Total number of bytes needed */
 
 
  /*
@@ -69,8 +70,9 @@ cups_vsnprintf(char       *buffer,    /* O - Output buffer */
 
   bufptr = buffer;
   bufend = buffer + bufsize - 1;
+  bytes  = 0;
 
-  while (*format && bufptr < bufend)
+  while (*format)
   {
     if (*format == '%')
     {
@@ -88,7 +90,7 @@ cups_vsnprintf(char       *buffer,    /* O - Output buffer */
         sign = 0;
 
       width = 0;
-      while (isdigit(*format & 255))
+      while (isdigit(*format))
         width = width * 10 + *format++ - '0';
 
       if (*format == '.')
@@ -96,7 +98,7 @@ cups_vsnprintf(char       *buffer,    /* O - Output buffer */
         format ++;
        prec = 0;
 
-       while (isdigit(*format & 255))
+       while (isdigit(*format))
           prec = prec * 10 + *format++ - '0';
       }
       else
@@ -131,16 +133,21 @@ cups_vsnprintf(char       *buffer,        /* O - Output buffer */
 
            sprintf(temp, tformat, va_arg(ap, double));
 
-           if ((bufptr + strlen(temp)) > bufend)
-           {
-             strncpy(bufptr, temp, bufend - bufptr);
-             bufptr = bufend;
-             break;
-           }
-           else
+            bytes += strlen(temp);
+
+            if (bufptr)
            {
-             strcpy(bufptr, temp);
-             bufptr += strlen(temp);
+             if ((bufptr + strlen(temp)) > bufend)
+             {
+               strncpy(bufptr, temp, bufend - bufptr);
+               bufptr = bufend;
+               break;
+             }
+             else
+             {
+               strcpy(bufptr, temp);
+               bufptr += strlen(temp);
+             }
            }
            break;
 
@@ -161,16 +168,21 @@ cups_vsnprintf(char       *buffer,        /* O - Output buffer */
 
            sprintf(temp, tformat, va_arg(ap, int));
 
-           if ((bufptr + strlen(temp)) > bufend)
-           {
-             strncpy(bufptr, temp, bufend - bufptr);
-             bufptr = bufend;
-             break;
-           }
-           else
+            bytes += strlen(temp);
+
+           if (bufptr)
            {
-             strcpy(bufptr, temp);
-             bufptr += strlen(temp);
+             if ((bufptr + strlen(temp)) > bufend)
+             {
+               strncpy(bufptr, temp, bufend - bufptr);
+               bufptr = bufend;
+               break;
+             }
+             else
+             {
+               strcpy(bufptr, temp);
+               bufptr += strlen(temp);
+             }
            }
            break;
            
@@ -184,29 +196,39 @@ cups_vsnprintf(char       *buffer,        /* O - Output buffer */
 
            sprintf(temp, tformat, va_arg(ap, void *));
 
-           if ((bufptr + strlen(temp)) > bufend)
-           {
-             strncpy(bufptr, temp, bufend - bufptr);
-             bufptr = bufend;
-             break;
-           }
-           else
+            bytes += strlen(temp);
+
+           if (bufptr)
            {
-             strcpy(bufptr, temp);
-             bufptr += strlen(temp);
+             if ((bufptr + strlen(temp)) > bufend)
+             {
+               strncpy(bufptr, temp, bufend - bufptr);
+               bufptr = bufend;
+               break;
+             }
+             else
+             {
+               strcpy(bufptr, temp);
+               bufptr += strlen(temp);
+             }
            }
            break;
 
         case 'c' : /* Character or character array */
-           if (width <= 1)
-             *bufptr++ = va_arg(ap, int);
-           else
-           {
-             if ((bufptr + width) > bufend)
-               width = bufend - bufptr;
+           bytes += width;
 
-             memcpy(bufptr, va_arg(ap, char *), width);
-             bufptr += width;
+           if (bufptr)
+           {
+             if (width <= 1)
+               *bufptr++ = va_arg(ap, int);
+             else
+             {
+               if ((bufptr + width) > bufend)
+                 width = bufend - bufptr;
+
+               memcpy(bufptr, va_arg(ap, char *), width);
+               bufptr += width;
+             }
            }
            break;
 
@@ -218,24 +240,29 @@ cups_vsnprintf(char       *buffer,        /* O - Output buffer */
            if (slen > width && prec != width)
              width = slen;
 
-           if ((bufptr + width) > bufend)
-             width = bufend - bufptr;
+            bytes += width;
 
-            if (slen > width)
-             slen = width;
-
-           if (sign == '-')
-           {
-             strncpy(bufptr, s, slen);
-             memset(bufptr + slen, ' ', width - slen);
-           }
-           else
+           if (bufptr)
            {
-             memset(bufptr, ' ', width - slen);
-             strncpy(bufptr + width - slen, s, slen);
-           }
+             if ((bufptr + width) > bufend)
+               width = bufend - bufptr;
+
+              if (slen > width)
+               slen = width;
+
+             if (sign == '-')
+             {
+               strncpy(bufptr, s, slen);
+               memset(bufptr + slen, ' ', width - slen);
+             }
+             else
+             {
+               memset(bufptr, ' ', width - slen);
+               strncpy(bufptr + width - slen, s, slen);
+             }
 
-           bufptr += width;
+             bufptr += width;
+           }
            break;
 
        case 'n' : /* Output number of chars so far */
@@ -248,30 +275,41 @@ cups_vsnprintf(char       *buffer,        /* O - Output buffer */
 
            sprintf(temp, tformat, va_arg(ap, int));
 
-           if ((bufptr + strlen(temp)) > bufend)
-           {
-             strncpy(bufptr, temp, bufend - bufptr);
-             bufptr = bufend;
-             break;
-           }
-           else
+            bytes += strlen(temp);
+
+           if (bufptr)
            {
-             strcpy(bufptr, temp);
-             bufptr += strlen(temp);
+             if ((bufptr + strlen(temp)) > bufend)
+             {
+               strncpy(bufptr, temp, bufend - bufptr);
+               bufptr = bufend;
+               break;
+             }
+             else
+             {
+               strcpy(bufptr, temp);
+               bufptr += strlen(temp);
+             }
            }
            break;
       }
     }
     else
-      *bufptr++ = *format++;
+    {
+      bytes ++;
+
+      if (bufptr && bufptr < bufend)
+       *bufptr++ = *format++;
+    }
   }
 
  /*
-  * Nul-terminate the string and return the number of characters in it.
+  * Nul-terminate the string and return the number of characters needed.
   */
 
   *bufptr = '\0';
-  return (bufptr - buffer);
+
+  return (bytes);
 }
 #endif /* !HAVE_VSNPRINT */
 
@@ -283,9 +321,9 @@ cups_vsnprintf(char       *buffer,  /* O - Output buffer */
 
 int                                    /* O - Number of bytes formatted */
 cups_snprintf(char       *buffer,      /* O - Output buffer */
-             size_t     bufsize,       /* O - Size of output buffer */
-             const char *format,       /* I - printf-style format string */
-            ...)                       /* I - Additional arguments as needed */
+              size_t     bufsize,      /* O - Size of output buffer */
+              const char *format,      /* I - printf-style format string */
+             ...)                      /* I - Additional arguments as needed */
 {
   int          bytes;                  /* Number of bytes formatted */
   va_list      ap;                     /* Pointer to additional arguments */
@@ -301,6 +339,6 @@ cups_snprintf(char       *buffer,   /* O - Output buffer */
 
 
 /*
- * End of "$Id: snprintf.c,v 1.4.2.10 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
 
index c3f84b53cf2d22cea2e6571737f82f008803a56f..33dc2836fff851a8b67d7095fb6d87fe5a1474fc 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: string.c,v 1.5.2.11 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   String functions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -59,8 +59,8 @@ cups_strcpy(char       *dst,          /* I - Destination string */
  * 'cups_strdup()' - Duplicate a string.
  */
 
-#  ifndef HAVE_STRDUP
-char *                         /* O - New string pointer */
+#ifndef HAVE_STRDUP
+char   *                       /* O - New string pointer */
 cups_strdup(const char *s)     /* I - String to duplicate */
 {
   char *t;                     /* New string pointer */
@@ -74,17 +74,17 @@ cups_strdup(const char *s)  /* I - String to duplicate */
 
   return (strcpy(t, s));
 }
-#  endif /* !HAVE_STRDUP */
+#endif /* !HAVE_STRDUP */
 
 
 /*
  * 'cups_strcasecmp()' - Do a case-insensitive comparison.
  */
 
-#  ifndef HAVE_STRCASECMP
+#ifndef HAVE_STRCASECMP
 int                            /* O - Result of comparison (-1, 0, or 1) */
 cups_strcasecmp(const char *s, /* I - First string */
-               const char *t)  /* I - Second string */
+                const char *t) /* I - Second string */
 {
   while (*s != '\0' && *t != '\0')
   {
@@ -104,17 +104,17 @@ cups_strcasecmp(const char *s,    /* I - First string */
   else
     return (-1);
 }
-#  endif /* !HAVE_STRCASECMP */
+#endif /* !HAVE_STRCASECMP */
 
 /*
  * 'cups_strncasecmp()' - Do a case-insensitive comparison on up to N chars.
  */
 
-#  ifndef HAVE_STRNCASECMP
+#ifndef HAVE_STRNCASECMP
 int                            /* O - Result of comparison (-1, 0, or 1) */
 cups_strncasecmp(const char *s,        /* I - First string */
-                const char *t, /* I - Second string */
-               size_t     n)   /* I - Maximum number of characters to compare */
+                 const char *t,        /* I - Second string */
+                size_t     n)  /* I - Maximum number of characters to compare */
 {
   while (*s != '\0' && *t != '\0' && n > 0)
   {
@@ -222,5 +222,5 @@ cups_strlcpy(char       *dst,       /* O - Destination string */
 
 
 /*
- * End of "$Id: string.c,v 1.5.2.11 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
index b98e5c107793a783200ead0eb5ba0673681fd99e..b8ca71e99e0081f0eda4d700440bc01ed2aa9c4e 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: string.h,v 1.7.2.13 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   String definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -31,7 +31,7 @@
  * Include necessary headers...
  */
 
-#  include "config.h"
+#  include <config.h>
 
 #  include <stdio.h>
 #  include <stdarg.h>
@@ -126,5 +126,5 @@ extern int  cups_vsnprintf(char *, size_t, const char *, va_list);
 #endif /* !_CUPS_STRING_H_ */
 
 /*
- * End of "$Id: string.h,v 1.7.2.13 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
index 17a3f37576e524cc3d81acb7634833b063385bad..65d1b63994b3573c232f85e90a99a061244b5423 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: common.h,v 1.6.2.7 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   Common filter definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
 #include <cups/string.h>
 
 
+/*
+ * C++ magic...
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
 /*
  * Globals...
  */
@@ -70,5 +79,14 @@ extern void  WriteLabels(int orient);
 
 
 /*
- * End of "$Id: common.h,v 1.6.2.7 2004/06/29 13:15:09 mike Exp $".
+ * C++ magic...
+ */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
+/*
+ * End of "$Id$".
  */
index 0bf18c9e1f4dc9de68b43b4148db56287f757358..52dd8c2b9d0c647facec70bf9538ed5d87266196 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: raster.c,v 1.2.2.12 2004/12/23 05:37:35 mike Exp $"
+ * "$Id$"
  *
  *   Raster file routines for the Common UNIX Printing System (CUPS).
  *
@@ -25,8 +25,8 @@
  *
  *   This code and any derivative of it may be used and distributed
  *   freely under the terms of the GNU General Public License when
- *   used with GNU Ghostscript or its derivatives.  Use of the code
- *   (or any derivative of it) with software other than GNU
+ *   used with GNU/GPL Ghostscript or its derivatives.  Use of the
+ *   code (or any derivative of it) with software other than GNU/GPL
  *   GhostScript (or its derivatives) is governed by the CUPS license
  *   agreement.
  *
@@ -875,5 +875,5 @@ cups_write(int        fd,                   /* I - File descriptor */
 
 
 /*
- * End of "$Id: raster.c,v 1.2.2.12 2004/12/23 05:37:35 mike Exp $".
+ * End of "$Id$".
  */
index df54e054d91cb64d59d38d73636da5859a5f09a7..b8a60b36de64a5ec010a637023f33563cf1f7bcc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: raster.h,v 1.2.2.12 2004/12/23 05:37:35 mike Exp $"
+ * "$Id$"
  *
  *   Raster file definitions for the Common UNIX Printing System (CUPS).
  *
@@ -25,8 +25,8 @@
  *
  *   This code and any derivative of it may be used and distributed
  *   freely under the terms of the GNU General Public License when
- *   used with GNU Ghostscript or its derivatives.  Use of the code
- *   (or any derivative of it) with software other than GNU
+ *   used with GNU/GPL Ghostscript or its derivatives.  Use of the
+ *   code (or any derivative of it) with software other than GNU/GPL
  *   GhostScript (or its derivatives) is governed by the CUPS license
  *   agreement.
  *
@@ -49,7 +49,7 @@ extern "C" {
 /*
  * Every non-PostScript printer driver that supports raster images
  * should use the application/vnd.cups-raster image file format.
- * Since both the PostScript RIP (pstoraster, based on GNU
+ * Since both the PostScript RIP (pstoraster, based on GNU/GPL
  * Ghostscript) and Image RIP (imagetoraster, located in the filter
  * directory) use it, using this format saves you a lot of work.
  * Also, the PostScript RIP passes any printer options that are in
@@ -345,5 +345,5 @@ extern unsigned             cupsRasterWritePixels(cups_raster_t *r,
 #endif /* !_CUPS_RASTER_H_ */
 
 /*
- * End of "$Id: raster.h,v 1.2.2.12 2004/12/23 05:37:35 mike Exp $".
+ * End of "$Id$".
  */
index b9f3255b8a35e2a57ba4fb2a4d114a0734846fd2..32263536f9fefdb25d2e7aa032f8c32e61ead8c5 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * "$Id: rastertohp.c,v 1.15.2.8 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   Hewlett-Packard Page Control Language filter for the Common UNIX
  *   Printing System (CUPS).
  *
- *   Copyright 1993-2004 by Easy Software Products.
+ *   Copyright 1993-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -16,7 +16,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -124,6 +124,54 @@ StartPage(ppd_file_t         *ppd, /* I - PPD file */
   signal(SIGTERM, CancelJob);
 #endif /* HAVE_SIGSET */
 
+ /*
+  * Show page device dictionary...
+  */
+
+  fprintf(stderr, "DEBUG: StartPage...\n");
+  fprintf(stderr, "DEBUG: MediaClass = \"%s\"\n", header->MediaClass);
+  fprintf(stderr, "DEBUG: MediaColor = \"%s\"\n", header->MediaColor);
+  fprintf(stderr, "DEBUG: MediaType = \"%s\"\n", header->MediaType);
+  fprintf(stderr, "DEBUG: OutputType = \"%s\"\n", header->OutputType);
+
+  fprintf(stderr, "DEBUG: AdvanceDistance = %d\n", header->AdvanceDistance);
+  fprintf(stderr, "DEBUG: AdvanceMedia = %d\n", header->AdvanceMedia);
+  fprintf(stderr, "DEBUG: Collate = %d\n", header->Collate);
+  fprintf(stderr, "DEBUG: CutMedia = %d\n", header->CutMedia);
+  fprintf(stderr, "DEBUG: Duplex = %d\n", header->Duplex);
+  fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0],
+          header->HWResolution[1]);
+  fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n",
+          header->ImagingBoundingBox[0], header->ImagingBoundingBox[1],
+          header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]);
+  fprintf(stderr, "DEBUG: InsertSheet = %d\n", header->InsertSheet);
+  fprintf(stderr, "DEBUG: Jog = %d\n", header->Jog);
+  fprintf(stderr, "DEBUG: LeadingEdge = %d\n", header->LeadingEdge);
+  fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0],
+          header->Margins[1]);
+  fprintf(stderr, "DEBUG: ManualFeed = %d\n", header->ManualFeed);
+  fprintf(stderr, "DEBUG: MediaPosition = %d\n", header->MediaPosition);
+  fprintf(stderr, "DEBUG: MediaWeight = %d\n", header->MediaWeight);
+  fprintf(stderr, "DEBUG: MirrorPrint = %d\n", header->MirrorPrint);
+  fprintf(stderr, "DEBUG: NegativePrint = %d\n", header->NegativePrint);
+  fprintf(stderr, "DEBUG: NumCopies = %d\n", header->NumCopies);
+  fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation);
+  fprintf(stderr, "DEBUG: OutputFaceUp = %d\n", header->OutputFaceUp);
+  fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0],
+          header->PageSize[1]);
+  fprintf(stderr, "DEBUG: Separations = %d\n", header->Separations);
+  fprintf(stderr, "DEBUG: TraySwitch = %d\n", header->TraySwitch);
+  fprintf(stderr, "DEBUG: Tumble = %d\n", header->Tumble);
+  fprintf(stderr, "DEBUG: cupsWidth = %d\n", header->cupsWidth);
+  fprintf(stderr, "DEBUG: cupsHeight = %d\n", header->cupsHeight);
+  fprintf(stderr, "DEBUG: cupsMediaType = %d\n", header->cupsMediaType);
+  fprintf(stderr, "DEBUG: cupsBitsPerColor = %d\n", header->cupsBitsPerColor);
+  fprintf(stderr, "DEBUG: cupsBitsPerPixel = %d\n", header->cupsBitsPerPixel);
+  fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine);
+  fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", header->cupsColorOrder);
+  fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", header->cupsColorSpace);
+  fprintf(stderr, "DEBUG: cupsCompression = %d\n", header->cupsCompression);
+
  /*
   * Setup printer/job attributes...
   */
@@ -131,10 +179,26 @@ StartPage(ppd_file_t         *ppd,        /* I - PPD file */
   Duplex    = header->Duplex;
   ColorBits = header->cupsBitsPerColor;
 
-  if (!Duplex || (Page & 1))
+  if ((!Duplex || (Page & 1)) && header->MediaPosition)
+    printf("\033&l%dH",                                /* Set media position */
+           header->MediaPosition);
+
+  if (Duplex && ppd && ppd->model_number == 2)
+  {
+   /*
+    * Handle duplexing on new DeskJet printers...
+    */
+
+    printf("\033&l-2H");                       /* Load media */
+
+    if (Page & 1)
+      printf("\033&l2S");                      /* Set duplex mode */
+  }
+
+  if (!Duplex || (Page & 1) || (ppd && ppd->model_number == 2))
   {
    /*
-    * Set the media type, position, and size...
+    * Set the media size...
     */
 
     printf("\033&l6D\033&k12H");               /* Set 6 LPI, 10 CPI */
@@ -190,35 +254,37 @@ StartPage(ppd_file_t         *ppd,        /* I - PPD file */
     printf("\033&l%dP",                                /* Set page length */
            header->PageSize[1] / 12);
     printf("\033&l0E");                                /* Set top margin to 0 */
+  }
 
-    printf("\033&l%dX", header->NumCopies);    /* Set number copies */
+  if (!Duplex || (Page & 1))
+  {
+   /*
+    * Set other job options...
+    */
 
-    if (header->MediaPosition)
-      printf("\033&l%dH",                      /* Set media position */
-             header->MediaPosition);
+    printf("\033&l%dX", header->NumCopies);    /* Set number copies */
 
-    if (header->cupsMediaType)
+    if (header->cupsMediaType &&
+        (!ppd || ppd->model_number != 2 || header->HWResolution[0] == 600))
       printf("\033&l%dM",                      /* Set media type */
              header->cupsMediaType);
 
-    if (header->Duplex)
-      printf("\033&l%dS",                      /* Set duplex mode */
-             header->Duplex + header->Tumble);
-
-    printf("\033&l0L");                                /* Turn off perforation skip */
+    if (!ppd || ppd->model_number != 2)
+    {
+      if (header->Duplex)
+       printf("\033&l%dS",                     /* Set duplex mode */
+               header->Duplex + header->Tumble);
 
-    if (ppd && ppd->model_number == 2)
-      printf("\033&l-2H");                     /* Load media */
+      printf("\033&l0L");                      /* Turn off perforation skip */
+    }
   }
-  else
+  else if (!ppd || ppd->model_number != 2)
     printf("\033&a2G");                                /* Set back side */
 
  /*
   * Set graphics mode...
   */
 
-  printf("\033*t%dR", header->HWResolution[0]);        /* Set resolution */
-
   if (ppd->model_number == 2)
   {
    /*
@@ -230,6 +296,15 @@ StartPage(ppd_file_t         *ppd, /* I - PPD file */
     else
       NumPlanes = 1;
 
+   /*
+    * Set the resolution and top-of-form...
+    */
+
+    printf("\033&u%dD", header->HWResolution[0]);
+                                               /* Resolution */
+    printf("\033&l0e0L");                      /* Reset top and don't skip */
+    printf("\033*p0Y\033*p0X");                        /* Set top of form */
+
    /*
     * Send 26-byte configure image data command with horizontal and
     * vertical resolutions as well as a color count...
@@ -266,9 +341,14 @@ StartPage(ppd_file_t         *ppd, /* I - PPD file */
     putchar(header->HWResolution[1]);
     putchar(0);
     putchar(1 << ColorBits);                   /* # of yellow levels */
+
+    printf("\033&l0H");                                /* Set media position */
   }
   else
   {
+    printf("\033*t%dR", header->HWResolution[0]);
+                                               /* Set resolution */
+
     if (header->cupsColorSpace == CUPS_CSPACE_KCMY)
     {
       NumPlanes = 4;
@@ -281,22 +361,22 @@ StartPage(ppd_file_t         *ppd,        /* I - PPD file */
     }
     else
       NumPlanes = 1;                           /* Black&white graphics */
-  }
 
- /*
-  * Set size and position of graphics...
-  */
  /*
+    * Set size and position of graphics...
+    */
 
-  printf("\033*r%dS", header->cupsWidth);      /* Set width */
-  printf("\033*r%dT", header->cupsHeight);     /* Set height */
+    printf("\033*r%dS", header->cupsWidth);    /* Set width */
+    printf("\033*r%dT", header->cupsHeight);   /* Set height */
 
-  printf("\033&a0H");                          /* Set horizontal position */
+    printf("\033&a0H");                                /* Set horizontal position */
 
-  if (ppd)
-    printf("\033&a%.0fV",                      /* Set vertical position */
-           10.0 * (ppd->sizes[0].length - ppd->sizes[0].top));
-  else
-    printf("\033&a0V");                                /* Set top-of-page */
+    if (ppd)
+      printf("\033&a%.0fV",                    /* Set vertical position */
+             10.0 * (ppd->sizes[0].length - ppd->sizes[0].top));
+    else
+      printf("\033&a0V");                      /* Set top-of-page */
+  }
 
   printf("\033*r1A");                          /* Start graphics */
 
@@ -658,7 +738,7 @@ int                 /* O - Exit status */
 main(int  argc,                /* I - Number of command-line arguments */
      char *argv[])     /* I - Command-line arguments */
 {
-  int                  fd;     /* Raster data file */
+  int                  fd;     /* File descriptor */
   cups_raster_t                *ras;   /* Raster stream for printing */
   cups_page_header_t   header; /* Page header from file */
   int                  y;      /* Current line */
@@ -692,7 +772,7 @@ main(int  argc,             /* I - Number of command-line arguments */
 
   if (argc == 7)
   {
-    if ((fd = open(argv[6], O_RDONLY)) < 0)
+    if ((fd = open(argv[6], O_RDONLY)) == -1)
     {
       perror("ERROR: Unable to open raster file - ");
       sleep(1);
@@ -787,7 +867,7 @@ main(int  argc,             /* I - Number of command-line arguments */
   */
 
   cupsRasterClose(ras);
-  if (fd)
+  if (fd != 0)
     close(fd);
 
  /*
@@ -804,5 +884,5 @@ main(int  argc,             /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: rastertohp.c,v 1.15.2.8 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
diff --git a/filter/testimage.c b/filter/testimage.c
new file mode 100644 (file)
index 0000000..a3443f3
--- /dev/null
@@ -0,0 +1,101 @@
+/*
+ * "$Id: testimage.c 4485 2005-01-03 19:30:00Z mike $"
+ *
+ *   Image library test program for the Common UNIX Printing System (CUPS).
+ *
+ *   Copyright 1993-2005 by Easy Software Products.
+ *
+ *   These coded instructions, statements, and computer programs are the
+ *   property of Easy Software Products and are protected by Federal
+ *   copyright law.  Distribution and use rights are outlined in the file
+ *   "LICENSE.txt" which should have been included with this file.  If this
+ *   file is missing or damaged please contact Easy Software Products
+ *   at:
+ *
+ *       Attn: CUPS Licensing Information
+ *       Easy Software Products
+ *       44141 Airport View Drive, Suite 204
+ *       Hollywood, Maryland 20636 USA
+ *
+ *       Voice: (301) 373-9600
+ *       EMail: cups-info@cups.org
+ *         WWW: http://www.cups.org
+ *
+ *   This file is subject to the Apple OS-Developed Software exception.
+ *
+ * Contents:
+ *
+ *   main() - Main entry...
+ */
+
+/*
+ * Include necessary headers...
+ */
+
+#include "image.h"
+
+
+/*
+ * 'main()' - Main entry...
+ */
+
+int                            /* O - Exit status */
+main(int  argc,                        /* I - Number of command-line arguments */
+     char *argv[])             /* I - Command-line arguments */
+{
+  image_t      *img;           /* Image to print */
+  int          primary;        /* Primary image colorspace */
+  FILE         *out;           /* Output PPM/PGM file */
+  ib_t         *line;          /* Line from file */
+  int          y;              /* Current line */
+
+
+  if (argc != 3)
+  {
+    puts("Usage: testimage filename.ext filename.[ppm|pgm]");
+    return (1);
+  }
+
+  if (strstr(argv[2], ".ppm") != NULL)
+    primary = IMAGE_RGB;
+  else
+    primary = IMAGE_WHITE;
+
+  img = ImageOpen(argv[1], primary, IMAGE_WHITE, 100, 0, NULL);
+
+  if (!img)
+  {
+    perror(argv[1]);
+    return (1);
+  }
+
+  out = fopen(argv[2], "wb");
+
+  if (!out)
+  {
+    perror(argv[2]);
+    ImageClose(img);
+    return (1);
+  }
+
+  line = calloc(img->xsize, img->colorspace);
+
+  fprintf(out, "P%d\n%d\n%d\n255\n", img->colorspace == IMAGE_WHITE ? 5 : 6,
+          img->xsize, img->ysize);
+
+  for (y = 0; y < img->ysize; y ++)
+  {
+    ImageGetRow(img, 0, y, img->xsize, line);
+    fwrite(line, img->xsize, img->colorspace, out);
+  }
+
+  ImageClose(img);
+  fclose(out);
+
+  return (0);
+}
+
+
+/*
+ * End of "$Id: testimage.c 4485 2005-01-03 19:30:00Z mike $".
+ */
index 353f3637c4cb7cd3980b4d8341d1fefe6b377e16..05622b3ab556ef9cc4b01ec72476cb22ea354a0b 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: textcommon.h,v 1.6.2.6 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   Common text filter definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
 #include "common.h"
 
 
+/*
+ * C++ magic...
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
 /*
  * Constants...
  */
@@ -100,5 +109,14 @@ extern void        WriteProlog(const char *title, const char *user,
 
 
 /*
- * End of "$Id: textcommon.h,v 1.6.2.6 2004/06/29 13:15:09 mike Exp $".
+ * C++ magic...
+ */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
+/*
+ * End of "$Id$".
  */
index 81bdb79331e85b4540621225a3b7d7ad8ea57cc4..473ce9b29f36dfa99e0ba583f09eb05227070e3d 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: texttops.c,v 1.34.2.14 2004/06/29 13:15:09 mike Exp $"
+ * "$Id$"
  *
  *   Text to PostScript filter for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1993-2004 by Easy Software Products.
+ *   Copyright 1993-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -699,7 +699,9 @@ WriteProlog(const char *title,              /* I - Title of job */
     else
       j = 0;
 
-    if (ppd != NULL && j >= ppd->num_fonts)
+    if ((ppd != NULL && j >= ppd->num_fonts) ||
+        strncmp(fonts[i], "Courier", 7) == 0 ||
+       strcmp(fonts[i], "Symbol") == 0)
     {
      /*
       * Need to embed this font...
@@ -728,7 +730,9 @@ WriteProlog(const char *title,              /* I - Title of job */
     else
       j = 0;
 
-    if (ppd != NULL && j >= ppd->num_fonts)
+    if ((ppd != NULL && j >= ppd->num_fonts) ||
+        strncmp(fonts[i], "Courier", 7) == 0 ||
+       strcmp(fonts[i], "Symbol") == 0)
     {
      /*
       * Need to embed this font...
@@ -736,6 +740,8 @@ WriteProlog(const char *title,              /* I - Title of job */
 
       printf("%%%%BeginResource: font %s\n", fonts[i]);
 
+      /**** MRS: Need to use CUPS_FONTPATH env var! ****/
+      /**** Also look for Fontmap file or name.pfa, name.pfb... ****/
       snprintf(filename, sizeof(filename), "%s/fonts/%s", datadir, fonts[i]);
       if ((fp = fopen(filename, "rb")) != NULL)
       {
@@ -763,6 +769,8 @@ WriteProlog(const char *title,              /* I - Title of job */
     {
       if (Glyphs[Codes[i * 256 + ch]])
        printf("/%s", Glyphs[Codes[i * 256 + ch]]);
+      else if (Codes[i * 256 + ch] > 255)
+        printf("/uni%04X", Codes[i * 256 + ch]);
       else
        printf("/.notdef");
 
@@ -1299,5 +1307,5 @@ write_text(const char *s) /* I - String to write */
 
 
 /*
- * End of "$Id: texttops.c,v 1.34.2.14 2004/06/29 13:15:09 mike Exp $".
+ * End of "$Id$".
  */
index b28917fd3aa731bdb7ffb58d9cfe72350830d5c9..08348e6270a80af43c05e1ca0a28e866cc960dc8 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: accept.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   accept/reject man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -54,7 +54,7 @@ cancel(1), disable(8), enable(8), lp(1), lpadmin(8), lpstat(1),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: accept.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 446596d755bdb6d4915701bb96e014619ce9e4cb..3361e1984b40aa4561bf6e8d2d329308ed78d9bd 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: backend.man,v 1.6.2.6 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   backend man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH backend 1 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
+.TH backend 1 "Common UNIX Printing System" "8 October 2004" "Easy Software Products"
 .SH NAME
 backend \- cups backend transmission interfaces
 .SH SYNOPSIS
@@ -37,7 +37,11 @@ Backends must be capable of reading from a filename on the command-line
 or from the standard input, copying the standard input to a temporary file
 if required by the physical interface.
 .LP
-The command name (argv[0]) is set to the device URI of the destination printer.
+The command name (argv[0]) is set to the device URI of the
+destination printer. Starting with CUPS 1.1.22, any
+authentication information in argv[0] will be removed, so
+backend developers are urged to use the DEVICE_URI environment
+variable whenever authentication information is required.
 .SH ENVIRONMENT VARIABLES
 The following environment variables are defined by the CUPS server when
 executing the backend:
@@ -66,8 +70,10 @@ The root directory of the server.
 .TP 5
 DEVICE_URI
 .br
-The device-uri associated with the printer; this is provided for shell
-scripts which may not be able to get the passed argv[0] string.
+The device-uri associated with the printer; this is provided for
+shell scripts which may not be able to get the passed argv[0]
+string and for backends that require any authentication
+information which is not included in argv[0].
 .TP 5
 LANG
 .br
@@ -110,7 +116,7 @@ CUPS Software Administrators Manual,
 CUPS Software Programmers Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: backend.man,v 1.6.2.6 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 7be51d353fde78ed70df542751c5eb8b5faae6d6..efb78a02aa8e4249ea52815850d61c31b12da688 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: classes.conf.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   classes.conf man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -66,7 +66,7 @@ cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: classes.conf.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index f5aa267f2bce55140e2bda4c59bc276e9d90f0c6..f53b971707ef2530f82557df4dc1b40a45131256 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cups-config.man,v 1.1.2.6 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cups-config man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH cups-config 1 "Common UNIX Printing System" "25 October 2001" "Easy Software Products"
+.TH cups-config 1 "Common UNIX Printing System" "27 May 2004" "Easy Software Products"
 .SH NAME
 cups-config \- get cups api, compiler, directory, and link information.
 .SH SYNOPSIS
@@ -89,7 +89,7 @@ CUPS installation (major.minor.patch).
 CUPS Software Programmers Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cups-config.man,v 1.1.2.6 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 2c28006b26b150d54c7d957180f26956a974574c..184720a9b523060703139111d166bb4dfcd516ed 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cups-lpd.man,v 1.5.2.6 2004/08/11 13:49:01 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cups-lpd man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -119,7 +119,7 @@ cupsd(8), inetd(8), xinetd(8),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cups-lpd.man,v 1.5.2.6 2004/08/11 13:49:01 mike Exp $".
+.\" End of "$Id$".
 .\"
index 7a9925d3bceb371b0c62e86de762f9728215d889..74097ed42190df0a5e27a416e3ff91338d983ca3 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cups-polld.man,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cups-polld man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -40,7 +40,7 @@ cupsd.conf(5),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cups-polld.man,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index f9a4c51ed1b9ac9c2a7e70fb8caf6ee58013b26b..fc9301bee9ea55240cd601c9f86455b30e05a01f 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cupsaddsmb.man,v 1.2.2.7 2004/08/19 21:02:55 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cupsaddsmb man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -179,7 +179,7 @@ and copy the files exactly as named below:
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cupsaddsmb.man,v 1.2.2.7 2004/08/19 21:02:55 mike Exp $".
+.\" End of "$Id$".
 .\"
index 3a0c4658c8285e149d1d5efdb599f4cab4ab4916..7a602b0772ba6fc4200d5c580d2f28a324f8dfc7 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cupsd.conf.man,v 1.5.2.6 2004/08/19 12:46:28 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cupsd.conf man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -48,6 +48,10 @@ AuthClass
 .br
 Specifies the authentication class (User, Group, System)
 .TP 5
+AuthGroupName
+.br
+Specifies the authentication group.
+.TP 5
 AuthType
 .br
 Specifies the authentication type (None, Basic, Digest)
@@ -152,6 +156,19 @@ ErrorLog
 .br
 Specifies the error log filename.
 .TP 5
+FaxRetryInterval
+.br
+Specifies the interval between retries of fax jobs in seconds.
+.TP 5
+FaxRetryLimit
+.br
+Specifies the number of retries that are done for fax jobs.
+.TP 5
+FileDevice
+.br
+Specifies whether the file pseudo-device can be used for new
+printer queues.
+.TP 5
 FilterLimit
 .br
 Specifies the maximum cost of filters that are run concurrently.
@@ -189,6 +206,10 @@ ImplicitClasses
 Specifies whether or not to create implicit classes from identical
 remote printers.
 .TP 5
+Include
+.br
+Includes the named file.
+.TP 5
 KeepAlive
 .br
 Specifies whether or not to support HTTP Keep-Alive.
@@ -207,6 +228,10 @@ LimitRequestBody
 .br
 Specifies the maximum size of any print job request.
 .TP 5
+Listen
+.br
+Listens to the specified address and port.
+.TP 5
 <Location /path> ... </Location>
 .br
 Specifies access control for the named location.
@@ -223,6 +248,11 @@ MaxClients
 .br
 Specifies the maximum number of simultaneous clients to support.
 .TP 5
+MaxClientsPerHost
+.br
+Specifies the maximum number of simultaneous clients to support from a
+single address.
+.TP 5
 MaxCopies
 .br
 Specifies the maximum number of copies that a user can print of each job.
@@ -274,6 +304,10 @@ Printcap
 Specifies the filename for a printcap file that is updated automatically
 with a list of available printers (needed for legacy applications)
 .TP 5
+PrintcapFormat
+.br
+Specifies the format of the printcap file.
+.TP 5
 PrintcapGUI
 .br
 Specifies whether to generate option panel definition files on some
@@ -343,6 +377,14 @@ ServerTokens
 Specifies what information is included in the Server header of HTTP
 responses.
 .TP 5
+SSLListen
+.br
+Listens on the specified address and port for encrypted connections.
+.TP 5
+SSLPort
+.br
+Listens on the specified port for encrypted connections.
+.TP 5
 SystemGroup
 .br
 Specifies the group to use for System class authentication.
@@ -363,7 +405,7 @@ classes.conf(5), cupsd(8), mime.convs(5), mime.types(5), printers.conf(5),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cupsd.conf.man,v 1.5.2.6 2004/08/19 12:46:28 mike Exp $".
+.\" End of "$Id$".
 .\"
index 343c3bbbb6bac7ed3717b0fcbe2345090929edf7..7586edfaa8fb2fea3e86b4f35884abfe1bc49c3b 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cupsd.man,v 1.5.2.6 2004/08/02 20:49:11 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cupsd man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -55,7 +55,7 @@ CUPS Interface Design Description,
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cupsd.man,v 1.5.2.6 2004/08/02 20:49:11 mike Exp $".
+.\" End of "$Id$".
 .\"
index 469f9bfe1b79b2a2af28551cf442fdc9fe16e6b6..d3dd12196b00bd2a850f5b8ef51329bed3217b1d 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: cupstestppd.man,v 1.1.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   cupstestppd man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH cupstestppd 1 "Common UNIX Printing System" "14 February 2003" "Easy Software Products"
+.TH cupstestppd 1 "Common UNIX Printing System" "1 August 2003" "Easy Software Products"
 .SH NAME
 cupstestppd \- test conformance of ppd files
 .SH SYNOPSIS
 .B cupstestppd
-[ -q ] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ]
+[ -q ] [-r] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ]
 .br
 .B cupstestppd
-[ -q ] [ -v[v] ] -
+[ -q ] [-r] [ -v[v] ] -
 .SH DESCRIPTION
 \fIcupstestppd\fR tests the conformance of PPD files to the
 Adobe PostScript Printer Description file format specification
@@ -43,6 +43,10 @@ on the standard input.
 .LP
 The \fI-q\fR option specifies that no information should be displayed.
 .LP
+The \fI-r\fR option relaxes the PPD conformance requirements so
+that common whitespace, control character, and formatting
+problems are not treated as hard errors.
+.LP
 The \fI-v\fR option specifies that detailed conformance testing
 results should be displayed rather than the concise PASS/FAIL/ERROR
 status.
@@ -95,7 +99,7 @@ CUPS Software Programmers Manual,
 http://localhost:631/documentation.html,
 Adobe PostScript Printer Description File Format Specification, Version 4.3.
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: cupstestppd.man,v 1.1.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 165438df129e4928563da2560b10a9394707a7be..602c656fb4ac5434c2dd56a161f9f32b0156aca7 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: enable.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   enable/disable man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -60,8 +60,8 @@ accept(8), cancel(1), lp(1), lpadmin(8), lpstat(1), reject(8),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 
 .\"
-.\" End of "$Id: enable.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 3946966ef30358c8b1a4ad4052f8f8731cebd72a..86c97e75cf7a402103d13cc1350d1628e7f3bf8d 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: filter.man,v 1.6.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   filter man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -103,7 +103,8 @@ The timezone of the server.
 .TP 5
 USER
 .br
-The user executing the filter (typically lp).
+The user executing the filter, typically lp; consult the cupsd.conf file for
+the current setting.
 .SH COMPATIBILITY
 While the filter interface is compatible with System V interface
 scripts, it will only work with the System V interface script as the
@@ -116,7 +117,7 @@ CUPS Software Administrators Manual,
 CUPS Software Programmers Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: filter.man,v 1.6.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 6ce5ca65be451379d158c8ccb9324c1d5fe81395..27c29ba6e7d19d8620bd2c858df1b798ce7e1621 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lp.man,v 1.6.2.6 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lp/cancel man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -70,6 +70,8 @@ cancel \- cancel jobs
 .B cancel
 [ \-a ] [ -h
 .I server
+] [ -u 
+.I username
 ] [
 .I id
 ] [
@@ -136,6 +138,10 @@ Do not report the resulting job IDs (silent mode.)
 .br
 Sets the job name.
 .TP 5
+\-u \fIusername\fR
+.br
+Cancels jobs owned by \fIusername\fR.
+.TP 5
 \-H \fIhandling\fR
 .br
 Specifies when the job should be printed. A value of
@@ -143,6 +149,8 @@ Specifies when the job should be printed. A value of
 \fIhold\fR will hold the job indefinitely, and a time value
 (HH:MM) will hold the job until the specified time. Use a value
 of \fIresume\fR with the \fI-i\fR option to resume a held job.
+Use a value of \fIrestart\fR with the \fI-i\fR option to restart
+a completed job.
 .TP 5
 \-P \fIpage-list\fR
 .br
@@ -158,12 +166,16 @@ The "m" option is not functional in CUPS 1.1.
 The "q" option accepts a different range of values than the
 Solaris lp command, matching the IPP job priority values (1-100)
 instead of the Solaris values (0-39).
+.SH NOTES
+Administrators wishing to prevent unauthorized cancellation of
+jobs via the \fI-u\fR option should password-protect the /jobs
+location in \fIcupsd.conf(5)\fR.
 .SH SEE ALSO
 lpstat(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lp.man,v 1.6.2.6 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index aee2ff751fa697452a8e904fd1445f0e0f6829c1..6a7bdf945c4c2404c25b75848f027f601394278d 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpadmin.man,v 1.4.2.7 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpadmin man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH lpadmin 8 "Common UNIX Printing System" "23 January 2001" "Easy Software Products"
+.TH lpadmin 8 "Common UNIX Printing System" "21 October 2002" "Easy Software Products"
 .SH NAME
 lpadmin \- configure cups printers and classes
 .SH SYNOPSIS
@@ -44,8 +44,9 @@ lpadmin \- configure cups printers and classes
 ] \-x
 .I destination
 .SH DESCRIPTION
-\fIlpadmin\fR configures printer and class queues provided by CUPS. It can also
-be used to set the system default printer or class.
+\fIlpadmin\fR configures printer and class queues provided by
+CUPS. It can also be used to set the server default printer or
+class.
 .LP
 When specified before the \fI-d\fR, \fI-p\fR, or \fI-x\fR options,
 the \fI-E\fR option forces encryption when connecting to the server.
@@ -53,7 +54,7 @@ the \fI-E\fR option forces encryption when connecting to the server.
 The first form of the command sets the default printer or class to
 \fIdestination\fR.  Subsequent print jobs submitted via the \fIlp(1)\fR or
 \fIlpr(1)\fR commands will use this destination unless the user specifies
-otherwise.
+otherwise with the \fIlpoptions(1)\fR command.
 .LP
 The second form of the command configures the named printer.  The additional
 options are described below.
@@ -156,7 +157,7 @@ accept(8), cancel(1), disable(8), enable(8), lp(1), lpstat(1), reject(8),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpadmin.man,v 1.4.2.7 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index ecb68c7f78dc9496f3846813a4911e3f916e25bc..a882a67a1f8ec30c6a6f85c9449a9be034f3ef40 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpc.man,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpc man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -74,7 +74,7 @@ lpstat(1), reject(8),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpc.man,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index e579185c0ee245e4cd82e945d2d6c9767dcff618..463461975f0a121e8e3888ce770405b3776246fa 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpinfo.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpinfo man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -54,7 +54,7 @@ lpadmin(8),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpinfo.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 0d785ed7d3c3e2b19894bbdf91db1d7703a6037b..f41cf1d74d900e9a279e29f59b0765cd2f92d06c 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpmove.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpmove man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -47,7 +47,7 @@ cancel(1), lp(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpmove.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index d7fded44357b8f7d45e4eac8f27300965bdd9589..4515a592efe90c8c23b0750264d050b178ddc65e 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpoptions.man,v 1.6.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpoptions man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH lpoptions 1 "Common UNIX Printing System" "5 September 2000" "Easy Software Products"
+.TH lpoptions 1 "Common UNIX Printing System" "21 October 2002" "Easy Software Products"
 .SH NAME
 lpoptions \- display or set printer options and defaults
 .SH SYNOPSIS
@@ -39,14 +39,14 @@ lpoptions \- display or set printer options and defaults
 .B lpoptions
 [ -h
 .I server
-] [ -p
+] [ -E ] [ -p
 .I dest[/instance]
 ] -l
 .br
 .B lpoptions
 [ -h
 .I server
-] [ -o
+] [ -E ] [ -o
 .I option=value
 ] ... [ -o
 .I option=value
@@ -58,13 +58,17 @@ lpoptions \- display or set printer options and defaults
 .B lpoptions
 [ -h
 .I server
-] -x
+] [ -E ] -x
 .I dest[/instance]
 .SH DESCRIPTION
 \fBlpoptions\fR displays or sets printer options and defaults.
 \fBlpoptions\fR shows the default printer options when run with no
 arguments. Other options include:
 .TP 5
+\-E
+.br
+Enables encryption when communicating with the CUPS server.
+.TP 5
 \-d \fIdest[/instance]\fR
 .br
 Sets the default printer to \fIdest\fR. If \fIinstance\fR is supplied then
@@ -102,14 +106,23 @@ options for the named printer are reported on the standard output.
 .LP
 Options set with the \fBlpoptions\fR command are used by the \fBlp(1)\fR
 and \fBlpr(1)\fR commands when submitting jobs.
+.SH ROOT ACCOUNT OPTIONS
+When run by the root user, \fBlpoptions\fR gets and sets default
+options and instances for \fIall users\fR in the
+/etc/cups/lpoptions file.
 .SH COMPATIBILITY
 The \fBlpoptions\fR command is unique to CUPS.
+.SH FILES
+~/.lpoptions - user defaults and instances created by non-root users.
+.br
+/etc/cups/lpoptions - system-wide defaults and instances created by the root
+user.
 .SH SEE ALSO
 cancel(1), lp(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpoptions.man,v 1.6.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 3b77de4c97a42aa6b3a6861049d99cbec37923f9..34942fdfd38fe886395222b20d6e7ea15179a3aa 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lppasswd.man,v 1.1.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpadmin man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -55,7 +55,7 @@ CUPS Software Administrators Manual,
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lppasswd.man,v 1.1.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index bb95915222309d68f43fc1a579873e97e452ff50..3d623f9b4b44db4d30acea39fac110710e4b05af 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpq.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpq man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -51,7 +51,7 @@ cancel(1), lp(1), lpr(1), lprm(1), lpstat(1)
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpq.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 2a2a0c705e7278afe48d154205d7f53b9c4e7288..18e37e79f425e6cca367db051e75e3bc208369df 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpr.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpr man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH lpr 1 "Common UNIX Printing System" "23 January 2001" "Easy Software Products"
+.TH lpr 1 "Common UNIX Printing System" "16 December 2004" "Easy Software Products"
 .SH NAME
 lpr \- print files
 .SH SYNOPSIS
 .B lpr
 [ -E ] [ \-P
 .I destination
+] [ \-U
+.I username
 ] [ \-#
 .I num-copies
 [ \-l ] [ \-o
@@ -69,6 +71,10 @@ Sets the job name.
 .br
 Sets the job name.
 .TP 5
+\-U \fIusername\fR
+.br
+Sets the user name.
+.TP 5
 \-l
 .br
 Specifies that the print file is already formatted for the destination and
@@ -95,7 +101,7 @@ cancel(1), lp(1), lpstat(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpr.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index bbb306334cc1f706a81bc543968fb2980f30b8eb..72e66985e66625e03d1e6c34a253ad9a25819661 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lprm.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lprm man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH lprm 1 "Common UNIX Printing System" "23 January 2001" "Easy Software Products"
+.TH lprm 1 "Common UNIX Printing System" "16 December 2004" "Easy Software Products"
 .SH NAME
 lprm \- cancel print jobs
 .SH SYNOPSIS
 .B lprm
-[ -E ] [ - ] [ -P
+[ -E ] [ -P
 .I destination
-] [
+]  [ - ] [
 .I job ID(s)
 ]
 .SH DESCRIPTION
@@ -48,7 +48,7 @@ cancel(1), lp(1), lpstat(1), lpr(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lprm.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 2d9c11895828b2c11e6243d8fc42be87b2196c7a..b0492669bb8ff53ab55a8b6b929e4567401b922a 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: lpstat.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   lpstat man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
 .\"         WWW: http://www.cups.org
 .\"
-.TH lpstat 1 "Common UNIX Printing System" "23 January 2001" "Easy Software Products"
+.TH lpstat 1 "Common UNIX Printing System" "3 January 2005" "Easy Software Products"
 .SH NAME
 lpstat \- print cups status information
 .SH SYNOPSIS
 .B lpstat
-[ -E ] [ -a [
+[ -E ] [ -h
+.I server
+] [ -l ] [ -W
+.I which-jobs
+] [ -a [
 .I destination(s)
 ] ] [ -c [
 .I class(es)
-] [ -d ] [ -h
-.I server
-] [ -l ] [ -o [
+] [ -d ] [ -o [
 .I destination(s)
 ] ] [ -p [
 .I printer(s)
@@ -95,12 +97,12 @@ Shows the ranking of print jobs.
 Shows a status summary, including the default destination, a
 list of classes and their member printers, and a list of printers and
 their associated devices. This is equivalent to using the "-d", "-c",
-and "-p" options.
+and "-v" options.
 .TP 5
 \-t
 .br
 Shows all status information. This is equivalent to using the "-r",
-"-d", "-c", "-d", "-v", "-a", "-p", and "-o" options.
+"-d", "-c", "-v", "-a", "-p", and "-o" options.
 .TP 5
 \-u [\fIuser(s)\fR]
 .br
@@ -111,12 +113,20 @@ are specified, lists the jobs queued by the current user.
 .br
 Shows the printers and what device they are attached to. If no printers
 are specified then all printers are listed.
+.TP 5
+\-W [\fIwhich-jobs\fR]
+.br
+Specifies which jobs to show, \fIcompleted\fR or
+\fInot-completed\fR (the default). This option \fBmust\fR appear
+before the \fI-o\fR option and/or any printer names, otherwise
+the default (not-completed) value will be used in the request to
+the scheduler.
 .SH COMPATIBILITY
-Unlike the System V printing system, CUPS allows printer names to contain
-any printable character except SPACE and TAB. Also, printer and class names are
-\fBnot\fR case-sensitive.
+Unlike the System V printing system, CUPS allows printer names
+to contain any printable character except SPACE and TAB. Also,
+printer and class names are \fBnot\fR case-sensitive.
 .LP
-The "-h" option is not a standard System V option.
+The "-h" and "-W" options are unique to CUPS.
 .LP
 The Solaris "-f", "-P", and "-S" options are silently ignored.
 .SH SEE ALSO
@@ -124,7 +134,7 @@ cancel(1), lp(1),
 CUPS Software Users Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: lpstat.man,v 1.5.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index bfee4181df2859d9641fefb0c57f1e1e47af4dfa..838d42505ed5c203254f11077f0fb45f8ba63e93 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: mime.convs.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   mime.convs man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -48,7 +48,7 @@ classes.conf(5), cupsd(8), cupsd.conf(5), mime.types(5), printers.conf(5),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: mime.convs.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index 777f234c9dedcec73d0f0df9759a951baf181503..c73f7afadbcefe7319e6e6c22fd8842b8f02992c 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: mime.types.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   mime.types man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -96,7 +96,7 @@ classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), printers.conf(5),
 CUPS Software Administrators Manual,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: mime.types.man,v 1.4.2.5 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index aff7f33bed49d3aa3b5cc8aacd8e8e6bde3f7e9d..2ecde74cdcbefc7b0b6b587f6a072f01e2571a4a 100644 (file)
@@ -1,9 +1,9 @@
 .\"
-.\" "$Id: printers.conf.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $"
+.\" "$Id$"
 .\"
 .\"   printers.conf man page for the Common UNIX Printing System (CUPS).
 .\"
-.\"   Copyright 1997-2004 by Easy Software Products.
+.\"   Copyright 1997-2005 by Easy Software Products.
 .\"
 .\"   These coded instructions, statements, and computer programs are the
 .\"   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 .\"       Attn: CUPS Licensing Information
 .\"       Easy Software Products
 .\"       44141 Airport View Drive, Suite 204
-.\"       Hollywood, Maryland 20636-3142 USA
+.\"       Hollywood, Maryland 20636 USA
 .\"
 .\"       Voice: (301) 373-9600
 .\"       EMail: cups-info@cups.org
@@ -67,7 +67,7 @@ CUPS Software Administrators Manual,
 CUPS Interface Design Description,
 http://localhost:631/documentation.html
 .SH COPYRIGHT
-Copyright 1993-2004 by Easy Software Products, All Rights Reserved.
+Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
 .\"
-.\" End of "$Id: printers.conf.man,v 1.4.2.4 2004/06/29 13:15:10 mike Exp $".
+.\" End of "$Id$".
 .\"
index d4dd7daf774e6e2053ad1f99668392ac5bfb049e..3966408001c0a88db03fc0e789064cb7aaa31198 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile,v 1.8.2.5 2004/06/29 03:46:30 mike Exp $"
+# "$Id$"
 #
 #   PPD file makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1993-2004 by Easy Software Products.
+#   Copyright 1993-2005 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 #       Attn: CUPS Licensing Information
 #       Easy Software Products
 #       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636-3142 USA
+#       Hollywood, Maryland 20636 USA
 #
 #       Voice: (301) 373-9600
 #       EMail: cups-info@cups.org
@@ -30,7 +30,7 @@ include ../Makedefs
 
 FILES  =       deskjet.ppd deskjet2.ppd dymo.ppd epson9.ppd epson24.ppd \
                laserjet.ppd okidata9.ppd okidat24.ppd stcolor.ppd \
-               stcolor2.ppd stphoto.ppd stphoto2.ppd
+               stcolor2.ppd stphoto.ppd stphoto2.ppd zebra.ppd
 
 
 #
@@ -59,5 +59,5 @@ install:
 
 
 #
-# End of "$Id: Makefile,v 1.8.2.5 2004/06/29 03:46:30 mike Exp $".
+# End of "$Id$".
 #
index a3693e65baadb44eac5275d98ed631f260091523..1c24cebe5642da01be7ee73e5d28f89ae7ad8af9 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: deskjet.ppd,v 1.9.2.2 2002/01/02 18:04:55 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample HP DeskJet driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: deskjet.ppd,v 1.9.2.2 2002/01/02 18:04:55 mike Exp $".
+*% End of "$Id$".
 *%
index f915e7bebe1a6dbef0aaa98ea092abccd43a4bae..2fa0dd980efb9e3ff0b8795a8046836a777d3c11 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: deskjet2.ppd,v 1.1.2.3 2002/01/02 18:04:55 mike Exp $"
+*% "$Id$"
 *%
 *%   Second sample HP DeskJet driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *DefaultOption1: False
 *Option1 True/Installed:       ""
 *Option1 False/Not Installed:  ""
-*CloseUI *Option1
+*CloseUI: *Option1
 *CloseGroup: InstallableOptions
 
 *DefaultFont: Courier
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: deskjet2.ppd,v 1.1.2.3 2002/01/02 18:04:55 mike Exp $".
+*% End of "$Id$".
 *%
index 70b82a439834e017f7c35c2dfb39c08b53fb8747..cbfbb27ac76788c9ad2838648a782ec17a67af5e 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: dymo.ppd,v 1.4.2.2 2002/01/02 18:04:55 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample DYMO label printer driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 2001-2002 by Easy Software Products.
+*%   Copyright 2001-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: dymo.ppd,v 1.4.2.2 2002/01/02 18:04:55 mike Exp $".
+*% End of "$Id$".
 *%
index 1163022af1fc685220c86ec45727bf06f0939ce8..b3b4594fb27e968b913d2ad5a288fdb622227817 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: epson24.ppd,v 1.3.2.2 2002/10/15 14:42:37 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON 24-Pin driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: epson24.ppd,v 1.3.2.2 2002/10/15 14:42:37 mike Exp $".
+*% End of "$Id$".
 *%
index 7374c863c944bd0325c03c309dd3b656cf37400b..2a00bb8c6e6420d96e824a4424933e3d404df0cb 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: epson9.ppd,v 1.3.2.2 2002/10/15 14:42:37 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON 9-Pin driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: epson9.ppd,v 1.3.2.2 2002/10/15 14:42:37 mike Exp $".
+*% End of "$Id$".
 *%
index d93a905880d4e57dde6989669749ec7271e27f40..71f87491ae5c05a4ec509d65d2308328ead4f927 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: laserjet.ppd,v 1.7.2.2 2002/01/02 18:04:56 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample HP LaserJet driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *DefaultOption1: False
 *Option1 True/Installed:       ""
 *Option1 False/Not Installed:  ""
-*CloseUI *Option1
+*CloseUI: *Option1
 *CloseGroup: InstallableOptions
 
 *DefaultFont: Courier
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: laserjet.ppd,v 1.7.2.2 2002/01/02 18:04:56 mike Exp $".
+*% End of "$Id$".
 *%
index 25313ba037a30d86c3017e10d6b6d15f097c8080..655e5dfc292d7d3755a1bc7b20c7330f2e42b776 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: okidat24.ppd,v 1.2.2.1 2002/01/02 18:04:56 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample OKIDATA 24-Pin driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: okidat24.ppd,v 1.2.2.1 2002/01/02 18:04:56 mike Exp $".
+*% End of "$Id$".
 *%
index 4dc8eb2ef5a8c64fe30f000ff726471cdcc8f8b2..1d6e499ad68b8e4e29fc54e5965626526ceb5849 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: okidata9.ppd,v 1.2.2.1 2002/01/02 18:04:56 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample OKIDATA 9-Pin driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: okidata9.ppd,v 1.2.2.1 2002/01/02 18:04:56 mike Exp $".
+*% End of "$Id$".
 *%
index d6e66962fd87040c87294b2e483ee632dad0a1ed..31b9b93fa787cf34a14ce112f70220bd24c82a41 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: stcolor.ppd,v 1.6.2.1 2002/01/02 18:04:56 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON Stylus Color driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: stcolor.ppd,v 1.6.2.1 2002/01/02 18:04:56 mike Exp $".
+*% End of "$Id$".
 *%
index bbf8f1fb8eeab3fa16e2740bb0d6308d120fcb89..ea07ab4f57357b7926fdf8fd46b80adfa08855f0 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: stcolor2.ppd,v 1.2.2.1 2002/04/20 19:40:12 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON Stylus Color driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: stcolor2.ppd,v 1.2.2.1 2002/04/20 19:40:12 mike Exp $".
+*% End of "$Id$".
 *%
index 4482b11a8b4d06bfcedc732cb9665790ce593570..f3251d80c9f16e4d4a6551ee0005a143ee357df5 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: stphoto.ppd,v 1.6.2.1 2002/01/02 18:04:56 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON Stylus Photo driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: stphoto.ppd,v 1.6.2.1 2002/01/02 18:04:56 mike Exp $".
+*% End of "$Id$".
 *%
index 64c1b693f5a1e6e9dbcd0d169394f2050a5d3e49..cfb3f272978f3c9caf0bc3b985a664c971667c49 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: stphoto2.ppd,v 1.2.2.1 2002/04/20 19:40:12 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample EPSON Stylus Photo driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 1997-2002 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: stphoto2.ppd,v 1.2.2.1 2002/04/20 19:40:12 mike Exp $".
+*% End of "$Id$".
 *%
index fc0b41e932034033d8e17ddc7bb85ca86dc1f42b..d0d6a49580831413ec4c89a012fab9518fe96b71 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: zebra.ppd,v 1.1.2.2 2004/05/12 19:32:07 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample Zebra label printer driver PPD file for the Common UNIX Printing
 *%   System (CUPS).
 *%
-*%   Copyright 2001-2003 by Easy Software Products.
+*%   Copyright 2001-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: zebra.ppd,v 1.1.2.2 2004/05/12 19:32:07 mike Exp $".
+*% End of "$Id$".
 *%
index 1dc193c1bce59aa931acaa2fe5e3868c7bccaf2c..40d98db692f2d90d952025df5b1699b84cdbf8be 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: cups.mak,v 1.1.2.4 2003/07/20 22:54:43 mike Exp $"
+# "$Id$"
 #
 # CUPS driver makefile for Ghostscript.
 #
-# Copyright 2001-2003 by Easy Software Products.
+# Copyright 2001-2005 by Easy Software Products.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -40,7 +40,7 @@ install:      install-cups
 install-cups:
        -mkdir -p $(CUPSSERVER)/filter
        $(INSTALL_PROGRAM) pstoraster/pstoraster $(CUPSSERVER)/filter
-       $(INSTALL_PROGRAM) pstoraster/pstopcl6 $(CUPSSERVER)/filter
+       $(INSTALL_PROGRAM) pstoraster/pstopxl $(CUPSSERVER)/filter
        -mkdir -p $(CUPSCONFIG)
        $(INSTALL_DATA) pstoraster/pstoraster.convs $(CUPSCONFIG)
        -mkdir -p $(CUPSDATA)/model
@@ -49,5 +49,5 @@ install-cups:
 
 
 #
-# End of "$Id: cups.mak,v 1.1.2.4 2003/07/20 22:54:43 mike Exp $".
+# End of "$Id$".
 #
index 5ef0597eab914bd2918dd6499a7265016c29b099..93c9d478666d46987a4a9f9854fb43049af8185e 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * "$Id: gdevcups.c,v 1.43.2.23 2004/06/29 13:15:10 mike Exp $"
+ * "$Id$"
  *
  *   GNU Ghostscript raster output driver for the Common UNIX Printing
  *   System (CUPS).
  *
- *   Copyright 1993-2004 by Easy Software Products.
+ *   Copyright 1993-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -16,7 +16,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -404,7 +404,9 @@ static void cups_print_planar(gx_device_printer *, unsigned char *,
 private int
 cups_close(gx_device *pdev)            /* I - Device info */
 {
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_close(%p)\n", pdev);
+#endif /* DEBUG */
 
   if (cups->stream != NULL)
   {
@@ -555,7 +557,9 @@ private void
 cups_get_matrix(gx_device *pdev,       /* I - Device info */
                 gs_matrix *pmat)       /* O - Physical transform matrix */
 {
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_get_matrix(%p, %p)\n", pdev, pmat);
+#endif /* DEBUG */
 
  /*
   * Set the raster width and height...
@@ -655,199 +659,265 @@ cups_get_params(gx_device     *pdev,    /* I - Device info */
   bool                 b;              /* Temporary boolean value */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_get_params(%p, %p)\n", pdev, plist);
+#endif /* DEBUG */
 
  /*
   * First process the "standard" page device parameters...
   */
 
+#ifdef DEBUG
   fputs("DEBUG2: before gdev_prn_get_params()\n", stderr);
+#endif /* DEBUG */
 
   if ((code = gdev_prn_get_params(pdev, plist)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: after gdev_prn_get_params()\n", stderr);
+#endif /* DEBUG */
 
  /*
   * Then write the CUPS parameters...
   */
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding MediaClass\n", stderr);
+#endif /* DEBUG */
 
   param_string_from_string(s, cups->header.MediaClass);
   if ((code = param_write_string(plist, "MediaClass", &s)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding AdvanceDistance\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "AdvanceDistance",
                               (int *)&(cups->header.AdvanceDistance))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding AdvanceDistance\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "AdvanceMedia",
                               (int *)&(cups->header.AdvanceMedia))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding Collate\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.Collate;
   if ((code = param_write_bool(plist, "Collate", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding CutMedia\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "CutMedia",
                               (int *)&(cups->header.CutMedia))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding InsertSheet\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.InsertSheet;
   if ((code = param_write_bool(plist, "InsertSheet", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding Jog\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "Jog",
                               (int *)&(cups->header.Jog))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding LeadingEdge\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "LeadingEdge",
                               (int *)&(cups->header.LeadingEdge))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding ManualFeed\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.ManualFeed;
   if ((code = param_write_bool(plist, "ManualFeed", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding MediaPosition\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "MediaPosition",
                               (int *)&(cups->header.MediaPosition))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding MirrorPrint\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.MirrorPrint;
   if ((code = param_write_bool(plist, "MirrorPrint", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding NegativePrint\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.NegativePrint;
   if ((code = param_write_bool(plist, "NegativePrint", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding OutputFaceUp\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.OutputFaceUp;
   if ((code = param_write_bool(plist, "OutputFaceUp", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding Separations\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.Separations;
   if ((code = param_write_bool(plist, "Separations", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding TraySwitch\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.TraySwitch;
   if ((code = param_write_bool(plist, "TraySwitch", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding Tumble\n", stderr);
+#endif /* DEBUG */
 
   b = cups->header.Tumble;
   if ((code = param_write_bool(plist, "Tumble", &b)) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsWidth\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsWidth",
                               (int *)&(cups->header.cupsWidth))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsHeight\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsHeight",
                               (int *)&(cups->header.cupsHeight))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsMediaType\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsMediaType",
                               (int *)&(cups->header.cupsMediaType))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsBitsPerColor\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsBitsPerColor",
                               (int *)&(cups->header.cupsBitsPerColor))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsBitsPerPixel\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsBitsPerPixel",
                               (int *)&(cups->header.cupsBitsPerPixel))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsBytesPerLine\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsBytesPerLine",
                               (int *)&(cups->header.cupsBytesPerLine))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsColorOrder\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsColorOrder",
                               (int *)&(cups->header.cupsColorOrder))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsColorSpace\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsColorSpace",
                               (int *)&(cups->header.cupsColorSpace))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsCompression\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsCompression",
                               (int *)&(cups->header.cupsCompression))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsRowCount\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsRowCount",
                               (int *)&(cups->header.cupsRowCount))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsRowFeed\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsRowFeed",
                               (int *)&(cups->header.cupsRowFeed))) < 0)
     return (code);
 
+#ifdef DEBUG
   fputs("DEBUG2: Adding cupsRowStep\n", stderr);
+#endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsRowStep",
                               (int *)&(cups->header.cupsRowStep))) < 0)
     return (code);
 
 #ifdef CUPS_RASTER_SYNCv1
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsNumColors\n", stderr);
+#  endif /* DEBUG */
 
   if ((code = param_write_int(plist, "cupsNumColors",
                               (int *)&(cups->header.cupsNumColors))) < 0)
     return (code);
 
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsInteger\n", stderr);
+#  endif /* DEBUG */
 
   for (i = 0; i < 16; i ++)
   {
@@ -857,7 +927,9 @@ cups_get_params(gx_device     *pdev,        /* I - Device info */
       return (code);
   }
 
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsReal\n", stderr);
+#  endif /* DEBUG */
 
   for (i = 0; i < 16; i ++)
   {
@@ -867,7 +939,9 @@ cups_get_params(gx_device     *pdev,        /* I - Device info */
       return (code);
   }
 
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsString\n", stderr);
+#  endif /* DEBUG */
 
   for (i = 0; i < 16; i ++)
   {
@@ -877,20 +951,26 @@ cups_get_params(gx_device     *pdev,      /* I - Device info */
       return (code);
   }
 
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsMarkerType\n", stderr);
+#  endif /* DEBUG */
 
   param_string_from_string(s, cups->header.cupsMarkerType);
   if ((code = param_write_string(plist, "cupsMarkerType", &s)) < 0)
     return (code);
 
+#  ifdef DEBUG
   fputs("DEBUG2: Adding cupsRenderingIntent\n", stderr);
+#  endif /* DEBUG */
 
   param_string_from_string(s, cups->header.cupsRenderingIntent);
   if ((code = param_write_string(plist, "cupsRenderingIntent", &s)) < 0)
     return (code);
 #endif /* CUPS_RASTER_SYNCv1 */
 
+#ifdef DEBUG
   fputs("DEBUG2: Leaving cups_get_params()\n", stderr);
+#endif /* DEBUG */
 
   return (0);
 }
@@ -911,7 +991,9 @@ cups_get_space_params(const gx_device_printer *pdev,
        cache_units[255];               /* Cache size units */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_get_space_params(%p, %p)\n", pdev, space_params);
+#endif /* DEBUG */
 
   if ((cache_env = getenv("RIP_MAX_CACHE")) != NULL)
   {
@@ -985,8 +1067,10 @@ cups_map_cmyk(gx_device *pdev,            /* I - Device info */
        ciel, ciea, cieb;               /* CIE Lab colors */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_cmyk(%p, %d, %d, %d, %d, %p)\n",
           pdev, c, m, y, k, out);
+#endif /* DEBUG */
 
  /*
   * Convert the CMYK color to the destination colorspace...
@@ -1346,17 +1430,23 @@ cups_map_cmyk(gx_device *pdev,          /* I - Device info */
   {
     default :
     case 1 :
+#ifdef DEBUG
         fprintf(stderr, "DEBUG2:   \\=== COLOR %d\n", out[0]);
+#endif /* DEBUG */
        break;
 
     case 3 :
+#ifdef DEBUG
         fprintf(stderr, "DEBUG2:   \\=== COLOR %d, %d, %d\n",
                out[0], out[1], out[2]);
+#endif /* DEBUG */
        break;
 
     case 4 :
+#ifdef DEBUG
         fprintf(stderr, "DEBUG2:   \\=== COLOR %d, %d, %d, %d\n",
                out[0], out[1], out[2], out[3]);
+#endif /* DEBUG */
        break;
   }
 }
@@ -1371,8 +1461,10 @@ cups_map_gray(gx_device *pdev,           /* I - Device info */
               frac      g,             /* I - Grayscale value */
              frac      *out)           /* O - Device colors */
 {
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_gray(%p, %d, %p)\n",
           pdev, g, out);
+#endif /* DEBUG */
 
  /*
   * Just use the CMYK mapper...
@@ -1400,8 +1492,10 @@ cups_map_rgb(gx_device             *pdev,
   int          tc, tm, ty;             /* Temporary color values */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_rgb(%p, %p, %d, %d, %d, %p)\n",
           pdev, pis, r, g, b, out);
+#endif /* DEBUG */
 
  /*
   * Compute CMYK values...
@@ -1488,8 +1582,10 @@ cups_map_cmyk_color(gx_device      *pdev,
   gx_color_value       ic, im, iy, ik; /* Integral CMYK values */
 
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_cmyk_color(%p, %d, %d, %d, %d)\n", pdev,
           c, m, y, k);
+#  endif /* DEBUG */
 
  /*
   * Setup the color info data as needed...
@@ -1601,8 +1697,10 @@ cups_map_cmyk_color(gx_device      *pdev,
         break;
   }
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: CMYK (%d,%d,%d,%d) -> CMYK %08x (%d,%d,%d,%d)\n",
           c, m, y, k, (unsigned)i, ic, im, iy, ik);
+#  endif /* DEBUG */
 
  /*
   * Make sure we don't get a CMYK color of 255, 255, 255, 255...
@@ -1629,8 +1727,10 @@ cups_map_color_rgb(gx_device      *pdev,/* I - Device info */
   gx_color_value       k, divk;        /* Black & divisor */
 
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_color_rgb(%p, %d, %p)\n", pdev,
           (unsigned)color, prgb);
+#  endif /* DEBUG */
 
  /*
   * Setup the color info data as needed...
@@ -1639,7 +1739,9 @@ cups_map_color_rgb(gx_device      *pdev,/* I - Device info */
   if (pdev->color_info.num_components == 0)
     cups_set_color_info(pdev);
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: COLOR %08x = ", (unsigned)color);
+#  endif /* DEBUG */
 
  /*
   * Extract the color components from the color index...
@@ -1815,7 +1917,9 @@ cups_map_color_rgb(gx_device      *pdev,/* I - Device info */
 #  endif /* CUPS_RASTER_HAVE_COLORIMETRIC */
   }
 
+#  ifdef DEBUG
   fprintf(stderr, "%d,%d,%d\n", prgb[0], prgb[1], prgb[2]);
+#  endif /* DEBUG */
 
   return (0);
 }
@@ -1845,7 +1949,9 @@ cups_map_rgb_color(gx_device      *pdev,/* I - Device info */
                                        /* CIE Lab colors */
 
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_map_rgb_color(%p, %d, %d, %d)\n", pdev, r, g, b);
+#  endif /* DEBUG */
 
  /*
   * Setup the color info data as needed...
@@ -2052,8 +2158,10 @@ cups_map_rgb_color(gx_device      *pdev,/* I - Device info */
               break;
         }
 
+#  ifdef DEBUG
        fprintf(stderr, "DEBUG2: CMY (%d,%d,%d) -> CMYK %08x (%d,%d,%d,%d)\n",
                r, g, b, (unsigned)i, ic, im, iy, ik);
+#  endif /* DEBUG */
         break;
 
     case CUPS_CSPACE_YMCK :
@@ -2294,7 +2402,9 @@ cups_map_rgb_color(gx_device      *pdev,/* I - Device info */
 #  endif /* CUPS_RASTER_HAVE_COLORIMETRIC */
   }
 
+#  ifdef DEBUG
   fprintf(stderr, "DEBUG2: RGB %d,%d,%d = %08x\n", r, g, b, (unsigned)i);
+#  endif /* DEBUG */
 
   return (i);
 }
@@ -2311,7 +2421,9 @@ cups_open(gx_device *pdev)                /* I - Device info */
   int  code;                           /* Return status */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_open(%p)\n", pdev);
+#endif /* DEBUG */
 
   cups->printer_procs.get_space_params = cups_get_space_params;
 
@@ -2352,8 +2464,10 @@ cups_print_pages(gx_device_printer *pdev,
 
   (void)fp; /* reference unused file pointer to prevent compiler warning */
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_print_pages(%p, %p, %d)\n", pdev, fp,
           num_copies);
+#endif /* DEBUG */
 
  /*
   * Figure out the number of bytes per line...
@@ -2389,9 +2503,11 @@ cups_print_pages(gx_device_printer *pdev,
 
   srcbytes = gdev_prn_raster(pdev);
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cupsBitsPerPixel = %d, cupsWidth = %d, cupsBytesPerLine = %d, srcbytes = %d\n",
           cups->header.cupsBitsPerPixel, cups->header.cupsWidth,
          cups->header.cupsBytesPerLine, srcbytes);
+#endif /* DEBUG */
 
   src = (unsigned char *)gs_malloc(srcbytes, 1, "cups_print_pages");
 
@@ -2435,9 +2551,11 @@ cups_print_pages(gx_device_printer *pdev,
     num_copies = 1;
   }
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cupsWidth = %d, cupsHeight = %d, cupsBytesPerLine = %d\n",
           cups->header.cupsWidth, cups->header.cupsHeight,
          cups->header.cupsBytesPerLine);
+#endif /* DEBUG */
 
   for (copy = num_copies; copy > 0; copy --)
   {
@@ -2501,7 +2619,9 @@ cups_put_params(gx_device     *pdev,      /* I - Device info */
                        height;         /* New height of page */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_put_params(%p, %p)\n", pdev, plist);
+#endif /* DEBUG */
 
  /*
   * Process other options for CUPS...
@@ -2833,6 +2953,7 @@ cups_put_params(gx_device     *pdev,      /* I - Device info */
     }
   }
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: ppd = %p\n", cupsPPD);
   fprintf(stderr, "DEBUG2: PageSize = [ %.3f %.3f ]\n",
           pdev->MediaSize[0], pdev->MediaSize[1]);
@@ -2845,6 +2966,7 @@ cups_put_params(gx_device     *pdev,      /* I - Device info */
   fprintf(stderr, "DEBUG2: HWMargins = [ %.3f %.3f %.3f %.3f ]\n",
           pdev->HWMargins[0], pdev->HWMargins[1],
          pdev->HWMargins[2], pdev->HWMargins[3]);
+#endif /* DEBUG */
 
   return (0);
 }
@@ -2866,7 +2988,9 @@ cups_set_color_info(gx_device *pdev)      /* I - Device info */
   ppd_profile_t        *profile;               /* Color profile information */
 
 
+#ifdef DEBUG
   fprintf(stderr, "DEBUG2: cups_set_color_info(%p)\n", pdev);
+#endif /* DEBUG */
 
   switch (cups->header.cupsColorSpace)
   {
@@ -3087,8 +3211,10 @@ cups_set_color_info(gx_device *pdev)     /* I - Device info */
     cupsEncodeLUT[i] = (max_lut * i + gx_max_color_value / 2) /
                        gx_max_color_value;
 
+#ifdef DEBUG
     if (i == 0 || cupsEncodeLUT[i] != cupsEncodeLUT[i - 1])
       fprintf(stderr, "DEBUG2: cupsEncodeLUT[%d] = %d\n", i, cupsEncodeLUT[i]);
+#endif /* DEBUG */
   }
 
   for (i = 0; i < cups->color_info.dither_grays; i ++)
@@ -3191,9 +3317,11 @@ cups_set_color_info(gx_device *pdev)     /* I - Device info */
        {
           cupsMatrix[i][j][k] = (int)((float)k * m[i][j] + 0.5);
 
+#ifdef DEBUG
           if ((k & 4095) == 0)
             fprintf(stderr, "DEBUG2: cupsMatrix[%d][%d][%d] = %d\n",
                    i, j, k, cupsMatrix[i][j][k]);
+#endif /* DEBUG */
         }
 
 
@@ -3203,8 +3331,10 @@ cups_set_color_info(gx_device *pdev)     /* I - Device info */
                             pow((float)k / (float)CUPS_MAX_VALUE, g) +
                             0.5);
 
+#ifdef DEBUG
       if ((k & 4095) == 0)
         fprintf(stderr, "DEBUG2: cupsDensity[%d] = %d\n", k, cupsDensity[k]);
+#endif /* DEBUG */
     }
   }
   else
@@ -4330,5 +4460,5 @@ cups_print_planar(gx_device_printer *pdev,
 
 
 /*
- * End of "$Id: gdevcups.c,v 1.43.2.23 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id$".
  */
diff --git a/pstoraster/pstopxl b/pstoraster/pstopxl
new file mode 100644 (file)
index 0000000..227f5f4
--- /dev/null
@@ -0,0 +1,67 @@
+#!/bin/sh
+#
+# "$Id: pstopxl 4076 2004-02-24 21:59:13Z mike $"
+#
+# CUPS PCL XL/PCL 6 filter script for Ghostscript.
+#
+# Copyright 2001-2003 by Easy Software Products.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+# Installation directories...
+prefix=/usr/local
+exec_prefix=${prefix}
+bindir=/usr/lib/cups/filter
+
+# Set the library/font path...
+GS_LIB="${CUPS_FONTPATH:=/usr/share/cups/fonts}"
+export GS_LIB
+
+# Determine the PCL XL/PCL 6 driver to use...
+if test "x$PPD" != x; then
+    colordevice=`grep '^*ColorDevice:' "$PPD" | awk -F: '{print $2}'`
+    case "$colordevice" in
+       *True* | *true*)
+           device="pxlcolor"
+           ;;
+       *)
+           device="pxlmono"
+           ;;
+    esac
+else
+    device="pxlmono"
+fi
+
+# Options we use with Ghostscript...
+gsopts="-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH"
+gsopts="$gsopts -dNOMEDIAATTRS -sDEVICE=$device -sstdout=%stderr"
+
+# See if we have a filename on the command-line...
+if test -z "$6"; then
+       ifile="-"
+else
+       ifile="$6"
+fi
+
+echo INFO: Starting ESP Ghostscript 7.07.1... 1>&2
+echo DEBUG: Running $bindir/gsrip $gsopts -sOUTPUTFILE="%stdout" "$ifile" 1>&2
+
+# Now run Ghostscript...
+$bindir/gsrip $gsopts -sOUTPUTFILE="%stdout" "$ifile"
+
+#
+# End of "$Id: pstopxl 4076 2004-02-24 21:59:13Z mike $".
+#
index d2df5c25478a6ee938f87def35d90e844fa48b2e..c169ff43fdd12e8f46a6b6f465f0c5f940560518 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# "$Id: pstopxl.in,v 1.1.2.2 2004/06/29 13:15:10 mike Exp $"
+# "$Id$"
 #
 # CUPS PCL XL/PCL 6 filter script for Ghostscript.
 #
-# Copyright 2001-2004 by Easy Software Products.
+# Copyright 2001-2005 by Easy Software Products.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -63,5 +63,5 @@ echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" "$ifile" 1>&2
 $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" "$ifile"
 
 #
-# End of "$Id: pstopxl.in,v 1.1.2.2 2004/06/29 13:15:10 mike Exp $".
+# End of "$Id$".
 #
index bcf175566acf0ac6615d9d9146c8a9cc51149ba8..ec2c5be8e0e85a4c6e322ee79ce22f8a67aa3e8f 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# "$Id: pstoraster,v 1.1.2.4 2003/07/20 22:54:45 mike Exp $"
+# "$Id$"
 #
 # CUPS filter script for Ghostscript.
 #
-# Copyright 2001-2003 by Easy Software Products.
+# Copyright 2001-2005 by Easy Software Products.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -48,5 +48,5 @@ done
 $bindir/gs $gsopts -sOUTPUTFILE="%stdout" $profile $6
 
 #
-# End of "$Id: pstoraster,v 1.1.2.4 2003/07/20 22:54:45 mike Exp $".
+# End of "$Id$".
 #
index 1c3d6aba39593a644abcfb212be2acf92b68a828..424c53174dc368919d224c072fc154626c1ecd70 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: pstoraster.convs,v 1.1.2.3 2003/07/20 22:54:45 mike Exp $"
+# "$Id$"
 #
 #   MIME converts file for Ghostscript.
 #
-#   Copyright 1997-2003 by Easy Software Products.
+#   Copyright 1997-2005 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -15,9 +15,9 @@
 #       Attn: CUPS Licensing Information
 #       Easy Software Products
 #       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636-3111 USA
+#       Hollywood, Maryland 20636 USA
 #
-#       Voice: (301) 373-9603
+#       Voice: (301) 373-9600
 #       EMail: cups-info@cups.org
 #         WWW: http://www.cups.org
 #
@@ -25,5 +25,5 @@
 application/vnd.cups-postscript        application/vnd.cups-raster     100     pstoraster
 
 #
-# End of "$Id: pstoraster.convs,v 1.1.2.3 2003/07/20 22:54:45 mike Exp $".
+# End of "$Id$".
 #
index 18efeab2d9e2324015c37be801f4c39216db1924..5a99bb66ba652a85fee19a98b145dae5bb7ec6d8 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# "$Id: pstoraster.in,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $"
+# "$Id$"
 #
 # CUPS raster filter script for Ghostscript.
 #
-# Copyright 2001-2004 by Easy Software Products.
+# Copyright 2001-2005 by Easy Software Products.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -58,5 +58,5 @@ echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c"$profile" "$i
 $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c"$profile" "$ifile"
 
 #
-# End of "$Id: pstoraster.in,v 1.3.2.4 2004/06/29 13:15:10 mike Exp $".
+# End of "$Id$".
 #
index a86963308b40d190ec9bbc750b1f7698103098a8..94226993fc893877055c7c3b5c9726f9746b61cb 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: pxlcolor.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample color PCL XL/PCL 6 driver PPD file for the Common UNIX
 *%   Printing System (CUPS).
 *%
-*%   Copyright 1997-2003 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: pxlcolor.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $".
+*% End of "$Id$".
 *%
index c59d55ed63bd1d6987197beba2186924281b308c..f765aa9f7a86c637dccc1d10603d3fc0cb8d998e 100644 (file)
@@ -1,11 +1,11 @@
 *PPD-Adobe: "4.3"
 *%
-*% "$Id: pxlmono.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $"
+*% "$Id$"
 *%
 *%   Sample monochrome PCL XL/PCL 6 driver PPD file for the Common UNIX
 *%   Printing System (CUPS).
 *%
-*%   Copyright 1997-2003 by Easy Software Products.
+*%   Copyright 1997-2005 by Easy Software Products.
 *%
 *%   These coded instructions, statements, and computer programs are the
 *%   property of Easy Software Products and are protected by Federal
@@ -17,9 +17,9 @@
 *%       Attn: CUPS Licensing Information
 *%       Easy Software Products
 *%       44141 Airport View Drive, Suite 204
-*%       Hollywood, Maryland 20636-3111 USA
+*%       Hollywood, Maryland 20636 USA
 *%
-*%       Voice: (301) 373-9603
+*%       Voice: (301) 373-9600
 *%       EMail: cups-info@cups.org
 *%         WWW: http://www.cups.org
 *%
 *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
 *Font ZapfDingbats: Special "(001.004S)" Standard ROM
 *%
-*% End of "$Id: pxlmono.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $".
+*% End of "$Id$".
 *%
index dad7824ba3ce684b057fd42ce66bca79c83d19fb..1f3d06d8891b66dfe8aae74ecdeb7947db8933c1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: auth.c,v 1.41.2.29 2004/10/11 19:31:19 mike Exp $"
+ * "$Id$"
  *
  *   Authorization routines for the Common UNIX Printing System (CUPS).
  *
@@ -956,7 +956,7 @@ IsAuthorized(client_t *con) /* I - Connection */
                };
 
 
-  LogMessage(L_DEBUG2, "IsAuthorized: URI = %s", con->uri);
+  LogMessage(L_DEBUG2, "IsAuthorized: con->uri = \"%s\"", con->uri);
 
  /*
   * Find a matching location; if there is no match then access is
@@ -1100,16 +1100,6 @@ IsAuthorized(client_t *con)      /* I - Connection */
   * Check the user's password...
   */
 
-  pw = getpwnam(con->username);                /* Get the current password */
-  endpwent();                          /* Close the password file */
-
-  if (pw == NULL)                      /* No such user... */
-  {
-    LogMessage(L_WARN, "IsAuthorized: Unknown username \"%s\"; access denied.",
-               con->username);
-    return (HTTP_UNAUTHORIZED);
-  }
-
   LogMessage(L_DEBUG2, "IsAuthorized: Checking \"%s\", address = %x:%x:%x:%x, hostname = \"%s\"",
             con->username, address[0], address[1], address[2],
             address[3], con->http.hostname);
@@ -1271,6 +1261,7 @@ IsAuthorized(client_t *con)       /* I - Connection */
          }
 #endif /* HAVE_LIBPAM */
           break;
+
       case AUTH_DIGEST :
         /*
          * Do Digest authentication...
@@ -1346,7 +1337,7 @@ IsAuthorized(client_t *con)       /* I - Connection */
 
          if (!md5[0])
          {
-            LogMessage(L_ERROR, "IsAuthorized: No matching user:group for \"%s\" in passwd.md5!",
+            LogMessage(L_DEBUG2, "IsAuthorized: No matching user:group for \"%s\" in passwd.md5!",
                       con->username);
             return (HTTP_UNAUTHORIZED);
          }
@@ -1779,5 +1770,5 @@ to64(char          *s,    /* O - Output string */
 
 
 /*
- * End of "$Id: auth.c,v 1.41.2.29 2004/10/11 19:31:19 mike Exp $".
+ * End of "$Id$".
  */
index 1cb193599c540b56c602beb49e03adb94ac3b0e4..8ac9f46832070d2242b43506499ffddc941462e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: classes.c,v 1.34.2.27 2004/10/04 19:48:56 mike Exp $"
+ * "$Id$"
  *
  *   Printer class routines for the Common UNIX Printing System (CUPS).
  *
@@ -81,9 +81,18 @@ void
 AddPrinterToClass(printer_t *c,        /* I - Class to add to */
                   printer_t *p)        /* I - Printer to add */
 {
+  int          i;              /* Looping var */
   printer_t    **temp;         /* Pointer to printer array */
 
 
+ /*
+  * See if this printer is already a member of the class...
+  */
+
+  for (i = 0; i < c->num_printers; i ++)
+    if (c->printers[i] == p)
+      return;
+
  /*
   * Allocate memory as needed...
   */
@@ -480,9 +489,9 @@ LoadAllClasses(void)
       * Set the initial queue state...
       */
 
-      if (strcasecmp(value, "idle"))
+      if (!strcasecmp(value, "idle"))
         p->state = IPP_PRINTER_IDLE;
-      else if (strcasecmp(value, "stopped"))
+      else if (!strcasecmp(value, "stopped"))
         p->state = IPP_PRINTER_STOPPED;
     }
     else if (!strcasecmp(name, "StateMessage"))
@@ -502,7 +511,7 @@ LoadAllClasses(void)
       * Set the initial accepting state...
       */
 
-      if (strcasecmp(value, "yes") ||
+      if (!strcasecmp(value, "yes") ||
           !strcasecmp(value, "on") ||
           !strcasecmp(value, "true"))
         p->accepting = 1;
@@ -579,6 +588,7 @@ SaveAllClasses(void)
 {
   cups_file_t  *fp;                    /* classes.conf file */
   char         temp[1024];             /* Temporary string */
+  char         backup[1024];           /* classes.conf.O file */
   printer_t    *pclass;                /* Current printer class */
   int          i;                      /* Looping var */
   time_t       curtime;                /* Current time */
@@ -590,9 +600,17 @@ SaveAllClasses(void)
   */
 
   snprintf(temp, sizeof(temp), "%s/classes.conf", ServerRoot);
+  snprintf(backup, sizeof(backup), "%s/classes.conf.O", ServerRoot);
+
+  if (rename(temp, backup))
+    LogMessage(L_ERROR, "Unable to backup classes.conf - %s", strerror(errno));
+
   if ((fp = cupsFileOpen(temp, "w")) == NULL)
   {
     LogMessage(L_ERROR, "Unable to save classes.conf - %s", strerror(errno));
+
+    if (rename(backup, temp))
+      LogMessage(L_ERROR, "Unable to restore classes.conf - %s", strerror(errno));
     return;
   }
   else
@@ -659,6 +677,9 @@ SaveAllClasses(void)
     else
       cupsFilePuts(fp, "Accepting No\n");
 
+    cupsFilePrintf(fp, "JobSheets %s %s\n", pclass->job_sheets[0],
+                   pclass->job_sheets[1]);
+
     for (i = 0; i < pclass->num_printers; i ++)
       cupsFilePrintf(fp, "Printer %s\n", pclass->printers[i]->name);
 
@@ -710,5 +731,5 @@ UpdateImplicitClasses(void)
 
 
 /*
- * End of "$Id: classes.c,v 1.34.2.27 2004/10/04 19:48:56 mike Exp $".
+ * End of "$Id$".
  */
index 9b54d94906cd3b13663e7050e8b12a480a635d9a..de825609becaf707cdd59df3c2d563d34c4f766e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: client.c,v 1.91.2.97 2005/01/03 18:48:04 mike Exp $"
+ * "$Id$"
  *
  *   Client routines for the Common UNIX Printing System (CUPS) scheduler.
  *
@@ -165,7 +165,7 @@ AcceptClient(listener_t *lis)       /* I - Listener socket */
 
     return;
   }
-  
+
  /*
   * Get the hostname or format the IP address as needed...
   */
@@ -297,13 +297,11 @@ AcceptClient(listener_t *lis)     /* I - Listener socket */
   val = 1;
   setsockopt(con->http.fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)); 
 
-#ifdef FD_CLOEXEC
  /*
   * Close this file on all execs...
   */
 
-  fcntl(con->http.fd, F_SETFD, FD_CLOEXEC);
-#endif /* FD_CLOEXEC */
+  fcntl(con->http.fd, F_SETFD, fcntl(con->http.fd, F_GETFD) | FD_CLOEXEC);
 
  /*
   * Add the socket to the select() input mask.
@@ -1233,15 +1231,13 @@ ReadClient(client_t *con)               /* I - Client to read from */
        httpPrintf(HTTP(con), "\r\n");
 
         EncryptClient(con);
-
-       status = IsAuthorized(con);
 #else
        if (!SendError(con, HTTP_NOT_IMPLEMENTED))
          return (CloseClient(con));
 #endif /* HAVE_SSL */
       }
 
-      if (status != HTTP_OK)
+      if ((status = IsAuthorized(con)) != HTTP_OK)
       {
         LogMessage(L_DEBUG2, "ReadClient: Unauthorized request for %s...\n",
                   con->uri);
@@ -1570,14 +1566,6 @@ ReadClient(client_t *con)                /* I - Client to read from */
             SetStringf(&con->filename, "%s/%08x", RequestRoot, request_id ++);
            con->file = open(con->filename, O_WRONLY | O_CREAT | O_TRUNC, 0640);
 
-#ifdef FD_CLOEXEC
-          /*
-           * Close this file when starting other processes...
-            */
-
-            fcntl(con->file, F_SETFD, FD_CLOEXEC);
-#endif /* FD_CLOEXEC */
-
             LogMessage(L_DEBUG2, "ReadClient: %d REQUEST %s=%d", con->http.fd,
                       con->filename, con->file);
 
@@ -1823,14 +1811,6 @@ ReadClient(client_t *con)                /* I - Client to read from */
           SetStringf(&con->filename, "%s/%08x", RequestRoot, request_id ++);
          con->file = open(con->filename, O_WRONLY | O_CREAT | O_TRUNC, 0640);
 
-#ifdef FD_CLOEXEC
-          /*
-           * Close this file when starting other processes...
-            */
-
-            fcntl(con->file, F_SETFD, FD_CLOEXEC);
-#endif /* FD_CLOEXEC */
-
           LogMessage(L_DEBUG2, "ReadClient: %d REQUEST %s=%d", con->http.fd,
                     con->filename, con->file);
 
@@ -2113,13 +2093,7 @@ SendFile(client_t    *con,
   if (con->file < 0)
     return (0);
 
-#ifdef FD_CLOEXEC
- /*
-  * Close this file when starting other processes...
-  */
-
-  fcntl(con->file, F_SETFD, FD_CLOEXEC);
-#endif /* FD_CLOEXEC */
+  fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
 
   con->pipe_pid = 0;
 
@@ -2372,11 +2346,11 @@ WriteClient(client_t *con)              /* I - Client connection */
                    con->file);
        FD_CLR(con->file, InputSet);
       }
-  
+
       if (con->pipe_pid)
        kill(con->pipe_pid, SIGTERM);
 
-      LogMessage(L_DEBUG2, "WriteClient() %d Closing data file %d.",
+      LogMessage(L_DEBUG2, "WriteClient: %d Closing data file %d.",
                  con->http.fd, con->file);
 
       close(con->file);
@@ -2386,7 +2360,7 @@ WriteClient(client_t *con)                /* I - Client connection */
 
     if (con->filename)
     {
-      LogMessage(L_DEBUG2, "WriteClient() %d Removing temp file %s",
+      LogMessage(L_DEBUG2, "WriteClient: %d Removing temp file %s",
                  con->http.fd, con->filename);
       unlink(con->filename);
       ClearString(&con->filename);
@@ -2547,13 +2521,13 @@ decode_auth(client_t *con)              /* I - Client to decode to */
     * Get the username and password from the Digest attributes...
     */
 
-    if (httpGetSubField(&(con->http), HTTP_FIELD_WWW_AUTHENTICATE, "username",
+    if (httpGetSubField(&(con->http), HTTP_FIELD_AUTHORIZATION, "username",
                         value))
       strlcpy(con->username, value, sizeof(con->username));
 
-    if (httpGetSubField(&(con->http), HTTP_FIELD_WWW_AUTHENTICATE, "response",
+    if (httpGetSubField(&(con->http), HTTP_FIELD_AUTHORIZATION, "response",
                         value))
-      strlcpy(con->password, value, sizeof(con->password) - 1);
+      strlcpy(con->password, value, sizeof(con->password));
   }
 
   LogMessage(L_DEBUG2, "decode_auth: %d username=\"%s\"",
@@ -2561,6 +2535,10 @@ decode_auth(client_t *con)               /* I - Client to decode to */
 }
 
 
+/*
+ * 'get_file()' - Get a filename and state info.
+ */
+
 static char *                          /* O  - Real filename */
 get_file(client_t    *con,             /* I  - Client connection */
          struct stat *filestats,       /* O  - File information */
@@ -3074,7 +3052,7 @@ pipe_command(client_t *con,               /* I - Client connection */
              locale_encodings[con->language->encoding]);
   else
     strcpy(lang, "LANG=C");
-  
+
   sprintf(ipp_port, "IPP_PORT=%d", LocalPort);
 #ifdef AF_INET6
   if (con->http.hostaddr.addr.sa_family == AF_INET6)
@@ -3295,7 +3273,7 @@ pipe_command(client_t *con,               /* I - Client connection */
     * Update stdin/stdout/stderr...
     */
 
-    if (infile > 0)
+    if (infile)
     {
       close(0);
       if (dup(infile) < 0)
@@ -3428,5 +3406,5 @@ CDSAWriteFunc(SSLConnectionRef connection,        /* I  - SSL/TLS connection */
 
 
 /*
- * End of "$Id: client.c,v 1.91.2.97 2005/01/03 18:48:04 mike Exp $".
+ * End of "$Id$".
  */
index a0ad7f4614deb008133b13931333710496e9d9ad..8a2e9da05c43a337e8d70200b8ca11f9d25b3bc1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: conf.c,v 1.77.2.61 2004/08/23 18:01:56 mike Exp $"
+ * "$Id$"
  *
  *   Configuration routines for the Common UNIX Printing System (CUPS).
  *
@@ -186,7 +186,7 @@ static ipp_op_t     get_operation(const char *name);
 
 
 /*
- * 'ReadConfiguration:' - Read the cupsd.conf file.
+ * 'ReadConfiguration()' - Read the cupsd.conf file.
  */
 
 int                                    /* O - 1 on success, 0 otherwise */
@@ -255,12 +255,12 @@ ReadConfiguration(void)
   if (NumListeners > 0)
   {
 #ifdef HAVE_DOMAINSOCKETS
-  int i;                       /* Looping var */
-  listener_t   *lis;           /* Current listening socket */
+    int i;                             /* Looping var */
+    listener_t *lis;                   /* Current listening socket */
 
-  for (i = NumListeners, lis = Listeners; i > 0; i --, lis ++)
-    if (lis->address.sin_family == AF_LOCAL)
-      ClearString((char **)&lis->address.sin_addr);
+    for (i = NumListeners, lis = Listeners; i > 0; i --, lis ++)
+      if (lis->address.sin_family == AF_LOCAL)
+       ClearString((char **)&lis->address.sin_addr);
 #endif /* HAVE_DOMAINSOCKETS */
 
     free(Listeners);
@@ -407,10 +407,10 @@ ReadConfiguration(void)
   JobHistory          = DEFAULT_HISTORY;
   JobFiles            = DEFAULT_FILES;
   JobAutoPurge        = 0;
-  MaxJobs             = 0;
+  MaxJobs             = 500;
   MaxActiveJobs       = 0;
-  MaxJobsPerPrinter   = 0;
   MaxJobsPerUser      = 0;
+  MaxJobsPerPrinter   = 0;
   MaxCopies           = 100;
 
   ClearString(&DefaultPolicy);
@@ -597,7 +597,7 @@ ReadConfiguration(void)
 
   if ((Clients = calloc(sizeof(client_t), MaxClients)) == NULL)
   {
-    LogMessage(L_ERROR, "Unable to allocate memory for %d clients: %s",
+    LogMessage(L_ERROR, "ReadConfiguration: Unable to allocate memory for %d clients: %s",
                MaxClients, strerror(errno));
     exit(1);
   }
@@ -2131,7 +2131,9 @@ read_location(cups_file_t *fp,            /* I - Configuration file */
       *     Require user names
       */
 
-      for (valptr = value; !isspace(*valptr & 255) && *valptr; valptr ++);
+      for (valptr = value;
+          !isspace(*valptr & 255) && *valptr != '>' && *valptr;
+          valptr ++);
 
       if (*valptr)
        *valptr++ = '\0';
@@ -2912,5 +2914,5 @@ CDSAGetServerCerts(void)
 
 
 /*
- * End of "$Id: conf.c,v 1.77.2.61 2004/08/23 18:01:56 mike Exp $".
+ * End of "$Id$".
  */
index 4abcc75d02202fac8477f51a439be4b7826e7e35..ef7817c3bdcd8faf0c5d8ecb543b200f4b3c707d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: dirsvc.c,v 1.73.2.60 2004/10/04 19:48:56 mike Exp $"
+ * "$Id$"
  *
  *   Directory services routines for the Common UNIX Printing System (CUPS).
  *
@@ -1613,6 +1613,11 @@ UpdatePolling(void)
 #  define SLP_CUPS_SRVTYPE     "service:printer"
 #  define SLP_CUPS_SRVLEN      15
 
+
+/* 
+ * Printer service URL structure
+ */
+
 typedef struct _slpsrvurl
 {
   struct _slpsrvurl    *next;
@@ -2114,5 +2119,5 @@ UpdateSLPBrowse(void)
 
 
 /*
- * End of "$Id: dirsvc.c,v 1.73.2.60 2004/10/04 19:48:56 mike Exp $".
+ * End of "$Id$".
  */
index 63b6384e14675af83617289ce6fe704b8933577a..e3acb108c2ed6c120842476c51eddedd4a72630c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.127.2.93 2004/10/04 20:24:16 mike Exp $"
+ * "$Id$"
  *
  *   IPP routines for the Common UNIX Printing System (CUPS) scheduler.
  *
@@ -168,9 +168,8 @@ ProcessIPPRequest(client_t *con)    /* I - Client connection */
   ipp_attribute_t      *username;      /* requesting-user-name attr */
 
 
-  DEBUG_printf(("ProcessIPPRequest(%08x)\n", con));
-  DEBUG_printf(("ProcessIPPRequest: operation_id = %04x\n",
-                con->request->request.op.operation_id));
+  LogMessage(L_DEBUG2, "ProcessIPPRequest(%p[%d]): operation_id = %04x",
+             con, con->http.fd, con->request->request.op.operation_id);
 
  /*
   * First build an empty response message for this request...
@@ -296,6 +295,15 @@ ProcessIPPRequest(client_t *con)   /* I - Client connection */
         if (uri == NULL)
          LogMessage(L_ERROR, "ProcessIPPRequest: missing printer-uri or job-uri attribute!");
 
+       LogMessage(L_DEBUG, "Request attributes follow...");
+
+       for (attr = con->request->attrs; attr != NULL; attr = attr->next)
+         LogMessage(L_DEBUG, "attr \"%s\": group_tag = %x, value_tag = %x",
+                    attr->name ? attr->name : "(null)", attr->group_tag,
+                    attr->value_tag);
+
+       LogMessage(L_DEBUG, "End of attributes...");
+
        send_ipp_error(con, IPP_BAD_REQUEST);
       }
       else
@@ -518,7 +526,7 @@ accept_jobs(client_t        *con,   /* I - Client connection */
   printer_t            *printer;       /* Printer data */
 
 
-  LogMessage(L_DEBUG2, "accept_jobs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "accept_jobs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -612,7 +620,7 @@ add_class(client_t        *con,             /* I - Client connection */
   int                  modify;         /* Non-zero if we just modified */
 
 
-  LogMessage(L_DEBUG2, "add_class(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "add_class(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -627,8 +635,6 @@ add_class(client_t        *con,             /* I - Client connection */
     return;
   }
 
-  DEBUG_printf(("add_class(%08x, %08x)\n", con, uri));
-
  /*
   * Do we have a valid URI?
   */
@@ -1079,7 +1085,7 @@ add_printer(client_t        *con, /* I - Client connection */
   int                  modify;         /* Non-zero if we are modifying */
 
 
-  LogMessage(L_DEBUG2, "add_printer(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "add_printer(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -1595,8 +1601,8 @@ static void
 add_printer_state_reasons(client_t  *con,      /* I - Client connection */
                           printer_t *p)                /* I - Printer info */
 {
-  LogMessage(L_DEBUG2, "add_printer_state_reasons(%d, %s)\n", con->http.fd,
-             p->name);
+  LogMessage(L_DEBUG2, "add_printer_state_reasons(%p[%d], %p[%s])\n",
+             con, con->http.fd, p, p->name);
 
   if (p->num_reasons == 0)
     ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_KEYWORD,
@@ -1621,8 +1627,8 @@ add_queued_job_count(client_t  *con,      /* I - Client connection */
   int          count;                  /* Number of jobs on destination */
 
 
-  LogMessage(L_DEBUG2, "add_queued_job_count(%d, %s)\n", con->http.fd,
-             p->name);
+  LogMessage(L_DEBUG2, "add_queued_job_count(%p[%d], %p[%s])\n",
+             con, con->http.fd, p, p->name);
 
   count = GetPrinterJobCount(p->name);
 
@@ -1656,7 +1662,7 @@ cancel_all_jobs(client_t        *con,     /* I - Client connection */
   printer_t            *printer;       /* Printer */
 
 
-  LogMessage(L_DEBUG2, "cancel_all_jobs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "cancel_all_jobs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -1666,7 +1672,7 @@ cancel_all_jobs(client_t        *con,     /* I - Client connection */
   if (strncmp(con->uri, "/admin/", 7) &&
       strncmp(con->uri, "/jobs/", 7))
   {
-    LogMessage(L_ERROR, "cancel_all_jobs: request on bad resource \'%s\'!",
+    LogMessage(L_ERROR, "cancel_all_jobs: admin request on bad resource \'%s\'!",
                con->uri);
     send_ipp_error(con, IPP_NOT_AUTHORIZED);
     return;
@@ -1815,7 +1821,7 @@ cancel_job(client_t        *con,  /* I - Client connection */
   printer_t            *printer;       /* Printer data */
 
 
-  LogMessage(L_DEBUG2, "cancel_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "cancel_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -1991,7 +1997,8 @@ check_quotas(client_t  *con,      /* I - Client connection */
   struct group *grp;           /* Group data */
 
 
-  LogMessage(L_DEBUG2, "check_quotas(%d, %s)\n", con->http.fd, p->name);
+  LogMessage(L_DEBUG2, "check_quotas(%p[%d], %p[%s])\n",
+             con, con->http.fd, p, p->name);
 
  /*
   * Check input...
@@ -2145,8 +2152,9 @@ copy_attribute(ipp_t           *to,       /* O - Destination request/response */
   ipp_attribute_t      *toattr;        /* Destination attribute */
 
 
-  LogMessage(L_DEBUG2, "copy_attribute(%p, %s)\n", to,
-             attr->name ? attr->name : "(null)");
+  LogMessage(L_DEBUG2, "copy_attribute(%p, %p[%s,%x,%x])\n", to, attr,
+             attr->name ? attr->name : "(null)", attr->group_tag,
+            attr->value_tag);
 
   switch (attr->value_tag & ~IPP_TAG_COPY)
   {
@@ -2362,16 +2370,13 @@ copy_banner(client_t   *con,    /* I - Client connection */
   ipp_attribute_t *attr;       /* Attribute */
 
 
-  LogMessage(L_DEBUG2, "copy_banner(%d, %d, %s)\n", con->http.fd, job->id,
-             name);
+  LogMessage(L_DEBUG2, "copy_banner(%p[%d], %p[%d], %s)",
+             con, con->http.fd, job, job->id, name ? name : "(null)");
 
  /*
   * Find the banner; return if not found or "none"...
   */
 
-  LogMessage(L_DEBUG, "copy_banner(%p, %d, \"%s\")", con, job->id,
-             name ? name : "(null)");
-
   if (name == NULL ||
       strcmp(name, "none") == 0 ||
       (banner = FindBanner(name)) == NULL)
@@ -2891,7 +2896,7 @@ create_job(client_t        *con,  /* I - Client connection */
   int                  lowerpagerange; /* Page range bound */
 
 
-  LogMessage(L_DEBUG2, "create_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "create_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -3357,7 +3362,7 @@ delete_printer(client_t        *con,      /* I - Client connection */
   char                 filename[1024]; /* Script/PPD filename */
 
 
-  LogMessage(L_DEBUG2, "delete_printer(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "delete_printer(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -3372,8 +3377,6 @@ delete_printer(client_t        *con,      /* I - Client connection */
     return;
   }
 
-  DEBUG_printf(("delete_printer(%08x, %08x)\n", con, uri));
-
  /*
   * Do we have a valid URI?
   */
@@ -3516,7 +3519,7 @@ get_default(client_t *con)                /* I - Client connection */
 static void
 get_devices(client_t *con)             /* I - Client connection */
 {
-  LogMessage(L_DEBUG2, "get_devices(%d)\n", con->http.fd);
+  LogMessage(L_DEBUG2, "get_devices(%p[%d])\n", con, con->http.fd);
 
  /*
   * Check policy...
@@ -3573,7 +3576,7 @@ get_jobs(client_t        *con,            /* I - Client connection */
   printer_t            *printer;       /* Printer */
 
 
-  LogMessage(L_DEBUG2, "get_jobs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "get_jobs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -3686,7 +3689,7 @@ get_jobs(client_t        *con,            /* I - Client connection */
     * Filter out jobs that don't match...
     */
 
-    DEBUG_printf(("get_jobs: job->id = %d\n", job->id));
+    LogMessage(L_DEBUG2, "get_jobs: job->id = %d", job->id);
 
     if ((dest != NULL && strcmp(job->dest, dest) != 0) &&
         (job->printer == NULL || dest == NULL ||
@@ -3705,7 +3708,7 @@ get_jobs(client_t        *con,            /* I - Client connection */
 
     count ++;
 
-    DEBUG_printf(("get_jobs: count = %d\n", count));
+    LogMessage(L_DEBUG2, "get_jobs: count = %d", count);
 
    /*
     * Send the requested attributes for each job...
@@ -3767,7 +3770,7 @@ get_job_attrs(client_t        *con,               /* I - Client connection */
                                        /* Job URI... */
 
 
-  LogMessage(L_DEBUG2, "get_job_attrs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "get_job_attrs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -3882,7 +3885,7 @@ get_job_attrs(client_t        *con,               /* I - Client connection */
 static void
 get_ppds(client_t *con)                        /* I - Client connection */
 {
-  LogMessage(L_DEBUG2, "get_ppds(%d)\n", con->http.fd);
+  LogMessage(L_DEBUG2, "get_ppds(%p[%d])\n", con, con->http.fd);
 
  /*
   * Check policy...
@@ -3935,7 +3938,7 @@ get_printer_attrs(client_t        *con,   /* I - Client connection */
   int                  need_history;   /* Need to send history collection? */
 
 
-  LogMessage(L_DEBUG2, "get_printer_attrs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "get_printer_attrs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -4058,7 +4061,7 @@ get_printers(client_t *con,               /* I - Client connection */
   printer_t            *iclass;        /* Implicit class */
 
 
-  LogMessage(L_DEBUG2, "get_printers(%d, %x)\n", con->http.fd, type);
+  LogMessage(L_DEBUG2, "get_printers(%p[%d], %x)\n", con, con->http.fd, type);
 
  /*
   * Check policy...
@@ -4248,7 +4251,7 @@ hold_job(client_t        *con,    /* I - Client connection */
   job_t                        *job;           /* Job information */
 
 
-  LogMessage(L_DEBUG2, "hold_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "hold_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -4403,7 +4406,7 @@ move_job(client_t        *con,            /* I - Client connection */
   printer_t            *printer;       /* Printer */
 
 
-  LogMessage(L_DEBUG2, "move_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "move_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -4710,7 +4713,7 @@ print_job(client_t        *con,           /* I - Client connection */
   int                  compression;    /* Document compression */
 
 
-  LogMessage(L_DEBUG2, "print_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "print_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -5534,7 +5537,7 @@ reject_jobs(client_t        *con, /* I - Client connection */
   ipp_attribute_t      *attr;          /* printer-state-message text */
 
 
-  LogMessage(L_DEBUG2, "reject_jobs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "reject_jobs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -5637,7 +5640,7 @@ release_job(client_t        *con, /* I - Client connection */
   job_t                        *job;           /* Job information */
 
 
-  LogMessage(L_DEBUG2, "release_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "release_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -5786,7 +5789,7 @@ restart_job(client_t        *con, /* I - Client connection */
   job_t                        *job;           /* Job information */
 
 
-  LogMessage(L_DEBUG2, "restart_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "restart_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -5951,7 +5954,7 @@ send_document(client_t        *con,       /* I - Client connection */
   int                  compression;    /* Type of compression */
 
 
-  LogMessage(L_DEBUG2, "send_document(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "send_document(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -6281,7 +6284,8 @@ static void
 send_ipp_error(client_t     *con,      /* I - Client connection */
                ipp_status_t status)    /* I - IPP status code */
 {
-  LogMessage(L_DEBUG2, "send_ipp_error(%d, %x)\n", con->http.fd, status);
+  LogMessage(L_DEBUG2, "send_ipp_error(%p[%d], %x)\n", con, con->http.fd,
+             status);
 
   LogMessage(L_DEBUG, "Sending error: %s", ippErrorString(status));
 
@@ -6320,7 +6324,7 @@ set_default(client_t        *con, /* I - Client connection */
   printer_t            *printer;       /* Printer */
 
 
-  LogMessage(L_DEBUG2, "set_default(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "set_default(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -6407,7 +6411,7 @@ set_job_attrs(client_t        *con,       /* I - Client connection */
   int                  port;           /* Port portion of URI */
 
 
-  LogMessage(L_DEBUG2, "set_job_attrs(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "set_job_attrs(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -6745,7 +6749,7 @@ start_printer(client_t        *con,       /* I - Client connection */
   printer_t            *printer;       /* Printer data */
 
 
-  LogMessage(L_DEBUG2, "start_printer(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "start_printer(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -6835,7 +6839,7 @@ stop_printer(client_t        *con,        /* I - Client connection */
   ipp_attribute_t      *attr;          /* printer-state-message attribute */
 
 
-  LogMessage(L_DEBUG2, "stop_printer(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "stop_printer(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -6935,7 +6939,7 @@ validate_job(client_t        *con,        /* I - Client connection */
   printer_t            *printer;       /* Printer */
 
 
-  LogMessage(L_DEBUG2, "validate_job(%d, %s)\n", con->http.fd,
+  LogMessage(L_DEBUG2, "validate_job(%p[%d], %s)\n", con, con->http.fd,
              uri->values[0].string.text);
 
  /*
@@ -7085,5 +7089,5 @@ validate_user(job_t      *job,            /* I - Job */
 
 
 /*
- * End of "$Id: ipp.c,v 1.127.2.93 2004/10/04 20:24:16 mike Exp $".
+ * End of "$Id$".
  */
index bf7c4533b2e6b2a6f214bb4f6674b3fe01b31194..50d4102ba97126569dec339c3c82d55032507e5f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: main.c,v 1.57.2.71 2005/02/07 00:14:32 mike Exp $"
+ * "$Id$"
  *
  *   Scheduler main loop for the Common UNIX Printing System (CUPS).
  *
@@ -1100,12 +1100,12 @@ process_children(void)
 
     if (status)
     {
-      if (WIFEXITED(status))
+      if (WIFSTOPPED(status))
+       LogMessage(L_ERROR, "PID %d crashed on signal %d!", pid,
+                  WSTOPSIG(status));
+      else
        LogMessage(L_ERROR, "PID %d stopped with status %d!", pid,
                   WEXITSTATUS(status));
-      else
-       LogMessage(L_ERROR, "PID %d crashed on signal %d!", pid,
-                  WTERMSIG(status));
 
       if (LogLevel < L_DEBUG)
         LogMessage(L_INFO, "Hint: Try setting the LogLevel to \"debug\" to find out more.");
@@ -1412,5 +1412,5 @@ usage(void)
 
 
 /*
- * End of "$Id: main.c,v 1.57.2.71 2005/02/07 00:14:32 mike Exp $".
+ * End of "$Id$".
  */
index 0504b2104107bb20f8ef5dcab908d28e0f4e1854..6cec5bb0b4bc5ec15ca498637afbeda0cf90d024 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c,v 1.93.2.70 2004/12/06 19:43:17 mike Exp $"
+ * "$Id$"
  *
  *   Printer routines for the Common UNIX Printing System (CUPS).
  *
@@ -62,6 +62,7 @@
  */
 
 #ifdef __sgi
+static void    write_irix_config(printer_t *p);
 static void    write_irix_state(printer_t *p);
 #endif /* __sgi */
 
@@ -201,8 +202,8 @@ AddPrinterFilter(printer_t  *p,             /* I - Printer to add to */
        i > 0;
        i --, temptype ++)
     if (((super[0] == '*' && strcasecmp((*temptype)->super, "printer") != 0) ||
-         strcasecmp((*temptype)->super, super) == 0) &&
-        (type[0] == '*' || strcasecmp((*temptype)->type, type) == 0))
+         !strcasecmp((*temptype)->super, super)) &&
+        (type[0] == '*' || !strcasecmp((*temptype)->type, type)))
     {
       LogMessage(L_DEBUG2, "Adding filter %s/%s %s/%s %d %s",
                  (*temptype)->super, (*temptype)->type,
@@ -918,7 +919,7 @@ LoadAllPrinters(void)
         * Set the default printer as needed...
        */
 
-        if (strcasecmp(name, "<DefaultPrinter") == 0)
+        if (!strcasecmp(name, "<DefaultPrinter"))
          DefaultPrinter = p;
       }
       else
@@ -1637,7 +1638,7 @@ SetPrinterAttrs(printer_t *p)             /* I - Printer to setup */
          AddPrinterFilter(p, filename);
        }
        else if (p->device_uri &&
-                strncmp(p->device_uri, "ipp://", 6) == 0 &&
+                !strncmp(p->device_uri, "ipp://", 6) &&
                 (strstr(p->device_uri, "/printers/") != NULL ||
                  strstr(p->device_uri, "/classes/") != NULL))
         {
@@ -2003,7 +2004,7 @@ ValidateDest(const char   *hostname,      /* I - Host name */
   * See if the resource is a class or printer...
   */
 
-  if (strncmp(resource, "/classes/", 9) == 0)
+  if (!strncmp(resource, "/classes/", 9))
   {
    /*
     * Class...
@@ -2011,7 +2012,7 @@ ValidateDest(const char   *hostname,      /* I - Host name */
 
     resource += 9;
   }
-  else if (strncmp(resource, "/printers/", 10) == 0)
+  else if (!strncmp(resource, "/printers/", 10))
   {
    /*
     * Printer...
@@ -2051,12 +2052,12 @@ ValidateDest(const char   *hostname,    /* I - Host name */
   * Change localhost to the server name...
   */
 
-  if (strcasecmp(hostname, "localhost") == 0)
+  if (!strcasecmp(hostname, "localhost"))
     hostname = ServerName;
 
   strlcpy(localname, hostname, sizeof(localname));
 
-  if (strcasecmp(hostname, ServerName) != 0)
+  if (!strcasecmp(hostname, ServerName))
   {
    /*
     * Localize the hostname...
@@ -2073,7 +2074,7 @@ ValidateDest(const char   *hostname,      /* I - Host name */
 
       while (lptr != NULL)
       {
-       if (strcasecmp(lptr, sptr) == 0)
+       if (!strcasecmp(lptr, sptr))
        {
           *lptr = '\0';
          break;
@@ -2091,8 +2092,8 @@ ValidateDest(const char   *hostname,      /* I - Host name */
   */
 
   for (p = Printers; p != NULL; p = p->next)
-    if (strcasecmp(p->hostname, localname) == 0 &&
-        strcasecmp(p->name, resource) == 0)
+    if (!strcasecmp(p->hostname, localname) &&
+        !strcasecmp(p->name, resource))
     {
       if (printer)
         *printer = p;
@@ -2415,6 +2416,7 @@ write_irix_config(printer_t *p)           /* I - Printer to update */
     chmod(filename, 0664);
     chown(filename, User, Group);
   }
+}
 
 
 /*
@@ -2547,5 +2549,5 @@ write_irix_state(printer_t *p)            /* I - Printer to update */
 
 
 /*
- * End of "$Id: printers.c,v 1.93.2.70 2004/12/06 19:43:17 mike Exp $".
+ * End of "$Id$".
  */
index da6f15aea7be3c9c692d200b4f00ee996ab8a8de..30dd7c128b7b546745901d167a5fb202e11c8511 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.23.2.10 2004/10/20 19:55:50 mike Exp $"
+# "$Id$"
 #
 #   System V commands makefile for the Common UNIX Printing System (CUPS).
 #
@@ -69,7 +69,7 @@ install:      all
        $(INSTALL_BIN) lpmove $(SBINDIR)
        $(INSTALL_DIR) $(BINDIR)
        $(INSTALL_BIN) cancel $(BINDIR)
-       $(INSTALL_BIN) cupstestppd $(SBINDIR)
+       $(INSTALL_BIN) cupstestppd $(BINDIR)
        $(RM) $(SBINDIR)/disable
        $(LN) accept $(SBINDIR)/disable
        $(RM) $(SBINDIR)/enable
@@ -77,7 +77,7 @@ install:      all
        $(INSTALL_BIN) lp $(BINDIR)
        $(INSTALL_BIN) lpoptions $(BINDIR)
        $(INSTALL_BIN) lpstat $(BINDIR)
-       $(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)
+       -$(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)
        if test ! -x $(BINDIR)/lppasswd; then \
                chmod 755 $(BINDIR)/lppasswd; \
        fi
@@ -194,5 +194,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile,v 1.23.2.10 2004/10/20 19:55:50 mike Exp $".
+# End of "$Id$".
 #
index 30c2f4018f3324f5a135b8a7e3e1d6e398ac420c..012b77e58e12f177952cd7c04be7d0041da05e52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpinfo.c,v 1.3.2.8 2004/06/29 13:15:11 mike Exp $"
+ * "$Id$"
  *
  *   "lpinfo" command for the Common UNIX Printing System (CUPS).
  *
@@ -45,8 +45,8 @@
  * Local functions...
  */
 
-static void    show_devices(http_t *, int);
-static void    show_models(http_t *, int);
+static int     show_devices(http_t *, int);
+static int     show_models(http_t *, int);
 
 
 /*
@@ -98,7 +98,8 @@ main(int  argc,                       /* I - Number of command-line arguments */
              }
             }
 
-            show_models(http, long_status);
+            if (show_models(http, long_status))
+             return (1);
            break;
            
         case 'v' : /* Show available devices */
@@ -114,7 +115,8 @@ main(int  argc,                     /* I - Number of command-line arguments */
              }
             }
 
-            show_devices(http, long_status);
+            if (show_devices(http, long_status))
+             return (1);
            break;
 
         case 'h' : /* Connect to host */
@@ -158,7 +160,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
  * 'show_devices()' - Show available devices.
  */
 
-static void
+static int                     /* O - 0 on success, 1 on failure */
 show_devices(http_t *http,     /* I - HTTP connection to server */
              int    long_status)/* I - Long status report? */
 {
@@ -173,7 +175,7 @@ show_devices(http_t *http,  /* I - HTTP connection to server */
 
 
   if (http == NULL)
-    return;
+    return (1);
 
  /*
   * Build a CUPS_GET_DEVICES request, which requires the following
@@ -215,7 +217,7 @@ show_devices(http_t *http,  /* I - HTTP connection to server */
       fprintf(stderr, "lpinfo: cups-get-devices failed: %s\n",
               ippErrorString(response->request.status.status_code));
       ippDelete(response);
-      return;
+      return (1);
     }
 
     for (attr = response->attrs; attr != NULL; attr = attr->next)
@@ -294,8 +296,13 @@ show_devices(http_t *http, /* I - HTTP connection to server */
     ippDelete(response);
   }
   else
+  {
     fprintf(stderr, "lpinfo: cups-get-devices failed: %s\n",
             ippErrorString(cupsLastError()));
+    return (1);
+  }
+
+  return (0);
 }
 
 
@@ -303,7 +310,7 @@ show_devices(http_t *http,  /* I - HTTP connection to server */
  * 'show_models()' - Show available PPDs.
  */
 
-static void
+static int                     /* O - 0 on success, 1 on failure */
 show_models(http_t *http,      /* I - HTTP connection to server */
             int    long_status)        /* I - Long status report? */
 {
@@ -317,7 +324,7 @@ show_models(http_t *http,   /* I - HTTP connection to server */
 
 
   if (http == NULL)
-    return;
+    return (1);
 
  /*
   * Build a CUPS_GET_PPDS request, which requires the following
@@ -359,7 +366,7 @@ show_models(http_t *http,   /* I - HTTP connection to server */
       fprintf(stderr, "lpinfo: cups-get-ppds failed: %s\n",
               ippErrorString(response->request.status.status_code));
       ippDelete(response);
-      return;
+      return (1);
     }
 
     for (attr = response->attrs; attr != NULL; attr = attr->next)
@@ -431,11 +438,17 @@ show_models(http_t *http, /* I - HTTP connection to server */
     ippDelete(response);
   }
   else
+  {
     fprintf(stderr, "lpinfo: cups-get-ppds failed: %s\n",
             ippErrorString(cupsLastError()));
+
+    return (1);
+  }
+
+  return (0);
 }
 
 
 /*
- * End of "$Id: lpinfo.c,v 1.3.2.8 2004/06/29 13:15:11 mike Exp $".
+ * End of "$Id$".
  */
index 63bee8529b9666196448b51bf51114e687c7a0b2..602d66f4e62d7c0b579c48546b4a76b6d8542068 100644 (file)
@@ -24,7 +24,9 @@
        <TD>Examples:
        <PRE>
     file:/path/to/filename.prn
+    http://hostname:631/ipp/
     http://hostname:631/ipp/port1
+    ipp://hostname/ipp/
     ipp://hostname/ipp/port1
     lpd://hostname/queue
     socket://hostname
index bed0ed13c1057868f709c6a12931b79b0a60b394..67af46c8486c70d33b64a515141c9d7843aba0b3 100644 (file)
@@ -1,5 +1,5 @@
 <HR>
-<P>Copyright 1993-2002 Easy Software Products, All Rights Reserved. 
+<P>Copyright 1993-2005 by Easy Software Products, All Rights Reserved. 
 The Common UNIX Printing System, CUPS, and the CUPS logo
 are the trademark property of <A HREF="http://www.easysw.com">Easy Software Products</A>. 
 All other trademarks are the property of their respective owners.
index eb5801deac44df72b339cfdd35073f76c1cbade8..686719c317fe83760b302a8f0bcf8278d2a570d5 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile,v 1.2.2.6 2004/06/29 13:15:11 mike Exp $"
+# "$Id$"
 #
 #   IPP test makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2004 by Easy Software Products, all rights reserved.
+#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
 #       Attn: CUPS Licensing Information
 #       Easy Software Products
 #       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636-3142 USA
+#       Hollywood, Maryland 20636 USA
 #
 #       Voice: (301) 373-9600
 #       EMail: cups-info@cups.org
@@ -40,6 +40,14 @@ clean:
        $(RM) ipptest ipptest.o
 
 
+#
+# Update dependencies (without system header dependencies...)
+#
+
+depend:
+       makedepend -Y -I.. -fDependencies ipptest.c >/dev/null 2>&1
+
+
 #
 # Install all targets...
 #
@@ -55,8 +63,6 @@ ipptest:      ipptest.o ../cups/$(LIBCUPS)
        echo Linking $@...
        $(CC) $(LDFLAGS) -o ipptest ipptest.o $(LIBS)
 
-ipptest.o:     ../cups/cups.h
-
 
 #
 # purify target for doing tests on the CUPS API...
@@ -68,5 +74,12 @@ purify:      ipptest.o ../cups/$(LIBCUPS)
 
 
 #
-# End of "$Id: Makefile,v 1.2.2.6 2004/06/29 13:15:11 mike Exp $".
+# Dependencies...
+#
+
+include Dependencies
+
+
+#
+# End of "$Id$".
 #
index b2c4978c1b6adb2a358baa9a61cd10644190b991..63c7a61ca0f11580041ec8931bfdc2ed17dece31 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: ipptest.c,v 1.8.2.9 2004/10/27 14:16:50 mike Exp $"
+ * "$Id$"
  *
  *   IPP test command for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2004 by Easy Software Products.
+ *   Copyright 1997-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -15,7 +15,7 @@
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3142 USA
+ *       Hollywood, Maryland 20636 USA
  *
  *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
@@ -111,6 +111,7 @@ do_tests(const char *uri,           /* I - URI to connect on */
          const char *testfile)         /* I - Test file to use */
 {
   int          i;                      /* Looping var */
+  int          version;                /* IPP version number to use */
   http_t       *http;                  /* HTTP connection to server */
   char         method[HTTP_MAX_URI],   /* URI method */
                userpass[HTTP_MAX_URI], /* username:password */
@@ -166,8 +167,9 @@ do_tests(const char *uri,           /* I - URI to connect on */
   */
 
   printf("\"%s\":\n", testfile);
-  pass   = 1;
-  job_id = 0;
+  pass    = 1;
+  job_id  = 0;
+  version = 1;
 
   while (get_token(fp, token, sizeof(token)) != NULL)
   {
@@ -216,6 +218,15 @@ do_tests(const char *uri,          /* I - URI to connect on */
 
        get_token(fp, name, sizeof(name));
       }
+      else if (strcasecmp(token, "VERSION") == 0)
+      {
+       /*
+        * IPP version number for test...
+       */
+
+       get_token(fp, temp, sizeof(temp));
+       sscanf(temp, "%*d.%d", &version);
+      }
       else if (strcasecmp(token, "RESOURCE") == 0)
       {
        /*
@@ -387,6 +398,7 @@ do_tests(const char *uri,           /* I - URI to connect on */
     * Submit the IPP request...
     */
 
+    request->request.op.version[1]   = version;
     request->request.op.operation_id = op;
     request->request.op.request_id   = 1;
 
@@ -535,6 +547,9 @@ get_operation(const char *name)
     if (strcasecmp(name, ipp_ops[i]) == 0)
       return ((ipp_op_t)i);
 
+  if (strcasecmp(name, "windows-ext") == 0)
+    return (IPP_PRIVATE);
+
   for (i = 0; i < (sizeof(cups_ops) / sizeof(cups_ops[0])); i ++)
     if (strcasecmp(name, cups_ops[i]) == 0)
       return ((ipp_op_t)(i + 0x4001));
@@ -807,5 +822,5 @@ print_attr(ipp_attribute_t *attr)   /* I - Attribute to print */
 
 
 /*
- * End of "$Id: ipptest.c,v 1.8.2.9 2004/10/27 14:16:50 mike Exp $".
+ * End of "$Id$".
  */
index 4c7368a4e963df4cc91775dc12e3506f5ab75458..57b94cbf769924a76cbdf54c9615cd714626ac9c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# "$Id: run-stp-tests.sh,v 1.4.2.22 2004/06/30 21:18:32 mike Exp $"
+# "$Id$"
 #
 #   Perform the complete set of IPP compliance tests specified in the
 #   CUPS Software Test Plan.
@@ -290,7 +290,7 @@ else
        DYLD_LIBRARY_PATH="$root/cups:$root/filter:$DYLD_LIBRARY_PATH"
 fi
 
-export SHLIB_PATH
+export DYLD_LIBRARY_PATH
 
 if test "x$SHLIB_PATH" = x; then
        SHLIB_PATH="$root/cups:$root/filter"
@@ -500,5 +500,5 @@ echo "    $pdffile"
 echo ""
 
 #
-# End of "$Id: run-stp-tests.sh,v 1.4.2.22 2004/06/30 21:18:32 mike Exp $"
+# End of "$Id$"
 #