Comparar commits

..

1 Commits

Autor SHA1 Mensagem Data
msweet 03580bbc75 Import cups.org releases
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/tags/release-1.0.5@4306 a1ca3aef-8c08-0410-bb20-df032aa958be
2013-05-10 18:56:23 +00:00
194 arquivos alterados com 2157 adições e 429 exclusões
+2 -2
Ver Arquivo
@@ -21,7 +21,7 @@ CUPS also includes a customized version of GNU GhostScript (currently
based off GNU GhostScript 4.03) and an image file RIP that can be used
to support non-PostScript printers.
CUPS is Copyright 1993-1999 by Easy Software Products, All Rights
CUPS is Copyright 1993-2000 by Easy Software Products, All Rights
Reserved. CUPS is currently licensed under the terms of the GNU
General Public License. Please see the license file for details.
@@ -181,7 +181,7 @@ software. New releases of CUPS are announced to this list as well.
LEGAL STUFF
CUPS is Copyright 1993-1999 by Easy Software Products. CUPS, the CUPS
CUPS is Copyright 1993-2000 by Easy Software Products. CUPS, the CUPS
logo, and the Common UNIX Printing System are the trademark property of
Easy Software Products.
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Backend makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Backend test program for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+4 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* IPP backend for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
@@ -622,6 +622,9 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
fprintf(stderr, "PAGE: 1 %d\n", copies_sup ? atoi(argv[4]) : 1);
copies --;
}
else if (ipp_status != IPP_SERVICE_UNAVAILABLE &&
ipp_status != IPP_PRINTER_BUSY)
break;
}
/*
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Line Printer Daemon backend for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Parallel port backend for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Serial port backend for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+2 -2
Ver Arquivo
@@ -3,7 +3,7 @@
*
* AppSocket backend for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
@@ -128,7 +128,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
if ((hostaddr = gethostbyname(hostname)) == NULL)
{
fprintf(stderr, "ERROR: Unable to locate printer \'%s\' - %s",
fprintf(stderr, "ERROR: Unable to locate printer \'%s\' - %s\n",
hostname, strerror(errno));
return (1);
}
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Berkeley commands makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* "lpc" command for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* "lpq" command for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* "lpr" command for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* "lprm" command for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# CGI makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products.
# Copyright 1997-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
+2 -6
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Class status CGI for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -96,10 +96,6 @@ main(int argc, /* I - Number of command-line arguments */
puts("<HTML>");
puts("<HEAD>");
if (name)
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"10\">");
else
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"30\">");
printf("<TITLE>%s on %s - " CUPS_SVERSION "</TITLE>\n",
name == NULL ? "Classes" : name, getenv("SERVER_NAME"));
puts("<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"/cups.css\">");
@@ -158,7 +154,7 @@ main(int argc, /* I - Number of command-line arguments */
puts("<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the");
puts("trademark property of <A HREF=\"http://www.easysw.com\">Easy Software");
puts("Products</A>. CUPS is copyright 1997-1999 by Easy Software Products,");
puts("Products</A>. CUPS is copyright 1997-2000 by Easy Software Products,");
puts("All Rights Reserved.");
puts("</BODY>");
+2 -6
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Job status CGI for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -96,10 +96,6 @@ main(int argc, /* I - Number of command-line arguments */
puts("<HTML>");
puts("<HEAD>");
if (job)
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"10\">");
else
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"30\">");
printf("<TITLE>%s on %s - " CUPS_SVERSION "</TITLE>\n",
job == NULL ? "Jobs" : job, getenv("SERVER_NAME"));
puts("<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"/cups.css\">");
@@ -145,7 +141,7 @@ main(int argc, /* I - Number of command-line arguments */
puts("<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the");
puts("trademark property of <A HREF=\"http://www.easysw.com\">Easy Software");
puts("Products</A>. CUPS is copyright 1997-1999 by Easy Software Products,");
puts("Products</A>. CUPS is copyright 1997-2000 by Easy Software Products,");
puts("All Rights Reserved.");
puts("</BODY>");
+2 -6
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Printer status CGI for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -96,10 +96,6 @@ main(int argc, /* I - Number of command-line arguments */
puts("<HTML>");
puts("<HEAD>");
if (printer)
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"10\">");
else
puts("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"30\">");
printf("<TITLE>%s on %s - " CUPS_SVERSION "</TITLE>\n",
printer == NULL ? "Printers" : printer, getenv("SERVER_NAME"));
puts("<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"/cups.css\">");
@@ -158,7 +154,7 @@ main(int argc, /* I - Number of command-line arguments */
puts("<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the");
puts("trademark property of <A HREF=\"http://www.easysw.com\">Easy Software");
puts("Products</A>. CUPS is copyright 1997-1999 by Easy Software Products,");
puts("Products</A>. CUPS is copyright 1997-2000 by Easy Software Products,");
puts("All Rights Reserved.");
puts("</BODY>");
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Configuration file makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1993-1999 by Easy Software Products.
# Copyright 1993-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
+3 -3
Ver Arquivo
@@ -1,10 +1,10 @@
#
# "$Id: classes.conf 678 1999-09-22 18:10:55Z mike $"
# "$Id: classes.conf 846 2000-01-19 22:17:50Z mike $"
#
# Sample class configuration file for the Common UNIX Printing System
# (CUPS) scheduler.
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
@@ -75,5 +75,5 @@
#</Class>
#
# End of "$Id: classes.conf 678 1999-09-22 18:10:55Z mike $".
# End of "$Id: classes.conf 846 2000-01-19 22:17:50Z mike $".
#
+3 -3
Ver Arquivo
@@ -1,10 +1,10 @@
#
# "$Id: cupsd.conf 628 1999-08-23 15:24:48Z mike $"
# "$Id: cupsd.conf 846 2000-01-19 22:17:50Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler.
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
@@ -365,5 +365,5 @@ Allow From 127.0.0.1
</Location>
#
# End of "$Id: cupsd.conf 628 1999-08-23 15:24:48Z mike $".
# End of "$Id: cupsd.conf 846 2000-01-19 22:17:50Z mike $".
#
+3 -3
Ver Arquivo
@@ -1,9 +1,9 @@
#
# "$Id: mime.convs 575 1999-07-30 13:57:16Z mike $"
# "$Id: mime.convs 846 2000-01-19 22:17:50Z mike $"
#
# MIME converts file for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products.
# Copyright 1997-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
@@ -58,5 +58,5 @@ image/* application/vnd.cups-raster 50 imagetoraster
application/vnd.cups-postscript application/vnd.cups-raster 50 pstoraster
#
# End of "$Id: mime.convs 575 1999-07-30 13:57:16Z mike $".
# End of "$Id: mime.convs 846 2000-01-19 22:17:50Z mike $".
#
+3 -3
Ver Arquivo
@@ -1,9 +1,9 @@
#
# "$Id: mime.types 575 1999-07-30 13:57:16Z mike $"
# "$Id: mime.types 846 2000-01-19 22:17:50Z mike $"
#
# MIME types file for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products.
# Copyright 1997-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
@@ -118,5 +118,5 @@ application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
application/vnd.cups-raw
#
# End of "$Id: mime.types 575 1999-07-30 13:57:16Z mike $".
# End of "$Id: mime.types 846 2000-01-19 22:17:50Z mike $".
#
+3 -3
Ver Arquivo
@@ -1,10 +1,10 @@
#
# "$Id: printers.conf 678 1999-09-22 18:10:55Z mike $"
# "$Id: printers.conf 846 2000-01-19 22:17:50Z mike $"
#
# Sample printer configuration file for the Common UNIX Printing System
# (CUPS) scheduler.
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
@@ -92,5 +92,5 @@
#</Printer>
#
# End of "$Id: printers.conf 678 1999-09-22 18:10:55Z mike $".
# End of "$Id: printers.conf 846 2000-01-19 22:17:50Z mike $".
#
+2 -4
Ver Arquivo
@@ -3,9 +3,7 @@
*
* Configuration file for the Common UNIX Printing System (CUPS).
*
* @configure_input@
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -28,7 +26,7 @@
* Version of software...
*/
#define CUPS_SVERSION "CUPS v1.0.4"
#define CUPS_SVERSION "CUPS v1.0.5"
/*
* Where are files stored?
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@ dnl "$Id$"
dnl
dnl Configuration script for the Common UNIX Printing System (CUPS).
dnl
dnl Copyright 1997-1999 by Easy Software Products, all rights reserved.
dnl Copyright 1997-2000 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
dnl property of Easy Software Products and are protected by Federal
+5 -8
Ver Arquivo
@@ -1,13 +1,10 @@
#
# "$Id: cups.list 835 1999-12-29 17:27:56Z $"
# "$Id: cups.list 909 2000-02-22 20:14:53Z $"
#
# ESP Package Manager (EPM) file list for the Common UNIX Printing
# System (CUPS).
#
# EPM can be found in the "epm" subdirectory of this distribution.
# Please report problems and fixes to "epm@easysw.com".
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
@@ -27,11 +24,11 @@
#
%product Common UNIX Printing System
%copyright 1993-1999 by Easy Software Products, All Rights Reserved.
%copyright 1993-2000 by Easy Software Products, All Rights Reserved.
%vendor Easy Software Products
%license LICENSE.cups
%readme README.cups
%version 1.0.4
%version 1.0.5
%incompat printpro
%system all
@@ -315,5 +312,5 @@ f 0444 root sys /usr/man/man5/printers.conf.5 man/printers.conf.5
i 0555 root sys cups cups.sh
#
# End of "$Id: cups.list 835 1999-12-29 17:27:56Z $".
# End of "$Id: cups.list 909 2000-02-22 20:14:53Z $".
#
+1 -1
Ver Arquivo
@@ -10,7 +10,7 @@
# description: Startup/shutdown script for the Common UNIX \
# Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
+6 -5
Ver Arquivo
@@ -1,11 +1,11 @@
#
# "$Id: cups.spec 835 1999-12-29 17:27:56Z $"
# "$Id: cups.spec 909 2000-02-22 20:14:53Z $"
#
# RPM "spec" file for the Common UNIX Printing System (CUPS).
#
# Original version by Jason McMullan <jmcc@ontv.com>.
#
# Copyright 1999 by Easy Software Products, all rights reserved.
# Copyright 1999-2000 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
@@ -26,11 +26,11 @@
Summary: Common Unix Printing System
Name: cups
Version: 1.0.4
Version: 1.0.5
Release: 0
Copyright: GPL
Group: System Environment/Daemons
Source: ftp://ftp.easysw.com/pub/cups/1.0.4/cups-1.0.4-source.tar.gz
Source: ftp://ftp.easysw.com/pub/cups/1.0.5/cups-1.0.5-source.tar.gz
Url: http://www.cups.org
Packager: Michael Sweet <mike@easysw.com>
Vendor: Easy Software Products
@@ -98,6 +98,7 @@ ln -sf /usr/sbin/lpadmin $RPM_BUILD_ROOT/usr/lib/lpadmin
%post
/sbin/chkconfig --add cups
/sbin/chkconfig cups on
%preun
/sbin/chkconfig --del cups
@@ -130,5 +131,5 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/cups/*
#
# End of "$Id: cups.spec 835 1999-12-29 17:27:56Z $".
# End of "$Id: cups.spec 909 2000-02-22 20:14:53Z $".
#
+2 -2
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Support library Makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products, all rights reserved.
# Copyright 1997-2000 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
@@ -103,7 +103,7 @@ cups_C.h: ../locale/C/cups_C
emit.o: ppd.h ../config.h ../Makedefs
filter.o: mime.h ../config.h ../Makedefs
http.o: http.h ipp.h string.h ../config.h ../Makedefs
ipp.o: http.h ipp.h ../config.h ../Makedefs
ipp.o: http.h ipp.h string.h language.h ../config.h ../Makedefs
language.o: cups_C.h language.h string.h ../config.h ../Makedefs
mark.o: ppd.h ../config.h ../Makedefs
mime.o: mime.h ../config.h ../Makedefs
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* API definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -18,7 +18,7 @@
"Cyan",
"Magenta",
"Yellow",
"Copyright 1993-1999 by Easy Software Products, All Rights Reserved.",
"Copyright 1993-2000 by Easy Software Products, All Rights Reserved.",
"General",
"Printer",
"Image",
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Debugging macros for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PPD code emission routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* File type conversion routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+14 -14
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HTTP routines for the Common UNIX Printing System (CUPS) scheduler.
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 by Easy Software Products, all rights reserved.
*
* These statusd instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -503,18 +503,7 @@ httpSeparate(const char *uri, /* I - Universal Resource Identifier */
else
username[0] = '\0';
if (*uri == '\0')
{
/*
* Hostname but no port or path...
*/
*port = 0;
resource[0] = '/';
resource[1] = '\0';
return;
}
else if (*uri == ':')
if (*uri == ':')
{
/*
* Parse port number...
@@ -538,7 +527,7 @@ httpSeparate(const char *uri, /* I - Universal Resource Identifier */
*port = 80;
else if (strcasecmp(method, "https") == 0)
*port = 443;
else if (strcasecmp(method, "ipp") == 0) /* Not registered yet... */
else if (strcasecmp(method, "ipp") == 0)
*port = ippPort();
else if (strcasecmp(method, "socket") == 0) /* Not registered yet... */
*port = 9100;
@@ -546,6 +535,17 @@ httpSeparate(const char *uri, /* I - Universal Resource Identifier */
*port = 0;
}
if (*uri == '\0')
{
/*
* Hostname but no path...
*/
resource[0] = '/';
resource[1] = '\0';
return;
}
/*
* The remaining portion is the resource string...
*/
+1 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* Hyper-Text Transport Protocol definitions for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+80 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* Internet Printing Protocol support functions for the Common UNIX
* Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
@@ -38,6 +38,7 @@
* ippAddSeparator() - Add a group separator to an IPP request.
* ippDateToTime() - Convert from RFC 1903 Date/Time format to UNIX time
* ippDelete() - Delete an IPP request.
* ippErrorString() - Return a textual message for the given error message.
* ippFindAttribute() - Find a named attribute in a request...
* ippLength() - Compute the length of an IPP request.
* ippPort() - Return the default IPP port number.
@@ -55,6 +56,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "string.h"
#include "language.h"
#include "ipp.h"
#include "debug.h"
@@ -571,6 +573,83 @@ ippDelete(ipp_t *ipp) /* I - IPP request */
}
/*
* 'ippErrorString()' - Return a textual message for the given error message.
*/
const char * /* O - Text string */
ippErrorString(ipp_status_t error) /* I - Error status */
{
static cups_lang_t *language = 0; /* Language info */
/*
* Load the localized message file as needed...
*/
if (!language)
language = cupsLangDefault();
/*
* Return the appropriate message...
*/
switch (error)
{
case IPP_OK :
case IPP_OK_SUBST :
case IPP_OK_CONFLICT :
return ("OK");
case IPP_BAD_REQUEST :
return (cupsLangString(language, HTTP_BAD_REQUEST));
case IPP_FORBIDDEN :
return (cupsLangString(language, HTTP_FORBIDDEN));
case IPP_NOT_AUTHENTICATED :
case IPP_NOT_AUTHORIZED :
return (cupsLangString(language, HTTP_UNAUTHORIZED));
case IPP_NOT_POSSIBLE :
return (cupsLangString(language, HTTP_METHOD_NOT_ALLOWED));
case IPP_TIMEOUT :
return (cupsLangString(language, HTTP_REQUEST_TIMEOUT));
case IPP_NOT_FOUND :
return (cupsLangString(language, HTTP_NOT_FOUND));
case IPP_GONE :
return (cupsLangString(language, HTTP_GONE));
case IPP_DOCUMENT_FORMAT :
return (cupsLangString(language, HTTP_UNSUPPORTED_MEDIATYPE));
case IPP_CONFLICT :
return (cupsLangString(language, HTTP_CONFLICT));
case IPP_INTERNAL_ERROR :
return (cupsLangString(language, HTTP_SERVER_ERROR));
case IPP_OPERATION_NOT_SUPPORTED :
case IPP_VERSION_NOT_SUPPORTED :
return (cupsLangString(language, HTTP_NOT_SUPPORTED));
case IPP_SERVICE_UNAVAILABLE :
case IPP_DEVICE_UNAVAILABLE :
case IPP_TEMPORARY_ERROR :
case IPP_PRINTER_BUSY :
return (cupsLangString(language, HTTP_SERVICE_UNAVAILABLE));
case IPP_NOT_ACCEPTING :
return (cupsLangString(language, CUPS_MSG_NOT_ACCEPTING_JOBS));
}
return ("ERROR");
}
/*
* 'ippFindAttribute()' - Find a named attribute in a request...
*/
+3 -2
Ver Arquivo
@@ -4,7 +4,7 @@
* Internet Printing Protocol definitions for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -307,7 +307,6 @@ typedef struct /**** Request State ****/
* Prototypes...
*/
extern time_t ippDateToTime(const ipp_uchar_t *date);
extern ipp_attribute_t *ippAddBoolean(ipp_t *ipp, ipp_tag_t group, const char *name, char value);
extern ipp_attribute_t *ippAddBooleans(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const char *values);
extern ipp_attribute_t *ippAddDate(ipp_t *ipp, ipp_tag_t group, const char *name, const ipp_uchar_t *value);
@@ -320,7 +319,9 @@ extern ipp_attribute_t *ippAddResolutions(ipp_t *ipp, ipp_tag_t group, const cha
extern ipp_attribute_t *ippAddSeparator(ipp_t *ipp);
extern ipp_attribute_t *ippAddString(ipp_t *ipp, ipp_tag_t group, ipp_tag_t type, const char *name, const char *charset, const char *value);
extern ipp_attribute_t *ippAddStrings(ipp_t *ipp, ipp_tag_t group, ipp_tag_t type, const char *name, int num_values, const char *charset, const char **values);
extern time_t ippDateToTime(const ipp_uchar_t *date);
extern void ippDelete(ipp_t *ipp);
extern const char *ippErrorString(ipp_status_t error);
extern ipp_attribute_t *ippFindAttribute(ipp_t *ipp, const char *name, ipp_tag_t type);
extern size_t ippLength(ipp_t *ipp);
extern ipp_t *ippNew(void);
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* I18N/language support for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Multi-language support for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Option marking routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* MIME database file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
@@ -33,6 +33,20 @@
* Revision History:
*
* $Log: mime.c,v $
* Revision 1.15.2.1 2000/01/19 22:17:11 mike
* Mirror of 4.0.x baseline changes.
*
* Y2k copyright updates.
*
* Revision 1.15.4.1 2000/01/19 20:48:49 mike
* Y2k copyright nonsense.
*
* pstops memory leak fix
*
* Now copy interface/PPD files instead of renaming them.
*
* PAM errors now show the textual message via pam_strerror().
*
* Revision 1.15 1999/10/10 15:40:23 mike
* Scanf, strcpy, and sprintf security changes.
*
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* MIME type/conversion database definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+3 -2
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Option routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -354,7 +354,8 @@ cupsMarkOptions(ppd_file_t *ppd, /* I - PPD file */
conflict = 1;
}
}
else if (strcasecmp(options->name, "resolution") == 0)
else if (strcasecmp(options->name, "resolution") == 0 ||
strcasecmp(options->name, "printer-resolution") == 0)
{
if (ppdMarkOption(ppd, "Resolution", options->value))
conflict = 1;
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Page size functions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* PostScript Printer Description definitions for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Raster file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Raster file definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* snprintf functions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* String functions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* String definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HTTP test program for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* MIME test program for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PPD test program for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* MIME typing routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products, all rights reserved.
* Copyright 1997-2000 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
+1 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* User, system, and password routines for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+38 -6
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Printing utilities for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -90,7 +90,10 @@ cupsCancelJob(const char *name, /* I - Name of printer or class */
*/
if (!cups_connect(name, printer, hostname))
{
last_error = IPP_SERVICE_UNAVAILABLE;
return (0);
}
/*
* Build an IPP_CANCEL_JOB request, which requires the following
@@ -183,6 +186,7 @@ cupsDoFileRequest(http_t *http, /* I - HTTP connection to server */
*/
ippDelete(request);
last_error = IPP_NOT_FOUND;
return (NULL);
}
@@ -193,6 +197,7 @@ cupsDoFileRequest(http_t *http, /* I - HTTP connection to server */
*/
ippDelete(request);
last_error = IPP_NOT_FOUND;
return (NULL);
}
}
@@ -332,6 +337,8 @@ cupsDoFileRequest(http_t *http, /* I - HTTP connection to server */
ippDelete(response);
response = NULL;
last_error = IPP_SERVICE_UNAVAILABLE;
/*
* Flush any remaining data...
*/
@@ -355,6 +362,15 @@ cupsDoFileRequest(http_t *http, /* I - HTTP connection to server */
ippDelete(request);
if (response)
last_error = response->request.status.status_code;
else if (status == HTTP_NOT_FOUND)
last_error = IPP_NOT_FOUND;
else if (status == HTTP_UNAUTHORIZED)
last_error = IPP_NOT_AUTHORIZED;
else if (status != HTTP_OK)
last_error = IPP_SERVICE_UNAVAILABLE;
return (response);
}
@@ -379,7 +395,10 @@ cupsGetClasses(char ***classes) /* O - Classes */
*/
if (!cups_connect("default", NULL, NULL))
{
last_error = IPP_SERVICE_UNAVAILABLE;
return (0);
}
/*
* Build a CUPS_GET_CLASSES request, which requires the following
@@ -465,25 +484,31 @@ cupsGetDefault(void)
*response; /* IPP Response */
ipp_attribute_t *attr; /* Current attribute */
cups_lang_t *language; /* Default language */
const char *var; /* Environment variable */
static char def_printer[64];/* Default printer */
/*
* First see if the LPDEST or PRINTER environment variables are
* set...
* set... However, if PRINTER is set to "lp", ignore it to work
* around a "feature" in most Linux distributions - the default
* user login scripts set PRINTER to "lp"...
*/
if (getenv("LPDEST") != NULL)
return (getenv("LPDEST"));
else if (getenv("PRINTER") != NULL)
return (getenv("PRINTER"));
if ((var = getenv("LPDEST")) != NULL)
return (var);
else if ((var = getenv("PRINTER")) != NULL && strcmp(var, "lp") != 0)
return (var);
/*
* Try to connect to the server...
*/
if (!cups_connect("default", NULL, NULL))
{
last_error = IPP_SERVICE_UNAVAILABLE;
return (NULL);
}
/*
* Build a CUPS_GET_DEFAULT request, which requires the following
@@ -557,7 +582,10 @@ cupsGetPPD(const char *name) /* I - Printer name */
*/
if (!cups_connect(name, printer, hostname))
{
last_error = IPP_SERVICE_UNAVAILABLE;
return (NULL);
}
/*
* Then check for the cache file...
@@ -672,7 +700,10 @@ cupsGetPrinters(char ***printers) /* O - Printers */
*/
if (!cups_connect("default", NULL, NULL))
{
last_error = IPP_SERVICE_UNAVAILABLE;
return (0);
}
/*
* Build a CUPS_GET_PRINTERS request, which requires the following
@@ -801,6 +832,7 @@ cupsPrintFile(const char *name, /* I - Printer or class name */
{
DEBUG_printf(("cupsPrintFile: Unable to open connection - %s.\n",
strerror(errno)));
last_error = IPP_SERVICE_UNAVAILABLE;
ippDelete(request);
return (0);
}
+37
Ver Arquivo
@@ -0,0 +1,37 @@
%%BeginResource: procset hpgltops 1.0 0
%
% "$Id: HPGLprolog 800 1999-12-07 21:56:29Z mike $"
%
% HP-GL/2 filter procset for the Common UNIX Printing System (CUPS).
%
% This procset contains the basic drawing commands that are used to
% reduce output size. Note the 'MP' (make newpath) definition - this
% should be called 'NP' (newpath), but GhostScript uses the 'NP' name
% for 'noaccess put' in some of its font files...
%
% Copyright 1993-1999 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-3111 USA
%
% Voice: (301) 373-9603
% EMail: cups-info@cups.org
% WWW: http://www.cups.org
%
/MO { moveto } bind def
/LI { lineto } bind def
/FI { fill } bind def
/ST { stroke } bind def
/CP { closepath } bind def
/MP { newpath } bind def
/SP { setlinewidth setrgbcolor } bind def
%%EndResource
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Datafile makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1993-1999 by Easy Software Products.
# Copyright 1993-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
+1051
Ver Arquivo
Diferenças do arquivo suprimidas por serem muito extensas Carregar Diff
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Documentation makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1993-1999 by Easy Software Products.
# Copyright 1993-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
+6 -6
Ver Arquivo
@@ -1,7 +1,7 @@
<HTML>
<HEAD>
<META NAME="DOCNUMBER" CONTENT="CUPS-CMP-1.0">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>CUPS Configuration Management Plan</TITLE>
</HEAD>
@@ -334,16 +334,16 @@ extension of ".h".
The top of each source file shall contain a header giving the name of the
file, the purpose or nature of the source file, the copyright and licensing
notice, and the functions contained in the file. The file name and revision
information is provided by the CVS "$Id: cmp.shtml 679 1999-09-22 20:06:27Z mike $" tag:
information is provided by the CVS "$Id: cmp.shtml 909 2000-02-22 20:14:53Z $" tag:
<UL>
<PRE>
/*
* "$Id: cmp.shtml 679 1999-09-22 20:06:27Z mike $"
* "$Id: cmp.shtml 909 2000-02-22 20:14:53Z $"
*
* Description of file contents.
*
* Copyright 1997-1999 by Easy Software Products, all rights
* Copyright 1997-2000 by Easy Software Products, all rights
* reserved.
*
* These coded instructions, statements, and computer programs are
@@ -372,14 +372,14 @@ information is provided by the CVS "$Id: cmp.shtml 679 1999-09-22 20:06:27Z mike
</UL>
The bottom of each source file shall contain a trailer giving the name
of the file using the CVS "$Id: cmp.shtml 679 1999-09-22 20:06:27Z mike $" tag. The primary purpose of this is to
of the file using the CVS "$Id: cmp.shtml 909 2000-02-22 20:14:53Z $" tag. The primary purpose of this is to
mark the end of a source file; if the trailer is missing it is possible
that code has been lost near the end of the file:
<UL>
<PRE>
/*
* End of "$Id: cmp.shtml 679 1999-09-22 20:06:27Z mike $".
* End of "$Id: cmp.shtml 909 2000-02-22 20:14:53Z $".
*/
</PRE>
</UL>
+1 -1
Ver Arquivo
@@ -1,6 +1,6 @@
<HTML>
<HEAD>
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-IDD-1.0">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>CUPS Interface Design Description</TITLE>
+1 -1
Ver Arquivo
@@ -13,7 +13,7 @@
<P ALIGN=right>October 4, 1999<BR>
Michael Sweet, Easy Software Products<BR>
Copyright 1998-1999, All Rights Reserved.</P>
Copyright 1998-2000, All Rights Reserved.</P>
</TD>
</TR>
</TABLE>
+2 -2
Ver Arquivo
@@ -1,7 +1,7 @@
<HTML>
<HEAD>
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SAM-1.0.4">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SAM-1.0.5">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>CUPS Software Administrators Manual</TITLE>
</HEAD>
+1 -1
Ver Arquivo
@@ -1,6 +1,6 @@
<HTML>
<HEAD>
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SDD-1.0">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>CUPS Software Design Description</TITLE>
+1 -1
Ver Arquivo
@@ -1,6 +1,6 @@
<HTML>
<HEAD>
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SPM-1.0b1">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>DRAFT - CUPS Software Programmers Manual</TITLE>
+1 -1
Ver Arquivo
@@ -1,6 +1,6 @@
<HTML>
<HEAD>
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SSR-1.0">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>DRAFT - CUPS Software Security Report</TITLE>
+1 -1
Ver Arquivo
@@ -1,7 +1,7 @@
<HTML>
<HEAD>
<META NAME="Description" CONTENT="Common UNIX Printing System Software Test Plan">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-STP-1.0">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>DRAFT - CUPS Software Test Plan</TITLE>
+3 -3
Ver Arquivo
@@ -1,8 +1,8 @@
<HTML>
<HEAD>
<META NAME="Description" CONTENT="Common UNIX Printing System Software Users Manual">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-1999, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SUM-1.0.4">
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
<META NAME="DOCNUMBER" CONTENT="CUPS-SUM-1.0.5">
<META NAME="Author" CONTENT="Easy Software Products">
<TITLE>CUPS Software Users Manual</TITLE>
</HEAD>
@@ -11,7 +11,7 @@
<H1 ALIGN=RIGHT>Preface</H1>
This software users manual describes how to use the Common UNIX Printing
System ("CUPS") Version 1.0.4.
System ("CUPS") Version 1.0.5.
<H2>System Overview</H2>
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
#
# Filter makefile for the Common UNIX Printing System (CUPS).
#
# Copyright 1997-1999 by Easy Software Products.
# Copyright 1997-2000 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Common filter routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Common filter definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1997-1999 by Easy Software Products.
* Copyright 1997-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 attribute processing for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 character processing for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+23 -9
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 configuration routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -510,7 +510,7 @@ PS_plot_size(int num_params, /* I - Number of parameters */
{
switch (num_params)
{
case 0 :
case 0 : /* PS ; */
if (Rotation == 0 || Rotation == 180)
{
PlotSize[0] = PageWidth;
@@ -522,7 +522,7 @@ PS_plot_size(int num_params, /* I - Number of parameters */
PlotSize[1] = PageWidth;
}
break;
case 1 :
case 1 : /* PS length ; */
if (Rotation == 0 || Rotation == 180)
{
PlotSize[1] = 72.0f * params[0].value.number / 1016.0f;
@@ -534,17 +534,31 @@ PS_plot_size(int num_params, /* I - Number of parameters */
PlotSize[1] = 0.75f * PlotSize[0];
}
break;
case 2 :
case 2 : /* PS length, width ; */
/*
* Unfortunately, it appears that NO application correctly
* sends a two-argument PS command as documented in the
* HP-GL/2 Reference Manual from HP. Instead, applications
* send the width before the length, which causes all sorts
* of problems.
*
* Rather than fight it, we now look for them as width,length
* instead of length,width.
*
* Don't like it? Send mail to the folks that make Ideas, Pro/E,
* AutoCAD, etc.
*/
if (Rotation == 0 || Rotation == 180)
{
PlotSize[0] = 72.0f * params[1].value.number / 1016.0f;
PlotSize[1] = 72.0f * params[0].value.number / 1016.0f;
}
else
{
PlotSize[0] = 72.0f * params[0].value.number / 1016.0f;
PlotSize[1] = 72.0f * params[1].value.number / 1016.0f;
}
else
{
PlotSize[0] = 72.0f * params[1].value.number / 1016.0f;
PlotSize[1] = 72.0f * params[0].value.number / 1016.0f;
}
break;
}
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 input processing for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 filter main entry for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 polygon routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+8 -2
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 prolog routines for for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -147,7 +147,7 @@ Outputf(const char *format, /* I - Printf-style string */
* Set the page size for this page...
*/
if (Rotation == 0 || Rotation == 180)
if (PageRotation == 0 || PageRotation == 180)
{
width = PlotSize[0];
length = PlotSize[1];
@@ -310,13 +310,16 @@ Outputf(const char *format, /* I - Printf-style string */
printf("%.1f %.1f translate\n", PageWidth - PageRight, PageBottom);
break;
case 1 :
printf("%.0f 0 translate 90 rotate\n", PageLength);
printf("%.1f %.1f translate\n", PageLength - PageTop,
PageWidth - PageRight);
break;
case 2 :
printf("%.0f %.0f translate 180 rotate\n", PageWidth, PageLength);
printf("%.1f %.1f translate\n", PageLeft, PageLength - PageTop);
break;
case 3 :
printf("0 %.0f translate -90 rotate\n", PageWidth);
printf("%.1f %.1f translate\n", PageBottom, PageLeft);
break;
}
@@ -327,13 +330,16 @@ Outputf(const char *format, /* I - Printf-style string */
printf("%.1f %.1f translate\n", PageLeft, PageBottom);
break;
case 1 :
printf("%.0f 0 translate 90 rotate\n", PageLength);
printf("%.1f %.1f translate\n", PageBottom, PageWidth - PageRight);
break;
case 2 :
printf("%.0f %.0f translate 180 rotate\n", PageWidth, PageLength);
printf("%.1f %.1f translate\n", PageWidth - PageRight,
PageLength - PageTop);
break;
case 3 :
printf("0 %.0f translate -90 rotate\n", PageWidth);
printf("%.1f %.1f translate\n", PageLength - PageTop, PageLeft);
break;
}
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 vector routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* HP-GL/2 to PostScript filter for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Colorspace conversions for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* GIF image routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* JPEG image routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PhotoCD routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PNG image routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Portable Any Map file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* SGI image file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* SGI image file format library definitions for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -4,7 +4,7 @@
* SGI image file format library routines for the Common UNIX Printing
* System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Sun Raster image file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* TIFF file routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Image zoom routines for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Base image support for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Image library definitions for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
+1 -4
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Image file to PostScript filter for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -120,9 +120,6 @@ main(int argc, /* I - Number of command-line arguments */
ppd = SetCommonOptions(num_options, options, 1);
ppdMarkDefaults(ppd);
cupsMarkOptions(ppd, num_options, options);
if ((val = cupsGetOption("multiple-document-handling", num_options, options)) != NULL)
{
/*
+2 -5
Ver Arquivo
@@ -3,7 +3,7 @@
*
* Image file to raster filter for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -224,9 +224,6 @@ main(int argc, /* I - Number of command-line arguments */
ppd = SetCommonOptions(num_options, options, 0);
ppdMarkDefaults(ppd);
cupsMarkOptions(ppd, num_options, options);
if ((val = cupsGetOption("multiple-document-handling", num_options, options)) != NULL)
{
/*
@@ -3185,7 +3182,7 @@ format_YMC(cups_page_header_t *header, /* I - Page header */
bitoffset = 0;
ptr = row + bitoffset / 8;
bandwidth = header->cupsBytesPerLine / 4;
bandwidth = header->cupsBytesPerLine / 3;
switch (header->cupsColorOrder)
{
+1 -6
Ver Arquivo
@@ -3,7 +3,7 @@
*
* PostScript filter for the Common UNIX Printing System (CUPS).
*
* Copyright 1993-1999 by Easy Software Products.
* Copyright 1993-2000 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -138,16 +138,11 @@ main(int argc, /* I - Number of command-line arguments */
Copies = atoi(argv[4]);
ppd = ppdOpenFile(getenv("PPD"));
options = NULL;
num_options = cupsParseOptions(argv[5], 0, &options);
ppd = SetCommonOptions(num_options, options, 1);
ppdMarkDefaults(ppd);
cupsMarkOptions(ppd, num_options, options);
if ((val = cupsGetOption("page-ranges", num_options, options)) != NULL)
PageRanges = val;

Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais