From 5a1d7a17697768b124bdbe8406910972e3c4df3a Mon Sep 17 00:00:00 2001 From: msweet Date: Fri, 18 Oct 2013 20:36:01 +0000 Subject: Remove support for AIX, HP-UX, and OSF/1. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11342 a1ca3aef-8c08-0410-bb20-df032aa958be --- berkeley/lpq.c | 49 ++++++++----------------------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) (limited to 'berkeley') diff --git a/berkeley/lpq.c b/berkeley/lpq.c index 7e8d8baaa..595fafdae 100644 --- a/berkeley/lpq.c +++ b/berkeley/lpq.c @@ -1,23 +1,16 @@ /* * "$Id$" * - * "lpq" command for CUPS. + * "lpq" command for CUPS. * - * Copyright 2007-2013 by Apple Inc. - * Copyright 1997-2006 by Easy Software Products. + * Copyright 2007-2013 by Apple Inc. + * Copyright 1997-2006 by Easy Software Products. * - * These coded instructions, statements, and computer programs are the - * property of Apple Inc. 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 - * file is missing or damaged, see the license at "http://www.cups.org/". - * - * Contents: - * - * main() - Parse options and commands. - * show_jobs() - Show jobs. - * show_printer() - Show printer status. - * usage() - Show program usage. + * These coded instructions, statements, and computer programs are the + * property of Apple Inc. 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 + * file is missing or damaged, see the license at "http://www.cups.org/". */ /* @@ -323,9 +316,6 @@ show_jobs(const char *command, /* I - Command name */ ipp_jstate_t jobstate; /* job-state */ int jobid, /* job-id */ jobsize, /* job-k-octets */ -#ifdef __osf__ - jobpriority, /* job-priority */ -#endif /* __osf__ */ jobcount, /* Number of jobs */ jobcopies, /* Number of copies */ rank; /* Rank of job */ @@ -448,9 +438,6 @@ show_jobs(const char *command, /* I - Command name */ jobid = 0; jobsize = 0; -#ifdef __osf__ - jobpriority = 50; -#endif /* __osf__ */ jobstate = IPP_JOB_PENDING; jobname = "unknown"; jobuser = "unknown"; @@ -467,12 +454,6 @@ show_jobs(const char *command, /* I - Command name */ attr->value_tag == IPP_TAG_INTEGER) jobsize = attr->values[0].integer; -#ifdef __osf__ - if (!strcmp(attr->name, "job-priority") && - attr->value_tag == IPP_TAG_INTEGER) - jobpriority = attr->values[0].integer; -#endif /* __osf__ */ - if (!strcmp(attr->name, "job-state") && attr->value_tag == IPP_TAG_ENUM) jobstate = (ipp_jstate_t)attr->values[0].integer; @@ -510,16 +491,9 @@ show_jobs(const char *command, /* I - Command name */ } if (!longstatus && jobcount == 0) -#ifdef __osf__ - _cupsLangPuts(stdout, - /* TRANSLATORS: Pri is job priority. */ - _("Rank Owner Pri Job Files" - " Total Size")); -#else _cupsLangPuts(stdout, _("Rank Owner Job File(s)" " Total Size")); -#endif /* __osf__ */ jobcount ++; @@ -560,16 +534,9 @@ show_jobs(const char *command, /* I - Command name */ namestr, 1024.0 * jobsize); } else -#ifdef __osf__ - _cupsLangPrintf(stdout, - _("%-6s %-10.10s %-4d %-10d %-27.27s %.0f bytes"), - rankstr, jobuser, jobpriority, jobid, jobname, - 1024.0 * jobsize); -#else _cupsLangPrintf(stdout, _("%-7s %-7.7s %-7d %-31.31s %.0f bytes"), rankstr, jobuser, jobid, jobname, 1024.0 * jobsize); -#endif /* __osf */ if (attr == NULL) break; -- cgit v1.2.1